« Back to channel list

#ruby - 08 January 2016

« Back 1 day Forward 1 day »
[00:00:05] viperman: has joined #ruby
[00:00:06] paz__1: has left #ruby: ()
[00:00:37] hannelita: has joined #ruby
[00:01:32] shinnya: has joined #ruby
[00:03:21] exadeci: has joined #ruby
[00:04:28] citrusfizz: has joined #ruby
[00:04:33] d5sx43: has joined #ruby
[00:04:50] dopie: :Gwrite | :GCommit -m "work in progress | :Gpush
[00:04:55] dopie: I can do something like that
[00:05:05] dopie: :Gwrite | :GCommit -m "work in progress" | :Gpush
[00:05:13] thomcom: has joined #ruby
[00:06:11] weemsledeux: has joined #ruby
[00:06:34] freerobby: has joined #ruby
[00:08:03] Ox0dea: /part #vim
[00:08:32] dopie: Not an editor command: :Gcommit -m "WIP" | :GPush
[00:08:41] dopie: wrong channel
[00:10:20] dlitvak: has joined #ruby
[00:10:27] Ox0dea: Majora_: The board should be a flat, nine-element array whose elements represent either an as yet unplayed cell or a played one, for which there are two possibilities in the latter case.
[00:10:39] dlitvak: has joined #ruby
[00:10:57] Ox0dea: The ternary number 201120102 represents a win for player 2.
[00:11:05] Ox0dea: And also that player 1 is maybe retarded.
[00:12:45] baweaver: has joined #ruby
[00:13:48] jbrhbr: has joined #ruby
[00:15:13] baweaver: has joined #ruby
[00:15:21] gix-: has joined #ruby
[00:16:19] Vertroa: has joined #ruby
[00:17:01] Hanmac: has joined #ruby
[00:17:09] shadoi: has joined #ruby
[00:17:59] djbkd: has joined #ruby
[00:18:49] choke: has joined #ruby
[00:18:59] mary5030: has joined #ruby
[00:19:07] xelkarin: has joined #ruby
[00:20:21] ascarter: has joined #ruby
[00:20:59] xelkarin: Is the string returned by StringValueCStr() a reference or a copy of the internal ruby string?
[00:21:19] dlitvak_: has joined #ruby
[00:21:44] tubuliferous_: has joined #ruby
[00:22:28] r_rios: has joined #ruby
[00:23:38] drbrain: xelkarin: looks like it is a reference, but I'm unsure if that is guaranteed by the API
[00:23:50] nixmaniack: has joined #ruby
[00:24:40] wsewolod: has joined #ruby
[00:24:51] drbrain: xelkarin: ??? thinking upon it, I think it is always a reference as you never need to free() it
[00:25:00] drbrain: at least, the documentation doesn't say so
[00:25:39] xelkarin: cool, thanks drbrain
[00:25:43] drbrain: http://docs.ruby-lang.org/en/2.3.0/extension_rdoc.html#label-Convert+VALUE+into+C+Data
[00:26:00] drbrain: and I've never seen anyone try to free() the result either
[00:26:21] nofxx: has joined #ruby
[00:26:40] chouhoulis: has joined #ruby
[00:26:46] skcin7: has joined #ruby
[00:26:59] yfeldblum: has joined #ruby
[00:28:46] kgirthofer: has joined #ruby
[00:30:59] gambl0re: has joined #ruby
[00:32:18] shevy: I want to break freeee()
[00:33:27] Ox0dea: xelkarin: https://eval.in/498891
[00:33:30] Ox0dea: Definitely a reference.
[00:33:48] mjuszczak: has joined #ruby
[00:36:04] ledestin: has joined #ruby
[00:36:53] rakm: has joined #ruby
[00:36:58] Ox0dea: shevy: That reminded me of proposals to have `enddd` be equivalent to `end end end`.
[00:37:20] Ox0dea: Which subsequently reminded me of Lisp's `cadddr`.
[00:37:45] dkam_______: has joined #ruby
[00:41:27] luckyme: has joined #ruby
[00:42:08] kspencer: grr I don't know whether its a timeout issue or a agent issue, but I can't grab data via script, but I can via browser, and I'm making my bot send what it has to, the only thing is its grabbing at a doctype that shouldn't be there, considering :layout => false etc.
[00:43:14] Ox0dea: kspencer: Er, you're obviously not making your bot send what it has to.
[00:43:31] Ox0dea: The data you send is the server's only means of determining whether you're a browser or a bot.
[00:44:29] guacamole: has joined #ruby
[00:45:23] colegatron: has joined #ruby
[00:46:19] KineticX: has joined #ruby
[00:47:02] choke: has joined #ruby
[00:47:27] Ox0dea: kspencer: I'd advise using your browser's developer console to see what all's being sent.
[00:47:36] Ox0dea: Chromium's "Copy as cURL" is pretty nifty.
[00:47:52] arescorpio: has joined #ruby
[00:48:28] baweaver: has joined #ruby
[00:50:49] yfeldblum: has joined #ruby
[00:51:33] neanderslob: has joined #ruby
[00:51:55] diegoviola: Date.today.prev_day.strftime("%Y-%m-%d")
[00:51:57] diegoviola: is there a better way to do this?
[00:52:35] hannelita: has joined #ruby
[00:53:19] Ox0dea: ?better diegoviola
[00:53:19] ruboto: diegoviola, "Best" and "better" are subjective. Try to use a different term.
[00:54:05] diegoviola: "I don't know what I'm talking about", is that more subjective?
[00:54:50] diegoviola: just kidding
[00:55:31] janebootydoe: has joined #ruby
[00:55:39] Ox0dea: Date should probably have #pred, but even if it did, #prev_day is more intention-revealing.
[00:55:48] Ox0dea: Are you looking for critique of your format string or something?
[00:55:55] darix: also it is pretty short already
[00:56:24] al2o3-cr: (Date.today-1).strftime("%F") shorter don't know if it's better :P
[00:56:30] chipotle: this is a stupid question but i'm thinking of rewriting my drupal 7 personal site in http://nanoc.ws or maybe even http://jekyllrb.com, both of which are static frameworks. does that mean i can't have any dynamic content on it, like a block that shows "top posters" or "recent comments" etc? what about comments? can i integrate disquis or facebook comments on the site? if so, is there a way to have dynamic blocks like the ones i've mentioned?
[00:56:39] choke: has joined #ruby
[00:56:43] chipotle: it's my first ruby website, i thought nanoc or jekyll would be good places to start. if it goes well (i don't like drupal 8 and i'm doing less and less work with drupal 7), i wanted to convert another site i have that has a module called organic groups, which is basically like a facebook group where users can post to, like a forum, but somewhat differently, to a ruby framework but i assume using nanoc and jekyll are out, so that leaves me with sinatra or
[00:56:50] ceej: evening! Is there a better way to get the value of number? https://repl.it/BcWt/0
[00:56:58] vikas027: has joined #ruby
[00:57:16] Ox0dea: ceej: Are you on Ruby 2.3?
[00:57:18] darix: diegoviola: %F ;)
[00:57:22] darix: but it isnt saving you that much
[00:57:34] ceej: Ox0dea: we will be soon
[00:57:46] Ox0dea: ceej: You could use Hash#dig if you were.
[00:57:47] atomical_: has joined #ruby
[00:58:13] Ox0dea: That'd be `hash.dig(*keys)` in your example.
[00:58:20] DLSteve: has joined #ruby
[00:58:34] ceej: whoa... now I've got to go through all the changes.... what would you do in version 2.2?
[00:58:40] Ox0dea: ceej: Without #dig, you could say `keys.reduce(hash, :[])`.
[01:00:00] darix: chipotle: static website for normal content. discourse for comments via https://meta.discourse.org/t/embedding-discourse-comments-via-javascript/31963
[01:00:28] darix: chipotle: that's what we use e.g. for https://pixls.us ( https://discuss.pixls.us/ )
[01:00:52] ceej: Ox0dea: much more elegant! thank you :)
[01:00:59] Ox0dea: ceej: Sure thing. :)
[01:01:01] ceej: happy new year btw :)
[01:02:24] govg: has joined #ruby
[01:02:24] casadei: has joined #ruby
[01:02:34] bkxd: has joined #ruby
[01:04:58] cmolenda: has joined #ruby
[01:05:28] guacamole: has joined #ruby
[01:06:31] m3troX: has joined #ruby
[01:06:48] underplank: has joined #ruby
[01:07:31] dorei: has joined #ruby
[01:07:56] chipotle: darix: thanks. but what about having blocks that updated based on info, like top posts, most recent posts, top comments? is that possible with with nanoc or jekyll
[01:08:08] gambl0re: has joined #ruby
[01:08:46] agentmeerkat: has joined #ruby
[01:08:59] certainty: has joined #ruby
[01:09:25] rickmasta: has joined #ruby
[01:09:34] underplank: has joined #ruby
[01:10:14] m3troX1: has joined #ruby
[01:11:22] darix: chipotle: sure. but you would probably grab that via JS if you use discourse for comments.
[01:11:57] darix: chipotle: checkout how we use it
[01:13:46] cmolenda_: has joined #ruby
[01:15:41] CorySimmons: has joined #ruby
[01:16:44] roshanavand: has joined #ruby
[01:17:59] davedev24: has joined #ruby
[01:18:47] djbkd: has joined #ruby
[01:19:01] kgirthofer: has joined #ruby
[01:19:49] SCHAAP137: has joined #ruby
[01:21:38] benlieb: has joined #ruby
[01:25:19] NoTroutAboutIt: has joined #ruby
[01:26:31] diegoviola: https://gist.github.com/diegoviola/5b2d52459a04843cbff7
[01:26:40] diegoviola: I wonder why this returns an empty array when I put that code inside the import method
[01:26:47] diegoviola: when it doesn't have any methods I get data
[01:27:49] kspencer: Ox0dea: I have every bit of into, and I still get the doctype thing
[01:32:22] symbole: has joined #ruby
[01:34:27] duckpuppy: has joined #ruby
[01:34:36] Prominent: has joined #ruby
[01:35:25] Ox0dea: kspencer: I won't trouble you to be more specific about what you're doing just yet, but it might be the case that you're forgetting to send some kind of session cookie along with your request.
[01:35:59] al2o3-cr: diegoviola: you might wanna change your passwd pdq
[01:36:06] Ox0dea: If you're really sending exactly the same data as your browser, the server has no choice but to send you back the same response.
[01:38:00] choke: has joined #ruby
[01:38:41] baweaver: has joined #ruby
[01:38:48] dkam_______: has joined #ruby
[01:38:51] yfeldblum: has joined #ruby
[01:39:06] lemur: has joined #ruby
[01:39:28] roshanavand: has joined #ruby
[01:39:55] chipotle: has joined #ruby
[01:40:33] KineticX: has joined #ruby
[01:40:46] chimche: has joined #ruby
[01:40:53] user083: has joined #ruby
[01:41:24] diegoviola: I'm using mechanize in order to download some xls file, the output it's returning is just plain HTML
[01:41:30] diegoviola: how should I parse this?
[01:41:45] al2o3-cr: diegoviola: nokogiri?
[01:42:05] Ox0dea: diegoviola: Please change your password.
[01:45:20] mistermo_: has joined #ruby
[01:46:11] user083_: has joined #ruby
[01:46:27] foureight84_: has joined #ruby
[01:46:50] Majora_: has joined #ruby
[01:47:00] diegoviola: how should I parse that data though?
[01:47:05] Majora_: Ox0dea: Sorry I just read your messages.
[01:48:13] Scripore: has joined #ruby
[01:48:36] diegoviola: is parsing HTML a PITA?
[01:49:47] choke: has joined #ruby
[01:50:17] ertertert: has joined #ruby
[01:51:01] ertertert: I'm having some trouble to setup React.rb with Rails, basically I followed the guide, but I have this weird issue : "Could not obtain ExecJS runtime context"
[01:51:21] ertertert: I can't seem to find anything anywhere on this issue, like no one ever had this one before me ?
[01:51:51] Ox0dea: Wow, that is weird.
[01:51:58] chipotle: darix: looking now
[01:52:44] ertertert: I really have no idea where to search for some useful info, could it mean that I'm somehow missing ExecJS ?
[01:53:05] dlitvak: has joined #ruby
[01:53:12] bricker: has joined #ruby
[01:53:39] Ox0dea: ertertert: The phrase "runtime context" doesn't even appear in the source tree for either project. :<
[01:53:45] shevy: most rails users are on #rubyonrails
[01:53:47] chipotle: but if create dynamic blocks that updated based on whatever info i give it (like top comments, top posts, recent posts etc), is it now getting silly to use a static framework like jekyll adn nano at this point? should i just use RoR, sinatra or some other dynamic ruby framework?
[01:54:18] ertertert: shevy oh thanks I was looking for it
[01:54:45] ertertert: Ox0dea I know weird huh? searching for it on google with quotes, litterally return 0 result
[01:55:28] Ox0dea: ertertert: Yeah, I saw that too.
[01:55:35] wolffles: has joined #ruby
[01:55:47] Ox0dea: Can you say whether you're doing anything a little unorthodox?
[01:56:01] ertertert: http://reactrb.org/docs/getting-started.html
[01:56:06] ertertert: I'm doing exactly this
[01:56:26] ertertert: Calling render_component trigger the error apparently
[01:58:19] chipotle: Drakx: cool site! are you a photographer too?
[01:58:25] smactive: has joined #ruby
[01:58:54] chipotle: Drakx: https://discuss.pixls.us/ is this page a table? or it's using disquis? i'm a bit confused?
[01:59:22] Ox0dea: zerjh: You don't have v8 installed.
[01:59:27] Ox0dea: Gotta get your vegetables.
[01:59:50] zerjh: (sorry I'm fighting with NickServ)
[02:00:16] usershell: has joined #ruby
[02:00:18] stannard: has joined #ruby
[02:00:39] zerjh: But I have NodeJS available so it should work, and ExecJS should trigger "can't find JS runtime" if it can't find V8 or so
[02:01:08] craysiii: has joined #ruby
[02:01:22] Ox0dea: Very strange.
[02:01:33] zerjh: NO I know, you 're probably right actually, does rails execute itself in a "virtual" environment like cygwin ? if so, it might not find my windws nodejs
[02:01:34] iateadonut: has joined #ruby
[02:01:53] craysiii: has joined #ruby
[02:03:18] ertertert: (yes I'm executing on Windows)
[02:04:03] diegoviola: is html painful to parse?
[02:04:12] RenatoSilva: has joined #ruby
[02:04:26] cmolenda: has joined #ruby
[02:04:35] dfockler: has joined #ruby
[02:04:46] bb010g: has joined #ruby
[02:05:14] davedev24: has joined #ruby
[02:05:40] KineticX: has joined #ruby
[02:05:55] Ox0dea: ertertert: It's hard to say why it's not complaining sooner; that error does seem to be coming from the renderer.
[02:06:40] Ox0dea: Some kind of lazy evaluation, perhaps. It doesn't actually try to *use* v8 until it absolutely has to.
[02:07:44] ertertert: But I don't get what EXACTLY it's complaining abiyt
[02:08:00] ertertert: It's not like I could install v8 itself, or can I ?
[02:08:18] Ox0dea: That's basically a synonym for Node.
[02:08:35] ertertert: Yeah so I do have it
[02:09:08] Ox0dea: You just don't have everything wired together properly.
[02:09:29] Ox0dea: Did it get installed somewhere weird?
[02:10:38] ertertert: Default path
[02:10:49] ertertert: And it's in my PATH
[02:11:12] Radar: ertertert: What OS?
[02:12:33] derailed: Hi everyone! Is there a tool for Ruby that will take a project (Rails, in this case), and give me a list of all the modules and classes defined in that project (bonus if it includes the path to the file it's defined in)
[02:13:24] usershell: has joined #ruby
[02:13:48] dlitvak: has joined #ruby
[02:14:45] choke: has joined #ruby
[02:14:56] Majora_: How do you send PM's to people?
[02:15:32] Ox0dea: Majora_: I hesitate to tell you. :P
[02:15:50] Majora_: Ox0dea: Lol don't you trust me?
[02:16:04] Ox0dea: Derailed: The trouble there is that Ruby is a ridiculously dynamic language. Modules and classes can be created all sorts of ways that static analysis just can't pick up on.
[02:16:17] Radar: ?xy Derailed
[02:16:17] ruboto: Derailed, it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[02:16:25] RenatoSilva: has left #ruby: ("http://pidgin.renatosilva.me - Pidgin++")
[02:16:39] Ox0dea: You can, of course, let Ruby do the introspection for you: ObjectSpace.each_object(Module) + some_module.const_get(:Foo)
[02:16:57] Ox0dea: Recur as necessary. :P
[02:17:22] derailed: Ox0dea, yeah. 'grep class' and 'grep module' sure won't hit the spot for me :-)
[02:17:38] Ox0dea: Derailed: You should upgrade. :P
[02:17:46] Ox0dea: But yeah, even `ag` wouldn't suffice.
[02:17:46] usershell: has joined #ruby
[02:18:39] Darmani: Ox0dea: Remember how you asked me yesterday about what my unknown knowns are?
[02:18:43] Darmani: You asked me something like that.
[02:19:29] derailed: ruboto, for slightly more context: I am reading, and documenting a very large amount of undocumented ruby code (over 25 separate interrelated rails projects). I'm looking for good ways of visualizing their various structures. And a clear list of Modules/Classes seems like a good place to do some inspection
[02:19:46] djbkd: has joined #ruby
[02:19:49] Ox0dea: ?bot Derailed
[02:19:50] ruboto: Derailed, I don't know anything about bot
[02:20:00] DrShoggoth: has joined #ruby
[02:20:03] Ox0dea: >> eval 'Fbb = Cynff.arj'.tr('a-z', 'n-za-m'); Foo.new # Derailed
[02:20:04] ruboto: Ox0dea # => #<Foo:0x41643ee4> (https://eval.in/498899)
[02:20:08] usershell: has joined #ruby
[02:20:09] diegoviola: ok so I can do Nokogiri::XML(content), wish I could do to_csv or something
[02:20:41] derailed: ACTION fails at turing test administration
[02:20:51] whippythellama: has joined #ruby
[02:20:56] diegoviola: nothing can be more painful than XML
[02:22:08] govg: has joined #ruby
[02:22:34] sigurding: has joined #ruby
[02:24:07] ertertert: has joined #ruby
[02:24:12] ertertert: Ok i foudn something new
[02:24:19] ertertert: If I add ?no_prerender=1 to the URL
[02:24:24] ertertert: It actually works O_o
[02:24:25] Mini_Evo: has joined #ruby
[02:25:10] Radar: Derailed: The best kind of documentation is user-generated documentation.
[02:25:20] Radar: As in: you write the documentation!
[02:25:35] Radar: I don't think there's going to be something that'll produce anything that makes sense like you're thinking of.
[02:25:35] framling: has joined #ruby
[02:25:43] Radar: Besides this handy thing I know of called a "Technical Writer"
[02:26:07] Mini_Evo: has left #ruby: ("WeeChat 1.3")
[02:26:13] derailed: Radar, in this context. I effectively *am* the technical writer. Documenting 5 years of technical debt
[02:26:42] Radar: Derailed: File -> New File -> shit-is-fucked.md -> Start writing.
[02:26:50] diegoviola: Radar: what do you recommend I do with this XML? how can I parse it?
[02:27:02] Radar: diegoviola: I missed the part where I was talking with you?
[02:27:07] pawnbox: has joined #ruby
[02:27:13] diegoviola: Radar: ok have it your way
[02:27:20] shakes: has joined #ruby
[02:27:29] Radar: diegoviola: It's rude to ask me for help directly. If I wanted to help then I would've.
[02:27:41] derailed: Radar, that's the easy part. I'm working on getting onto heres-how-to-unfuck-it-good-luck.md :-)
[02:27:47] Radar: Especially when you think I have all the context right in front o fme.
[02:27:49] diegoviola: Radar: ok sorry if you felt that way
[02:27:51] havenwood: http://ruby-community.com/pages/user_rules#rule_2_7
[02:28:13] diegoviola: Radar: I didn't meant for you to feel that way
[02:28:22] diegoviola: I'm honestly don't know what to do with this
[02:28:31] havenwood: diegoviola: It's just an IRC etiquette thing. See the rule! ^
[02:28:34] sigurding_: has joined #ruby
[02:28:37] diegoviola: if it were me I'd print it and burn it as some type of gesture
[02:28:38] Radar: diegoviola: Show us the code?
[02:28:49] diegoviola: XML is just awful
[02:29:07] diegoviola: havenwood: ok
[02:29:44] derailed: But let me rephrase my general question: given a running ruby process ('rails console'), can I introspect it and see all the modules that are loaded, all the classes that are defined in those modules, and maybe (bonus again) in which files they're defined? is Ox0dea's suggestion of playing with ObjectSpace.each_object(Module) the right direction?
[02:30:00] diegoviola: Radar: https://gist.github.com/68266ccc113a451a4acf
[02:30:06] shortdudey123: has joined #ruby
[02:31:08] Radar: diegoviola: Show us what response is please.
[02:31:29] diegoviola: in pry I get some huge output
[02:31:38] diegoviola: I'm trying to find a way to gist all that
[02:31:48] Radar: Copy+paste is usually how to do i t
[02:31:57] Radar: Is it HTML? XML? CSV? CSV+XML?
[02:32:07] Ox0dea: diegoviola: require 'gist'
[02:32:12] diegoviola: HTML I think
[02:32:14] Radar: and what do you wnat to do it with it once you have it?
[02:32:21] Radar: diegoviola: Gist the first bit of it
[02:32:26] Radar: First 5 lines or something
[02:32:48] diegoviola: https://gist.github.com/diegoviola/280422a5d7ae9326e29e
[02:33:09] Radar: Looks like HTML to me
[02:33:16] Radar: What do you want to do with it now that you have it?
[02:33:48] Radar: Looks like some massive table with data.
[02:34:05] Radar: You probably want to manipulate it into an array of hashes, where the keys are the top row and then the values are the other rows.
[02:34:17] diego1: has joined #ruby
[02:34:33] diego1: has joined #ruby
[02:34:43] colegatron: has joined #ruby
[02:35:01] diegoviola: just got disconnected, sorry
[02:35:04] diegoviola: did you guys see the link?
[02:35:10] diegoviola: https://gist.github.com/diegoviola/280422a5d7ae9326e29e
[02:35:18] diegoviola: I have to parse this and insert the data on the db
[02:35:32] havenwood: Derailed: Maybe give something along these lines a try: $LOAD_PATH.grep(/\/lib\z/).map { |path| File.basename(path.rpartition('/').first) }
[02:35:48] Ox0dea: Derailed: It'll get you the list, not so much the associations.
[02:35:50] diegoviola: there are multiples columns and such, but the output is just confusing to me
[02:36:10] usershell: has joined #ruby
[02:36:10] Ox0dea: Derailed: The ObjectSpace + #const_get approach, to clarify.
[02:36:39] derailed: Cheers. I'll dig in and see if I can come up with something that will work for me. Thanks!
[02:36:42] Radar: diegoviola: Ok, so what you want to do is to find all the text from the first row.
[02:36:52] Radar: diegoviola: .css("table tr td").map(&:text) should get you that
[02:36:54] Radar: Those are your keys.
[02:37:04] Radar: Then you want to iterate through the rest of the rows and create hashes from that data.
[02:37:13] diego1: has joined #ruby
[02:37:21] Radar: Hash[keys.zip(row.css("td").map(&:text))]
[02:37:29] diego1: has joined #ruby
[02:37:32] Radar: Hash[*keys.zip(row.css("td").map(&:text))] maybe
[02:38:04] Ox0dea: Did somebody mean #to_h?
[02:40:08] Nightmare: has joined #ruby
[02:40:16] LBRapid: has joined #ruby
[02:40:59] casadei: has joined #ruby
[02:42:02] ReK2: has joined #ruby
[02:42:03] ReK2: has joined #ruby
[02:42:37] mfb2: has joined #ruby
[02:43:41] aadam21: has joined #ruby
[02:45:17] jackjackdripper: has joined #ruby
[02:47:23] choke: has joined #ruby
[02:47:37] Prominent: has joined #ruby
[02:47:53] diego1: has joined #ruby
[02:48:20] bkxd: has joined #ruby
[02:48:29] charliesome: has joined #ruby
[02:48:30] Prominent: has joined #ruby
[02:50:48] diego2: has joined #ruby
[02:52:44] mjuszczak: has joined #ruby
[02:54:09] hannelita: has joined #ruby
[02:54:13] oyes: has joined #ruby
[02:54:43] dlitvak: has joined #ruby
[02:57:43] diego1: has joined #ruby
[02:58:08] diego1: has joined #ruby
[02:58:30] diego1: has joined #ruby
[02:58:33] Ox0dea: Forgiven.
[03:02:58] diego1: has joined #ruby
[03:03:30] dlitvak_: has joined #ruby
[03:04:26] bluOxigen: has joined #ruby
[03:05:14] A124: has joined #ruby
[03:05:50] usershell: has joined #ruby
[03:06:02] diego1: has joined #ruby
[03:09:45] certainty: has joined #ruby
[03:11:47] choke_: has joined #ruby
[03:11:53] diegoviola: Hash[*keys.zip(row.css("td").map(&:text))]
[03:12:00] diegoviola: what is keys in that example?
[03:12:09] asherdowd: has joined #ruby
[03:12:14] diegoviola: the attributes for the table?
[03:13:53] m3troX: has joined #ruby
[03:18:08] diego1: has joined #ruby
[03:18:17] shevy: anyone knows (offhand) an example where mruby is used? something akin to I believe how blizzard would use lua for some games
[03:18:43] dlitvak: has joined #ruby
[03:18:48] diego1: has joined #ruby
[03:20:12] ascarter: has joined #ruby
[03:20:18] djbkd: has joined #ruby
[03:20:24] chipotle: has joined #ruby
[03:22:25] choke: has joined #ruby
[03:23:06] bricker: has joined #ruby
[03:23:36] baweaver: has joined #ruby
[03:26:02] aadam21: has joined #ruby
[03:26:56] dkam_______: has joined #ruby
[03:27:26] underplank: has joined #ruby
[03:30:24] duckpuppy: has joined #ruby
[03:30:52] choke_: has joined #ruby
[03:32:43] LMity: has joined #ruby
[03:35:02] hinbody: has joined #ruby
[03:35:57] ziyadb: has joined #ruby
[03:36:50] pawnbox: has joined #ruby
[03:39:41] choke: has joined #ruby
[03:41:11] diego1: has joined #ruby
[03:41:51] diego1: has joined #ruby
[03:42:13] hxegon: has joined #ruby
[03:43:37] psye: has joined #ruby
[03:46:01] cbyrda: has joined #ruby
[03:46:31] ESpiney: has joined #ruby
[03:46:54] nertzy: has joined #ruby
[03:47:57] cbyrda: has joined #ruby
[03:49:15] nfk|laptop: has joined #ruby
[03:49:39] diegoviola: I tried Hash.from_xml and I get this output: https://gist.github.com/diegoviola/a425f2ad42f289686ffc
[03:49:46] diegoviola: but it's just way too confusing for me
[03:49:55] diegoviola: the keys/headers are on the bottom
[03:50:01] diegoviola: so the data is upside down
[03:50:08] diegoviola: I have no idea how to format it properly
[03:50:17] krobzaur: has joined #ruby
[03:52:19] darkf: has joined #ruby
[03:53:42] skcin7: has joined #ruby
[03:55:17] diego1: has joined #ruby
[03:55:54] stannard: has joined #ruby
[03:56:25] diego1: has joined #ruby
[03:56:53] luckyno7: has joined #ruby
[03:57:16] nerium: has joined #ruby
[03:57:20] cbyrda: has joined #ruby
[03:58:39] al2o3-cr: diegoviola: doc = Nokogiri.parse(response.body); doc.css('tr').map { |elem| elem.children.map(&:text) }.each { |data| CSV.open('foo.csv', 'a') { |f| f << data } } # maybe something like this
[03:59:01] al2o3-cr: from what I can make out of it anyway might not work can't test it
[04:01:09] pricees: has joined #ruby
[04:01:56] dlitvak: has joined #ruby
[04:02:07] weemsledeux: has joined #ruby
[04:03:10] diegoviola: al2o3-cr: that actually works, wow
[04:03:12] diegoviola: al2o3-cr: thanks
[04:03:57] choke: has joined #ruby
[04:03:59] al2o3-cr: didn't think that would work tbh
[04:04:21] dkam_______: has joined #ruby
[04:04:48] pawnbox: has joined #ruby
[04:05:51] mary5030: has joined #ruby
[04:06:57] haraigo: has joined #ruby
[04:09:17] cpup: has joined #ruby
[04:10:05] gix: has joined #ruby
[04:10:29] hxegon: has joined #ruby
[04:10:36] diego1: has joined #ruby
[04:10:50] zast: has joined #ruby
[04:10:52] diego1: has joined #ruby
[04:10:56] varunwachaspati: has joined #ruby
[04:12:21] Bloomer: has joined #ruby
[04:17:11] jackjackdripper: has joined #ruby
[04:18:36] jbrhbr: has joined #ruby
[04:18:36] choke: has joined #ruby
[04:21:04] djbkd: has joined #ruby
[04:21:16] bricker: has joined #ruby
[04:22:20] whippythellama: has joined #ruby
[04:23:18] Melpaws: has joined #ruby
[04:24:04] whippythellama: has joined #ruby
[04:24:51] Marsjan: has joined #ruby
[04:25:32] krz: has joined #ruby
[04:26:47] blackgoat: has joined #ruby
[04:28:25] colegatron: has joined #ruby
[04:29:13] freerobby: has joined #ruby
[04:32:04] aadam21: has joined #ruby
[04:34:06] bkxd: has joined #ruby
[04:35:26] chouhoulis: has joined #ruby
[04:36:01] mary5030: has joined #ruby
[04:36:18] duckpuppy: has joined #ruby
[04:38:07] freerobby: has joined #ruby
[04:39:19] Xiti: has joined #ruby
[04:40:14] hxegon: has joined #ruby
[04:40:33] usershell: has joined #ruby
[04:41:08] dotix: has joined #ruby
[04:42:47] sdwrage: has joined #ruby
[04:45:12] m3troX: has left #ruby: ()
[04:45:57] Bloomer: has joined #ruby
[04:46:43] choke: has joined #ruby
[04:48:26] pawnbox: has joined #ruby
[04:48:36] gsingh93: has joined #ruby
[04:49:08] choke_: has joined #ruby
[04:49:55] foureight84_: has joined #ruby
[04:54:22] choke: has joined #ruby
[04:54:51] themsay2: has joined #ruby
[04:55:27] themsay2: has joined #ruby
[04:56:24] chouhoulis: has joined #ruby
[04:57:30] sdothum: has joined #ruby
[04:58:00] ascarter: has joined #ruby
[04:58:29] choke_: has joined #ruby
[05:04:10] krz: has joined #ruby
[05:04:49] colegatron: has joined #ruby
[05:05:10] vikaton: has joined #ruby
[05:10:30] certainty: has joined #ruby
[05:15:31] Bloomer: has joined #ruby
[05:16:27] hxegon: has joined #ruby
[05:19:59] hxegon: has joined #ruby
[05:21:46] djbkd: has joined #ruby
[05:24:22] Guest24140: anyone here a transhumanist?
[05:24:49] hxegon: has joined #ruby
[05:29:43] djbkd: has joined #ruby
[05:31:18] choke: has joined #ruby
[05:32:01] astrobun_: has joined #ruby
[05:32:07] sosuniverse: I'm a transhumanist.
[05:34:15] choke_: has joined #ruby
[05:37:16] Ox0dea: dpg_: Who's your favorite transhumanist?
[05:37:54] choke__: has joined #ruby
[05:38:42] GlueC: has joined #ruby
[05:40:55] kfpratt: has joined #ruby
[05:41:38] Rodya_: has joined #ruby
[05:43:02] ascarter: has joined #ruby
[05:43:31] tubuliferous_: has joined #ruby
[05:47:59] hxegon: has joined #ruby
[05:48:24] choke: has joined #ruby
[05:48:25] kfpratt: has joined #ruby
[05:48:25] Strongarm: has joined #ruby
[05:48:37] themsay: has joined #ruby
[05:48:42] Strongarm: Hey guy - I'm having some trouble with Middleman
[05:48:56] Strongarm: I'm picking up a build from somebody, and I've never used it .
[05:49:09] Strongarm: I've installed all dependencies, and everything seems to be fine
[05:49:17] Strongarm: However when I run >middleman server
[05:49:44] Strongarm: .../.../.../_source/_single-page not found
[05:50:09] Strongarm: The directory definitely exists
[05:50:22] Strongarm: and if I go up one level, I can run middleman init
[05:50:43] Strongarm: and it will create the appropriate config
[05:50:57] Strongarm: bit I can't get it to run on that directory for whatever reason.
[05:51:18] codecop: has joined #ruby
[05:53:52] choke_: has joined #ruby
[05:55:08] ascarter: has joined #ruby
[05:57:45] aadam21: has joined #ruby
[05:59:10] DonOtreply: has joined #ruby
[05:59:15] choke: has joined #ruby
[06:01:35] hannelita: has joined #ruby
[06:03:27] choke_: has joined #ruby
[06:04:46] bkxd: has joined #ruby
[06:07:14] choke: has joined #ruby
[06:08:23] fn2187: has joined #ruby
[06:09:18] symm-_: has joined #ruby
[06:09:28] stuartb: has joined #ruby
[06:10:02] tommylommykins: has joined #ruby
[06:11:24] terminalrecluse: has joined #ruby
[06:13:26] hxegon: has joined #ruby
[06:14:30] j0bk: has joined #ruby
[06:15:03] levifig: has joined #ruby
[06:15:14] jackcom: has joined #ruby
[06:15:28] jackcom: give me ruby tutorial
[06:17:24] jimeh: has joined #ruby
[06:18:01] colegatron: has joined #ruby
[06:18:20] SamGerber: has joined #ruby
[06:21:17] yfeldblum: has joined #ruby
[06:24:20] choke: has joined #ruby
[06:25:11] SamGerber: has joined #ruby
[06:25:51] cmolenda: has joined #ruby
[06:26:36] aganov: has joined #ruby
[06:28:06] gluec_: has joined #ruby
[06:28:32] ur5us: has joined #ruby
[06:28:39] kalopsian: has joined #ruby
[06:29:33] choke_: has joined #ruby
[06:29:47] SamGerber: has joined #ruby
[06:30:39] ascarter: has joined #ruby
[06:33:30] ChanServ: -b KKKTRIPLEK!*@*
[06:33:35] chouhoul_: has joined #ruby
[06:35:52] choke: has joined #ruby
[06:37:04] duckpuppy: has joined #ruby
[06:39:50] juddey: has joined #ruby
[06:40:30] choke_: has joined #ruby
[06:40:50] craysiii: has joined #ruby
[06:41:16] craysiii: has joined #ruby
[06:42:04] xargs: has joined #ruby
[06:43:16] genpaku: has joined #ruby
[06:43:59] hxegon: has joined #ruby
[06:44:20] arup_r: has joined #ruby
[06:44:25] Rodya_: has joined #ruby
[06:44:40] FLeiXiuS`: has joined #ruby
[06:44:47] GriffinHeart: has joined #ruby
[06:46:45] mdw: has joined #ruby
[06:48:29] trautwein: has joined #ruby
[06:50:01] hxegon: has joined #ruby
[06:51:14] FLeiXiuS`: Does OptsParser always execute first regardless of ruby being linear?
[06:52:01] jake_g: has joined #ruby
[06:52:41] FLeiXiuS`: Nvm - i'm an idiot.
[06:52:58] Ox0dea: FLeiXiuS`: That said, Ruby does provide the means to execute "non-linearly" via BEGIN.
[06:53:46] jake_g: Hi. I have a class that I want to instantiate and return other classes based on the arguments that its given. Is this an anti pattern? Right now, I???m trying to have `initialize` return an instance of a different class but it doesnt seem to be working.
[06:54:07] Ox0dea: FLeiXiuS`: https://eval.in/498947
[06:54:29] aufi: has joined #ruby
[06:54:41] Ox0dea: jake_g: You'll have to redefine your class's singleton class's #new method.
[06:55:12] Jackneill: has joined #ruby
[06:57:20] jake_g: Ox0dea: Sorry, I dont think I fully understand what you mean by the class???s singleton. Do you mean override `self.new` than returning a different class in the initialize method?
[06:57:26] tagrudev: has joined #ruby
[06:57:31] Ox0dea: jake_g: Just so.
[06:57:44] choke: has joined #ruby
[06:57:54] GriffinHeart: has joined #ruby
[06:58:35] colegatron: has joined #ruby
[07:02:03] jas02: has joined #ruby
[07:02:19] hannelita: has joined #ruby
[07:02:34] krzkrz: has joined #ruby
[07:02:42] Xeago: has joined #ruby
[07:04:59] yfeldblum: has joined #ruby
[07:08:41] SOLDIERz: has joined #ruby
[07:09:22] jake_g: Ox0dea: I got the specs passing but I???m not sure its ???good code???. Do you have a minute to look at this class?
[07:09:41] Ox0dea: jake_g: I open all links. :P
[07:10:13] Macaveli: has joined #ruby
[07:10:34] jake_g: I slimmed it down a little bit but this is the core of what I have going on https://gist.github.com/jakegavin/05fc174b0b46b0617c56
[07:10:45] choke: has joined #ruby
[07:11:17] jake_g: Some things that feel weird: 1) overriding `.new` I guess because I???ve never done it before. 2) Passing `params` all over the plase
[07:11:18] certainty: has joined #ruby
[07:11:53] tubuliferous_: has joined #ruby
[07:13:05] jake_g: Ox0dea: ^^ (Forgot to ping you in the first message, sorry if you already saw it)
[07:13:21] dorakyura: has joined #ruby
[07:14:16] Ox0dea: jake_g: I mean, that's the basic shape of a Factory.
[07:14:30] Ox0dea: `params` is kind of all over the place, though.
[07:14:49] hinbody: has joined #ruby
[07:15:32] jake_g: Would it be alright to put it in a class variable?
[07:16:17] ur5us: has joined #ruby
[07:16:26] Ox0dea: Would that make sense?
[07:19:57] phatypus: has joined #ruby
[07:19:59] jake_g: Seems like it would give me access to it everywhere without having to pass it around but I???ve never worked with class variables before so I???m not entirely sure what implications/side effects I need to be aware of
[07:20:07] Ox0dea: #report_class only needs `params` for :scope_option, but then #name_only? needs all of `params`, and #report_class needs #name_only?. :/
[07:20:14] howdoi: has joined #ruby
[07:20:52] Ox0dea: Well, but these classes you're returning don't inherit from CustomReportFactory, so they wouldn't be able to see its class variables.
[07:22:47] Xeago: has joined #ruby
[07:26:21] andikr: has joined #ruby
[07:26:44] jake_g: I gotta run (was just messing with stuff during an airport layover). Thanks for the help! Definitely learned some stuff tonight :D
[07:26:50] jake_g: Thanks a ton
[07:27:07] Ox0dea: jake_g: My pleasure! Have a safe trip.
[07:27:35] mdw: has joined #ruby
[07:28:41] aadam21: has joined #ruby
[07:28:44] krzkrz: has joined #ruby
[07:29:04] emilkarl: has joined #ruby
[07:32:17] GriffinHeart: has joined #ruby
[07:33:57] jbrhbr: has joined #ruby
[07:34:31] firstdayonthejob: has joined #ruby
[07:34:58] ta: has joined #ruby
[07:35:40] tmtwd: has joined #ruby
[07:36:12] rocfig: has joined #ruby
[07:37:06] ruby-lang158: has joined #ruby
[07:37:33] bluOxigen: has joined #ruby
[07:38:12] rippa: has joined #ruby
[07:40:50] nixmaniack: has joined #ruby
[07:42:41] solars: has joined #ruby
[07:48:47] rocfig: has joined #ruby
[07:49:00] dotix: has joined #ruby
[07:49:17] ohaibbq: has joined #ruby
[07:52:02] mistermocha: has joined #ruby
[07:52:04] brunto: has joined #ruby
[07:52:37] HANJIN: has joined #ruby
[07:55:33] ur5us: has joined #ruby
[07:57:04] brunto_: has joined #ruby
[07:58:19] dpg1: has joined #ruby
[07:58:21] dn`: has joined #ruby
[08:00:10] choke: has joined #ruby
[08:02:16] KnownSyntax: has joined #ruby
[08:02:18] KnownSyntax: has joined #ruby
[08:03:16] phatypus: has joined #ruby
[08:05:37] bkxd: has joined #ruby
[08:11:09] Mon_Ouie: has joined #ruby
[08:13:00] TomyWork: has joined #ruby
[08:13:13] roshanavand: has joined #ruby
[08:14:29] arup_r: has joined #ruby
[08:14:38] SCHAAP137: has joined #ruby
[08:15:07] arup_r: has joined #ruby
[08:15:32] roshanavand: has joined #ruby
[08:15:45] arup_r: has joined #ruby
[08:16:16] roshanavand: has joined #ruby
[08:16:22] arup_r: has joined #ruby
[08:17:04] arup_r: has joined #ruby
[08:17:11] gagrio-brb: has joined #ruby
[08:17:37] arup_r: has joined #ruby
[08:18:14] arup_r: has joined #ruby
[08:18:30] cmolenda: has joined #ruby
[08:18:58] arup_r: has joined #ruby
[08:19:38] arup_r: has joined #ruby
[08:19:47] devbug: has joined #ruby
[08:20:03] certainty: has joined #ruby
[08:20:20] arup_r: has joined #ruby
[08:20:46] choke: has joined #ruby
[08:20:56] arup_r: has joined #ruby
[08:21:37] arup_r: has joined #ruby
[08:21:49] adaedra: First &. used \o/
[08:22:20] dlitvak: has joined #ruby
[08:22:21] arup_r: has joined #ruby
[08:22:58] arup_r: has joined #ruby
[08:23:36] arup_r: has joined #ruby
[08:23:54] toretore: has joined #ruby
[08:24:22] arup_r: has joined #ruby
[08:25:03] arup_r: has joined #ruby
[08:25:41] arup_r: has joined #ruby
[08:26:18] arup_r: has joined #ruby
[08:26:56] arup_r: has joined #ruby
[08:27:33] arup_r: has joined #ruby
[08:27:39] Xeago: has joined #ruby
[08:28:10] arup_r: has joined #ruby
[08:28:46] arup_r: has joined #ruby
[08:28:56] auzty: has joined #ruby
[08:29:02] NateDeHiggers: has joined #ruby
[08:29:02] ChanServ: +b *DeHiggers!*@*
[08:29:02] ChanServ: ChanServ kicked NateDeHiggers: Unacceptable nick - http://ruby-community.com/pages/user_rules#rule_2_10
[08:29:30] arup_r: has joined #ruby
[08:30:05] HiggerNate: has joined #ruby
[08:30:08] arup_r: has joined #ruby
[08:30:45] arup_r: has joined #ruby
[08:31:24] arup_r: has joined #ruby
[08:32:02] arup_r: has joined #ruby
[08:32:03] GriffinHeart: has joined #ruby
[08:32:37] arup_r: has joined #ruby
[08:33:17] arup_r: has joined #ruby
[08:33:53] arup_r: has joined #ruby
[08:33:56] dn`_: has joined #ruby
[08:34:33] arup_r: has joined #ruby
[08:34:46] certainty: has joined #ruby
[08:35:13] usershell: has joined #ruby
[08:37:15] conta: has joined #ruby
[08:37:45] m8: has joined #ruby
[08:37:45] Xeago: has joined #ruby
[08:37:52] duckpuppy: has joined #ruby
[08:41:17] benjohn: has joined #ruby
[08:41:37] vondruch: has joined #ruby
[08:44:46] rkazak: has joined #ruby
[08:46:18] edwinvdgraaf: has joined #ruby
[08:50:52] rsc___: has joined #ruby
[08:51:29] ohaibbq: has joined #ruby
[08:51:31] ruby-lang466: has joined #ruby
[08:53:05] lipoqil: has joined #ruby
[08:53:42] ruby-lang466: football_team = [] 5.times do |i| puts "Please enter a UK football team:" team = gets.chomp if i.even? football_team << team.upcase else football_team << team.downcase end end puts football_team
[08:54:06] antgel: has joined #ruby
[08:54:10] sandstrom: has joined #ruby
[08:54:30] iateadonut: has joined #ruby
[08:54:58] baweaver: has joined #ruby
[08:55:31] terlar: has joined #ruby
[08:55:34] steffkes: has joined #ruby
[08:57:13] Ox0dea: ruby-lang466: Well done.
[08:58:36] sandstrom: has joined #ruby
[08:58:39] einarj: has joined #ruby
[08:58:58] sandstrom: has joined #ruby
[08:59:34] aadam21: has joined #ruby
[09:02:02] Xeago: has joined #ruby
[09:03:06] krzkrzkrz: has joined #ruby
[09:03:18] antgel: has joined #ruby
[09:03:29] sandstrom: has joined #ruby
[09:04:12] roshanav_: has joined #ruby
[09:04:25] pink_vampire: has joined #ruby
[09:06:22] Bloomer: has joined #ruby
[09:08:57] roshanavand: has joined #ruby
[09:11:51] snowy: has joined #ruby
[09:13:01] mark2: has joined #ruby
[09:14:28] Snowy_: has joined #ruby
[09:14:56] dionysus69: has joined #ruby
[09:15:14] tmtwd: has joined #ruby
[09:16:50] dlitvak: has joined #ruby
[09:17:34] coffeecupp: has joined #ruby
[09:17:38] antgel: has joined #ruby
[09:19:02] tvw: has joined #ruby
[09:19:18] cmolenda: has joined #ruby
[09:19:58] bkxd: has joined #ruby
[09:20:41] Xeago: has joined #ruby
[09:21:09] zeroDivisible: has joined #ruby
[09:21:50] DoubleMalt: has joined #ruby
[09:21:59] dwfait: has joined #ruby
[09:22:45] crdpink: has joined #ruby
[09:23:18] jschmid: has joined #ruby
[09:23:25] patchedmonkey: has joined #ruby
[09:23:48] crdpink: has joined #ruby
[09:23:57] roshanav_: has joined #ruby
[09:25:02] GriffinHeart: has joined #ruby
[09:26:36] spectra: has joined #ruby
[09:28:49] nertzy: has joined #ruby
[09:31:25] joonty: has joined #ruby
[09:35:39] mwilly: has joined #ruby
[09:36:03] mwilly: has left #ruby: ()
[09:36:04] mwilly: has joined #ruby
[09:36:42] mwilly: has left #ruby: ()
[09:40:55] lxsameer: has joined #ruby
[09:40:55] lxsameer: has joined #ruby
[09:41:32] marr: has joined #ruby
[09:44:15] al2o3-cr: has joined #ruby
[09:51:09] agent_white: has joined #ruby
[09:51:14] agent_white: has left #ruby: ()
[09:51:28] sandstrom: has joined #ruby
[09:51:48] cornerma1: has joined #ruby
[09:52:43] cmolenda: has joined #ruby
[09:54:36] GriffinHeart: has joined #ruby
[09:55:42] Xeago: has joined #ruby
[09:55:53] joonty: has joined #ruby
[09:58:16] rodfersou: has joined #ruby
[09:59:29] tvw: has joined #ruby
[10:00:36] bkxd: has joined #ruby
[10:01:08] dwfait: has joined #ruby
[10:01:23] FernandoBasso: has joined #ruby
[10:02:18] TomyWork: I'm looking for a regex test/explain page for ruby. https://regex101.com/ this page is quite nice and it supports PCRE. is that close enough?
[10:02:32] roshanavand: has joined #ruby
[10:02:52] rodferso1: has joined #ruby
[10:04:36] rodfersou: has joined #ruby
[10:04:39] ruboto: Resources for regular expressions: http://ruby-doc.org/core/Regexp.html || http://rubular.com/ || http://www.regular-expressions.info
[10:04:57] cmolenda: has joined #ruby
[10:05:00] karapetyan: has joined #ruby
[10:07:12] rdark: has joined #ruby
[10:07:20] huyderman: has joined #ruby
[10:07:25] Bloomer: has joined #ruby
[10:07:38] spooq|2: has joined #ruby
[10:07:43] ddv: https://regex101.com
[10:08:17] Ox0dea: Sick reading comprehension.
[10:08:54] ddv: my sincere apologies
[10:09:08] TomyWork: hmm none of these pages has a regex explainer
[10:10:13] Ox0dea: TomyWork: Onigmo and PCRE aren't terribly disparate, for what that's worth.
[10:10:53] dlitvak: has joined #ruby
[10:10:57] ledestin: has joined #ruby
[10:11:23] TomyWork: Ox0dea https://en.wikipedia.org/wiki/Oniguruma according to this page, ruby's regexes are forked from perl 5.10's
[10:12:15] TomyWork: since rubular matches them the same way regex101 does, i'll just use regex101 :)
[10:12:27] al2o3-cr: TomyWork: all the info you'll ever need are in the docs
[10:18:01] craysiii: has joined #ruby
[10:18:44] platzhirsch: has joined #ruby
[10:21:50] gregf: has joined #ruby
[10:23:33] jhass: al2o3-cr: could you link me to the docs for the meaning of life?
[10:23:39] roshanavand: has joined #ruby
[10:24:25] platzhirsch: has left #ruby: ()
[10:24:28] jhass: but I need that info desperately!
[10:24:46] al2o3-cr: it doesn't exist
[10:25:42] jhass: I thought it's supposed to be in the docs?
[10:25:58] al2o3-cr: you supposed wrong
[10:26:07] jhass: I guess your statement is wrong too then
[10:26:36] adaedra: jhass: it could also mean you do not need to have the meaning of life.
[10:26:59] jhass: well, they could document that
[10:27:04] Scripore: has joined #ruby
[10:29:02] MahaDev: has joined #ruby
[10:29:26] aadam21: has joined #ruby
[10:29:38] j0n3: has joined #ruby
[10:31:52] ziyadb: has joined #ruby
[10:32:39] usershell: has joined #ruby
[10:34:09] roshanavand: has joined #ruby
[10:37:06] arup_r: has joined #ruby
[10:37:11] ddv: asking about the meaning of life is the same as asking why peanut butter exists
[10:38:02] Ox0dea: ddv: People tend not to create their own peanut butter.
[10:38:45] ddv: Ox0dea: do you have a life outside of this channel?
[10:38:52] craysiii: what is life
[10:38:56] Ox0dea: ddv: Is everything okay?
[10:39:01] craysiii: what is outside
[10:39:01] roshanav_: has joined #ruby
[10:39:39] troulouliou_div2: has joined #ruby
[10:39:41] bigkevmcd: has joined #ruby
[10:39:49] duckpuppy: has joined #ruby
[10:40:34] Tempesta: has joined #ruby
[10:41:01] darix: craysiii: snow
[10:41:27] craysiii: i went to new york for a week during christmas and got screwed
[10:41:34] craysiii: of course it starts snowing the day after i leave.
[10:41:36] bkxd_: has joined #ruby
[10:41:57] skade: has joined #ruby
[10:42:01] steffkes: has joined #ruby
[10:44:41] Xeago: has joined #ruby
[10:45:04] devbug_: has joined #ruby
[10:45:24] Coldblackice: has joined #ruby
[10:45:38] d0nn1e: has joined #ruby
[10:45:40] norc: has joined #ruby
[10:46:22] Jardayn: has joined #ruby
[10:47:51] spooq: has joined #ruby
[10:50:34] dotix: has joined #ruby
[10:53:58] roshanavand: has joined #ruby
[10:54:31] gruz0: has joined #ruby
[10:55:00] matp: has joined #ruby
[10:55:07] choke: has joined #ruby
[10:55:38] tvw: has joined #ruby
[10:56:22] baweaver: has joined #ruby
[11:02:04] Xeago: has joined #ruby
[11:03:18] futilegames: has joined #ruby
[11:05:31] dlitvak: has joined #ruby
[11:06:38] roshanavand: has joined #ruby
[11:08:33] TomyWork: jhass man 42 life
[11:09:44] jhass: why not 5?
[11:09:52] toretore: No manual entry for life
[11:10:01] Bloomer: has joined #ruby
[11:10:19] karapetyan: has joined #ruby
[11:12:43] TomyWork: jhass because life is not a file
[11:12:51] TomyWork: even though it's an anagram thereof
[11:14:21] jhass: "all things happen in fives, or are divisible by or are multiples of five, or are somehow directly or indirectly appropriate to 5."
[11:14:51] TomyWork: is that a mathematical term?
[11:16:17] vondruch: has joined #ruby
[11:16:36] j_mcnally: has joined #ruby
[11:18:22] maikowblue: has joined #ruby
[11:20:13] rickmasta: has joined #ruby
[11:21:14] Xeago: has joined #ruby
[11:22:36] chipotle: has joined #ruby
[11:24:54] jhass: it's the law of fives
[11:25:08] jackcom: there is a ruby tutorial?
[11:25:49] apeiros: jackcom: no
[11:26:00] apeiros: nobody ever wrote any tutorial or other introductory material for ruby.
[11:29:30] jackcom: then how can i learn ruby?
[11:29:51] schfkt: has joined #ruby
[11:30:12] apeiros: you can't. ruby is for people who're born as ruby experts.
[11:30:17] yfeldblum: has joined #ruby
[11:30:33] jackcom: :) apeiros my IQ is 159
[11:30:44] jackcom: i can do everything easily apeiros
[11:30:50] apeiros: obviously the use of google requires a higher IQ
[11:31:44] roshanavand: has joined #ruby
[11:32:21] jackcom: apeiros: what is your IQ then?
[11:33:01] jackcom: hahahahaha fish?
[11:33:40] apeiros: I thought 159 is sufficient to read scientific notation. but then again, that'd require knowledge, not intelligence.
[11:35:35] apeiros: jackcom: what did we tell you about lines consisting only of a nick?
[11:35:52] TomyWork: so in PCRE, there's the "s" modifier (PCRE_DOTALL). That's missing in Ruby and its "m" modifier behaves a little like it, with \A and \Z serving as replacements for ^ and $ in multiline strings.
[11:36:10] jackcom: what you mean? apeiros
[11:36:11] TomyWork: i'm putting this regex in a json so i want to avoid backslashes. is there a way to do that?
[11:36:22] apeiros: jackcom: I mean that I'll kick you if you do it again.
[11:36:36] TomyWork: i.e. a way to make ^ and $ really match the string's ends
[11:37:08] jackcom: :( i just want learn ruby. that is all
[11:37:29] apeiros: jackcom: then start putting that IQ159 brain of yours to use.
[11:37:43] TomyWork: one does not learn ruby by discussing IQ with apeiros
[11:37:51] apeiros: TomyWork: no, ^$ are defined to mean start/end of line, there's no modifier to change that
[11:38:36] adaedra: TomyWork: what you want is \A and \z.
[11:39:08] TomyWork: what's the difference between uppercase and lowercase \z?
[11:39:26] TomyWork: rubular gives me the same result
[11:39:36] apeiros: TomyWork: whether or not a newline after it is accepted or not
[11:39:41] johnhamelink: has left #ruby: ("WeeChat 1.3")
[11:40:01] apeiros: >> "foo\n" =~ /foo\Z/
[11:40:02] ruboto: apeiros # => 0 (https://eval.in/499267)
[11:40:08] apeiros: >> "foo\n" =~ /foo\z/
[11:40:09] ruboto: apeiros # => nil (https://eval.in/499268)
[11:40:11] TomyWork: oh, i actually want \Z anyway, in that case
[11:40:34] TomyWork: my regex ends in [[:space:]]*\\Z
[11:40:36] TvL: has joined #ruby
[11:40:39] apeiros: basically your "file may end with a newline, but doesn't have to"
[11:40:42] TomyWork: my regex ends in [[:space:]]*\Z
[11:41:42] TomyWork: i'll use "\z". I imagine that performs better :)
[11:41:52] steffkes: has joined #ruby
[11:41:53] steffkes: has joined #ruby
[11:41:57] apeiros: I doubt the difference is even measurable
[11:42:42] TomyWork: probably not, but you know...
[11:43:31] Xeago: has joined #ruby
[11:43:34] TheHodge: has joined #ruby
[11:44:30] hannelita: has joined #ruby
[11:44:35] nerfando: has joined #ruby
[11:44:44] haraigoshi: has joined #ruby
[11:44:49] ruby-lang679: has joined #ruby
[11:46:04] roshanavand: has joined #ruby
[11:47:16] Xeago: has joined #ruby
[11:47:48] DonOtreply: has joined #ruby
[11:48:31] Coldblackice: has joined #ruby
[11:52:09] FooMunki: has joined #ruby
[11:52:28] gruz0_: has joined #ruby
[11:52:34] Jet4Fire: has joined #ruby
[11:53:48] SenpaiSilver: has joined #ruby
[11:53:53] usershell: has joined #ruby
[11:54:10] govg: has joined #ruby
[11:55:30] weemsledeux: has joined #ruby
[11:55:36] mistermocha: has joined #ruby
[11:59:43] c355E3B: has joined #ruby
[12:00:46] charliesome: has joined #ruby
[12:01:22] lurch_: has joined #ruby
[12:01:43] Xeago: has joined #ruby
[12:04:42] schfkt: has joined #ruby
[12:07:21] bkxd: has joined #ruby
[12:09:56] cassioscabral: has joined #ruby
[12:12:51] karapetyan: has joined #ruby
[12:13:21] Makorak: has joined #ruby
[12:13:56] terlar: has joined #ruby
[12:14:34] apeiros: has joined #ruby
[12:15:56] yxhuvud: has joined #ruby
[12:16:57] decoponio: has joined #ruby
[12:17:09] aadam21: has joined #ruby
[12:17:10] jackcom: apeiros: anyway where you live?
[12:17:54] tagrudev: has joined #ruby
[12:19:34] jackcom: apeiros: lier
[12:19:40] jackcom: you don???t live in CH
[12:19:55] jackcom: "country_name":"Netherlands"
[12:20:09] apeiros: that's where my server lives
[12:21:01] jackcom: you are mechanic instead of human?
[12:21:25] jackcom: "country_code":"NL","country_name":"Netherlands","region_code":"NH","region_name":"North Holland","city":"Amsterdam","zip_code":"1000","time_zone":"Europe/Amsterdam???
[12:21:26] apeiros: are you sure it was 159 and not 15.9?
[12:22:01] jackcom: you live in Amsterdam
[12:22:31] jackcom: But you say CH
[12:22:43] apeiros: you know what? you've got me. yes, I live in amsterdam.
[12:23:08] pawnbox: has joined #ruby
[12:26:39] bkxd_: has joined #ruby
[12:28:51] pawnbox: has joined #ruby
[12:30:26] Asher: has joined #ruby
[12:31:19] pawnbox: has joined #ruby
[12:32:11] duderonomy: has joined #ruby
[12:34:18] Ishido: has joined #ruby
[12:38:44] cassioscabral: has joined #ruby
[12:40:35] duckpuppy: has joined #ruby
[12:41:14] brunto: has joined #ruby
[12:41:16] astrobun_: has joined #ruby
[12:42:38] shevy: sometimes #ruby is a really weird place
[12:42:47] shevy: I can't decide if this has to do with jackcom or not
[12:44:33] sdothum: has joined #ruby
[12:46:22] usershell: has joined #ruby
[12:48:10] casadei: has joined #ruby
[12:54:02] snowy: has joined #ruby
[12:56:38] stannard: has joined #ruby
[12:57:32] karapetyan: has joined #ruby
[12:58:06] baweaver: has joined #ruby
[13:02:28] colegatron: has joined #ruby
[13:02:32] jackcom: shevy: not
[13:02:55] jackcom: shevy, you instead of me
[13:03:32] shevy: jackcom no u
[13:03:57] jackcom: ok both shevy
[13:04:43] jackcom: ok adaedra :(
[13:08:13] snowy: has joined #ruby
[13:10:16] stamina: has joined #ruby
[13:11:22] Bloomer: has joined #ruby
[13:12:10] emilkarl: has joined #ruby
[13:12:29] krzkrzkrz: has joined #ruby
[13:13:02] beast: has joined #ruby
[13:15:55] schfkt: has left #ruby: ()
[13:16:19] synthroid: has joined #ruby
[13:16:37] devster31: hi, I realize it's not strictly a ruby question but I don't understand what lines 23-27 are doing here: https://github.com/Homebrew/homebrew/blob/430d829bef28840bb173f84b12bf83f0577c9929/Library/Formula/maven.rb
[13:17:10] tvw: has joined #ruby
[13:17:22] binaryplease: has joined #ruby
[13:17:38] jackcom: what language?
[13:17:58] jackcom: devster31:
[13:18:13] FooMunki: has joined #ruby
[13:18:19] devster31: it's ruby, but it's linked to how homebrew works i think
[13:18:45] jackcom: maybe you use macbook. devster31
[13:19:00] Makorak: has joined #ruby
[13:19:41] devster31: what does it mean? use #macbook channel?
[13:20:11] jackcom: i just say that you use macbook now.
[13:20:17] jackcom: devster31:
[13:20:21] daivyk: has joined #ruby
[13:20:37] devster31: I'm on an retina macbook pro if that's what you meant
[13:20:41] jhass: !kick jackcom no empty highlights
[13:20:42] toretore: don't listen to jackcom devster31
[13:20:50] jhass: oh, broken already?
[13:21:04] jackcom: has left #ruby: (requested by jhass (no empty highlights))
[13:21:23] atomical: has joined #ruby
[13:21:45] choke: has joined #ruby
[13:23:09] nixmaniack: has joined #ruby
[13:23:10] nixmaniack: has joined #ruby
[13:23:17] einarj: has joined #ruby
[13:23:18] TomyWork: i wrote a sinatra app. now i want to debianize it. is there something i can use for that?
[13:23:39] jhass: a couple of lambs and a god you believe in
[13:23:54] shevy: TomyWork you mean a .deb file?
[13:24:24] TomyWork: shevy well in the end i want to enter a simple command to create a deb file
[13:24:33] TomyWork: debuild, make deb or something like that
[13:24:38] shevy: was that a yes or no ;P
[13:24:50] shevy: TomyWork you can create .rpm or .deb via fpm, #fpm https://github.com/jordansissel/fpm
[13:25:07] TomyWork: yeah i know fpm. i was looking for something ruby-specific
[13:25:17] shevy: fpm is not written in ruby?
[13:25:55] TomyWork: well i was thinking about some kind of omnibus packaging
[13:26:05] pawnbox: has joined #ruby
[13:26:57] TomyWork: basically it should contain all the scripts, gems and example configuration for my application
[13:28:04] shevy: well you have to package them up first then before you put them into a .deb archive
[13:28:11] dEPy: has joined #ruby
[13:28:32] TomyWork: what do you mean by "package them up"?
[13:28:39] TomyWork: create a .zip with them?
[13:29:36] shevy: well, you want to do something similar to https://github.com/larsch/ocra
[13:29:50] shevy: just not for windows
[13:29:53] ESpiney: has joined #ruby
[13:30:19] TomyWork: yes, definitely not for windows :)
[13:30:28] ddv: look at how gitlab does it
[13:30:54] sgambino: has joined #ruby
[13:30:55] shevy: you can find out dependencies for gems via --reverse-dependencies
[13:30:58] charliesome: has joined #ruby
[13:31:15] TomyWork: gitlab forked their own omnibus
[13:31:16] shevy: I don't remember exactly how debian mandates a .deb package, fpm seems to know though
[13:31:20] TomyWork: i'd rather not use that :)
[13:31:20] gruz0: has joined #ruby
[13:31:53] cmolenda: has joined #ruby
[13:32:07] TomyWork: a .deb is a .ar containing 2 .tar.gz files in a specific order with specific contents
[13:32:08] shevy: ok but you want to create valid .deb files
[13:32:26] norc: TomyWork: The answer is simple: Dont.
[13:32:33] TomyWork: norc dont what?
[13:32:43] norc: Why would you want to debianize it?
[13:32:54] TomyWork: because my target is ubuntu?
[13:33:00] TomyWork: and i just want this to work out of the box?
[13:34:11] TomyWork: ubuntu 12.04 and, later, ubuntu 14.04, to be precise
[13:34:38] TomyWork: i dont want to use rvm or ruby source installs on those machines
[13:34:53] TomyWork: and i dont want to install gems at the system or user level either
[13:38:00] mary5030: has joined #ruby
[13:39:03] weemsledeux: has joined #ruby
[13:39:55] TomyWork: norc how would you deploy a sinatra application to an ubuntu host?
[13:40:33] darix: TomyWork: https://build.opensuse.org/project/monitor/home:darix:apps - maybe thatgives you an idea
[13:41:27] norc: TomyWork: Not using Debian because getting Ruby to work with gems and dependencies with any external package management system sucks.
[13:41:49] TomyWork: norc ubuntu comes with an ancient ruby so i'm not going to use that anyway
[13:42:01] TomyWork: I'm looking for a dependency-less approach
[13:42:17] certainty: has joined #ruby
[13:42:20] darix: TomyWork: ugh
[13:42:30] TomyWork: so basically I get a package that requires bash and a libc, if anything at all
[13:44:28] darix: norc: it is actually a relative easy problem. as you can just hook onto the gem metadata
[13:45:20] arup_r: has joined #ruby
[13:46:20] Cork: has joined #ruby
[13:47:03] duckpuppy: has joined #ruby
[13:48:27] jackcom: has joined #ruby
[13:48:55] TomyWork: has anyone here ever used omnibus? do i need to create a gem from my ruby project in order to turn it into an omnibus package?
[13:49:01] JakFrist: has joined #ruby
[13:49:32] freerobby: has joined #ruby
[13:50:25] m1dnight_: Hi guys. Ive been trying to get Jekyll to work on my server (ubuntu 14.04) (ruby2.0) but a strange thing is happening. It seems that after isntalling jekyll (gem install --user jekyll) it keeps asking for dependencies manually.
[13:50:35] m1dnight_: So stuff like `addressable` or `multipart-post` and stuff.
[13:50:46] m1dnight_: I have puth the path to my gems in my path so thats okay.
[13:51:00] m1dnight_: I have installed 5 of them in the meanwhile but i think its going to be a long list..
[13:52:03] m1dnight_: http://pastebin.com/4JappxTs
[13:52:03] ruboto: m1dnight_, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[13:52:49] sdwrage: has joined #ruby
[13:53:21] gp5st: has joined #ruby
[13:53:21] m1dnight_: https://gist.github.com/m1dnight/a209ab0259910c7ad784 <- gist file
[13:54:43] m1dnight_: https://gist.github.com/m1dnight/f83da3523d9276b3996a <- `gem env` for completeness' sake
[13:54:44] ljarvis: m1dnight_: are you sure those are jekyll dependencies? for ex addressable isn't included as a dependency of jekyll
[13:54:58] d0nn1e: has joined #ruby
[13:55:37] usershell: has joined #ruby
[13:56:27] m1dnight_: Hrm, it seems to have been fixed by installing other dependnecies
[13:56:44] duckpuppy: has joined #ruby
[13:56:46] m1dnight_: THe normal procedure I follow is to install jekyll, make jekyll say "you need gem X", isntall gem X and repeat until it compiles.
[13:57:00] m1dnight_: And the list I was expecting was `jekyll-gist`, `jekyll-paginate` and `pygments.rb`
[13:57:14] m1dnight_: Installing those fixed it. Weird that it didn't ask for those directly, no?
[13:57:18] m1dnight_: It did so on my osx machine.
[13:59:23] dwfait: has joined #ruby
[13:59:23] certainty: has joined #ruby
[13:59:55] mistermocha: has joined #ruby
[14:01:22] gp5st: has left #ruby: ()
[14:03:29] mfb2: has joined #ruby
[14:03:46] mwilly: has joined #ruby
[14:04:17] KineticX: has joined #ruby
[14:04:18] tAn: has joined #ruby
[14:05:10] carraroj: has joined #ruby
[14:05:15] mfb2_: has joined #ruby
[14:05:56] arup_r: has joined #ruby
[14:06:14] dorei: has joined #ruby
[14:06:27] certainty: has joined #ruby
[14:06:47] mwilly: has left #ruby: ()
[14:07:14] JDiPierro: has joined #ruby
[14:07:28] mwilly: has joined #ruby
[14:07:46] davedev24: has joined #ruby
[14:07:54] sankaber: has joined #ruby
[14:09:20] vikas027: has joined #ruby
[14:10:26] binaryplease: has joined #ruby
[14:11:48] skade: has joined #ruby
[14:12:03] Bloomer: has joined #ruby
[14:12:57] Xeago: has joined #ruby
[14:13:51] pontiki: that is not the usual behaviour, m1dnight_
[14:14:18] m1dnight_: Very strange.
[14:14:42] cassioscabral: has joined #ruby
[14:14:44] Timba-as: has joined #ruby
[14:14:45] m1dnight_: I have changed my /usr/bin/gem and /usr/bin/ruby to /usr/bin/gem2.0 and /usr/bin/ruby2.0 respectively, though.
[14:14:49] m1dnight_: Maybe that had something to do with it?
[14:15:31] arup_r: has joined #ruby
[14:15:40] oyes: has joined #ruby
[14:15:50] pontiki: i really have no idea
[14:16:22] pontiki: which ruby and gem is it running?
[14:16:36] chouhoulis: has joined #ruby
[14:16:43] malconis: has joined #ruby
[14:18:47] karapetyan: has joined #ruby
[14:19:43] m1dnight_: ruby 2.0.0p384 (2014-01-12) [x86_64-linux-gnu]
[14:19:51] m1dnight_: and gem version 2.0.14
[14:20:15] pontiki: *shrug* no idea
[14:20:31] m1dnight_: Np, it works now :)
[14:20:34] m1dnight_: Thanks for your time, though!
[14:21:07] ta0: has joined #ruby
[14:21:22] shevy: come to ruby 2.3.0!
[14:21:52] kalopsian: has joined #ruby
[14:22:09] pontiki: m1dnight_: fyi, there's a #jekyll channel, too
[14:22:42] m1dnight_: I know, but this was a ruby problem :>
[14:23:36] pontiki: naturally enough, i suppose. no one in #jekyll could possibly know anything about installing it or ruby
[14:24:04] chebyte: has joined #ruby
[14:24:08] chebyte: hi there, I just finished my last project, it's https://beerpay.io , a simple way to monetize your github opensource projects, please check it, https://beerpay.io
[14:24:54] chebyte: if you have suggestion, please let me know
[14:24:54] jmignault: has joined #ruby
[14:25:41] ddv: chebyte: spam
[14:25:43] babblebre: has joined #ruby
[14:25:46] ddv: chebyte: looks nice tho
[14:26:07] B1n4r10: has joined #ruby
[14:27:51] treehug88: has joined #ruby
[14:27:59] vikas027: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[14:28:08] mfb2: has joined #ruby
[14:28:24] chebyte: ddv: is not spam, I???m looking for suggestion, and is a project to help OS
[14:29:18] ddv: chebyte: I bet you get some % from every transaction
[14:30:03] ddv: chebyte: so it's not only for opensource....
[14:30:10] chebyte: ddv: for sure, OS is not for free
[14:30:19] chebyte: ddv: OS is no free
[14:32:33] ddv: chebyte: oh come on
[14:32:59] mdw: has joined #ruby
[14:33:07] ddv: chebyte: if you really cared that much about free software you would donate your earnings to the fsf
[14:33:08] stannard: has joined #ruby
[14:33:39] ljarvis: chebyte: my suggestion: prevent FOUC
[14:33:39] ddv: also rms would turn in his grave if you use the term 'opensource'
[14:33:46] ddv: if he was dead that is :p
[14:33:58] akem: has joined #ruby
[14:34:02] krobzaur: has joined #ruby
[14:34:07] ljarvis: also, #ruby-offtopic
[14:34:35] shevy: ddv hah I puzzled there for a moment
[14:36:55] varunwachaspati: has joined #ruby
[14:37:52] JohnT: has joined #ruby
[14:38:06] Scripore: has joined #ruby
[14:38:34] sankaber: has joined #ruby
[14:40:08] JakFrist: has joined #ruby
[14:42:06] nertzy: has joined #ruby
[14:42:22] gruz0: has joined #ruby
[14:43:04] dionysus69: has joined #ruby
[14:43:05] cholq: has joined #ruby
[14:43:20] sankaber: has joined #ruby
[14:45:08] mc_fail_: has joined #ruby
[14:45:32] mc_fail_: is it possible to use selects somehow inside #{}?
[14:45:47] toretore: define selects
[14:46:01] JDiPierro: has joined #ruby
[14:46:12] ddv: probably Enumerable#select
[14:46:16] mc_fail_: like puts "bla bla #{ a.select{ |a| a.b == c}.first }"
[14:46:29] mc_fail_: yes, enumerable select
[14:46:31] toretore: you can use any expression inside #{}
[14:46:38] aadam21: has joined #ruby
[14:46:45] ddv: mc_fail_: have you tried?
[14:46:47] frog0909: has joined #ruby
[14:46:52] ddv: what works and what doesnt
[14:47:04] aadam21: has joined #ruby
[14:47:20] mc_fail_: ddv thsts the most complicated part, it works in rails console, but doesn't work in the code
[14:47:42] mc_fail_: because it's like #{ a.map{}}
[14:47:43] certainty: has joined #ruby
[14:48:13] hxegon: has joined #ruby
[14:48:23] kalopsian: has joined #ruby
[14:48:30] uris: has joined #ruby
[14:48:31] mc_fail_: it seems like brackets inside considered as relative to #{}
[14:48:36] toretore: mc_fail_, gist your code
[14:48:41] toretore: gits.github.com
[14:48:47] toretore: gist.github.com
[14:49:25] dlitvak: has joined #ruby
[14:49:35] TomPeed: has joined #ruby
[14:49:45] mc_fail_: toretore https://gist.github.com/anonymous/882b3404a6eef0555869
[14:50:35] aryaching: has joined #ruby
[14:51:05] toretore: mc_fail_, now define "doesn't work"
[14:51:50] mc_fail_: gives syntax error: 601: syntax error, unexpected tSTRING_BEG, expecting '}'
[14:51:51] mc_fail_: ...map{ |h| h[:value] }.join(',')",
[14:52:22] mdw: has joined #ruby
[14:52:59] toretore: you're missing a }
[14:53:42] mc_fail_: you're right
[14:54:12] ddv: I hope you're not actually using that in production :p
[14:54:45] mc_fail_: ddv hmm, i'm not a ruby guy, but looks ok for me...
[14:54:52] mc_fail_: what is wrong?)
[14:54:56] apeiros: whatever `replacement` is, it screams "make me a proper clas with some proper methods"
[14:55:03] foureight84_: has joined #ruby
[14:55:23] ddv: mc_fail_: oooh well if you're not a ruby guy than it doesn't matter :|
[14:55:47] kobain: has joined #ruby
[14:56:28] mc_fail_: apeiros well, replacement comes underlying models written by somebody else, i'm to lazy to fix it
[14:56:49] momomomomo_: has joined #ruby
[14:57:01] ddv: mc_fail_: so want your coworkers to hate you don't you?
[14:57:20] paultreny_: has joined #ruby
[14:57:35] StevenXL: has joined #ruby
[14:57:35] StevenXL: has joined #ruby
[14:57:37] mc_fail_: ddv i think they already do.
[14:58:09] apeiros: ah yeah, classic. http://cdn.creativityatwork.com/wp-content/uploads/too-busy-to-innovate-12313b06a873-e1402372288884.jpeg
[14:58:33] ddv: haha nice
[14:58:46] freerobby: has joined #ruby
[14:58:48] baweaver: has joined #ruby
[14:59:24] mc_fail_: story_of_my_life.jpg
[14:59:38] dorakyura: has joined #ruby
[15:01:13] aadam21: has joined #ruby
[15:01:22] sandstrom: has joined #ruby
[15:01:39] apeiros: guess what, you're the author of that story
[15:03:22] ricer2_g4H4: has joined #ruby
[15:03:33] gregf: oops :/ sorry
[15:03:50] dorakyura: What the general consensus (if there is such a thing) on Rspec? Worth learning -- or have teams moved on?
[15:03:57] FernandoBasso: has joined #ruby
[15:04:35] shevy: dorakyura good that you ask :)
[15:04:40] shevy: let me quote something from recently here
[15:05:05] havenwood: dorakyura: In Rails land it seems particularly popular. <3 Minitest
[15:05:36] shevy: 2016-01-07 09:32 <manveru> damn, i forgot how crazy bloated rspec is :|
[15:06:41] dwfait: I enjoy working with RSpec. Still use it by default for most ruby projects
[15:06:47] havenwood: dorakyura: What are you debating between?
[15:07:51] dorakyura: havenwood: Cucumber seemed a little more forward thinking. But I'm in class and we're learning Rspec.
[15:08:05] palantir: has joined #ruby
[15:08:09] havenwood: dorakyura: Don't test with vegetables! That's my advice. :)
[15:08:57] havenwood: dorakyura: Minitest and RSpec are the most common by a long shot. Minitest ships with Ruby! :D
[15:09:00] shevy: don't eat them either!
[15:09:09] sankaber: has joined #ruby
[15:09:34] dionysus69: has joined #ruby
[15:09:39] dmcp: has joined #ruby
[15:09:52] nerium: has joined #ruby
[15:09:56] dorakyura: Are most Ruby focused teams still using TDD?
[15:10:07] havenwood: Though a cucumber is technically a fruit... right?
[15:10:55] havenwood: dorakyura: We test. Beyond that it's hard to generalize.
[15:11:25] hannelita: has joined #ruby
[15:12:02] mary5030: has joined #ruby
[15:12:47] Bloomer: has joined #ruby
[15:13:14] mfb2: has joined #ruby
[15:13:23] jrvlima: has joined #ruby
[15:14:08] Bloomer: has joined #ruby
[15:14:45] dorakyura: havenwood: Thanks a lot!
[15:14:49] havenwood: dorakyura: Here's a talk by the author of Minitest: https://www.youtube.com/watch?v=MA4jJNUG_dI
[15:14:54] havenwood: dorakyura: You're welcome!
[15:14:57] sandstrom: has joined #ruby
[15:15:35] Ebok: has joined #ruby
[15:16:33] sandstrom: has joined #ruby
[15:18:32] havenwood: dorakyura: A bit of an aside, but requisite Rich Hickey link since I linked a talk: http://www.infoq.com/presentations/design-composition-performance-keynote
[15:18:50] lacuna: has joined #ruby
[15:18:51] lacuna: has joined #ruby
[15:20:40] ricer2_g4H4: has joined #ruby
[15:21:50] havenwood: "So I wonder if this pairing thing is just a way to keep us from typing all the time - to buy one person some time to think a little bit."
[15:21:55] deuterium: has joined #ruby
[15:23:33] nfk: has joined #ruby
[15:23:45] sandstrom: has joined #ruby
[15:24:17] shevy: a pair of monkeys
[15:26:42] ddv: http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
[15:26:56] flugel_girl: has joined #ruby
[15:28:48] frog0909_: has joined #ruby
[15:28:54] shevy: ruby shall climb!
[15:30:04] peeja: has joined #ruby
[15:30:08] flughafen: shevy: i'm going to japan, so, when I come back i expect 2 weeks worth of flughafen jokes
[15:30:49] shevy: I won't believe it until you took off!
[15:31:00] shevy: and what are you doing there anyway
[15:31:38] ddv: he's big in Japan
[15:32:11] hxegon: has joined #ruby
[15:32:19] flugel_girl: Matz is our patron saint.
[15:32:20] mrtomme: has joined #ruby
[15:32:28] kies^: has joined #ruby
[15:33:03] prestorium: has joined #ruby
[15:33:22] ddv: ohai flugel_girl
[15:35:27] whippythellama: has joined #ruby
[15:35:38] yorickpeterse: yeah Narita flughafen is pretty big
[15:35:58] Melpaws: has joined #ruby
[15:36:08] yorickpeterse: so we basically have flughafen going to a flughafen
[15:36:28] arup_r: has joined #ruby
[15:36:37] usershell: has joined #ruby
[15:38:01] radgeRayden: has joined #ruby
[15:39:08] happy_girl: has joined #ruby
[15:40:16] underplank: has joined #ruby
[15:40:46] Melpaws1: has joined #ruby
[15:42:35] dlitvak: has joined #ruby
[15:46:01] uri___: has joined #ruby
[15:47:03] arup_r: has joined #ruby
[15:48:38] bricker: has joined #ruby
[15:50:59] sandstrom: has joined #ruby
[15:51:32] casadei: has joined #ruby
[15:51:38] uris: has joined #ruby
[15:51:56] lacuna: has joined #ruby
[15:52:45] ta: has joined #ruby
[15:53:11] TomyWork: is there a way to package up a ruby, say from RVM?
[15:53:45] adaedra: You're still debianing?
[15:54:22] adaedra: For in-house things?
[15:54:43] pandaant: has joined #ruby
[15:54:44] TomyWork: and i dont want RVM on the target system :)
[15:54:53] adaedra: I suggest you to use ruby-install and install a ruby to a static location, like /opt/your-package/ruby
[15:54:56] TomyWork: I'm afraid it will kill the gitlab running on the same user account
[15:56:15] adaedra: The cleaner, I think, would be to create a suffixed version (i.e. installs as ruby23, gem23, etc) and use the alternative system to make it the default implementation
[15:56:16] TomyWork: adaedra ah, can i tell that to install to /home/me/my/build/path/opt/mypackage/bin/{ruby,gem,erb,...} and it will still work when i package it up and it ends up in /opt/mypackage/bin/{ruby,gem,erb,...}?
[15:56:40] TomyWork: i dont want to make that ruby available system-wide
[15:57:10] TomyWork: i want to put it into my package and install it all as one big blob
[15:57:26] adaedra: Where do your package install your project files?
[15:57:37] TomyWork: /opt/mypackage/src
[15:57:43] havenwood: TomyWork: Yeah, movable isn't enabled by default but you can build Ruby to be with ruby-install: ruby-install --latest ruby -- --enable-shared
[15:57:58] TomyWork: i havent settled on that name though
[15:58:24] iateadonut: has left #ruby: ()
[15:58:36] havenwood: TomyWork: The --enabled-shared is a Ruby specific configuration you can use when building yourself, or RVM has a --movable flag.
[15:59:01] TomyWork: can i just grab the ruby from RVM then?
[15:59:15] havenwood: TomyWork: Yup, just build with --movable and you should be fine.
[15:59:22] jgpawletko: has joined #ruby
[15:59:30] havenwood: TomyWork: The binaries are movable as well.
[15:59:42] TomyWork: oh i need to rebuild either way? well in that case i'll use ruby-install :)
[16:00:08] havenwood: Yeah, RVM does not default to movable so you'd have to rebuild.
[16:00:29] choke: has joined #ruby
[16:01:02] mjuszczak: has joined #ruby
[16:01:15] j_mcnally: has joined #ruby
[16:01:18] aadam21_: has joined #ruby
[16:01:30] sandstrom: has joined #ruby
[16:02:04] mjuszczak: has joined #ruby
[16:03:02] tubuliferous_: has joined #ruby
[16:03:36] mistermocha: has joined #ruby
[16:03:58] vondruch: has joined #ruby
[16:04:01] cmolenda: has joined #ruby
[16:04:06] Encapsulation: has joined #ruby
[16:05:40] davejlong: has joined #ruby
[16:05:42] choke: has joined #ruby
[16:06:38] polishdub: has joined #ruby
[16:07:08] Makorak: has joined #ruby
[16:07:35] vondruch: has joined #ruby
[16:07:38] chimche: has joined #ruby
[16:07:45] beanHolez: has joined #ruby
[16:07:50] Mon_Ouie: has joined #ruby
[16:09:27] sandstrom: has joined #ruby
[16:11:11] TomyWork: can i tell ruby-install not to use sudo?
[16:11:27] sandstrom: has joined #ruby
[16:11:32] ljarvis: point it somewhere that doesn't require permission?
[16:11:33] gruz0: has joined #ruby
[16:11:37] TomyWork: i'm giving it a relative --install-dir
[16:11:45] havenwood: TomyWork: Don't use sudo and the default --install-dir will be ~/.rubies.
[16:11:51] ljarvis: weird, you have write permission?
[16:11:58] TomyWork: Installing dependencies for ruby 2.2.1
[16:12:01] jbrhbr: has joined #ruby
[16:12:19] JohnT: has joined #ruby
[16:12:19] shinnya: has joined #ruby
[16:12:24] havenwood: TomyWork: You can --no-install-deps but if installing deps takes sudo...
[16:13:11] sandstrom: has joined #ruby
[16:13:31] atomical: has joined #ruby
[16:14:02] weemsledeux: has joined #ruby
[16:14:39] UtkarshRay: has joined #ruby
[16:15:18] carraroj: has joined #ruby
[16:15:19] TomyWork: so now i have this: ruby-install-"$ruby_install_version"/bin/ruby-install --install-dir "$build_target_directory" --no-install-deps ruby 2.2.1 -- --enable-shared
[16:15:21] sandstrom: has joined #ruby
[16:15:36] TomyWork: it didn't fail yet :)
[16:15:57] TomyWork: and it's past the configure stage so i guess it's ok
[16:17:03] tvw: has joined #ruby
[16:17:23] choke_: has joined #ruby
[16:17:40] symbol: has joined #ruby
[16:20:07] choke: has joined #ruby
[16:20:08] karapetyan: has joined #ruby
[16:20:31] usershell: has joined #ruby
[16:21:20] Xeago: has joined #ruby
[16:22:54] TomyWork: "./ruby: error while loading shared libraries: libruby.so.2.2: cannot open shared object file: No such file or directory" ok so it didn't work :)
[16:23:27] TomyWork: that's after installing the resulting package on an unrelated machine
[16:24:18] choke_: has joined #ruby
[16:26:00] ricer2_g4H4: has joined #ruby
[16:26:15] beanHolez: has joined #ruby
[16:26:35] TomyWork: havenwood --enable-shared didnt make it movable, i'm afraid. got another idea?
[16:30:01] choke: has joined #ruby
[16:32:46] choke__: has joined #ruby
[16:33:00] singalaut: has joined #ruby
[16:33:08] Xeago: has joined #ruby
[16:33:17] theunraveler: has joined #ruby
[16:34:48] cholq: has left #ruby: ("Leaving...")
[16:36:22] uris: has joined #ruby
[16:37:09] hobodave: has joined #ruby
[16:37:18] hanneli: has joined #ruby
[16:37:31] StevenXL: has joined #ruby
[16:37:32] StevenXL: has joined #ruby
[16:37:33] rocfig: has joined #ruby
[16:38:19] aupadhye: has joined #ruby
[16:38:32] theunraveler: has joined #ruby
[16:38:54] [Butch]: has joined #ruby
[16:39:44] guacamole: has joined #ruby
[16:39:47] JakFrist: has joined #ruby
[16:40:51] TomyWork: ./configure --help lists "--enable-load-relative", which sounds promising
[16:40:58] TomyWork: "resolve load paths at run time"
[16:42:35] platzhirsch: has joined #ruby
[16:42:53] dhollinger: has joined #ruby
[16:43:10] inukshuk_: has joined #ruby
[16:43:11] jackcom: has joined #ruby
[16:43:48] theunraveler: has joined #ruby
[16:43:50] jackcom: i can do webcam hijacking with ruby? shevy
[16:43:59] podman: has joined #ruby
[16:44:05] dotix: has joined #ruby
[16:44:07] mikecmpbll: has joined #ruby
[16:44:11] mfb2: has joined #ruby
[16:44:43] slawrence00: has joined #ruby
[16:44:48] platzhirsch: ACTION hijacks jackcom
[16:44:56] TomyWork: since you can write native extensions in C, you can do everything in ruby that you can do in C... provided you write a little C first :P
[16:45:01] slawrence00: has joined #ruby
[16:45:02] lacuna: has joined #ruby
[16:45:13] jackcom: get the fuck out :x
[16:45:40] jackcom: TomyWork: i know c already
[16:46:03] ljarvis: jackcom: watch your language
[16:46:09] DonOtreply: has joined #ruby
[16:46:35] ljarvis: jackcom: nobody here is going to help you do something malicious, so please take it elsewhere
[16:46:37] jackcom: my language is English
[16:46:43] ljarvis: if you have some Ruby code you want help with, ask away
[16:47:22] mikecmpbll: seeing as a hash is basically an indexed array, is there some data structure that i can have multiple indexes?
[16:47:22] jackcom: lol i will watch my pet, because i will do journey ljarvis
[16:47:33] ljarvis: that doesn't even make sense
[16:47:40] adaedra: we do not have the same English I see
[16:47:58] ljarvis: mikecmpbll: huh?
[16:48:15] TomyWork: mikecmpbll an array is an indexed array
[16:48:35] TomyWork: mikecmpbll a hash is basically an associative array
[16:48:53] mikecmpbll: with arbitrary objects as indexes*
[16:48:59] TomyWork: you're looking for the equivalent of a C++ multimap
[16:49:12] mikecmpbll: TomyWork: probably, sounds about right
[16:49:30] TomyWork: maybe that term helps you search for a solution. i dont know one
[16:49:31] jrvlima: has joined #ruby
[16:50:05] RTG`: has joined #ruby
[16:50:35] mikecmpbll: TomyWork: ta
[16:50:55] jackcom: ljarvis: anyway you can do it?
[16:51:14] ljarvis: jackcom: do what?
[16:51:28] ljarvis: jackcom: no.
[16:51:52] jackcom: anyway, you have knowledge of that?
[16:52:02] ljarvis: Again, nobody here is going to help you do something malicious, so please take this question elsewhere, jackcom
[16:52:09] choke: has joined #ruby
[16:52:44] adaedra: Aaaah, the cool kids who just want to show off during recess because they can "hack".
[16:53:00] The_Phoenix: has joined #ruby
[16:53:24] eljimmy: has joined #ruby
[16:53:45] adaedra: Hello, eljimmy!
[16:53:48] adaedra: You did it! :p
[16:54:40] canton7: ah, I recognise the nick jackcom...
[16:54:47] duckpupp1: has joined #ruby
[16:54:54] jackcom: thanks canton7
[16:55:01] jackcom: where we meet?
[16:55:04] ruboto: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[16:55:22] Axsuul: has joined #ruby
[16:55:33] jackcom: has left #ruby: ()
[16:56:13] seaworthy: has joined #ruby
[16:56:13] seaworthy: has joined #ruby
[16:57:13] tubbo: eljimmy: you made it!
[16:57:20] sandstrom: has joined #ruby
[16:57:57] nertzy: has joined #ruby
[16:58:32] eljimmy: indeed, i am here to soak up all the ruby knowledge.
[16:59:10] govg: has joined #ruby
[16:59:36] baweaver: has joined #ruby
[16:59:49] HANJIN: has joined #ruby
[17:00:07] davejlong: has joined #ruby
[17:00:44] lacuna: has joined #ruby
[17:02:03] rakm: has joined #ruby
[17:04:04] momomomomo_: has joined #ruby
[17:08:16] DonOtreply: has joined #ruby
[17:09:10] diego2: has joined #ruby
[17:09:54] dotix: has joined #ruby
[17:09:54] dotix: has joined #ruby
[17:10:50] singalaut: has left #ruby: ("WeeChat 1.4-dev")
[17:11:46] roshanavand: has joined #ruby
[17:13:06] Vertroa: has joined #ruby
[17:14:10] JakFrist: has joined #ruby
[17:14:44] pietr0: has joined #ruby
[17:15:56] bkxd: has joined #ruby
[17:16:03] volty: has joined #ruby
[17:16:15] StevenXL: has joined #ruby
[17:16:15] StevenXL: has joined #ruby
[17:18:12] colegatron: has joined #ruby
[17:19:01] rkazak: has joined #ruby
[17:20:05] synthroid: has joined #ruby
[17:21:11] uris: has joined #ruby
[17:21:18] wolffles: has joined #ruby
[17:21:34] synthroid: has joined #ruby
[17:22:24] Makorak: has joined #ruby
[17:22:49] rkazak: has joined #ruby
[17:23:33] wolffles: so i cant figure out how to do a range for .gsub ??? ???hEllo???.gsub(/[A..Z]/,???0???) #? is it even possible
[17:23:42] choke: has joined #ruby
[17:24:28] havenwood: wolffles: /[A-Z]/
[17:24:36] spooq|2: has joined #ruby
[17:24:58] havenwood: wolffles: Read the docs, it goes on from here: Within a character class the hyphen (-) is a metacharacter denoting an inclusive range of characters.
[17:25:07] DylanJ: Hey what's happening when I do Hash({x: 1})? How come I can call Hash() like a function?
[17:25:34] guacamole: has joined #ruby
[17:25:42] diegoviola: is there any reason why I can't execute this code when I grap it inside the import method? https://gist.github.com/diegoviola/25186703f60a4634bfd0
[17:25:44] eboaz: has joined #ruby
[17:25:50] diegoviola: but when that code is not in a method, it runs just fine
[17:25:53] diegoviola: I don't understand why
[17:25:56] mark2: has left #ruby: ("PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PONG :rajaniemi.freenode.net")
[17:26:11] havenwood: DylanJ: Hash is a method (yup) on Kernel: http://ruby-doc.org/core/Kernel.html#method-i-Hash
[17:26:39] mfb2_: has joined #ruby
[17:26:40] DylanJ: havenwood: oh neat.
[17:26:45] GinoManWorks_: has joined #ruby
[17:26:57] RTG`: has joined #ruby
[17:27:04] nerium_: has joined #ruby
[17:27:12] havenwood: DylanJ: I should say Hash() is a method on Kernel, rather, heh.
[17:27:22] nettoweb: has joined #ruby
[17:27:24] havenwood: >> defined? Hash()
[17:27:25] ruboto: havenwood # => "method" (https://eval.in/499462)
[17:27:37] underplank: has joined #ruby
[17:27:42] havenwood: >> defined? Hash
[17:27:43] ruboto: havenwood # => "constant" (https://eval.in/499463)
[17:27:51] diegoviola: any ideas please?
[17:28:02] ljarvis: diegoviola: define it outside of the block and try again
[17:28:04] `derpy: has joined #ruby
[17:28:12] lacuna: has joined #ruby
[17:28:13] lacuna: has joined #ruby
[17:28:22] platzhirsch: has left #ruby: ()
[17:28:36] DylanJ: diegoviola: probably a good idea not to post usernames and passwords in your pastes :)
[17:28:39] diegoviola: still nothing
[17:28:59] symm-: has joined #ruby
[17:29:54] diegoviola: I moved that method outside the rake task and called it from the rake task, nothing yet
[17:30:20] Xeago: has joined #ruby
[17:30:33] ekinmur: has joined #ruby
[17:30:51] bricker: has joined #ruby
[17:30:53] wolffles: havenwood: found the docs, and thanks very useful to know about charcter classes
[17:31:08] haraigoshi: has joined #ruby
[17:32:20] dorakyura: has joined #ruby
[17:33:05] roshanavand: has joined #ruby
[17:33:15] tomphp: has joined #ruby
[17:33:25] ta0: has joined #ruby
[17:33:51] choke_: has joined #ruby
[17:34:16] Scripore: has joined #ruby
[17:35:10] davedev24: has joined #ruby
[17:35:49] presidentbeef: has joined #ruby
[17:37:03] sandstrom: has joined #ruby
[17:37:19] djbkd: has joined #ruby
[17:37:36] djbkd: has joined #ruby
[17:37:50] benlieb: has joined #ruby
[17:40:35] presidentbeef: has joined #ruby
[17:40:48] diegoviola: so any ideas, please?
[17:42:37] brunto: has joined #ruby
[17:46:07] ledestin: has joined #ruby
[17:46:38] m1dnight_: Is it possible to use rbenv in an upstart script?
[17:47:02] choke: has joined #ruby
[17:47:42] imperator: has joined #ruby
[17:49:40] imperator: File.readable?("/proc/1/smaps") # => true
[17:50:14] imperator: File.read("/proc/1/smaps") # => Errno::EACCESS
[17:50:33] choke_: has joined #ruby
[17:52:05] chihhsin: has joined #ruby
[17:52:06] finisherr: has joined #ruby
[17:52:20] Vertroa: has joined #ruby
[17:52:26] Ox0dea: imperator: File.readable? is in the wrong there.
[17:52:56] devbug: has joined #ruby
[17:53:15] Ox0dea: You're only allowed to read the files in /proc/$PID unless the process is privileged.
[17:53:20] hxegon: has joined #ruby
[17:53:44] roshanavand: has joined #ruby
[17:54:00] imperator: ACTION looks at the source
[17:54:51] theunraveler: has joined #ruby
[17:55:05] tomdp: has left #ruby: ()
[17:55:36] tomdp: has joined #ruby
[17:55:37] Alayde: has joined #ruby
[17:55:54] Alayde: has left #ruby: ()
[17:57:08] neanderslob: has joined #ruby
[17:57:17] underplank: has joined #ruby
[17:57:33] imperator: Ox0dea, is the stuff under /proc/id some sort of pseudo filesystem?
[17:57:42] imperator: i think this has come up before, and ruby can't deal
[17:57:49] Ox0dea: That looks to be the case.
[17:58:16] mistermocha: has joined #ruby
[17:58:43] Vertroa_: has joined #ruby
[17:59:29] jbrhbr: has joined #ruby
[18:00:18] jmignault: has joined #ruby
[18:00:20] baweaver: has joined #ruby
[18:00:32] choke: has joined #ruby
[18:01:25] bluOxigen_: has joined #ruby
[18:02:01] zast: has joined #ruby
[18:02:04] ekinmur_: has joined #ruby
[18:02:10] tenderlo_: has joined #ruby
[18:02:15] dopie2: has joined #ruby
[18:02:22] arup_r1: has joined #ruby
[18:02:32] imperator: would have to check using acl
[18:03:50] firstdayonthejob: has joined #ruby
[18:04:18] ruisantos: has joined #ruby
[18:04:37] gizmore: has joined #ruby
[18:04:39] gizmore: has joined #ruby
[18:04:42] prestorium: has joined #ruby
[18:04:52] TomyLobo: has joined #ruby
[18:05:02] lacuna: has joined #ruby
[18:05:26] ebertx: has joined #ruby
[18:05:48] karapetyan: has joined #ruby
[18:06:04] maxmanders: has joined #ruby
[18:06:18] JDiPierro: has joined #ruby
[18:07:17] asmodlol: has joined #ruby
[18:07:24] j_mcnally: has joined #ruby
[18:07:45] Yzguy: has joined #ruby
[18:07:50] atom3: has joined #ruby
[18:09:17] devbug: has joined #ruby
[18:11:55] mjuszczak: has joined #ruby
[18:13:33] choke: has joined #ruby
[18:13:38] shadoi: has joined #ruby
[18:14:41] roshanavand: has joined #ruby
[18:14:51] baweaver: has joined #ruby
[18:14:59] aadam21: has joined #ruby
[18:15:01] Salve: has joined #ruby
[18:15:26] aadam21: has joined #ruby
[18:15:44] StevenXL: has joined #ruby
[18:15:56] scottschecter: has joined #ruby
[18:16:46] diegoviola: this doesn't make any sense
[18:16:52] diegoviola: https://gist.github.com/diegoviola/c47417031df8aa4769d1
[18:17:04] diegoviola: why is that the code in #import is not executed but when I don't use a method it runs?
[18:17:11] diegoviola: I also tried to move the method outside the rake task and nothing...
[18:20:03] Salve: has left #ruby: ()
[18:20:07] jxs_: has joined #ruby
[18:20:39] makenoise: has joined #ruby
[18:21:04] volty: has left #ruby: ("Konversation terminated!")
[18:21:37] m1dnight_: Which variables do I have to set in my environment to use rbenv?
[18:21:42] m1dnight_: I want to try it that way in the upstart scsript
[18:22:13] pragmatism: Just the eval as noted on their docs.
[18:23:46] mdw: has joined #ruby
[18:24:34] ekinmur: has joined #ruby
[18:24:41] choke_: has joined #ruby
[18:25:33] Skelz0r: has joined #ruby
[18:26:28] atomical: has joined #ruby
[18:26:40] roshanavand: has joined #ruby
[18:28:22] RalfJ: has joined #ruby
[18:29:46] nertzy: has joined #ruby
[18:30:18] JakFrist: has joined #ruby
[18:32:05] Eiam: has joined #ruby
[18:34:13] TomPeed: has joined #ruby
[18:34:38] dlitvak: has joined #ruby
[18:34:48] eljimbo: has joined #ruby
[18:35:28] jmignault: has joined #ruby
[18:37:38] jmignault: has joined #ruby
[18:38:30] webstral: has joined #ruby
[18:38:34] arup_r: has joined #ruby
[18:40:01] TomyLobo: s/eval/evil/
[18:40:21] choke: has joined #ruby
[18:40:29] malconis: has joined #ruby
[18:40:30] m1dnight_: pragmatism: tey tell you how to put it in the .zshrc
[18:40:34] m1dnight_: but not for an upstart script..
[18:40:42] m1dnight_: Im running the script with almost an empty environment.
[18:40:50] m1dnight_: And its subsequently not reading the .ruby-env file.
[18:41:05] Asher: has joined #ruby
[18:41:09] Ox0dea: >> alias evil eval; evil '17 + 25' # omigod it's a method
[18:41:10] ruboto: Ox0dea # => 42 (https://eval.in/499470)
[18:42:25] TomyLobo: has joined #ruby
[18:43:14] snowy: has joined #ruby
[18:45:44] choke: has joined #ruby
[18:45:54] JakFrist: has joined #ruby
[18:46:19] jbrhbr: has joined #ruby
[18:46:42] JakFrist: has joined #ruby
[18:48:48] ascarter: has joined #ruby
[18:49:04] yfeldblum: has joined #ruby
[18:52:04] karapetyan: has joined #ruby
[18:52:26] Limix: has joined #ruby
[18:52:26] karapetyan: has joined #ruby
[18:53:54] choke_: has joined #ruby
[18:53:57] RegulationD: has joined #ruby
[18:55:22] guacamole: has joined #ruby
[18:55:28] Axsuul: has joined #ruby
[18:55:51] diegoviola: when I wrap my code inside a class/method the code runs in a rake task, but not when I use methods only
[18:55:53] diegoviola: and I call the method
[18:55:57] diegoviola: I have no idea why
[18:57:45] mjuszczak: has joined #ruby
[18:58:45] Yzguy: has joined #ruby
[18:58:53] mjuszczak: has joined #ruby
[18:59:58] Ox0dea: $ cat Rakefile && rake foo
[19:00:00] Ox0dea: def foo; p :ok end
[19:00:02] Ox0dea: task(:foo) { foo }
[19:00:06] Ox0dea: diegoviola: ^
[19:00:35] postmodern: has joined #ruby
[19:00:40] JohnT: has joined #ruby
[19:01:30] mistermocha: has joined #ruby
[19:02:10] Sou|cutter: has joined #ruby
[19:02:22] diegoviola: https://gist.github.com/diegoviola/33740c8adecb6db5af67
[19:02:30] diegoviola: this code doesn't return hello world, but when I change that method to 'foo' it works
[19:02:38] diegoviola: this just blows my mind
[19:03:05] guacamole: has joined #ruby
[19:04:09] beanHolez: has joined #ruby
[19:04:48] griffindy: has joined #ruby
[19:05:14] Ox0dea: diegoviola: It's a run-of-the-mill name collision.
[19:05:26] iamvery: has joined #ruby
[19:06:08] jbrhbr: it's interesting that his binding doesn't win though
[19:06:08] choke: has joined #ruby
[19:06:41] diegoviola: name collision with what?
[19:06:51] Ox0dea: With the method called #import from Rake::DSL.
[19:07:14] Ox0dea: It is a little strange that yours doesn't win, but metaprogramming will do that.
[19:07:25] diegoviola: how can I find out next time if the method names is colliding with something else?
[19:07:33] mjuszczak: has joined #ruby
[19:07:42] jbrhbr: something that seems like it should obviously run doesn't run? :)
[19:08:02] diegoviola: I need to open my eyes more
[19:08:03] jbrhbr: i wonder if you could load the task and check .source_location
[19:08:04] diegoviola: sorry about that
[19:08:18] diegoviola: what is that
[19:08:46] jbrhbr: diegoviola: i wasn't criticizing you, i'm sympathetic to all intuition that is violated by magic
[19:08:55] Ox0dea: diegoviola: task(:default) { p method(:import) }
[19:09:36] RegulationD: has joined #ruby
[19:09:47] ceej: I'm trying to figure out the best way to fix this hash method, right now it returns an empty Hash instead of nil if the key doesn't exist https://code.hackerearth.com/d1596aM
[19:09:56] geekbri: has joined #ruby
[19:10:13] diegoviola: jbrhbr: thanks for saying that, I had already too much criticism (and in a bad way) from my client
[19:10:27] diegoviola: but I don't mind criticism
[19:10:39] Bloomer: has joined #ruby
[19:10:41] Mon_Ouie: has joined #ruby
[19:11:11] diegoviola: people should be able to express themselves however they want to :)
[19:11:30] diegoviola: Ox0dea: ok let me try that cocde
[19:11:53] Ox0dea: > let me try that coc
[19:12:09] diegoviola: I really like working with Ruby, even though I can be a slow programmer at times
[19:12:42] diegoviola: I think my brain is just slow at times
[19:12:55] diegoviola: #<Method: Object(Rake::DSL)#import>
[19:13:10] diegoviola: Ox0dea: ok I see you were right
[19:13:29] diegoviola: thanks for your help
[19:13:46] choke_: has joined #ruby
[19:15:34] mooe: has joined #ruby
[19:16:02] guacamole: has joined #ruby
[19:16:32] bkxd: has joined #ruby
[19:17:59] sandstrom: has joined #ruby
[19:18:06] choke: has joined #ruby
[19:18:28] ceej: I don't see a way of being able to make it return nil with the current implementation
[19:20:21] niemcu: has joined #ruby
[19:21:18] ekinmur: has joined #ruby
[19:21:43] choke_: has joined #ruby
[19:25:07] Makorak: has joined #ruby
[19:25:26] tvw: has joined #ruby
[19:25:27] ricer2_g4H4: has joined #ruby
[19:25:58] jackjackdripper: has joined #ruby
[19:27:05] jackjackdripper1: has joined #ruby
[19:27:44] ceej: would anyone be able to help me with this? https://code.hackerearth.com/d1596aM it's driving me nuts lol
[19:29:53] ceej: crap this is the url https://code.hackerearth.com/621532s
[19:31:19] choke: has joined #ruby
[19:31:25] JakFrist: has joined #ruby
[19:32:09] karapetyan: has joined #ruby
[19:32:17] marsjaninzmarsa: has joined #ruby
[19:32:50] amclain: has joined #ruby
[19:32:54] Zackio: has joined #ruby
[19:34:41] chadhs: has joined #ruby
[19:35:50] jackjackdripper: has joined #ruby
[19:35:56] smactive: has joined #ruby
[19:38:38] mistermocha: has joined #ruby
[19:39:02] kies^: has joined #ruby
[19:39:57] choke_: has joined #ruby
[19:40:07] underplank: has joined #ruby
[19:40:39] dlitvak: has joined #ruby
[19:41:31] luckyme: has joined #ruby
[19:42:32] tectonic: has joined #ruby
[19:43:36] arup_r: has joined #ruby
[19:44:51] JakFrist: has joined #ruby
[19:45:00] yos7ph: has joined #ruby
[19:46:10] baweaver: has joined #ruby
[19:46:21] spstarr: has joined #ruby
[19:46:37] Mon_Ouie: You can't have x[foo] be nil and also have x[foo][bar] = 4 insert an entry in a hash that is created automatically
[19:47:04] spstarr: Question, how do I match a hash's key string? for example: if I have a key with php__fpm_node_# (where # can be 0, 1, 2, 3, 4, 5... etc) can I check if the hash key has a match of any of those?
[19:47:29] Frem: has joined #ruby
[19:47:43] Mon_Ouie: You can manually check using #has_key? if the entry exists already or return a copy of the hash with no default value if you don't need to keep it
[19:47:45] spstarr: ie myHash["php__fpm_node_\d+".match?]
[19:47:54] bricker: has joined #ruby
[19:48:01] spstarr: #has_key .. looking how to use it
[19:48:06] spstarr: if i can use has_key to regexp match
[19:48:28] Mon_Ouie: spstarr: There's no way to do what you want expect iterating over the whole hash
[19:48:30] marsjaninzmarsa: has joined #ruby
[19:48:31] ceej: I guess I can't use reduce
[19:48:52] juddey: has joined #ruby
[19:49:01] Channel6: has joined #ruby
[19:49:18] spstarr: myHash.has_key() can this take a regex?
[19:49:18] davejlong: has joined #ruby
[19:49:32] kadoppe: has joined #ruby
[19:49:38] imperator: has left #ruby: ("Leaving")
[19:50:26] spstarr: i just wanted to use defined? myHash[this_key_regex_#] if true then good else boo
[19:51:51] spstarr: or maybe contains?
[19:51:57] momomomomo: has joined #ruby
[19:52:39] spstarr: or maybe I just get the key string and then compare with contains
[19:52:55] choke: has joined #ruby
[19:54:02] spstarr: so: defined? myHash.key.include? "this_key_string_" ?
[19:54:05] spstarr: that might work
[19:54:14] ceej: https://code.hackerearth.com/621532s is simply impossible to return nil, I need to come up with another solution; right?
[19:54:14] spstarr: it just needs to find the matching part of key
[19:54:18] synthroid: has joined #ruby
[19:54:54] wsewolod: has joined #ruby
[19:54:55] spstarr: well iterate the key list
[19:54:56] dorakyura: has joined #ruby
[19:55:59] spstarr: k.match(regex) in a select of hash
[19:56:31] i: has joined #ruby
[19:56:35] choke_: has joined #ruby
[19:57:27] ekinmur: has joined #ruby
[19:57:43] gambl0re: has joined #ruby
[19:59:50] rippa: has joined #ruby
[20:00:12] Ox0dea: spstarr: Are you sure you want #select and not #find?
[20:00:12] cantaberry: has joined #ruby
[20:01:05] lemur: has joined #ruby
[20:02:04] sdothum: has joined #ruby
[20:02:24] ceej: this seems to work... https://code.hackerearth.com/a475ffz not sure if it's the best solution though
[20:03:19] Ox0dea: ceej: I'm definitely having some d??j?? vu here.
[20:03:27] Ox0dea: Is this a kata or something, or have I helped you with this before?
[20:03:50] ceej: you helped me with this before to clean it up :)
[20:04:02] kalopsian: has joined #ruby
[20:04:30] Ox0dea: Lines 13 and 14 were creeping me out.
[20:04:43] Ox0dea: In the "do I have a code doppelganger?" sense.
[20:04:44] carraroj: has joined #ruby
[20:05:23] IanMalcolm: has joined #ruby
[20:05:40] Ox0dea: ceej: Wait, I wasn't referring to just yesterday, though?
[20:06:14] Ox0dea: Lines 13 and 14 are definitely mine, but that would've been ages ago.
[20:06:49] ceej: nope, this was awhile ago
[20:07:38] j_mcnally: has joined #ruby
[20:08:46] marsjaninzmarsa: has joined #ruby
[20:08:59] tubuliferous_: has joined #ruby
[20:09:02] mistermo_: has joined #ruby
[20:09:59] gatman: has joined #ruby
[20:10:10] ceej: better URL https://code.hackerearth.com/6cdca2m?key=cd95924c8fb73d3e3b7427ae7dbf3880
[20:10:31] bkxd: has joined #ruby
[20:11:22] ceej: Ox0dea: that code I added only works one level deep.... can you see a good way to return nil and not and empty hash like a typical Hash object if the key doesn't exist
[20:11:25] yfeldblum: has joined #ruby
[20:12:31] Ox0dea: ceej: Mon_Ouie explained why you can't have and eat your cake here.
[20:12:40] choke: has joined #ruby
[20:13:01] Ox0dea: If you wish to support arbitrary depth, each nonexistent key *has* to spring into existence with a new Hash as its value.
[20:13:07] Bloomer: has joined #ruby
[20:13:41] ceej: ah, I see... I didn't know he was talking to me... my bad.. so I will have to come up with another solution
[20:13:45] nfk|laptop: has joined #ruby
[20:14:52] Ox0dea: Well, you could use a Hash without a default value, but then you get to write the recursion yourself.
[20:15:32] ceej: ye, so I think my original solution should work... where I build the hash using recursion
[20:17:02] tekkkz: has joined #ruby
[20:17:04] tekkkz: could someone please solve my issue explained here: https://bpaste.net/show/77ada0687800 ?
[20:17:26] chipotle: has joined #ruby
[20:17:48] Ox0dea: ceej: Alternatively, you could wrap what you've got and just return `nil` for keys that evaluate to the empty Hash. It's not like that's a valid value, right?
[20:18:05] tectonic_: has joined #ruby
[20:18:17] Ox0dea: tekkkz: Don't be root.
[20:18:18] bkxd: has joined #ruby
[20:18:28] djbkd: has joined #ruby
[20:18:56] Ox0dea: Never mind. Looks like things are just being loaded in the wrong order.
[20:18:59] skcin7: has joined #ruby
[20:20:45] mdw: has joined #ruby
[20:20:50] mistermocha: has joined #ruby
[20:21:02] marsjaninzmarsa: has joined #ruby
[20:21:04] tectonic_: has joined #ruby
[20:21:13] nertzy: has joined #ruby
[20:22:29] jbrhbr: has joined #ruby
[20:23:31] tekkkz: um running as my normal user
[20:23:51] snowy: has joined #ruby
[20:25:15] cschneid_: has joined #ruby
[20:25:26] choke: has joined #ruby
[20:25:45] baweaver: has joined #ruby
[20:26:07] skade: has joined #ruby
[20:26:30] snowy: has joined #ruby
[20:26:41] haraigoshi: has joined #ruby
[20:26:59] gusTester: has joined #ruby
[20:27:04] jschmid: has joined #ruby
[20:30:23] Melpaws: has joined #ruby
[20:31:24] tekkkz: Ox0dea, any other idea?
[20:31:46] Ox0dea: tekkkz: Be nice. :P
[20:32:03] ekinmur_: has joined #ruby
[20:32:15] tekkkz: Ox0dea, sorry, what do you mean? im trying to be polite all the time .. ?
[20:32:33] Ox0dea: tekkkz: You're using msf for good, you say?
[20:33:37] tekkkz: what does "for good" means?
[20:34:17] choke_: has joined #ruby
[20:34:30] DonOtreply: has joined #ruby
[20:34:52] jackjackdripper1: has joined #ruby
[20:36:18] framling: has joined #ruby
[20:36:38] JakFrist: has joined #ruby
[20:37:19] xargs: I believe for the foreseeable future
[20:38:26] j_mcnally: has joined #ruby
[20:39:23] tekkkz: Ox0dea, i know what you meant :D sure, only for good reasons. I need to check the security of my phone
[20:39:34] Ox0dea: I believe you. /s
[20:40:17] tekkkz: thanks. so you can help me fixing the issue?
[20:40:52] synthroid: has joined #ruby
[20:41:17] DonOtreply: has joined #ruby
[20:43:15] radgeRayden: has joined #ruby
[20:43:15] axl__: has joined #ruby
[20:43:29] dotix: has joined #ruby
[20:43:36] psye: has joined #ruby
[20:44:23] choke: has joined #ruby
[20:45:48] kirun: has joined #ruby
[20:50:08] jschmid: has joined #ruby
[20:52:19] AdeelEB: has joined #ruby
[20:52:20] rrichardsr3: has joined #ruby
[20:53:21] AdeelEB: Hi folks, I got an interesting issue I observed today and just wondering if it is an actual bug or not. Thought I'd try here before doing anything else
[20:54:03] ympeg: has joined #ruby
[20:54:05] Yzguy: has joined #ruby
[20:55:28] tvw: has joined #ruby
[20:56:06] babblebre: has joined #ruby
[20:56:31] AdeelEB: The httpdate method in time.rb expected two digits for the day part of the date. But the RFC says it can be 1 or 2 digits.
[20:57:07] AdeelEB: And the method raises an Error if a date is passed with a single digit date
[20:57:09] Limix: has joined #ruby
[20:57:43] choke: has joined #ruby
[20:59:07] mjuszczak: has joined #ruby
[20:59:53] mostlybadfly: has joined #ruby
[21:00:56] Ox0dea: AdeelEB: The single digit must be preceded by a space.
[21:02:03] choke: has joined #ruby
[21:03:17] hxegon: has joined #ruby
[21:03:33] webstral: has joined #ruby
[21:03:49] Ox0dea: >> require 'time'; Time.httpdate 'Fri Jan 8 00:00:00 2016' # AdeelEB
[21:03:50] ruboto: Ox0dea # => 2016-01-08 00:00:00 UTC (https://eval.in/499486)
[21:04:24] yetitwo: has joined #ruby
[21:04:39] yetitwo: may I have some help with a failed gem install?
[21:04:41] AdeelEB: Ox0dea: But that is ANSI C's asctime() format
[21:04:46] underplank: has joined #ruby
[21:04:51] mistermocha: has joined #ruby
[21:04:53] havenwood: yetitwo: What's the error?
[21:05:04] AdeelEB: RFC-1123 says: 1*2DIGIT month 2*4DIGIT
[21:05:05] yetitwo: i'll pastebin
[21:05:06] yetitwo: just a sec
[21:05:18] Ox0dea: AdeelEB: Time.httptime uses RFC-2616.
[21:05:22] Ox0dea: *httpdate
[21:05:47] Axy: has joined #ruby
[21:05:47] Axy: has joined #ruby
[21:06:03] AdeelEB: Yes, and section 3.3.1 of RFC 2616 says it supports RFC 822, updated by RFC 1123
[21:06:07] mjuszczak: has joined #ruby
[21:06:15] yetitwo: http://pastebin.com/VvsEGbJ3
[21:06:16] ruboto: yetitwo, we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[21:06:24] yetitwo: ^ error output from terminal
[21:06:29] yetitwo: i'm running ubuntu 15.10 server
[21:06:30] yetitwo: fresh install
[21:06:43] baweaver: has joined #ruby
[21:07:03] mjuszczak: has joined #ruby
[21:07:18] yetitwo: @ruboto: ah, kk. wilco in the future.
[21:08:32] Ox0dea: AdeelEB: 1123 is updated by 2616, and Time.httpdate observes the latter. I'm not sure what other information you could be looking for.
[21:08:32] yetitwo: I installed ruby-dev
[21:08:42] choke: has joined #ruby
[21:08:59] yetitwo: and running `apt-get install ruby2.1-dev` returns that it's already installed and latest
[21:10:10] mistermocha: has joined #ruby
[21:10:43] yetitwo: here's the gist:
[21:10:43] yetitwo: https://gist.github.com/tstirrat15/2801a2be47ffe289de74
[21:11:07] Ox0dea: yetitwo: apt-get install build-essential
[21:11:14] Ox0dea: You don't have a compiler. :P
[21:11:17] mjuszczak: has joined #ruby
[21:11:33] yetitwo: that'd do it
[21:11:37] yetitwo: what about the output tells you that?
[21:11:48] Ox0dea: A hunch, really.
[21:11:58] yetitwo: sure enough
[21:12:07] Ox0dea: > The compiler failed to generate an executable file.
[21:12:19] yetitwo: i guess that makes sense... the typical server wouldn't be a build environment
[21:13:02] Ox0dea: "You have to install development tools first." is also quite telling.
[21:13:11] tekkkz: has left #ruby: ("Leaving")
[21:13:19] Ox0dea: That's really the one that did it.
[21:13:23] underplank: has joined #ruby
[21:13:32] ruby-lang314: has joined #ruby
[21:13:34] yetitwo: yup. it worked now.
[21:13:36] yetitwo: thank you!
[21:13:40] Ox0dea: The other error message sometimes crops up when you try to build in a directory where you don't have write access.
[21:13:43] Ox0dea: Happy to help. :)
[21:13:46] Bloomer: has joined #ruby
[21:15:00] AdeelEB: Ox0dea: Thanks, I think I get it. They expanded on 1123 but made it 2 Digits for day. Thanks!
[21:16:10] crudo: has joined #ruby
[21:16:29] karapetyan: has joined #ruby
[21:16:42] Ox0dea: AdeelEB: Sure thing. Just to reiterate, the day can be 1DIGIT if you're using asctime() format and precede said digit with a space.
[21:16:55] ceej: Ox0dea: sorry, just saw your response. how do you mean wrap it?
[21:17:33] Ox0dea: ceej: Disregard. It's probably a bad idea. :P
[21:17:42] Ox0dea: The more explicit approach via recursion is probably best.
[21:17:44] ceej: lol.. k :)
[21:19:11] nertzy: has joined #ruby
[21:19:11] bkxd: has joined #ruby
[21:19:18] Cohedrin: has joined #ruby
[21:19:47] dotix: has joined #ruby
[21:20:47] crudo: hey guys, how are you all!? anybody here is using puma? having issues with memory? why his heap/physical memore doesnt reduce anytime, is this a normal issue of puma? i've tried set some environments of ruby gc.c like RUBY_GC_MALLOC_LIMIT but without success, GC runs but memory arent free'ed , dont know what to do about, just restarting here, i'm not a ruby developer, is a case where the developers are not rel
[21:20:53] crudo: easing the objects? leak?
[21:21:21] Cohedrin: what is your question
[21:21:33] Cohedrin: you're having issues with memory?
[21:22:09] choke: has joined #ruby
[21:22:38] crudo: yeap, server memory always incrase and never reduces in puma. i saw some large objects in redis but dont know if have any clue with puma
[21:22:54] spooq|2: has joined #ruby
[21:23:05] KineticX: has joined #ruby
[21:24:50] dpg1: has joined #ruby
[21:24:57] j_mcnally: has joined #ruby
[21:25:25] kobain: has joined #ruby
[21:26:09] Makorak: has joined #ruby
[21:26:11] dlitvak_: has joined #ruby
[21:26:13] karapetyan: has joined #ruby
[21:26:41] dopie: has joined #ruby
[21:27:20] chimche: has joined #ruby
[21:27:20] akkad: has joined #ruby
[21:27:34] pricees: has joined #ruby
[21:28:00] pricees: has left #ruby: ()
[21:28:06] pricees: has joined #ruby
[21:28:29] chipotle: has joined #ruby
[21:28:34] jschmid: has joined #ruby
[21:29:31] choke: has joined #ruby
[21:30:51] bkxd: has joined #ruby
[21:31:08] Vertroa: has joined #ruby
[21:33:02] B1n4r10: has joined #ruby
[21:33:32] jgpawletko: has joined #ruby
[21:33:39] ceej: Ox0dea: this is what I came up with https://gist.github.com/4e284977f8048ee08559
[21:33:41] tomchapin: has joined #ruby
[21:36:02] tectonic: has joined #ruby
[21:36:45] Vertroa: has joined #ruby
[21:36:58] ympeg: has joined #ruby
[21:37:32] tectonic: has joined #ruby
[21:37:50] choke: has joined #ruby
[21:37:58] momomomomo: has joined #ruby
[21:39:17] mistermocha: has joined #ruby
[21:39:38] j_mcnally: has joined #ruby
[21:40:22] JakFrist: has joined #ruby
[21:41:02] spider-mario: has joined #ruby
[21:41:52] bithon: has joined #ruby
[21:42:19] ApeShot: has joined #ruby
[21:42:20] Dimik: has joined #ruby
[21:44:53] choke_: has joined #ruby
[21:45:07] guacamole: has joined #ruby
[21:46:37] devbug: has joined #ruby
[21:46:39] jackjackdripper: has joined #ruby
[21:48:46] iamayam: has joined #ruby
[21:48:56] freerobby: has joined #ruby
[21:49:13] mjuszczak: has joined #ruby
[21:51:28] Ox0dea: ceej: LGTM. :)
[21:53:25] crudo: has left #ruby: ()
[21:54:50] paz__1: has joined #ruby
[21:54:53] paz__1: has left #ruby: ()
[21:55:56] diegoviola: https://gist.github.com/diegoviola/2aaccda089a9a8e28908
[21:56:16] ricer2_g4H4: has joined #ruby
[21:56:26] diegoviola: so I have this crappy code where I'm taking a XLS+HTML document and converting it to CSV and then parsing that and storing the data on the DB
[21:56:48] diegoviola: instead of saving the CSV in a file, how can I pass the content of the CSV to my read_csv function?
[21:58:49] choke: has joined #ruby
[21:59:38] Mr_Pancake: has joined #ruby
[22:00:10] weemsledeux: has joined #ruby
[22:02:03] baweaver: has joined #ruby
[22:02:11] choke_: has joined #ruby
[22:03:03] Scripore: has joined #ruby
[22:04:47] akem: has joined #ruby
[22:05:10] Ox0dea: diegoviola: I don't see why you even need CSV: https://eval.in/499564
[22:05:56] Ox0dea: CSV is for when you already have comma-separated values; your data is coming from an HTML table.
[22:06:12] pricees: has joined #ruby
[22:06:23] diegoviola: Ox0dea: I don't understand that HTML table
[22:06:29] diegoviola: it makes my brain explode
[22:06:31] Ox0dea: diegoviola: Which HTML table?
[22:06:44] ljarvis: so much eager loading
[22:06:53] cholq: has joined #ruby
[22:06:58] mistermocha: has joined #ruby
[22:07:01] nettoweb: has joined #ruby
[22:07:30] diegoviola: the one I was trying to parse
[22:07:39] diegoviola: the one that is coming from that XLS file
[22:08:05] ljarvis: but you write the data to a csv then re-read it. You have the data, then you load the data.. again.
[22:08:47] diegoviola: yeah I know it's insane
[22:08:50] diegoviola: what can I do?
[22:08:50] Ox0dea: ljarvis: Gotta be certain it's the right datums.
[22:08:56] ljarvis: it's inssane because that's how you wrote it
[22:08:57] pricees: has joined #ruby
[22:09:04] ljarvis: it doesn't need to be written like that
[22:09:16] pricees: /msg NickServ VERIFY REGISTER pricees rzwzdvknipta
[22:09:22] diegoviola: how do you suggest I write it
[22:09:29] adaedra: pricees: fail!
[22:09:36] ljarvis: pricees: might want to change that
[22:09:49] adaedra: ljarvis: that's the verify, it's a one time thing
[22:09:55] ljarvis: yes i know
[22:09:59] Makorak: has joined #ruby
[22:10:02] ljarvis: might not want to use that password?
[22:10:08] Ox0dea: It's not a password.
[22:10:15] adaedra: it's a verify token.
[22:10:22] ljarvis: ah right ok
[22:10:35] ljarvis: the last time i reg'd was too long ago apparently
[22:11:08] choke: has joined #ruby
[22:11:09] diegoviola: do you suggest I just take the array from the HTML table and use that to fill the data in the db?
[22:11:18] ljarvis: diegoviola: of course
[22:11:40] diegoviola: what was I thinking?
[22:11:52] diegoviola: overworking makes me do stupid things
[22:11:56] diegoviola: I blame my boss
[22:12:00] Limix: has joined #ruby
[22:12:13] Ox0dea: As long as you don't blame you, everything will be okay.
[22:12:20] atmosx: diegoviola: you work as a programmer?
[22:12:27] diegoviola: atmosx: sure
[22:12:31] atmosx: diegoviola: cool
[22:12:44] diegoviola: atmosx: I have a boss that keeps insisting I do things ASAP all the time
[22:12:48] 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:12:48] mistermo_: has joined #ruby
[22:12:52] ljarvis: diegoviola: we've discussed this
[22:12:56] ljarvis: a million times
[22:12:57] diegoviola: ljarvis: yes, sorry
[22:13:05] diegoviola: but calm down
[22:13:12] ljarvis: seriously, I'm close to just out right banning you fron this channel
[22:13:29] ljarvis: you don't learn no matter how many times you've been told
[22:13:29] Xeago: has joined #ruby
[22:13:48] diegoviola: ok I'll stop, but no need to be threatening
[22:13:50] roshanavand: has joined #ruby
[22:13:50] ljarvis: so, please let this be the final time.
[22:14:26] jbrhbr: has joined #ruby
[22:14:33] Bloomer: has joined #ruby
[22:14:37] diegoviola: final time for offtopic you mean?
[22:15:12] diegoviola: you are being vague
[22:15:19] Ox0dea: This guy.
[22:15:22] ljarvis: You may discuss your Ruby code here, of course. But the offtopic talk about shitting on your boss/employers needs to stop. It's absolutely toxic and I won't have it
[22:15:38] Ox0dea: I vote ljarvis for mod.
[22:15:38] diegoviola: ok sorry about that
[22:15:40] uris: has joined #ruby
[22:15:45] jschmid: has joined #ruby
[22:15:51] ivanskie: has joined #ruby
[22:15:57] diegoviola: I didn't meant to talk bad of anyone
[22:16:00] toretore: two years ago i had some sympathy when you kept on talking about your work situation
[22:16:08] TheHodge: has joined #ruby
[22:16:34] shevy: now you sympathize with the boss!
[22:17:17] skcin7_: has joined #ruby
[22:17:23] adaedra: the offtopic request is valable for all discussion about it, for everyone.
[22:21:51] choke: has joined #ruby
[22:22:24] Limix: has joined #ruby
[22:22:52] rrichard_: has joined #ruby
[22:23:23] chimche: has joined #ruby
[22:23:39] tockitj: has joined #ruby
[22:23:42] ljarvis: >> RUBY_VERSION
[22:23:43] ruboto: ljarvis # => "2.2.0" (https://eval.in/499571)
[22:23:58] rrichardsr3: has joined #ruby
[22:24:37] adaedra: Forgot to deop, ruboto?
[22:24:54] yfeldblum: has joined #ruby
[22:26:45] shevy: he no want to upgrade to 2.3.0
[22:26:51] Ox0dea: >> i would be so fucking happy if RUBY_VERSION['2.3']
[22:26:53] ruboto: Ox0dea # => nil (https://eval.in/499572)
[22:27:08] dfockler: has joined #ruby
[22:27:12] Ox0dea: apeiros plz
[22:27:38] KineticX: has joined #ruby
[22:27:39] Ox0dea: ?modernity
[22:27:39] ruboto: I don't know anything about modernity
[22:27:45] bb010g: has joined #ruby
[22:27:50] havenwood: ooh, didn't realize eval.in had added 2.3, nice!
[22:28:05] adaedra: some time ago
[22:28:17] havenwood: makes sense but TIL
[22:28:27] adaedra: its creator (don't remember the name) was talking about it when they did it
[22:28:33] dlitvak: has joined #ruby
[22:28:33] Ox0dea: charliesome.
[22:28:33] shevy: can ruboto not be changed to use that?
[22:28:36] havenwood: adaedra: charliesome
[22:28:51] ljarvis: shevy: yes, bug apeiros
[22:28:56] adaedra: shevy: yes, it's a config to change, but apparently apeiros didn't do it ??\_(???)_/??
[22:29:07] havenwood: it's already been done
[22:29:15] havenwood: apeiros already did it!
[22:29:23] havenwood: (just hasn't been deployed)
[22:29:23] Ox0dea: 23>> RUBY_VERSION
[22:29:24] ljarvis: apeiros mentioned he was doing some stuff but the new version isn't up and running yet
[22:29:50] Ox0dea: I believe he's waiting to unveil it once all the other new hotness is ready.
[22:29:58] tectonic: has joined #ruby
[22:31:14] ta0: has joined #ruby
[22:31:30] RTG`: has joined #ruby
[22:31:31] adaedra: havenwood: deployment of just adding 2.3 as default should not be really blocking, even with ruboto 2 electric boogaloo around the corner :/
[22:31:38] jackjackdripper: has joined #ruby
[22:32:02] ekinmur: has joined #ruby
[22:32:03] Ox0dea: Cheddars can't be boozers.
[22:32:41] choke: has joined #ruby
[22:34:00] baweaver: has joined #ruby
[22:36:34] karapetyan: has joined #ruby
[22:36:40] choke_: has joined #ruby
[22:37:22] Axsuul: has joined #ruby
[22:38:29] SenpaiSilver: has joined #ruby
[22:38:34] guacamole: has joined #ruby
[22:38:55] mjuszczak: has joined #ruby
[22:39:08] chipotle: has joined #ruby
[22:39:20] ympeg: has joined #ruby
[22:40:42] wldcordeiro: has joined #ruby
[22:40:45] pawnbox_: has joined #ruby
[22:41:44] ekinmur: has joined #ruby
[22:42:41] choke: has joined #ruby
[22:44:50] zenlot1: has joined #ruby
[22:47:52] ekinmur: has joined #ruby
[22:48:23] dlitvak: has joined #ruby
[22:49:11] j_mcnally: has joined #ruby
[22:49:13] guacamole: has joined #ruby
[22:49:55] shadoi1: has joined #ruby
[22:50:08] theunraveler: has joined #ruby
[22:50:30] niemcu: has joined #ruby
[22:51:36] dlitvak_: has joined #ruby
[22:53:19] nfk|laptop: has joined #ruby
[22:53:45] Melpaws: i need a little help trying to clean up an array. I've tried a few things including reject, . I need to remove the "\n" from any elements. Is it possible or do i have to use something like gsub?
[22:53:54] Melpaws: sample of the array
[22:53:56] Melpaws: https://gist.github.com/dylnnlsn/7901a1997ac850690112
[22:54:26] ljarvis: Melpaws: just the \n or the other whitespace too?
[22:54:33] yqt: has joined #ruby
[22:55:29] Melpaws: hm . preferably both so it looks little prettier on the return if possible
[22:55:37] ljarvis: Melpaws: then you want map and strip
[22:56:03] ljarvis: >> ["foo ", " \n bar"].map(&:strip) # just dont forget to handle the nil values if you want to keep them
[22:56:05] ruboto: ljarvis # => ["foo", "bar"] (https://eval.in/499592)
[22:57:08] Melpaws: how to do i remove the nil values since it has the [nil, ""] ?
[22:57:35] ljarvis: Melpaws: Array#compact
[22:57:43] ljarvis: &ri Array#compact
[22:57:44] `derpy: http://ruby-doc.org/core-2.2.4/Array.html#method-i-compact
[22:58:07] ljarvis: compact.map(&:strip) should do what you want
[22:58:19] Melpaws: thank you both!
[22:58:33] ljarvis: there's only one of me but you're welcome
[22:58:42] ljarvis: from us both
[22:59:02] mistermocha: has joined #ruby
[22:59:08] ljarvis: ruboto and `derpy are merely slaves to my commands
[22:59:10] Melpaws: sorry - saw the derpy there link the url . guesing that's a bot :)
[22:59:17] ljarvis: correct :)
[22:59:21] `derpy: Go on, take all the credit, these doc links are generating themselves automatically.
[22:59:32] ljarvis: ACTION was waiting for something like that
[22:59:54] mistermocha: has joined #ruby
[23:00:00] choke: has joined #ruby
[23:00:44] adaedra: What do you mean, "predictable"?
[23:01:05] chimche: has joined #ruby
[23:01:45] Limix: has joined #ruby
[23:03:48] benlieb: has joined #ruby
[23:03:50] mfb2_: has joined #ruby
[23:04:05] Darmani: has joined #ruby
[23:04:23] Darmani: Hello my pretties<3
[23:04:24] djbkd: has joined #ruby
[23:04:25] skcin7: has joined #ruby
[23:04:29] snguyen: has joined #ruby
[23:05:41] retnah: has joined #ruby
[23:05:55] djbkd: has joined #ruby
[23:07:01] underplank: has joined #ruby
[23:07:20] guacamole: has joined #ruby
[23:07:48] benlieb: Any ruby mine users out there? I???m trying to use it for the first time and it can???t find ruby! It???s looking for a ruby ???sdk???, but nothing I???ve given it can find the ruby interpreter. I use ruby-install, ruby-version, and chruby
[23:08:43] havenwood: benlieb: It seems they're inching towards support: https://youtrack.jetbrains.com/issue/RUBY-14086#comment=27-761030
[23:08:51] havenwood: benlieb: (Check the last comment.)
[23:09:07] lkba: has joined #ruby
[23:09:23] theunraveler: has joined #ruby
[23:09:25] benlieb: I???ve used Vim for 12 years and eveyone tells my modern IDEs are better
[23:09:44] benlieb: Just spent an hour trying to get RM to find ruby, hm...
[23:10:04] Gnut: has joined #ruby
[23:10:14] choke: has joined #ruby
[23:11:57] benlieb: That comment says ???Although there's no official support for chruby , with RubyMine 8 chruby works without any hacks, the only gotcha is that you have to manually add the rubies.??? The problem I was having was figuring out how to manually add the rubies..
[23:12:01] benlieb: any suggestions?
[23:12:58] adaedra: Preferences, Languages, Ruby.
[23:13:20] adaedra: I suggest you do it from the home screen rather than from a project to do it globally.
[23:13:29] Gnut: has joined #ruby
[23:13:32] adaedra: You just click +, and select the 'ruby' binary for each version.
[23:13:46] mistermocha: has joined #ruby
[23:14:15] adaedra: benlieb: ^
[23:14:25] benlieb: I???ve been selecting: /Users/blieb/.rubies/ruby-2.2.3/bin/ruby
[23:14:29] Gnut: More of a subjective question, but where do I go about handling data transformations when writing a gem?
[23:14:42] mistermo_: has joined #ruby
[23:14:50] adaedra: benlieb: and it doesn't work?
[23:15:08] benlieb: It hasn???t been, but I had been trying from a project
[23:15:13] benlieb: lemme try via preferences
[23:15:21] Bloomer: has joined #ruby
[23:17:15] benlieb: When I hit ???apply??? in the ruby sdk and gems pane, it says ???no ruby interperter configured for the project'
[23:17:32] benlieb: That???s under ???default settings'
[23:17:36] mjuszczak: has joined #ruby
[23:17:47] roshanavand: has joined #ruby
[23:17:50] adaedra: mh, show me?
[23:18:02] benlieb: also happens in preferences > ruby sdk and gems
[23:19:03] duckpupp1: has joined #ruby
[23:19:21] sandstrom: has joined #ruby
[23:19:25] adaedra: Ah, I see it
[23:19:33] adaedra: Lol, RubyMine.
[23:19:46] adaedra: Open a project and set it then, apparently there's a bug ??\_(???)_/??
[23:20:27] solocshaw: has joined #ruby
[23:21:03] Xeago: has joined #ruby
[23:21:16] nofxx: has joined #ruby
[23:22:26] adaedra: Also, for your initial statement: if you're happy with your vim, keep it.
[23:22:42] robbyoconnor: has joined #ruby
[23:22:44] sankaber: has joined #ruby
[23:24:01] diegoviola: isn't that offtopic talk
[23:24:06] cantaberry: has joined #ruby
[23:24:16] Dimik: has joined #ruby
[23:24:18] colegatron: has joined #ruby
[23:24:24] sankaber: has joined #ruby
[23:24:42] weemsledeux: has joined #ruby
[23:25:29] choke: has joined #ruby
[23:25:43] Ox0dea: diegoviola: Shall I phone the authorities?
[23:26:13] shevy: adaedra emacs forever!
[23:26:29] diegoviola: Ox0dea: if you want
[23:26:38] adaedra: shevy: get away with your trolling.
[23:27:01] Ox0dea: !cops These folks are discussing a Ruby IDE in #ruby!
[23:27:02] pengin: has joined #ruby
[23:28:13] adaedra: Here they come! https://media.giphy.com/media/Bc3SkXz1M9mjS/giphy.gif
[23:29:21] adaedra: benlieb: got it working?
[23:30:09] benlieb: adaedra: It seems to not give that error in the preferences > ruby sdk, so maybe
[23:30:13] benlieb: it looks like a bug to me.
[23:30:18] adaedra: yeah, same.
[23:30:30] adaedra: RubyMine has some.
[23:30:50] adaedra: Mine tries to use OS X's ruby (2.0) with my 2.2 gems, go figure.
[23:30:55] benlieb: I???m not familiar enough with the ide to know if it???s working. It says it can???t find some gems etc. The app is over a year old, and all the gems are definitely installed
[23:30:57] benlieb: so we???ll see.
[23:30:58] snowy: has joined #ruby
[23:31:19] benlieb: If this is off-topic, sorry, btw. Sometimes it???s hard to tell
[23:31:35] adaedra: Did you select the right ruby (green check) in the ruby sdk preferences?
[23:31:45] benlieb: adaedra: ewe that???s scary
[23:32:11] benlieb: the 2.2 gems w 2.0 ruby
[23:32:20] Scripore: has joined #ruby
[23:32:56] baweaver: has joined #ruby
[23:33:24] adaedra: Check if the right ruby is selected, then do a `Tools > bundler > install` run to try things
[23:33:40] snowy: has joined #ruby
[23:34:09] wldcordeiro: has joined #ruby
[23:35:28] benlieb: adaedra: I don???t see a tools > bundler
[23:36:18] benlieb: oh, yeah that???s right
[23:36:36] adaedra: I've got the same and I definitely have a Bundler item in tools menu
[23:37:02] benlieb: guess it???s not working then :|
[23:37:42] adaedra: Try quitting and reloading RubyMine, it helped me in the past
[23:39:07] diegoviola: how can you guys be offtopic and not me
[23:39:38] adaedra: how can other people read what they're told and not you
[23:40:55] apeiros: Ox0dea: 2.3 in ruboto is ready. the new ops plugin isn't yet. but it's currently under testing and once it's deemed "bugfree enough" (which should be within the next 48h) I'll gradually replace ruboto.
[23:41:49] underplank: has joined #ruby
[23:41:51] blackmesa: has joined #ruby
[23:41:53] j_mcnally: has joined #ruby
[23:41:56] Ox0dea: apeiros: Sounds good! Please tell me you've included vote-kicks?
[23:42:23] apeiros: Ox0dea: no
[23:42:37] apeiros: Ox0dea: the work was mostly replacing cinch and providing a proper ban handler
[23:42:46] apeiros: i.e. one which can juggle bans and is easier to use
[23:42:48] choke: has joined #ruby
[23:42:54] Ox0dea: Right, I remember.
[23:42:57] apeiros: juggle bans because our banlist is too short :(
[23:42:57] Ox0dea: What's wrong with Cinch?
[23:43:08] apeiros: troubles on large channels if you want account names all the time
[23:43:12] adaedra: Ox0dea: it's written in ruby.
[23:43:31] apeiros: and some other issues which mostly stem from its model of "1+ thread per message"
[23:43:31] adaedra: benlieb: no better?
[23:45:16] jbrhbr: has joined #ruby
[23:45:18] benlieb: adaedra: I still dont??? see bundler and it still says it???s missing gems. My guess is that this means something???s funky with the ruby path, or the gem path etc. I think chruby probably changes those
[23:46:06] benlieb: I???m going to have to set this up slowly, since I???m at work, and I can???t justify spending too much time at once not getting anything done.
[23:46:19] skcin7: has joined #ruby
[23:46:20] benlieb: Which is basically why I???ve stayed with vim so long??? lol
[23:46:27] adaedra: that will be difficult to work with without having direct view on it, sorry
[23:46:43] adaedra: It's strange that it complains about missing gems and not give you the menu for that
[23:46:54] adaedra: It should be right there http://i.imgur.com/P0GMiVy.png
[23:46:55] Gadgetoid: has joined #ruby
[23:46:56] atmosx: open('foo.log', File::WRONLY | File::APPEND | File::CREAT) <-- this will ovewrite an existing file?
[23:47:18] adaedra: try it and see? :)
[23:47:20] dorakyura: has joined #ruby
[23:48:27] rodfersou: has joined #ruby
[23:48:44] benlieb: yep, not there
[23:48:53] adaedra: that's really weird.
[23:48:55] benlieb: my guess is because it???s got the wrong gem env
[23:49:01] benlieb: bundler has to be installed
[23:49:02] user083: has joined #ruby
[23:49:20] benlieb: when I get a chance i can compare the gem env in terminal and in RM
[23:49:36] benlieb: I see a ???show gem env??? in the tools menu
[23:49:49] adaedra: good lick anyway
[23:49:55] adaedra: errrrrrrrrrrrrrrrr luck*
[23:49:59] benlieb: yeah, thanks for the help
[23:50:06] atmosx: adaedra: yeah ty
[23:50:11] adaedra: i'm going to sleep now
[23:50:12] atmosx: twist and shouut
[23:50:15] atmosx: adaedra: nooooo
[23:50:22] benlieb: i am a guitar player
[23:50:29] benlieb: so I???ll go play a good lick
[23:50:32] atmosx: benlieb: that says a lot about you
[23:50:35] benlieb: to make me happy again
[23:50:50] adaedra: atmosx: that's what people do after midnight :/
[23:50:56] atmosx: I left my headphone in the office and can't get into proper mod
[23:51:14] atmosx: adaedra: true, I was kidding. I would go too, but I'm close to fixing a bug and I'm kinda excited so
[23:51:29] atmosx: sweet dreams!
[23:52:19] Vertroa: has joined #ruby
[23:52:37] choke: has joined #ruby
[23:53:50] nettoweb: has joined #ruby
[23:54:09] edwinvdgraaf: has joined #ruby
[23:54:22] chipotle: has joined #ruby
[23:55:48] dlitvak: has joined #ruby
[23:56:17] Vertroa: has joined #ruby
[23:56:45] charliesome: has joined #ruby
[23:57:19] choke_: has joined #ruby