« Back to channel list

#ruby - 01 September 2015

« Back 1 day Forward 1 day »
[00:00:00] havenwood: _rukh: There are folks from many backgrounds here.
[00:00:17] havenwood: _rukh: Ruby appeals to a variety of programmers.
[00:00:35] _rukh: so I've seen
[00:01:05] _rukh: I'll find this offtopic room now
[00:01:39] ledestin: has joined #ruby
[00:01:47] havenwood: _rukh: yeah, for non-Ruby stuff or general discussions about other languages (or hangman) the #ruby-offtopic channel is a good place.
[00:02:13] Contigi: has joined #ruby
[00:02:55] _rukh: okay, I'll be there from now on
[00:03:00] _rukh: has left #ruby: ()
[00:03:07] jesseherrick: has joined #ruby
[00:03:31] _rukh: has joined #ruby
[00:04:29] Nawn: has joined #ruby
[00:05:48] Nawn: has joined #ruby
[00:07:08] jgpawletko: has joined #ruby
[00:07:11] Ox0dea: has joined #ruby
[00:08:47] radgeRayden: has joined #ruby
[00:09:07] kies: has joined #ruby
[00:09:11] Ox0dea: shevy: Your wonky results are probably to do with the sleep being too fine; changing the coefficient to something greater than 0.01 would probably help.
[00:09:12] bootstrappm: has left #ruby: ()
[00:09:51] Ox0dea: BraddPitt: The original implementation is so clean: http://i.imgur.com/akGoWS5.png
[00:09:58] Nawn: Hey guys, I'm trying to keep my code 'DRY'. It works, but I don't know if I can make it even smaller. anyone willing to take a look?
[00:10:11] al2o3-cr: or using a mutex
[00:10:11] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[00:10:13] ruboto: Just ask your question, if anyone has or can, they will respond.
[00:10:28] havenwood: Nawn: Yeah, do you have a link to a Gist of your code?
[00:10:47] havenwood: Nawn: gist.github.com
[00:10:48] Nawn: https://gist.github.com/Nawn/80f38f93c12f3e8016dd :)
[00:10:49] al2o3-cr: ACTION smells a rat
[00:11:06] Nawn: Just a learning project :)
[00:11:08] rehat: has joined #ruby
[00:11:12] BraddPitt: doesn the bash sleep use secons as a default unit?
[00:11:41] havenwood: Nawn: The Ruby convention is to use snake_case rather than headlessCamelCase for local variables and methods.
[00:11:45] Ox0dea: BraddPitt: Yes, but Sleepsort isn't intended to be used in earnest.
[00:11:53] havenwood: Nawn: Actually there're no headlessSnakes in Ruby at all.
[00:11:55] Ox0dea: Nawn: Erm, haven't we already helped you with this one?
[00:12:10] Nawn: Yeah :) It was shevy.
[00:12:30] Nawn: but it wasn't this code :) it was another project.
[00:12:43] Nawn: The previous project was to continually ask for numbers and then do an operation on it.
[00:12:55] Ox0dea: Nawn: Ah, that's right.
[00:13:09] Ox0dea: Did you manage to wrap your head around my proposed solution, then? :P
[00:13:57] Nawn: Yeah :) and I made sure to not repeat myself on this project, but I am just hoping you guys can catch any mistakes? :)
[00:13:59] havenwood: Nawn: Use two-space soft tabs instead of hard tabs. You can usually set that in your text editor.
[00:14:02] Nawn: I don't know, what I don't know, right?
[00:14:08] ellisTAA: when i run this program the ouput ocasionally puts out a number greater than 10???. like 45. any ideas on why it does that? https://gist.github.com/ellismarte/cc7c0a8896387c385fbe#file-threads-rb-L5
[00:14:27] Ox0dea: EllisTAA: You're seeing a 4 and a 5 squished together.
[00:14:34] ellisTAA: Ox0dea: lol
[00:14:37] ellisTAA: Ox0dea: thanks
[00:14:39] Ox0dea: Sure thing.
[00:14:54] havenwood: EllisTAA: Try: "#{rand(10)}\n"
[00:15:03] ellisTAA: havenwood: will do
[00:15:20] Ox0dea: Alternatively, explicitly flush after printing.
[00:15:25] havenwood: EllisTAA: The implicit newline can get separated from the rest of the String but an explicit one wont.
[00:15:44] Ox0dea: Is that a certainty?
[00:15:46] ellisTAA: yeah that worked
[00:15:54] Nawn: havenwood: is there anyway to not repeat myself with byeCount = 0?
[00:16:00] havenwood: Nawn: bye_count
[00:16:04] nofxx: havenwood, that's nice to know
[00:16:18] havenwood: Ox0dea: Aye, one call.
[00:16:20] Nawn: :P Sorry. but is there?
[00:16:45] nofxx: EllisTAA, you got the 'why' right? a tip: array.times do
[00:17:04] nofxx: don't use while, loop, until ...avoid
[00:17:26] ellisTAA: nofxx: why not
[00:17:41] havenwood: Nawn: An idiomatic way to do something twice is: 2.times do
[00:18:04] nofxx: EllisTAA, you don't need the counter, just to start
[00:18:17] havenwood: Guess I should actually look at what it's doing.
[00:18:23] nofxx: and of course it's beautiful, instead of that ugly thing
[00:18:36] ellisTAA: nofxx: oh yeah i was just messing around, thanks though haha
[00:18:42] Nawn: havenwood: https://pine.fm/LearnToProgram/chap_06.html
[00:18:49] vF3hNGxc47h8: has joined #ruby
[00:18:52] Nawn: I'm improving the Deaf Grandma project all the way at the bottom
[00:19:21] Nawn: The code works, but I notice that i used byeCount(yes, I know it's bye_count, lol) = 0, on 2 different lines
[00:19:34] _rukh: hey Nawn have you looked at Chris Pine's newer version of that tutorial
[00:19:45] NeverDie: has joined #ruby
[00:19:50] Nawn: _rukh: no :O i'm just following http://theodinproject.com/
[00:19:55] CloCkWeRX: has joined #ruby
[00:19:59] CloCkWeRX: has left #ruby: ()
[00:20:05] havenwood: Newer version is a really good idea!
[00:20:08] _rukh: oh I was also planning on starting that, I actually finished Chris Pine's book a few weeks ago
[00:20:20] _rukh: as much as I could of it at least
[00:20:24] nofxx: EllisTAA, your code in one line: thrs = Array.new(20).map { Thread.new {1234567.times {puts rand(10)}} }
[00:20:40] ellisTAA: nofxx: thanks i appreciate it
[00:20:43] Nawn: :P Yeah, So I'm making sure to do all of the "Extra Resources" and projects. Make sure i have all my bases covered :)
[00:20:53] Ox0dea: nofxx: 20.times > Array.new(20)
[00:21:18] ecnalyr: has joined #ruby
[00:21:37] freerobby: has joined #ruby
[00:21:49] nofxx: Ox0dea, hum?
[00:21:58] ebbflowgo_: has joined #ruby
[00:22:37] ecnalyr: has joined #ruby
[00:23:42] ellisTAA: im going to try to write to a file using threads, do you think this could cause problems, or is ruby set up for this?
[00:23:54] baweaver: ACTION grabs popcorn
[00:24:03] nofxx: > 20.times.map { nil }.size
[00:24:03] baweaver: I wouldn't if I were you
[00:24:13] nofxx: what's the run again?
[00:24:17] northfurr: has joined #ruby
[00:24:21] ruboto: baweaver # => "this" (https://eval.in/425604)
[00:24:27] nofxx: >> 20.times.map { nil }.size
[00:24:28] ruboto: nofxx # => 20 (https://eval.in/425605)
[00:24:36] nofxx: anyways, same for Array.new(20).size
[00:24:43] nofxx: baweaver, ty
[00:25:07] stardiviner: has joined #ruby
[00:25:14] baweaver: well, if you want a good lesson on why Mutex is a thing and threads can be more fun than they appear go for it.
[00:25:21] Ox0dea: >> require 'objspace'; [ObjectSpace.memsize_of(20.times), ObjectSpace.memsize_of(Array.new 20)] # nofxx
[00:25:22] ruboto: Ox0dea # => [60, 100] (https://eval.in/425606)
[00:25:46] baweaver: Got us a REPL throwdown
[00:25:47] Nawn: havenwood: Any suggestions? Or is that as 'DRY' as I can make it? :)
[00:25:50] nofxx: EllisTAA, depict the problem, not how you're solving it
[00:26:13] nofxx: Ox0dea, hey that's nice
[00:26:20] dstarh: has joined #ruby
[00:26:34] Ox0dea: nofxx: It avoids the explicit creation of a throwaway Array, if nothing else.
[00:26:49] benlovell: has joined #ruby
[00:27:16] Ox0dea: Nawn: This is a pretty imperative task, so there's not a lot of room for cleanup. You could use weird tricks to make it shorter, but they wouldn't be improvements.
[00:28:13] Nawn: :P Okay, but overall it's okay, right? :) I had it repeating the :(puts "HUH!? SPEAK UP, SONNY!") code like on 3 different lines, but i cleaned that up. :) Just making sure I didn't miss anything
[00:28:23] devoldmx: has joined #ruby
[00:28:33] Nawn: Practice does not make perfect! D: Perfect practice, makes perfect ;)
[00:28:58] bruno-: has joined #ruby
[00:29:38] havenwood: Nawn: As you proceed you might also enjoy feedback from Exercism exercises: http://exercism.io
[00:29:48] havenwood: Nawn: And do ask here! :D
[00:30:44] Nawn: havenwood & Ox0ea thanks :)
[00:31:15] northfurr: has joined #ruby
[00:31:47] Ox0dea: Nawn: Happy to help.
[00:31:55] Ox0dea: You would do well to ignore pretty much every change I made: https://gist.github.com/0x0dea/362a64f9c22c701759a2
[00:32:44] Ox0dea: Well, no, rand with a Range is good.
[00:32:57] keen___________9: has joined #ruby
[00:33:51] Oog: has joined #ruby
[00:34:59] northfurr: has joined #ruby
[00:35:17] Swappticon: has joined #ruby
[00:37:31] Nawn: What other convention errors did I make? I'm used to C#. >_<
[00:39:19] Nawn: Laptop dying. Thanks, you guys are great. Cya around!
[00:39:54] Oog: has joined #ruby
[00:42:06] DoubleAC: has joined #ruby
[00:43:51] arescorpio: has joined #ruby
[00:45:23] iateadonut: has joined #ruby
[00:46:51] Ox0dea: has joined #ruby
[00:48:00] michael_mbp: has joined #ruby
[00:49:37] rickmasta: has joined #ruby
[00:50:46] messysaurus: has joined #ruby
[00:51:46] roxtrongo: has joined #ruby
[00:51:49] barhum2013: has joined #ruby
[00:54:44] christiandsg: has joined #ruby
[00:55:46] Ox0dea: has joined #ruby
[00:56:18] swgillespie: has joined #ruby
[00:56:23] bmurt: has joined #ruby
[00:56:32] dstarh: has joined #ruby
[00:57:17] sevenseacat: has joined #ruby
[00:58:58] meatherly: has joined #ruby
[00:59:03] bronson: has joined #ruby
[00:59:31] d10n-work: has joined #ruby
[01:02:36] baweaver: has joined #ruby
[01:05:16] rmoriz: has joined #ruby
[01:07:09] Scripore: has joined #ruby
[01:08:06] SenpaiSilver: has joined #ruby
[01:13:08] minimuffins: has joined #ruby
[01:13:24] podman: has joined #ruby
[01:17:07] NullVoxPopuli: has joined #ruby
[01:17:24] NullVoxPopuli: has left #ruby: ("Leaving")
[01:23:45] unreal_: has joined #ruby
[01:23:47] pyon: has joined #ruby
[01:26:15] pocketprotector: has joined #ruby
[01:27:53] rht: has joined #ruby
[01:28:22] ruby-lang115: has joined #ruby
[01:29:09] devoldmx: has joined #ruby
[01:29:28] majjoha: has joined #ruby
[01:31:15] paulcsmith: has joined #ruby
[01:33:17] freerobby: has joined #ruby
[01:34:03] sargas: has joined #ruby
[01:34:58] bronson: has joined #ruby
[01:36:52] luckyme: has joined #ruby
[01:41:18] neanderslob: has joined #ruby
[01:42:06] bronson: has joined #ruby
[01:42:07] choke: has joined #ruby
[01:43:23] wldcordeiro__: has joined #ruby
[01:43:31] charliesome: has joined #ruby
[01:43:58] Yzguy: has joined #ruby
[01:45:16] sdfgsdfg: has joined #ruby
[01:47:30] tkuchiki: has joined #ruby
[01:49:09] tubuliferous: has joined #ruby
[01:51:26] meatherly: has joined #ruby
[01:51:28] Yzguy: has joined #ruby
[01:51:31] ekinmur: has joined #ruby
[01:51:40] choke: has joined #ruby
[01:51:50] s00pcan: has joined #ruby
[01:51:56] ebbflowgo: has joined #ruby
[01:53:17] nettoweb: has joined #ruby
[01:53:29] dstarh: has joined #ruby
[01:53:32] juanpablo_: has joined #ruby
[01:54:01] houhoulis: has joined #ruby
[01:54:08] ekinmur: has joined #ruby
[01:54:37] theery: has joined #ruby
[01:55:30] chipotle_: has joined #ruby
[01:56:22] ekinmur: has joined #ruby
[01:57:38] shortdudey123: has joined #ruby
[01:57:46] freerobby: has joined #ruby
[01:58:02] neanderslob: has joined #ruby
[01:58:02] luksaur: has joined #ruby
[01:58:21] meph: has joined #ruby
[01:59:44] ekinmur: has joined #ruby
[02:00:04] miah: -\win 12
[02:01:33] bigredboots: has joined #ruby
[02:02:14] rbennacer: has joined #ruby
[02:02:23] ekinmur: has joined #ruby
[02:02:44] jenrzzz: has joined #ruby
[02:03:57] bigredboots: has joined #ruby
[02:05:18] ekinmur: has joined #ruby
[02:06:38] theery: has joined #ruby
[02:07:25] roshanavand: has joined #ruby
[02:07:40] wldcordeiro__: has joined #ruby
[02:08:08] ekinmur: has joined #ruby
[02:09:49] Gaelan: has joined #ruby
[02:10:38] charliesome: has joined #ruby
[02:10:53] ekinmur: has joined #ruby
[02:12:14] wldcordeiro__: has joined #ruby
[02:12:47] Coldblackice_: has joined #ruby
[02:13:42] ekinmur: has joined #ruby
[02:14:29] DoubleAC: has left #ruby: ()
[02:14:32] benlovell: has joined #ruby
[02:14:39] dfinninger: has joined #ruby
[02:15:32] Tempesta: has joined #ruby
[02:16:09] ekinmur: has joined #ruby
[02:17:13] tmtwd: has joined #ruby
[02:18:23] christiandsg: has joined #ruby
[02:18:56] ekinmur: has joined #ruby
[02:19:55] bazbing80: has joined #ruby
[02:20:26] charliesome: has joined #ruby
[02:21:44] ekinmur: has joined #ruby
[02:23:21] zenspider: deaf grandma... the meme that'll never die
[02:24:28] ekinmur: has joined #ruby
[02:25:15] Rubie: has joined #ruby
[02:26:27] gambl0re: has joined #ruby
[02:27:12] ekinmur: has joined #ruby
[02:27:13] roxtrongo: has joined #ruby
[02:29:01] shortythepimp: has joined #ruby
[02:29:43] bruno-: has joined #ruby
[02:30:14] christiandsg: has joined #ruby
[02:32:09] siaW: has joined #ruby
[02:32:57] Evanescence: has joined #ruby
[02:33:46] Queeniebee: has joined #ruby
[02:33:50] atomical: has joined #ruby
[02:34:42] _djbkd: has joined #ruby
[02:37:52] NeverDie: has joined #ruby
[02:39:23] minimuffins: has joined #ruby
[02:39:24] quazimodo: has joined #ruby
[02:39:29] majjoha: has joined #ruby
[02:40:14] quazimodo: guys, why does BigDecimal(0.76, 7).to_f => 0.076 but BigDecimal(0.76, 8).to_f => 0.075999999
[02:40:19] quazimodo: i thought BigDecial preserves
[02:40:28] christiandsg: has joined #ruby
[02:41:35] NeverDie: has joined #ruby
[02:41:55] quazimodo: i expected 0.7600000 ...
[02:44:44] choke: has joined #ruby
[02:46:57] charliesome: has joined #ruby
[02:47:10] davedev24: has joined #ruby
[02:47:46] bronson: has joined #ruby
[02:49:17] Averna: has joined #ruby
[02:51:35] wldcordeiro__: has joined #ruby
[02:54:12] juanpablo_: has joined #ruby
[02:55:03] dgutierrez1287: has joined #ruby
[02:55:38] dfinninger: has joined #ruby
[02:55:42] kljds: has joined #ruby
[02:56:15] wldcordeiro__: has joined #ruby
[02:56:59] rbennacer: has joined #ruby
[02:57:15] theery: has joined #ruby
[02:59:02] Ox0dea: quazimodo: Try passing in "0.76" as a String.
[02:59:05] havenwood: >> require 'bigdecimal'; BigDecimal('0.76', 7).to_f
[02:59:07] ruboto: havenwood # => 0.76 (https://eval.in/425637)
[02:59:07] baweaver: has joined #ruby
[02:59:12] havenwood: Ox0dea: Success!
[02:59:24] ruby-lang593: has joined #ruby
[02:59:58] bmurt: has joined #ruby
[03:00:26] Ox0dea: >> require 'bigdecimal'; [(BigDecimal(1.0, 200) rescue $!), BigDecimal.new('1.0', 200)]
[03:00:27] ruboto: Ox0dea # => [#<ArgumentError: precision too large.>, #<BigDecimal:418ca2d0,'0.1E1',9(207)>] (https://eval.in/425645)
[03:00:29] Ox0dea: Also that.
[03:00:43] wldcordeiro__: has joined #ruby
[03:00:57] gener1c: has joined #ruby
[03:01:00] Nawn: has joined #ruby
[03:01:10] nettoweb: has joined #ruby
[03:01:26] havenwood: quazimodo: Floats are funky.
[03:01:30] chipotle: has joined #ruby
[03:02:17] sdothum: has joined #ruby
[03:02:47] havenwood: quazimodo: Or compare with a Rational: BigDecimal(0.76r, 7)
[03:03:26] Rubie: has joined #ruby
[03:03:26] nettoweb: has joined #ruby
[03:05:26] Moonlightning: has joined #ruby
[03:05:47] Moonlightning: How does `gem` ensure the authenticity of downloaded gems?
[03:06:48] cscheib: by default it doesn't
[03:06:48] kidmillions: has joined #ruby
[03:06:51] havenwood: Moonlightning: Gems can be signed but in practice they aren't.
[03:07:03] cscheib: http://guides.rubygems.org/security/
[03:07:07] cnngimenez: has joined #ruby
[03:08:53] Ox0dea: Moonlightning: For clarity, did you mean authenticity or consistency?
[03:08:55] havenwood: Moonlightning: There has been some work on implementing TUF for RubyGems but last I checked it's incomplete and hasn't been merged.
[03:09:03] havenwood: http://theupdateframework.com
[03:09:48] havenwood: That would be a good thing to pay someone to complete. ;)
[03:09:57] Moonlightning: Ox0dea: authenticity???i.e. /these data are the ones published by the author; they have not been modified or tampered with/
[03:10:00] SilentEcho: has joined #ruby
[03:10:18] jesterfraud: has joined #ruby
[03:10:38] Ox0dea: Moonlightning: In that case, you did mean consistency, in which case a simple checksum should suffice.
[03:11:07] dopamean_: has joined #ruby
[03:11:45] braincrash: has joined #ruby
[03:12:42] Moonlightning: Ox0dea: probably not. It would have to be a cryptographic hash, not a simple checksum, and the hash would have to have been signed by the author (or at least served by the gem servers, over TLS).
[03:12:46] kies: has joined #ruby
[03:15:20] xcesariox: has joined #ruby
[03:16:18] jenrzzz: has joined #ruby
[03:17:05] cgfbee: has joined #ruby
[03:17:29] cfloare: has joined #ruby
[03:17:51] xcesariox: has joined #ruby
[03:19:04] craysiii: has joined #ruby
[03:19:46] havenwood: Moonlightning: To verify the latest Rails gem for example: ruby -rrubygems/package -e "p Gem::Package.new('rails-4.2.4.gem').verify"
[03:19:49] prestorium: has joined #ruby
[03:20:10] havenwood: Moonlightning: ^ if you wanted to manually check the checksum
[03:20:53] allcentury: has joined #ruby
[03:20:53] lampshades: has joined #ruby
[03:21:20] Moonlightning: Thanks, havenwood
[03:21:23] mistermocha: has joined #ruby
[03:23:06] ecnalyr: has joined #ruby
[03:23:12] volsus: has joined #ruby
[03:24:17] dfinninger: has joined #ruby
[03:27:19] bigredboots: has joined #ruby
[03:27:33] hawkface: has joined #ruby
[03:27:38] dseitz: has joined #ruby
[03:27:41] towski__: has joined #ruby
[03:27:42] evserykh: has joined #ruby
[03:29:19] rickmasta: has joined #ruby
[03:29:55] devoldmx: has joined #ruby
[03:30:27] bodgix: has joined #ruby
[03:31:22] allcentury: has joined #ruby
[03:31:43] quazimodo: havenwood: hrm i don't get it still
[03:32:12] evserykh: has left #ruby: ()
[03:32:43] evserykh: has joined #ruby
[03:32:49] quazimodo: >> require 'bigdecimal'; BigDecimal('0.76', 8).to_f
[03:32:50] ruboto: quazimodo # => 0.76 (https://eval.in/425651)
[03:32:57] quazimodo: >> require 'bigdecimal'; BigDecimal(0.76, 8).to_f
[03:32:58] ruboto: quazimodo # => 0.76 (https://eval.in/425653)
[03:33:09] quazimodo: >> require 'bigdecimal'; BigDecimal(0.076, 8).to_f
[03:33:10] ruboto: quazimodo # => 0.075999999 (https://eval.in/425654)
[03:33:13] quazimodo: there you go
[03:33:16] quazimodo: >> require 'bigdecimal'; BigDecimal('0.076', 8).to_f
[03:33:18] ruboto: quazimodo # => 0.076 (https://eval.in/425656)
[03:33:26] scottymeuk: has joined #ruby
[03:33:26] jaequery: has joined #ruby
[03:33:41] quazimodo: BigDecimal(0.076)
[03:37:19] quazimodo: surely this is buggy?
[03:38:42] sevenseacat: you're creating a BigDecimal from an imprecise float
[03:38:55] sevenseacat: it cant just magically fix its precision
[03:40:18] RobertBirnie: has joined #ruby
[03:40:49] baweaver: http://floating-point-gui.de/formats/fp/
[03:40:59] gix: has joined #ruby
[03:43:18] arielpp: has joined #ruby
[03:43:29] chinmay_dd: has joined #ruby
[03:44:23] arielpp: has left #ruby: ()
[03:47:37] baweaver: has joined #ruby
[03:48:32] crdpink2: has joined #ruby
[03:48:35] Ox0dea: has joined #ruby
[03:49:04] GnuYawk: has joined #ruby
[03:53:05] kies: has joined #ruby
[03:56:08] lampshades: has joined #ruby
[03:56:23] roadt: has joined #ruby
[03:56:33] auzty: has joined #ruby
[03:56:55] pietr0: has joined #ruby
[03:57:28] NeverDie: has joined #ruby
[03:57:50] meatherly: has joined #ruby
[03:59:27] t0rrieri: has joined #ruby
[04:00:30] quazimodo: if you 0.076.to_d it's fine, so then i've made a mistake somewhere along the way
[04:00:37] quazimodo: I need to see how to_d works it out
[04:01:23] messysaurus: has joined #ruby
[04:02:03] coffeejunk: has joined #ruby
[04:02:26] Flipez: has joined #ruby
[04:02:45] Moonlightning: ???to be clear. `gem` doesn't insist on using HTTPS, does it?
[04:03:47] ekleog_: has left #ruby: ()
[04:03:58] ekleog: has joined #ruby
[04:05:36] prestorium: has joined #ruby
[04:10:13] majjoha: has joined #ruby
[04:10:48] Ox0dea: Moonlightning: You can change the default source from "https://rubygems.org", yes.
[04:11:26] Moonlightning: Ox0dea: by default, does it fall back to insecure HTTP, though?
[04:11:37] Ox0dea: No, you'll get a certificate error.
[04:12:56] Moonlightning: okay, I'll take it. thanks.
[04:15:42] jaequery: has joined #ruby
[04:17:53] pietr0_: has joined #ruby
[04:18:24] kies: has joined #ruby
[04:20:15] NeverDie: has joined #ruby
[04:20:53] djbkd: has joined #ruby
[04:21:13] darkf: has joined #ruby
[04:23:49] khebbie: has joined #ruby
[04:24:49] chipotle: has joined #ruby
[04:27:40] yfeldblum: has joined #ruby
[04:27:56] roxtrongo: has joined #ruby
[04:28:54] marjory: has joined #ruby
[04:30:26] bruno-: has joined #ruby
[04:31:14] Moonlightning: So it seems that Past Moonlightning from several years ago installed a bunch of gems using `sudo gem` >.>
[04:31:18] Swappticon: has joined #ruby
[04:31:32] Moonlightning: How do I just toss out???/everything/, basically, and start from scratch?
[04:31:50] skade: has joined #ruby
[04:32:05] chinmay_dd: has joined #ruby
[04:32:09] jackjackdripper: has joined #ruby
[04:33:32] Oog: has joined #ruby
[04:34:04] Moonlightning: also, /should/ I be using something like rvm?
[04:34:04] Radar: Moonlightning: Depends on how Ruby was installed in the first place.
[04:34:09] Radar: Moonlightning: What OS?
[04:34:09] Moonlightning: I'm not developing or anything
[04:35:06] Radar: Moonlightning: Ok, that's fine then. You can follow this guide and it'll install a new Ruby for you: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
[04:35:21] Radar: Moonlightning: I suggest using Ruby 2.2.3 instead of the 2.2.2 which is mentioned in the guide. That's because 2.2.3 is the latest now.
[04:36:07] Moonlightning: Radar: even though I'm not doing development?
[04:36:19] sevenseacat: what are you installing ruby and gems for then?
[04:36:21] Radar: Moonlightning: You're... using Ruby but not doing development?
[04:36:51] Moonlightning: sevenseacat, Radar: because??? http://supmua.org is a gem? :?
[04:37:25] devoldmx: has joined #ruby
[04:37:40] devoldmx: has joined #ruby
[04:38:32] Skelz0r: has joined #ruby
[04:39:31] ekleog: has joined #ruby
[04:41:28] tmtwd: has joined #ruby
[04:42:14] Moonlightning: Honestly, the only reason I'm even here is because Homebrew doesn't do gems et al like most package managers do >.>
[04:42:57] juanpablo_: has joined #ruby
[04:43:08] sevenseacat: which is a good thing
[04:43:56] sevenseacat: if you're not actually interested in using ruby, then I would just use the ruby that comes pre-installed on your OSX
[04:43:58] Moonlightning: Yeah. I get to deal with half a dozen different package managers. 9.9
[04:44:14] sevenseacat: and then gem install sup
[04:44:25] Zarthus: has joined #ruby
[04:44:46] Oog: has joined #ruby
[04:44:54] majjoha: has joined #ruby
[04:45:23] cscheib: using a package manager that didn't understand and resolve ruby dependencies would be a nightmare
[04:45:33] cscheib: gem + bundler ftw
[04:45:37] mhenrixon: has joined #ruby
[04:45:40] cscheib: (and in my case, puppet)
[04:45:48] Moonlightning: > You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
[04:45:55] Moonlightning: Hence my asking about redoing the gem system here.
[04:45:56] sevenseacat: then you'll need sudo
[04:46:55] NeverDie: has joined #ruby
[04:47:09] cscheib: for i in `gem list | cut -f1 -d' '`; do sudo gem uninstall $i; done; <--- rough answer to your first(ish) question... test it first, that's off the top of my head
[04:47:48] bronson: has joined #ruby
[04:48:15] Moonlightning: I thought `sudo gem` was a bad idea?
[04:48:33] cscheib: you're uninstalling the gems you installed with sudo
[04:48:37] cscheib: it's allowerd
[04:49:14] renodice: has joined #ruby
[04:49:17] sevenseacat: it is, for development
[04:49:37] pawnbox: has joined #ruby
[04:50:16] baweaver: chances are high if you aren't a sysadmin you should not touch sudo on a server
[04:50:23] baweaver: and even then only with great care
[04:50:38] Ox0dea: baweaver: How about `machinectl shell`?
[04:50:47] swgillespie: has joined #ruby
[04:51:02] baweaver: Unix is not built for safety, it's built to deliver Mr Bullet to Mr Foot in the most efficient way possible
[04:51:10] bricker: has joined #ruby
[04:51:33] baweaver: there are exceptions, but that's why I said chances are high
[04:52:33] Moonlightning: sevenseacat: why for development but not otherwise?
[04:52:45] jdawgaz: has joined #ruby
[04:53:16] Radar: Moonlightning: Follow this post and you'll be alright: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
[04:53:25] sevenseacat: because you're not worrying about setting up a configurable and manageable development environment... are you?
[04:53:33] Radar: No need to install Rails, MySQL or PostgreSQL
[04:53:39] jpfuentes2: has joined #ruby
[04:53:41] Radar: It'll fix your permissions issue
[04:53:44] astrobun_: has joined #ruby
[04:53:56] sevenseacat: ACTION shrugs and goes back to partying over here -->
[04:54:03] NeverDie: has joined #ruby
[04:55:35] UtkarshRay: has joined #ruby
[04:55:36] jenrzzz: has joined #ruby
[04:56:04] jdawgaz: has joined #ruby
[04:56:09] towski_: has joined #ruby
[04:56:15] grenierm: has joined #ruby
[04:58:23] pawnbox: has joined #ruby
[04:59:53] jackjackdripper: has joined #ruby
[05:00:50] cnngimenez: has joined #ruby
[05:01:46] Scripore: has joined #ruby
[05:04:21] NeverDie: has joined #ruby
[05:05:16] ramadoka: has joined #ruby
[05:05:30] ytti: has joined #ruby
[05:05:55] ramadoka: has joined #ruby
[05:07:22] Moonlightning: Bleh. So it turns out that Sup doesn't support Ruby 2.
[05:07:30] Moonlightning: So I have to install 1.9 or something and use that
[05:07:35] Radar: ruby-install ruby 1.9
[05:09:30] Moonlightning: Radar: I don't have a ruby-install
[05:09:38] Radar: [14:53:15] <Radar> Moonlightning: Follow this post and you'll be alright: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
[05:09:41] Radar: 3rd time lucky?
[05:09:46] riotjones: has joined #ruby
[05:10:04] sevenseacat: well ruby 1.9 is past end of life so.... tbh I wouldnt trust ut
[05:11:37] ecnalyr: has joined #ruby
[05:11:37] allcentury: has joined #ruby
[05:11:42] luckyme: has joined #ruby
[05:11:44] cscheib: ruby-install is in homebrew, couldn't be easier to add it to your system
[05:12:11] havenwood: brew install ruby-install --HEAD
[05:12:55] lycanmaster: has joined #ruby
[05:13:02] cscheib: chruby is also in homebrew
[05:14:02] Moonlightning: ???actually, I better go ask #sup about this.
[05:14:16] Moonlightning: ACTION actually looked at the date on the post saying Sup didn't support 2.0. It's more than two years old.
[05:14:40] Ox0dea: Moonlightning: What's wrong with mutt?
[05:14:52] Moonlightning: Ox0dea: the way it handles multiple accounts.
[05:14:55] Moonlightning: Or doesn't, rather.
[05:14:58] lycanmaster: has left #ruby: ()
[05:15:07] ruurd: has joined #ruby
[05:16:11] quazimodo: has joined #ruby
[05:16:38] Gnomethrower: has joined #ruby
[05:16:38] Gnomethrower: has joined #ruby
[05:16:54] AlexAltea: has joined #ruby
[05:16:57] Ox0dea: Moonlightning: You don't like having to explicitly unset impertinent variables, or?
[05:18:47] Moonlightning: Ox0dea: I never could figure out how to get it to keep different folder hierarchies for different accounts
[05:18:53] dhjondoh: has joined #ruby
[05:19:02] khebbie: has joined #ruby
[05:19:29] cscheib: send a note in to Linux Journal, Kyle Rankin there is a mutt enthusiast. I'm sure he's got a neat multi-account setup
[05:20:26] Moonlightning: No thanks. x.x
[05:20:34] thomas: has joined #ruby
[05:22:03] dgutierrez1287: has joined #ruby
[05:22:11] kidmillions: has joined #ruby
[05:22:12] grenierm_: has joined #ruby
[05:22:55] grenierm_: has left #ruby: ()
[05:24:33] kies: has joined #ruby
[05:25:04] pawnbox: has joined #ruby
[05:25:21] Tempesta: has joined #ruby
[05:27:20] bluOxigen: has joined #ruby
[05:27:44] skade: has joined #ruby
[05:27:57] Radar: How do I prevent guard from stopping when it encounters an exception? I keep getting "15:27:19 - INFO - Guard::Nanoc has just been fired" and I have to restart guard before it will continue compiling.
[05:28:07] lampshades: has joined #ruby
[05:29:25] bigredboots: has joined #ruby
[05:29:48] chinmay_dd: has joined #ruby
[05:32:54] lampshades: has joined #ruby
[05:35:41] xet7_: has joined #ruby
[05:36:08] aganov: has joined #ruby
[05:36:31] luksaur: has joined #ruby
[05:37:12] lampshades: has joined #ruby
[05:37:35] techsethi: has joined #ruby
[05:38:18] lampshades: has joined #ruby
[05:39:08] benlieb: has joined #ruby
[05:39:34] rushed: has joined #ruby
[05:42:34] jordanloky: has joined #ruby
[05:42:36] tagrudev: has joined #ruby
[05:45:02] acosonic: has joined #ruby
[05:45:07] acosonic: http://www.quora.com/Is-Ruby-dying
[05:45:26] chenillen: has joined #ruby
[05:46:10] bruno-: has joined #ruby
[05:46:12] pawnbox: has joined #ruby
[05:47:26] baweaver: old question is old
[05:47:32] baweaver: TL;DR - lol, no
[05:48:02] acosonic: shouldn't there be something like node.js but for ruby like node.rb ? :)
[05:48:24] Radar: Why do you think so?
[05:48:53] last_staff: has joined #ruby
[05:49:10] acosonic: I've been reading that quora thread and I'm afraid of delphi destiny, I was a big fan od delphi...
[05:49:23] shevy: it's not just an old question, it's where you have n different answers that don't really provide a lot of insight into any real answer. "Today's cool kids are pushing on into Functional Programming languages like Haskell, Erlang and Clojure."
[05:49:40] baweaver: languages don't ever really die
[05:49:45] baweaver: see: COBOL, RPG
[05:50:05] baweaver: Where there's a line of production code, there's a way.
[05:50:33] Radar: acosonic: If anything, now is the time for new people to be getting into Ruby.
[05:50:41] Radar: There is a huge uptick in the amount of people using it and we're crying out for new developers.
[05:50:42] shevy: yeah they don't really die, but they can stagnate or lose out on new people adopting the language
[05:51:00] Radar: At the meetup in Melbourne, we have 120 people attend. 15 of those people got up to say that their companies were hiring.
[05:51:18] Radar: I _constantly_ get asked if I am looking for more work.
[05:51:25] baweaver: People keep stealing the good ruby people before we can get them :/
[05:51:41] shevy: Radar are you looking for more work? :)
[05:51:46] baweaver: and that's in SF, the tech capital
[05:51:53] baweaver: already tried shevy ;)
[05:51:58] Radar: shevy: hells to the no
[05:52:36] ereslibre: has joined #ruby
[05:52:45] RobertBirnie: has joined #ruby
[05:53:06] acosonic: Radar: what kind of projects do you need developers for?
[05:53:16] Radar: acosonic: https://bikeexchange.com.au
[05:53:28] Radar: acosonic: Marketplace for bikes and bike accessories.
[05:53:39] Radar: ACTION realises only now how much that sounds like "propane and propane accessories"
[05:54:07] baweaver: http://zam.zamimg.com/images/2/a/2aaa61aac9f76cfdf5bcdb3ccf3a7238.jpg
[05:54:19] acosonic: Radar: well that's just one project, I tought you were reffering to something related to success of Ruby as a platform
[05:54:46] tkuchiki: has joined #ruby
[05:54:46] sevenseacat: ruby is already successful as a platform
[05:54:49] Radar: acosonic: realestate.com.au is hiring a boatload of developers, as is redbubble and envato.
[05:55:05] baweaver: and Apple and Sony and Amazon and....
[05:55:09] Radar: Ruby is not dying.
[05:55:41] cscheib: even if you don't want to exclusively dev, everyone is either looking for ruby or python (or both) for sysadmin/devops/whatever-you-wanna-call it positions
[05:55:48] acosonic: Nah I run my own company, just want to see what are long-term plans to conquer digital world and take a peace of marketplace from PHP or Node.js
[05:56:25] Radar: troll detected
[05:56:29] sevenseacat: that doesnt even make sense
[05:56:32] shevy: acosonic is github no success to you
[05:56:53] baweaver: ACTION readies lazerz
[05:57:02] shevy: that dam lazerz
[05:57:09] shevy: well defended beaver home
[05:57:50] pepperbreath1: has left #ruby: ()
[05:58:08] Radar: wood you guys please stop it with the puns
[05:58:15] Radar: oh no I'm about to get ?guys
[05:58:17] Radar: I am sorry :(
[05:58:21] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[05:58:26] Radar: ACTION dies
[05:58:31] baweaver: first legit in a while
[05:58:31] sevenseacat: you should know better
[05:58:41] sevenseacat: ACTION is mortally offended
[05:58:45] Radar: ACTION should, but doesn't.
[05:58:52] baweaver: though me and shevy are male, so....
[05:59:00] shevy: baweaver time for aussie jokes!
[05:59:14] riotjones: has joined #ruby
[05:59:20] shevy: ok, I can't come up with anything creative myself :(
[05:59:20] baweaver: They're aussies, that's already enough of a joke :P
[05:59:22] ferhaty: has joined #ruby
[05:59:29] jesterfraud: on a tenuously related note ??? I've seen a few writers always assuming females in writing... is there some kind of movement I missed there?
[05:59:36] Radar: acosonic: What do you mean to take a piece of marketplace from PHP or Node.js? Do you intend to create your own language?
[05:59:55] Lycanii: has joined #ruby
[05:59:58] Ox0dea: jesterfraud: They're likely just trying to redress the imbalance of the last few centuries.
[06:00:28] baweaver: mainly towards gender neutral terms than anything, though much into that and we should probably take it to #ruby-offtopic
[06:00:48] baweaver: Oh come now trolls, we gave you a perfectly good shot there.
[06:01:01] shevy: acosonic went silent
[06:01:05] jesterfraud: baweaver, could it be that... the internet is growing up?
[06:01:15] baweaver: jesterfraud: wouldn't that be something?
[06:01:23] shevy: jesterfraud I am educating 4chan!
[06:01:31] jesterfraud: I've clearly got my optimistic hat on
[06:01:40] acosonic: Radar: I loved the coffescript concept, I loved node.js so I clicked on that damn quora thread about ruby dying
[06:01:48] jesterfraud: although every time I go to change it, someone else has beaten me to it.
[06:02:20] hs366: has joined #ruby
[06:02:35] baweaver: quora is a thinly veiled yahoo answers with extra layers of pretension on top
[06:03:00] Radar: acosonic: ... that... that did not answer my question
[06:03:28] Radar: Are you channeling Kanye from last night? Are you about to announce a run for President also?
[06:03:52] codenapper: has joined #ruby
[06:04:01] sevenseacat: imma let you finish, but nodejs is the best language of all time?
[06:04:26] sevenseacat: baweaver: you misspelt ruby.
[06:04:41] anisha: has joined #ruby
[06:04:49] acosonic: Radar: seems like you are asking about my guidelines on how should ruby proceed, but I can't give you answer to that one. All I'm sure of is that people constantly need something "new and hot" regardless of it's logic, or logic behind it...
[06:04:56] pawnbox_: has joined #ruby
[06:05:03] sevenseacat: thats not what hes asking at all
[06:05:40] Radar: acosonic: I don't even know what this conversation is about any more.
[06:05:45] Radar: high / drunk?
[06:05:45] shevy: acosonic is doing that on purpose :(
[06:05:57] baweaver: Radar: give me about a half hour
[06:06:08] dionysus69: has joined #ruby
[06:12:24] konsolebox: has joined #ruby
[06:13:26] baweaver: acosonic: so are we going to get to the part where you out yourself as a troll?
[06:13:29] acosonic: shevy: I'm not I just wondered about your ideas for something like node.rb to spark some new & hot project
[06:13:52] wldcordeiro__: has joined #ruby
[06:14:10] [spoiler]: Hello lovelies!
[06:14:26] ndrei: has joined #ruby
[06:14:55] sevenseacat: most of us are in the business of building software that works and is dependable, not 'new and hot'
[06:18:15] [spoiler]: sevenseacat: what's wrong with new and hot? :P
[06:18:40] sevenseacat: nothing, as long as it also works and is dependable first
[06:18:52] [spoiler]: Everything that's used in production was "new and hot" at some point
[06:18:58] baweaver: become a sysadmin and install all the new hotness
[06:19:18] baweaver: if you still have hair and aren't in the hospital from heart failure, I'll be impressed.
[06:19:45] [spoiler]: I do work as a sys admin, I just said there's nothing wrong with new-n-hot
[06:20:02] baweaver: and you wonder how grey beards are made, they're forged in the fires of beta software hotness
[06:20:09] shevy: hmmmm losing hair...
[06:20:20] acosonic: I am a sysadmin department head, my company first had "work and reliable" honeywell systems, then they replaced it with PC, now they replaced PC with cloud... All I asked is shoudn't there be something like node.rb and I got trolling answers :)
[06:20:40] shevy: no that is not right
[06:20:45] shevy: your first action was a link
[06:21:06] cscheib: ACTION gets his popcorn
[06:21:08] acosonic: shevy: well ok I admit that was trolling :|
[06:21:32] shevy: a real troll never admits to be trolling
[06:21:39] bigredboots: has joined #ruby
[06:21:41] Radar: acosonic: What would node.rb do?
[06:22:00] Radar: acosonic: what would node.rb do that node.js or Ruby in its current form doesn't do?
[06:22:21] shevy: acosonic well it's a difference over whether you have your own opinion or would just quote on opinions from others; for instance, a programming language I myself is really dying is Tcl
[06:22:58] [spoiler]: Radar: it would sound hipper then either node.js or ruby, you peasant
[06:23:02] ereslibre: has joined #ruby
[06:23:03] sevenseacat: Radar: something new and hot, duh.
[06:23:09] acosonic: Radar: that's up to ruby community, since node.js is throwing new servers I guess it needs to do something else or different
[06:23:44] Radar: acosonic: ok, so you clearly have no idea further than a name. It's been fun talking. I've got work (in Ruby) to do.
[06:24:01] [spoiler]: Radar: not node.rb?
[06:24:16] baweaver: >> %w(sevenseacat Radar baweaver).sample + "! It's hammer time!"
[06:24:17] ruboto: baweaver # => "Radar! It's hammer time!" (https://eval.in/425836)
[06:25:07] baweaver: your up to bat mate
[06:25:20] baweaver: (which is technically correct as your or you're)
[06:25:36] baweaver: (english is fun!)
[06:25:49] ohaibbq: has joined #ruby
[06:26:10] pawnbox: has joined #ruby
[06:26:11] [spoiler]: baweaver, makes me think of this each time: https://www.youtube.com/watch?v=gzpBdJaaJTA
[06:26:20] Ox0dea: "Up" can correctly be used in pretty much every English tense.
[06:26:44] Ox0dea: s/tense/part of speech/
[06:27:11] ruurd: has joined #ruby
[06:28:38] baweaver: [spoiler]: what am I watching?
[06:28:56] [spoiler]: baweaver: excerpt from a film called "The Proposal"
[06:29:14] baweaver: well, yeah, still odded out
[06:29:28] [spoiler]: She starts singing "to the window, to the wall" song
[06:29:30] arup_r: has joined #ruby
[06:29:34] rehat: has joined #ruby
[06:29:37] [spoiler]: isn't that by McHammer?
[06:29:52] [spoiler]: Or M.C. Hammer, however you style it
[06:30:11] [spoiler]: I thought it was...
[06:30:16] [spoiler]: ACTION silently joins #fail
[06:30:25] cscheib: I mean, maybe in one of his songs
[06:30:35] lampshade: has joined #ruby
[06:30:43] cscheib: but it's more commonly known from the Lil John song
[06:31:03] [spoiler]: cscheib: Ah, then I screwed up
[06:31:16] lampshade: has joined #ruby
[06:31:26] cscheib: Lil Jon even
[06:31:42] juanpablo_: has joined #ruby
[06:31:47] khebbie: has joined #ruby
[06:31:54] Ox0dea: Whose middle name is Mortimer.
[06:32:12] Ox0dea: Not quite as good as Gamaliel, but it's up there.
[06:32:25] cscheib: not all that great with Ruby, but I can contribute by discussing pop culture.
[06:32:51] Ox0dea: ??Por que no los dos?
[06:35:47] leat: has joined #ruby
[06:35:51] [spoiler]: cscheib: You'll get better at it! Everyone was crap at Ruby at some point
[06:36:28] Nilium: There's a cross spider outside my kitchen window. It's kind of neat, since I've never seen one before.
[06:36:41] cabreraM516: has joined #ruby
[06:36:42] jesterfraud: has joined #ruby
[06:36:46] Ox0dea: Nilium: With what did you cross it?
[06:36:55] cscheib: Peter Parker
[06:37:16] Nilium: Nothing, but I'm expecting someone to walk into the thing later.
[06:37:31] Stan: has joined #ruby
[06:38:08] Ox0dea: Huh, some of them even look like they've got something lashing the pieces of the crucifix together.
[06:38:23] Nilium: https://dl.dropboxusercontent.com/u/31892/IMG_0718.JPG ??? Probably the biggest spider around my house aside from the wolf spider that was hiding behind my fridge.
[06:38:44] Ox0dea: Lashing: check.
[06:39:34] hmnhf_: has joined #ruby
[06:40:18] shevy: Nilium that's a monster
[06:40:57] Nilium: It's outside the house and keeping the garden a bit cleaner, so it gets to stay.
[06:40:58] [spoiler]: Nilium: burn the continent
[06:41:31] [spoiler]: It looks so mean
[06:41:34] [spoiler]: All spiders look mean
[06:41:43] cscheib: I had to kill a spider that was in my doorway recently. Was a big bastard. I got really tired of running into the web every morning
[06:42:14] cscheib: gave him 2 months to pack it up, but he persisted.
[06:42:52] Nilium: The moment spiders are in my person space, it comes down to size and where the web is
[06:43:00] Nilium: Also how close to my bed they are
[06:43:10] cscheib: I generally try not to kill them, especially outdoors
[06:43:10] Nilium: *personal
[06:43:26] shevy: cscheib lol did you run into it with your mouth open?
[06:43:28] Nilium: At the office, I will basically leave all spiders alone and just shuffle them out onto my balcony
[06:43:50] sevenseacat: if a spider is in my vicinity, it gets dead, very fast.
[06:43:56] shevy: who would have known there are spider friends on #ruby
[06:43:59] Nilium: A lot of baby spiders keep lowering themselves onto my desk (and who knows how many directly into my hair), and I just move them to other peoples' cubicles
[06:44:04] cscheib: shevy: no, just had spider web all up in my dome every time I left the house
[06:44:05] Nilium: I figure sharing the love is important.
[06:44:30] Nilium: Obviously, I don't tell them they've got a new spider-baby-buddy but they'll appreciate it later.
[06:44:44] cscheib: I've never had a spider problem at an office
[06:44:47] relix: has joined #ruby
[06:45:02] Nilium: Spiders have been something of a problem lately here. They're just now showing up all over the place.
[06:45:09] cscheib: close to water?
[06:45:19] Nilium: There's a lake within walking distance.
[06:45:43] Nilium: Within a couple days of the janitors cleaning off the balcony, at least eight reasonably large spiders will have set up webs.
[06:45:51] Nilium: I'm not even in Australia, so it's just weird.
[06:45:58] cscheib: I've observed that they seem to be worse close to large-ish bodies of water
[06:46:01] ruboto: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[06:46:11] zenspider: says the spider...
[06:46:38] Nilium: I don't see any on-topic discussions, so motion declined.
[06:47:03] ruboto: baweaver # => "\#{}" (https://eval.in/425858)
[06:47:09] baweaver: why does ruby do that?
[06:47:41] zenspider: or... which why?
[06:47:42] baweaver: see the slash?
[06:47:47] Nilium: He's asking why the escape moves to the #
[06:47:59] zenspider: oh. it's arbitrary which one you're escaping
[06:48:17] zenspider: you have to lex "#{" to start an interpolation, so it doesn't matter which one you interrupt
[06:48:22] Nilium: >> "#{\}"
[06:48:24] ruboto: Nilium # => /tmp/execpad-9566926ecacd/source-9566926ecacd:2: syntax error, unexpected $undefined ...check link for more (https://eval.in/425861)
[06:48:27] Nilium: Unless it's the closing brace.
[06:48:30] zenspider: unclosed interpolation
[06:48:46] Nilium: i.e., it's not arbitrary which you escape
[06:48:54] zenspider: yes, it is.
[06:48:55] baweaver: has left #ruby: ()
[06:48:56] baweaver: has joined #ruby
[06:49:00] Ox0dea: Nilium: It's arbitrary between the '#' and the '{'.
[06:49:13] Nilium: Listen, he wanted a stupid Ruby discussion, he's getting one.
[06:49:21] Nilium: We're going full on semantics here.
[06:49:41] shevy: the ruby parser is a thing of wickedness
[06:49:46] Nilium: More or less.
[06:49:48] zenspider: yes. yes it is.
[06:50:00] zenspider: go look at my code for proof. the bullshit I have to do...
[06:50:09] cscheib: you just went full semantics, man. you never go full semantics.
[06:50:10] Nilium: It and Perl have a unique hatred of parsing.
[06:50:14] ruboto: baweaver # => "a" (https://eval.in/425862)
[06:50:16] lulzmachine: has joined #ruby
[06:50:23] baweaver: yep, that they do.
[06:50:45] Maletor: has joined #ruby
[06:50:48] zenspider: Nilium: luckily ruby isn't as bad as perl (yet?)
[06:50:56] Nilium: I'm not sure.
[06:51:04] Nilium: It doesn't have barewords, at least.
[06:51:06] zenspider: see ruby_parser for proof
[06:51:18] zenspider: you can't statically parse perl. you can statically parse ruby
[06:51:19] Nilium: It more depends on which Perl
[06:51:25] baweaver: Ox0dea: any other amazing ones off the top of your head?
[06:51:49] zenspider: mmm... I think that's true back to perl 4
[06:51:49] Ox0dea: As amazing as the teleporting backslash? Certainly not.
[06:51:55] zenspider: not sure. def perl 5
[06:52:15] Nilium: Problem is I can't say anything about Perl 6 'cause I don't even know if it works
[06:52:26] zenspider: ruby certainly has some seriously stupid shit in it tho
[06:52:46] Ox0dea: zenspider: What's the stupidest thing?
[06:52:54] Nilium: Your code ???_???
[06:53:11] Ox0dea: Nilium: Are you salty about the '#{' lexeme or something?
[06:53:31] Nilium: No, I'm just remembering your code golfing.
[06:53:34] bayed: has joined #ruby
[06:53:36] lampshades: has joined #ruby
[06:53:37] Ox0dea: It wasn't golf.
[06:53:50] Nilium: I'm calling it code golfing because any other explanation terrifies me.
[06:53:51] shevy: eam collected things of ruby parser madness
[06:53:55] zenspider: def m(a=<<-EOD); a; end
[06:53:58] zenspider: that kills me
[06:54:07] acosonic: Ox0dea: VW golf 2 - best car ever
[06:54:14] Nilium: It bothers me that that one makes perfect sense to me due to shell scripting
[06:54:33] pawnbox: has joined #ruby
[06:54:47] zenspider: the argument is OUTSIDE the method definition. I die a little everytime I see that
[06:55:18] Nilium: It's awful if anyone does it, it's just that syntactically I understand it
[06:55:24] Ox0dea: It's pretty gnarly, but that semantics for heredocs is occasionally pretty useful.
[06:55:36] ruurd: has joined #ruby
[06:55:42] Ox0dea: Ruby's test suite uses it liberally, at any rate.
[06:55:55] lampshades: has joined #ruby
[06:55:55] Nilium: e.g., (for i in {1..8} ; do cat <<EOF ; done) | tr -s 'w' 'b'??woop??EOF??
[06:57:03] zenspider: def m(a=<<-EOD, b=a*2); b; end
[06:57:08] zenspider: that's just fucking wrong
[06:58:01] zenspider: here, I think this is a "better" example
[06:58:02] zenspider: def m(a=42, b=<<"EOD"); b; end
[06:58:11] TvL2386: has joined #ruby
[06:58:45] zenspider: ok. gloving up and processing 4 trays of dehydrated hatch chiles
[06:58:50] Nilium: At least it doesn't have Python's wonky argument behavior
[07:00:01] ecnalyr: has joined #ruby
[07:00:27] [spoiler]: "the teleporting backslash" I am too scaed to google this
[07:02:06] bronson: has joined #ruby
[07:02:44] crdpink: has joined #ruby
[07:03:30] michael_mbp: has joined #ruby
[07:05:14] luckyme: has joined #ruby
[07:07:14] crdpink2: has joined #ruby
[07:08:28] Migger: has joined #ruby
[07:08:30] leat: has joined #ruby
[07:08:56] jas02: has joined #ruby
[07:14:19] voker57: has joined #ruby
[07:14:33] shevy: Hmm... In the old days, I used to have a website with on-hover-mouse highlighting upon wanting to select menu entries, through 2 different images in use - the default one, and then a highlighted variant of that image. Only recently did I find out that this can be done via javascript/jquery/css, through opacity... without having to use two different images. This I found to be rather mind boggling
[07:15:26] zenspider: gah. so much chile dust in my nose
[07:17:07] ndrei: has joined #ruby
[07:19:29] nso95: has joined #ruby
[07:19:41] rakm: has joined #ruby
[07:20:07] leat: has joined #ruby
[07:23:35] iateadonut: has joined #ruby
[07:26:27] jgt3: has joined #ruby
[07:27:21] pawnbox: has joined #ruby
[07:28:10] jhass: shevy: google "do a barrel roll", all CSS
[07:30:24] gagrio: has joined #ruby
[07:30:24] Iskarlar: has joined #ruby
[07:31:08] jellyjellyrobot: has joined #ruby
[07:31:27] DoubleMalt: has joined #ruby
[07:31:29] voker57: has joined #ruby
[07:32:59] leat: has joined #ruby
[07:32:59] zenspider: Radar: http://articles.latimes.com/2000/nov/19/local/me-54396
[07:34:28] astrobunny: has joined #ruby
[07:34:46] zenspider: all I know is my nose is pissed off
[07:36:57] rushed: has joined #ruby
[07:37:00] zenspider: 60% done... hopefully I live through this
[07:37:09] Iskarlar: has joined #ruby
[07:37:31] matp: has joined #ruby
[07:38:35] leat: has joined #ruby
[07:39:08] techsethi: has joined #ruby
[07:40:41] ta: has joined #ruby
[07:42:01] Mon_Ouie: has joined #ruby
[07:42:08] jellyjellyrobot: has joined #ruby
[07:43:23] jellyjellyrobot: has joined #ruby
[07:44:37] jellyjellyrobot: has joined #ruby
[07:45:49] al2o3-cr: has joined #ruby
[07:45:56] jellyjellyrobot: has joined #ruby
[07:46:14] atomical: has joined #ruby
[07:46:17] ssd7: has joined #ruby
[07:46:40] siaW: has joined #ruby
[07:47:43] jellyjellyrobot: has joined #ruby
[07:48:59] dgutierrez1287: has joined #ruby
[07:49:28] jellyjellyrobot: has joined #ruby
[07:51:42] jordanloky: has joined #ruby
[07:52:01] JoshGlzBrk: has joined #ruby
[07:52:11] ta: has joined #ruby
[07:52:25] einarj: has joined #ruby
[07:53:41] lampshade: has joined #ruby
[07:55:04] Silox|: has joined #ruby
[07:56:56] devoldmx: has joined #ruby
[07:58:48] chussenot: has joined #ruby
[08:00:39] pawnbox: has joined #ruby
[08:00:46] PaulVern: has joined #ruby
[08:01:03] PaulVern: What am I missing here: http://paste.ofcode.org/dAhfECBXAmDrggxMuvpqZg
[08:01:12] PaulVern: expected output is 0 1
[08:01:17] PaulVern: I'm getting 2 lines of 0
[08:01:28] zenspider: not understanding scoping of local vars
[08:01:41] zenspider: class, module, and def are all boundaries that local vars can't cross
[08:02:05] PaulVern: there's no way to manipulate variables outside the def ?
[08:02:36] zenspider: you want to use a global, instance variable, a class instance var, or a class var
[08:02:48] zenspider: I vote instance variable, but your code is too abstract to actually suggest anything
[08:02:50] adaedra: ewww global
[08:02:57] jhass: you don't actually want to use a global. ever.
[08:03:34] sp3: I do wish people used gist, I hate having to navigate to my browser to read their code.
[08:03:59] jhass: I'm not saying never use global state
[08:04:04] sevenseacat: I just don't click any links that come through that aren't gists, or other trusted sites.
[08:04:43] jhass: PaulVern: also consider def update_current(current); current + 1; end; current = 0; current = update_current(current)
[08:04:49] jalnt: has joined #ruby
[08:06:20] tesuji: has joined #ruby
[08:06:23] lxsameer: has joined #ruby
[08:06:23] lxsameer: has joined #ruby
[08:07:26] jellyjellyrobot: has joined #ruby
[08:07:41] farn: has joined #ruby
[08:07:45] PaulVern: jhass: Thanks
[08:07:56] PaulVern: what's wrong with globals? lol
[08:08:17] PaulVern: I'll try gist next time
[08:08:23] zenspider: nothing... just dogma
[08:08:34] jellyjellyrobot: has joined #ruby
[08:08:38] araujo_: has joined #ruby
[08:08:43] PaulVern: I like privacy aspects of pasteofcode.org
[08:09:04] leat: has joined #ruby
[08:09:24] tvw: has joined #ruby
[08:09:39] apeiros: PaulVern: as always, c2 is a good resource for discussions of such topics: http://c2.com/cgi/wiki?GlobalVariablesAreBad
[08:09:40] zenspider: afraid we'll steal your ideas?
[08:09:54] k3asd`: has joined #ruby
[08:09:58] jhass: 90% of the global usage I've seen was actually a constant, the rest could've been hidden/scoped into your library module as a module level instance var with accessors
[08:10:04] apeiros: it's not ruby centric, so not everything may apply to ruby
[08:10:10] jellyjellyrobot: has joined #ruby
[08:10:31] jhass: there's no need to contend on the globals namespace
[08:10:32] apeiros: PaulVern: in general, you want to restrict visibility of data as much as possible
[08:11:21] PaulVern: Thanks, I'll give that link a read
[08:11:45] jellyjellyrobot: has joined #ruby
[08:12:54] jellyjellyrobot: has joined #ruby
[08:13:18] Oog: has joined #ruby
[08:14:15] jellyjellyrobot: has joined #ruby
[08:15:39] apeiros: +b jellyjellyrobot!*@*$#ruby-fix-your-connection
[08:15:42] apeiros: -o apeiros
[08:16:00] michael_mbp: has joined #ruby
[08:16:30] jgt3: has joined #ruby
[08:18:08] bstrarm: has joined #ruby
[08:18:18] howdoi: has joined #ruby
[08:20:26] juanpablo_: has joined #ruby
[08:21:31] DiscoM_: has left #ruby: ()
[08:21:43] banister: has joined #ruby
[08:23:17] Cust0sLim3n: has joined #ruby
[08:23:53] eightfold: has joined #ruby
[08:24:24] TheHodge: has joined #ruby
[08:24:35] zacts: has joined #ruby
[08:25:46] fretted: has joined #ruby
[08:27:05] jas02: has joined #ruby
[08:27:58] marr: has joined #ruby
[08:28:56] Hounddog: has joined #ruby
[08:29:32] roxtrongo: has joined #ruby
[08:30:08] wildlander: has joined #ruby
[08:30:40] ta: has joined #ruby
[08:31:50] araujo: has joined #ruby
[08:32:32] deepthought42: has joined #ruby
[08:32:36] zenspider: ah. the quiet hour where the distractions stop and I can finish things :P
[08:33:25] apeiros: zenspider: shush! back to work!
[08:33:41] sysanthrope: has joined #ruby
[08:34:49] redmaverick: has joined #ruby
[08:34:55] choke: has joined #ruby
[08:35:40] Ivision: has joined #ruby
[08:35:55] banister: has left #ruby: ()
[08:36:04] banisterfiend: has joined #ruby
[08:36:10] ElderFain: has joined #ruby
[08:36:10] ElderFain: has joined #ruby
[08:37:10] adaedra: trying new nicks?
[08:37:15] jds: has joined #ruby
[08:37:15] einarj: has joined #ruby
[08:37:22] einarj: has joined #ruby
[08:38:54] chthon: has joined #ruby
[08:39:25] astrobun_: has joined #ruby
[08:41:42] dumdedum: has joined #ruby
[08:42:39] ferhaty: has joined #ruby
[08:47:56] skade: has joined #ruby
[08:48:27] ecnalyr: has joined #ruby
[08:48:40] [spoiler]: yorickpeterse: morning <3></3>
[08:49:56] davedev24: has joined #ruby
[08:50:48] aspiers: has joined #ruby
[08:52:15] HoloIRCUser1: has joined #ruby
[08:53:32] crazydiamond: has joined #ruby
[08:54:13] akemrir: has joined #ruby
[08:55:59] [k-: has joined #ruby
[08:57:29] yorickpeterse: You're going to keep doing that forever now aren't you?
[08:58:58] ljarvis: 'grats, yorickpeterse
[08:59:33] Iskarlar: has joined #ruby
[08:59:51] yorickpeterse: I'll be joining the work-from-home nerds club soon
[09:00:49] PaulVern: has joined #ruby
[09:02:02] platzhirsch: has joined #ruby
[09:02:56] bluOxigen: has joined #ruby
[09:03:44] platzhirsch: has left #ruby: ()
[09:03:58] Pumukel: has joined #ruby
[09:04:00] michael_mbp: has joined #ruby
[09:04:42] maloik: congrats!
[09:05:43] lokulin: has joined #ruby
[09:10:51] txdv: has left #ruby: ()
[09:12:42] solars: has joined #ruby
[09:14:57] pawnbox: has joined #ruby
[09:16:23] fretted: has joined #ruby
[09:16:55] [spoiler]: yorickpeterse: hahaha :D
[09:17:25] [spoiler]: Ooh nice! Do you want to be a work-from-home nerd? I could work from home but I prefer coming to the office
[09:17:29] [spoiler]: It's like the only people I see
[09:17:29] maverick9: has joined #ruby
[09:20:57] pandaant: has joined #ruby
[09:26:01] lampshades: has joined #ruby
[09:27:20] arup_r: has joined #ruby
[09:27:45] rdark: has joined #ruby
[09:28:07] leafybasil: has joined #ruby
[09:29:01] apeiros: it'd be nice if Hash#fetch would yield the same as Hash#default_proc (hash + key) instead of just the key :(
[09:30:05] eGGsha: has joined #ruby
[09:34:43] yorickpeterse: [spoiler]: I hate offices
[09:35:03] apeiros: oh, wow, TIL
[09:35:04] apeiros: >> (1+2i).class
[09:35:06] ruboto: apeiros # => Complex (https://eval.in/425930)
[09:35:11] apeiros: didn't know we had a literal for this too now
[09:35:18] platzhirsch: has joined #ruby
[09:35:23] yorickpeterse: Yeah, there's i, r and another one IIRC
[09:35:55] yorickpeterse: oh hm, I think it's only i and r
[09:36:01] apeiros: I knew about r
[09:36:09] apeiros: but I either didn't know about i, or I forgot :D
[09:37:06] yorickpeterse: I see what you did there
[09:37:12] yorickpeterse: i see what you did there
[09:37:39] banister: has joined #ruby
[09:39:21] TvL2386: has joined #ruby
[09:40:17] suchness: has joined #ruby
[09:41:56] pawnbox: has joined #ruby
[09:44:10] troulouliou_div2: has joined #ruby
[09:44:49] bnizzle: has left #ruby: ()
[09:44:54] workmad3: has joined #ruby
[09:44:55] ruboto: Ox0dea # => (0+(2/1)*i) (https://eval.in/425935)
[09:45:11] Ox0dea: yorickpeterse: That might've been the other you had in mind?
[09:46:49] apeiros: errr, what? Thread#pop == Thread#shift? the fuck?
[09:46:54] Oog: has joined #ruby
[09:46:56] nhhagen: has joined #ruby
[09:47:00] apeiros: anyway, lunch time. rant time is later.
[09:47:04] apeiros: docs say so
[09:47:35] adaedra: &ri LunchTime RantTime
[09:47:36] `derpy: No results
[09:47:41] adaedra: Doc says nothing about that!
[09:47:43] Ox0dea: ri Thread#shift
[09:48:31] Ox0dea: What the heck did apeiros mean?!
[09:49:14] Ox0dea: Even if he meant ThreadGroup, that class doesn't have #shift and #pop either.
[09:50:41] Ox0dea: I suppose he must've meant Queue.
[09:50:50] khebbie: has joined #ruby
[09:51:12] flughafen: shevy: any flughafen jokes today?
[09:51:19] BTRE: has joined #ruby
[09:51:50] [spoiler]: Ox0dea: I think he meant another class and had a mental typo
[09:52:02] mikenovikov: has joined #ruby
[09:52:40] Ox0dea: >> Queue # [spoiler]
[09:52:41] ruboto: Ox0dea # => Thread::Queue (https://eval.in/425939)
[09:52:44] Ox0dea: I'm sure that explains it.
[09:53:15] [spoiler]: Ooh good catch
[09:53:36] arup_r: has joined #ruby
[09:53:58] Ox0dea: It's unclear why you'd want to use a Queue as a stack, so it makes sense that removing from the back isn't a provided operation.
[09:54:38] Ox0dea: Probably best to use the more conventional #enq and #deq, in any case.
[09:55:49] [spoiler]: Yeah. The order in which you read from an async queue shouldn't matter
[09:55:59] Ox0dea: "Just gimme one."
[09:56:17] [spoiler]: ACTION gives Ox0dea a cookie.
[09:56:27] ruboto: here's your cookie: ????
[09:56:36] Ox0dea: Das ist nicht eine async event!
[09:56:52] Ox0dea: Definitely tastier, though. Danke!
[09:57:28] northfurr: has joined #ruby
[09:57:35] jonnie: has joined #ruby
[09:57:41] devoldmx: has joined #ruby
[09:58:25] yorickpeterse: Ox0dea: *i is a literal?
[09:58:28] ruboto: yorickpeterse # => undefined local variable or method `i' for main:Object (NameError) ...check link for more (https://eval.in/425947)
[09:58:41] ruboto: yorickpeterse # => Complex (https://eval.in/425949)
[09:58:57] ruboto: yorickpeterse # => /tmp/execpad-9fe5e5bf5032/source-9fe5e5bf5032:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/425950)
[09:59:11] ruurd: has joined #ruby
[10:00:38] Ox0dea: I think Clojure put the 'r' affix to better use.
[10:01:01] TerryOQuinnProfX: has joined #ruby
[10:01:40] marjory: has joined #ruby
[10:02:57] autrilla: has joined #ruby
[10:03:00] [spoiler]: Ox0dea: too lazy to google, please indulge me
[10:03:22] Ox0dea: [spoiler]: (= 2r100 3r11 4r10)
[10:03:38] Ox0dea: 'r' here indicating "radix", to clarify.
[10:03:45] [spoiler]: is that like 2/100 4/11 4/10?
[10:03:53] bronson: has joined #ruby
[10:03:56] Ox0dea: Nah, just nicer alternate base literals.
[10:04:38] jenrzzz: has joined #ruby
[10:05:18] yashinbasement: has joined #ruby
[10:05:48] allcentury: has joined #ruby
[10:06:13] Oog: has joined #ruby
[10:06:52] Ox0dea: ACTION wonders if those can be matched cleanly with a single regular expression.
[10:07:12] Ox0dea: The Clojure syntax highlighting that ships with Vim just loops to generate rules for all 35 possible bases. :(
[10:09:20] towski_: has joined #ruby
[10:09:32] juanpablo_: has joined #ruby
[10:11:28] pawnbox: has joined #ruby
[10:13:16] apeiros: Ox0dea: whoops, Thread::*Queue*
[10:13:23] apeiros: I accidentally a word :<
[10:13:41] apeiros: ah, I see you figured :D
[10:14:20] apeiros: [spoiler]: yes, order matters. I want FIFO.
[10:14:35] apeiros: otherwise work can get "burried"
[10:15:51] rodfersou: has joined #ruby
[10:16:01] Ox0dea: apeiros: But that's exactly what Thread::Queue gives you?
[10:16:14] apeiros: Ox0dea: yes
[10:16:22] Ox0dea: apeiros: Would you ever want the inverse?
[10:16:30] senayar: has joined #ruby
[10:16:40] apeiros: Ox0dea: "thread does not give me what I need" is not the wtf there :)
[10:17:02] apeiros: the wtf is that two methods which traditionally read from the opposite ends read from the same end
[10:17:12] Iskarlar: has joined #ruby
[10:17:14] apeiros: IMO Queue#pop should just not exist
[10:17:24] Ox0dea: Why not #shift? :P
[10:17:25] apeiros: or do what its name suggests (LIFO)
[10:17:46] apeiros: because there's no #unshift
[10:17:50] meph: has joined #ruby
[10:17:50] apeiros: but there's #push and #<<
[10:17:54] Ox0dea: Fair enough, actually.
[10:18:08] jeadre: has joined #ruby
[10:18:14] apeiros: the current naming is IMO misleading
[10:18:28] Ox0dea: Why do you hate #enq and #deq?
[10:18:45] apeiros: from what do you infer I hate them? :)
[10:19:04] Ox0dea: Your implied disinterest in using them?
[10:19:12] apeiros: I dislike them in that they don't imply order. push/shift do.
[10:19:13] [spoiler]: He didn't tbf
[10:19:14] jokke-: has joined #ruby
[10:19:26] apeiros: but I don't hate them.
[10:19:41] yorickpeterse: Per dhh it should be called #take_a_message_in_semi_random_Order
[10:19:42] Ox0dea: apeiros: But Thread::Queue has a sort of "implicit order" in this case.
[10:19:48] yorickpeterse: minus the capitals
[10:20:11] Ox0dea: I can't get Thread::Queue to give me messages out of order...
[10:20:15] apeiros: Ox0dea: yes. but why have new terminology if there exists perfectly fitting terminology already?
[10:20:20] rickmasta: has joined #ruby
[10:20:21] [spoiler]: generally a *queue* should just be FIFO anyway. I can't fathom why you'd need the reverse
[10:20:30] ferhaty: has joined #ruby
[10:20:42] Ox0dea: apeiros: "Enqueue" and "dequeue" see pretty widespread usage.
[10:20:52] [spoiler]: That would defeat the purpose of the name queue ihmo
[10:21:06] stamina: has joined #ruby
[10:21:20] choke: has joined #ruby
[10:21:22] apeiros: Ox0dea: all usages with the implied order?
[10:21:43] apeiros: because I don't think that's the case
[10:21:56] Ox0dea: Queue == FIFO.
[10:21:58] apeiros: enq/deq makes more sense than push/shift to me with e.g. a priorityqueue
[10:22:13] apeiros: which only are FIFO with regards to the same priority
[10:22:45] Ox0dea: Sure, but Thread::Queue *is* a FIFO, pending yorickpeterse's linking to where DHH proved otherwise.
[10:22:46] apeiros: and then deq means "give me the first of the highest priority"
[10:26:42] eightfold_: has joined #ruby
[10:27:16] yorickpeterse: we need clearer method names!
[10:27:38] yorickpeterse: String#to_s becomes String#copy_current_string
[10:27:48] yorickpeterse: and .new shall be renamed to .create_new_instance_of_class
[10:28:11] neanderslob: has joined #ruby
[10:28:19] apeiros: yorickpeterse is the happy walker
[10:29:21] [spoiler]: initialize should be `prepare_new_instance_of_class_for_usage`
[10:29:27] apeiros: are you related to adrien brody? :D
[10:29:40] apeiros: a day in yorickpeterse's life: https://www.youtube.com/watch?v=ygI-2F8ApUM ^^
[10:30:06] benlovell: has joined #ruby
[10:30:10] yorickpeterse: what kind of terrible bedroom is that
[10:30:47] yorickpeterse: fake gold plated walls...really?
[10:30:54] yorickpeterse: the suit might as well be fake while we're at it
[10:31:24] [spoiler]: Oh man I am dying this video is perfect
[10:31:48] jgt3: has joined #ruby
[10:33:22] deepthought42: has joined #ruby
[10:34:01] michele: has joined #ruby
[10:34:19] michele: hi there, I have an Array with three sets inside (L = [set1, set2, set3])
[10:34:34] michele: I want to: set1 & set2 & set3
[10:34:41] michele: So I did: L.map(&)
[10:34:45] michele: however, it does not work
[10:34:52] michele: how should I do that?
[10:35:13] jenrzzz: has joined #ruby
[10:35:13] ByronJohnson: has joined #ruby
[10:35:34] suchness: michele: You might use inject
[10:36:26] suchness: L.inject(L.first) {|result, item| result & item}
[10:36:54] ecnalyr: has joined #ruby
[10:37:03] michele: how come map is not suitable for that? because it applies '&' to every single element whilst inject applies to all the collection ?
[10:37:08] adaedra: .inject(&:&) no?
[10:37:36] suchness: adaedra: Not sure if that would work without a starting element to build on.
[10:37:37] [spoiler]: michele: inject runs "between" (unjects between them) elements, and map runs *on* single elements
[10:38:09] michele: L.inject(:&) works
[10:38:19] radgeRayden_: has joined #ruby
[10:38:34] suchness: I wonder how it determines what to start with, I'll have to look at the docs.
[10:38:50] adaedra: suchness: If you do not explicitly specify an initial value for memo, then the first element of collection is used as the initial value of memo.
[10:38:52] suchness: michele: Sure thing
[10:38:59] adaedra: (from the doc)
[10:39:21] suchness: adaedra: Ah, thats good to know, I had no idea. I have been writing my injects long hand it seems.
[10:39:42] wasamasa: apeiros: what's up with that video
[10:39:47] wasamasa: apeiros: I don't get it at all
[10:39:55] wasamasa: apeiros: why is it even that specific actor
[10:39:55] apeiros: wasamasa: don't worry. that's ok.
[10:40:10] adaedra: >trying to understand the internet
[10:40:12] [spoiler]: wasamasa: you don't need to know. You just need to accept
[10:41:46] mprelude: has joined #ruby
[10:41:47] majjoha: has joined #ruby
[10:42:36] Scripore: has joined #ruby
[10:42:45] benlovell: has joined #ruby
[10:46:28] ByronJohnson: has joined #ruby
[10:48:57] phutchins: has joined #ruby
[10:49:32] Iskarlar: has joined #ruby
[10:52:15] s2013: has joined #ruby
[10:52:38] jokke-: has joined #ruby
[10:53:33] user1138: has joined #ruby
[10:54:55] gizmore: has joined #ruby
[10:55:15] arian0n: has joined #ruby
[10:55:22] neanderslob: has joined #ruby
[10:55:54] Oog: has joined #ruby
[10:56:23] lampshades: has joined #ruby
[10:57:24] lampshades: has joined #ruby
[10:57:29] hackeron_: has joined #ruby
[11:00:28] neanderslob: has joined #ruby
[11:00:58] sepp2k: has joined #ruby
[11:01:09] Squarepy: has joined #ruby
[11:05:20] davedev24: has joined #ruby
[11:06:20] livathinos: has joined #ruby
[11:07:12] neanderslob: has joined #ruby
[11:13:05] TvL2386: has joined #ruby
[11:13:45] codecop: has joined #ruby
[11:13:57] charliesome: has joined #ruby
[11:15:01] sdothum: has joined #ruby
[11:15:11] neanderslob: has joined #ruby
[11:16:09] ByronJohnson: has joined #ruby
[11:16:18] Stan: has joined #ruby
[11:17:18] Kallis: has joined #ruby
[11:18:13] shevy: flughafen no flughafen jokes today, it's too hot to take off
[11:19:16] khebbie: has joined #ruby
[11:19:37] messysaurus: has joined #ruby
[11:19:39] flughafen: i haven't been outside since this morning shevy , i dind't see it's 31
[11:20:29] techsethi: has joined #ruby
[11:20:36] ruurd: has joined #ruby
[11:21:54] Akagi201: has joined #ruby
[11:23:30] dgutierrez1287: has joined #ruby
[11:23:45] Kallis: has joined #ruby
[11:25:07] My_Hearing: has joined #ruby
[11:26:34] jgt3: has joined #ruby
[11:27:16] banister: has joined #ruby
[11:28:08] rodferso1: has joined #ruby
[11:29:57] chussenot: has joined #ruby
[11:30:40] ruby-lang991: has joined #ruby
[11:32:30] Spami: has joined #ruby
[11:33:25] Gnomethrower: has joined #ruby
[11:33:46] Gnomethrower: has joined #ruby
[11:34:33] Gnomethrower: has joined #ruby
[11:34:33] Gnomethrower: has joined #ruby
[11:36:38] benlovell: has joined #ruby
[11:37:08] ruby-lang477: has joined #ruby
[11:37:22] ruby-lang477: is there a way to get index of key in hash ?
[11:38:17] jhass: you're probably using the wrong datatstructure or algorithm if you have that desire
[11:38:19] ruboto: 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
[11:40:56] Iskarlar: has joined #ruby
[11:41:09] apeiros: hash.keys.index(key) # but seriously, what jhass said. this is a strong code smell.
[11:42:48] szarubin: has joined #ruby
[11:44:53] pythonix: has joined #ruby
[11:44:54] syath: has joined #ruby
[11:45:31] apeiros: -b jellyjellyrobot!*@*$#ruby-fix-your-connection
[11:45:56] jellyjellyrobot: has joined #ruby
[11:46:19] apeiros: -o apeiros
[11:47:26] PaulVern: has joined #ruby
[11:50:01] leat: has joined #ruby
[11:50:50] Galaxy83: has joined #ruby
[11:50:51] atomical: has joined #ruby
[11:51:19] allcentury: has joined #ruby
[11:52:40] aspiers: has joined #ruby
[11:56:14] m1lt0n: has joined #ruby
[11:56:42] majjoha: has joined #ruby
[11:57:24] michele: has left #ruby: ("WeeChat 1.3")
[11:57:48] messysaurus: has joined #ruby
[11:57:56] juanpablo_: has joined #ruby
[11:58:28] devoldmx: has joined #ruby
[11:59:20] Ropeney: has joined #ruby
[12:00:33] p8952: has joined #ruby
[12:02:58] Galaxy83: Hi guys.. I need to decide a very simple (and maybe stupid) decision - but for some reason it won't let me go: https://gist.github.com/anonymous/bc66831b12a71ce877eb
[12:05:17] [spoiler]: Galaxy83: is this a singleton?
[12:05:41] jhass: the latter
[12:06:20] canton7: seems bad to have a singleton owning a db resource
[12:06:39] canton7: why can't they instantiate MyGem?
[12:07:14] ruboto: Please show your real code to illustrate your problem. Using fake code often hides it or won't bring up the best possible solution.
[12:07:25] Galaxy83: No. Not a singleton. This will run only as the app is starting
[12:07:53] canton7: as in.. why are you forcing them to call 'MyGem.do_action' rather than 'mygem = MyGem.new; mygem.do_actoin'?
[12:08:11] ferhaty: has joined #ruby
[12:08:20] benlovell: has joined #ruby
[12:08:53] [spoiler]: Galaxy83: read what Mr. Ruboto said
[12:11:30] dorei: has joined #ruby
[12:11:51] lele|w: has joined #ruby
[12:14:20] skade: has joined #ruby
[12:15:50] Galaxy83: The real code is almost identical. The db_resource is actually a Redis gem and do action will get/set a row. The app will start, call MyGem.do_action 50-100 times (but never inside a loop) and never run again until app restart
[12:16:56] casadei: has joined #ruby
[12:17:13] jhass: you really should allow the app to provide the redis instance
[12:17:29] jhass: def self.do_x(redis=Redis.new)
[12:18:06] Galaxy83: but i want to make the Gem's implementation as simple as posible
[12:18:48] ndrei: has joined #ruby
[12:19:34] dhjondoh: has joined #ruby
[12:20:56] [spoiler]: Galaxy83: what you did is not a step in that direction
[12:21:15] Quandl: has joined #ruby
[12:21:17] techsethi: has joined #ruby
[12:21:19] [spoiler]: Galaxy83: people will need to go to hackish lengths to change the redis instance if they wish to do so
[12:21:34] uris: has joined #ruby
[12:22:00] Galaxy83: the redis config will be configured in the Gem's config file
[12:22:16] shevy: Galaxy83 there is absolutely zero need to have to require an user to use two method calls when a single one could suffice
[12:22:22] Galaxy83: or the Gem's config hash
[12:23:46] meatherly: has joined #ruby
[12:24:12] Galaxy83: shevy - if option 1 - then the method will be called only once in the beginning of the program.
[12:24:44] Galaxy83: the real question i guess: how costly is ||= ?
[12:24:44] ecnalyr: has joined #ruby
[12:24:54] jdawgaz: has joined #ruby
[12:25:22] [spoiler]: Galaxy83: not very :/
[12:25:24] apeiros: ACTION blinks
[12:25:46] apeiros: Galaxy83: are you *sure* the cost of ||= is a concern?
[12:26:13] avril14th: has joined #ruby
[12:26:21] apeiros: (besides that `a ||= b`'s cost is probably more dictated by the specific expressions which make up a & b than ||= itself???)
[12:26:48] Galaxy83: apeiros: thats why i'm here. I prefer second option since then the user will deal only with one method
[12:26:49] darix: that if nil should be rather cheap no?
[12:26:59] khebbie: has joined #ruby
[12:27:06] apeiros: Galaxy83: that's rather unrelated to what I said
[12:27:57] apeiros: Galaxy83: how about you benchmark it
[12:28:04] apeiros: once with ||=, once with dedicated init
[12:28:10] Cust0sLim3n: has joined #ruby
[12:28:25] apeiros: but the full method
[12:29:12] patrick_star: has joined #ruby
[12:30:08] lkba: has joined #ruby
[12:30:59] roxtrongo: has joined #ruby
[12:31:02] uri__: has joined #ruby
[12:31:05] ndrei: has joined #ruby
[12:32:07] hawkface: has joined #ruby
[12:32:24] Galaxy83: I will benchmark it later.. But if you had to choose (intuitively/ruby way/user friendliness/whatever) - what would you choose (question to everyone who read the original question)
[12:33:30] [spoiler]: Galaxy83: probably the second way, but ideally it should be instance + do action
[12:33:50] Galaxy83: thank you [spoiler]
[12:37:01] Galaxy83: that's 3 for second and 0 for first. I think we have a winner. Thanks guys.
[12:37:51] jhass: ?guys Galaxy83
[12:37:51] ruboto: Galaxy83, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[12:38:21] linduxed: has joined #ruby
[12:38:30] apeiros: I better don't make it 3:1 then? :)
[12:38:31] jonnie: has joined #ruby
[12:39:11] apeiros: *iff* it's a method without any params and there's no point in state, then I prefer MyModule.do_stuff!
[12:39:25] apeiros: maybe s/iff/if/, not sure.
[12:40:57] avril14th: good morning, has anyone had success using mongoid 5 gem?
[12:41:26] sevenseacat: has joined #ruby
[12:41:51] havenwood: has joined #ruby
[12:44:16] Galaxy83: Let's not make an issue out of it... I'm not a native eng speaker but I've watched enough shows/movies to hear a lot of times that someone was relating to a group of people as "guys" even when there were females/other in that group.
[12:44:31] s2013: has joined #ruby
[12:44:48] apeiros: Galaxy83: we don't make in issue of it. we gently tell you.
[12:45:00] apeiros: Galaxy83: what you make of it is where it's at
[12:45:33] havenwood: good mornin'
[12:45:40] apeiros: moin havenwood
[12:45:58] shevy: havenwood did you have a coffee yet
[12:46:18] havenwood: shevy: nope! beware...
[12:46:32] jonnie: has joined #ruby
[12:46:58] havenwood: shevy: thanks for reminding me, I'll fix that! :D
[12:47:33] shevy: yeah keep that error rate down with more coffee!
[12:47:39] khebbie: has joined #ruby
[12:48:59] dawkirst: has joined #ruby
[12:49:28] sarkyniin: has joined #ruby
[12:50:27] khebbie_: has joined #ruby
[12:50:29] charliesome: has joined #ruby
[12:50:52] majjoha: has joined #ruby
[12:51:34] cornerma1: has joined #ruby
[12:53:09] juanpablo_: has joined #ruby
[12:54:51] allcentury: has joined #ruby
[12:58:52] Iskarlar: has joined #ruby
[12:59:03] enebo: has joined #ruby
[12:59:12] Galaxy83: has joined #ruby
[13:01:10] JoshL: has joined #ruby
[13:01:31] bmurt: has joined #ruby
[13:02:22] khebbie: has joined #ruby
[13:02:39] rails528: has joined #ruby
[13:02:46] Soda: has joined #ruby
[13:02:58] rickmasta: has joined #ruby
[13:04:39] khebbie: has joined #ruby
[13:04:45] shevy: is open-uri slow?
[13:04:55] jxpx777: has joined #ruby
[13:07:34] Guest50: has joined #ruby
[13:08:06] oddmunds: shevy: open-uri seemed almost broken to me last night
[13:08:06] adaedra: define "slow"
[13:08:24] oddmunds: but i assumed the error was elsewhere
[13:08:36] codenapp_: has joined #ruby
[13:08:49] shevy: oddmunds hmm
[13:08:58] oddmunds: seems to be ok now
[13:09:09] oddmunds: i think my app is just very brittle
[13:09:23] s00pcan: has joined #ruby
[13:09:43] shevy: I guess I may download a big page... since I need only information from the ~middle I should perhaps stop the moment I have the required information rathern than continue to slurp
[13:10:17] robh71: has joined #ruby
[13:10:18] izzol: has joined #ruby
[13:10:56] izzol: ahh sorry.
[13:10:57] voker57: has joined #ruby
[13:11:36] izzol: I'm looking some good solution for the queue system. I simply want to send some command to the queue and then I want to execute it by some sort of scheduler.
[13:12:31] oddmunds: shevy: should you happen upon a technique that will let you read "files" over internet from the end to start, i would be interested :)
[13:12:41] dstarh: has joined #ruby
[13:14:57] CloCkWeRX: has joined #ruby
[13:15:11] pyon: has joined #ruby
[13:17:00] michael_mbp: has joined #ruby
[13:17:24] psycho_one: has joined #ruby
[13:20:07] nhhagen: has joined #ruby
[13:20:17] charliesome: has joined #ruby
[13:21:19] allcentury: has joined #ruby
[13:21:39] shevy: oddmunds hmm guess the packets are sent first from top to bottom
[13:21:48] apt-get_: has joined #ruby
[13:22:44] shevy: I have two small scripts that feed info on the commandline; the first one tells me the local weather in celsius; the other one returns a number about some gem-statistics... the latter perhaps somewhere has hidden some json data for that... if I could only be bothered to find it, but it's way too hot to code really...
[13:22:58] lkba: has joined #ruby
[13:24:01] skade: has joined #ruby
[13:24:16] marcoecc: has joined #ruby
[13:25:41] nhhagen: has joined #ruby
[13:26:04] shevy: I am still happy that I discovered jquery though. I can use ruby to auto-generate the ugly javascript mess, and it works. I am playing "lights on" and "lights off" with images now :)
[13:27:35] dblessing: has joined #ruby
[13:29:12] devoldmx: has joined #ruby
[13:29:31] ferhaty: has joined #ruby
[13:30:19] Cust0sLim3n: has joined #ruby
[13:30:28] oddmunds: shevy: yeah, i think i should think about the problem differently
[13:30:44] oddmunds: the thing is that i parse huge CSV i pull off a site
[13:31:04] futilegames: has joined #ruby
[13:31:18] leat: has joined #ruby
[13:31:43] oddmunds: instead of having my whole app do everything on each request, i'd rather make something concurrent that keeps busy at sensible internvals and just delivers what data it has upon requests
[13:31:54] Iskarlar: has joined #ruby
[13:33:23] shevy: that's the age of big data
[13:33:25] shevy: fat CSVs!
[13:33:50] ThaiWood: has joined #ruby
[13:35:44] timanema: has joined #ruby
[13:37:04] truenito: has joined #ruby
[13:37:16] nirjhor: has joined #ruby
[13:37:40] speaking1ode: has joined #ruby
[13:39:08] tvw: has joined #ruby
[13:41:25] iamninja: has joined #ruby
[13:42:46] ndrei: has joined #ruby
[13:42:52] jhass: izzol: sidekiq, resque & delayed_job are the big three
[13:43:27] chussenot: has joined #ruby
[13:43:27] oddmunds: shevy: it's a prime candidate to get my elixir fu going
[13:43:53] jonnie: has left #ruby: ()
[13:43:59] rbennacer: has joined #ruby
[13:44:07] decoponio: has joined #ruby
[13:44:27] mna: hi. how to check what's the ruby version installed in my shell account?
[13:44:39] havenwood: mna: ruby -v
[13:45:01] mna: okay thanks.
[13:46:47] shevy: someone poked your eye out adaedra
[13:47:16] adaedra: shevy: put that stick down before you hurt me for good
[13:47:17] s2013: has joined #ruby
[13:47:25] freerobby: has joined #ruby
[13:48:23] tacit7: has joined #ruby
[13:48:28] khebbie: has joined #ruby
[13:49:24] axl_: has joined #ruby
[13:50:28] derHerzerzog: has joined #ruby
[13:51:46] aZtec_: has joined #ruby
[13:51:55] aZtec_: is there a way for bundler to fetch from a private git server?
[13:52:17] aZtec_: aka gem "something", git: "myprivategit/user/repo.git"
[13:52:25] eightfold_: has joined #ruby
[13:53:52] meatherly: has joined #ruby
[13:53:55] juanpablo_: has joined #ruby
[13:54:05] izzol: jhass: thanks
[13:54:12] adaedra: Aztec_: did you try that?
[13:54:33] aZtec_: adaedra i tried, but my problem seems to be auth.
[13:54:44] adaedra: so solve this problem?
[13:54:45] aZtec_: https seems to work, but i want this to be quiet (shellscript), so i need ssh
[13:55:03] adaedra: is your ssh key well configured?
[13:55:03] ThaiWood: Aztec_: If you need ssh, just use the ssh url of your repo
[13:55:16] ecnalyr: has joined #ruby
[13:55:34] aZtec_: i added it as a deploy key to the repo
[13:55:51] aZtec_: since it's only the server and there is no separate user for it
[13:56:00] aZtec_: (and i don't want to mix up server keys and user keys)
[13:56:04] mary5030: has joined #ruby
[13:56:05] umgrosscol: has joined #ruby
[13:56:10] adaedra: Can you clone it manually?
[13:56:17] dawkirst: has joined #ruby
[13:56:25] Veejay: has joined #ruby
[13:56:29] aZtec_: nope, just checked
[13:56:39] adaedra: so this is your problem
[13:56:40] Veejay: Hello everyone
[13:58:43] daynaskully: has joined #ruby
[13:59:47] Iskarlar: has joined #ruby
[14:05:54] platzhirsch: has joined #ruby
[14:06:22] failshell: has joined #ruby
[14:06:25] robh71: has joined #ruby
[14:06:37] aZtec_: ok adaedra, it works now...was really ssh-related, not bundler-related
[14:08:24] Queeniebee: has joined #ruby
[14:09:27] khebbie: has joined #ruby
[14:09:32] whippythellama: has joined #ruby
[14:09:36] Zggb: has joined #ruby
[14:10:00] eGGsha: has joined #ruby
[14:10:23] jacaballero: has joined #ruby
[14:10:28] hmnhf_: has joined #ruby
[14:10:47] shevy: adaedra is the ssh king
[14:11:16] majjoha: has joined #ruby
[14:11:47] quazimodo: has joined #ruby
[14:11:48] rbennacer: has joined #ruby
[14:13:29] Marsupermammal: has joined #ruby
[14:14:32] davejlong: has joined #ruby
[14:14:59] patrick_star: has joined #ruby
[14:17:14] juanpablo_: has joined #ruby
[14:17:48] jenrzzz: has joined #ruby
[14:19:28] Pumukel: has joined #ruby
[14:20:03] juanpablo__: has joined #ruby
[14:22:42] ksteck: has joined #ruby
[14:22:48] roxtrongo: has joined #ruby
[14:23:20] silkfox: has joined #ruby
[14:23:41] saddad: has joined #ruby
[14:24:18] tonios57: has joined #ruby
[14:25:09] waxjar: how do I reset a rack-test env?
[14:25:16] dawkirst_: has joined #ruby
[14:27:08] gamename: has joined #ruby
[14:28:35] jenrzzz: has joined #ruby
[14:28:59] griffindy: has joined #ruby
[14:30:03] moeabdol: has joined #ruby
[14:31:01] moeabdol: has joined #ruby
[14:31:03] leat: has joined #ruby
[14:31:51] moeabdol: has joined #ruby
[14:31:59] freerobby: has joined #ruby
[14:32:31] banister: has joined #ruby
[14:35:26] moeabdol: has joined #ruby
[14:35:43] lxsameer: has joined #ruby
[14:37:01] benlovell: has joined #ruby
[14:38:52] jas02: has joined #ruby
[14:40:09] kies: has joined #ruby
[14:40:15] deepthou_: has joined #ruby
[14:40:16] Guest50: has joined #ruby
[14:41:42] alphaatom: has joined #ruby
[14:41:54] nofxx: has joined #ruby
[14:42:23] rushed: has joined #ruby
[14:44:09] alphaatom: has joined #ruby
[14:44:13] Pumukel: has joined #ruby
[14:45:29] NeverDie: has joined #ruby
[14:46:11] davejlong: has joined #ruby
[14:47:23] hinbody: has joined #ruby
[14:50:39] paulcsmith: has joined #ruby
[14:50:59] Guest50: has joined #ruby
[14:51:09] mna: has left #ruby: ()
[14:51:50] slawrence00: has joined #ruby
[14:52:00] dfinninger: has joined #ruby
[14:52:02] jenrzzz: has joined #ruby
[14:53:35] bronson: has joined #ruby
[14:53:46] jas02: has joined #ruby
[14:56:01] relix: has joined #ruby
[14:56:38] nofxx: How can I tell a guy, politely, that he should use some dead space cleaner?
[14:56:55] ruboto: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[14:57:11] roxtrongo: has joined #ruby
[14:58:33] rushed: has joined #ruby
[14:58:50] theery: has joined #ruby
[14:59:51] Rubie: has joined #ruby
[15:00:10] Respek: has joined #ruby
[15:00:36] Iskarlar: has joined #ruby
[15:00:57] cschneid_: has joined #ruby
[15:01:45] pawnbox: has joined #ruby
[15:01:46] jacaballero: has joined #ruby
[15:02:25] Guest50: has joined #ruby
[15:02:36] syath: has joined #ruby
[15:03:01] chthon: has joined #ruby
[15:03:12] poguez_: has joined #ruby
[15:03:19] SolarSailor: has joined #ruby
[15:04:03] jeff_laplante: has joined #ruby
[15:05:11] bigredboots: has joined #ruby
[15:05:13] greenarrow: has joined #ruby
[15:05:45] jiada-chrome: has joined #ruby
[15:06:08] borkdude: has joined #ruby
[15:06:30] khebbie: has joined #ruby
[15:07:18] The_Phoenix: has joined #ruby
[15:07:50] Gribo: has joined #ruby
[15:09:24] minimuffins: has joined #ruby
[15:10:04] snockerton: has joined #ruby
[15:11:32] riotjones: has joined #ruby
[15:12:16] Peteykun: has joined #ruby
[15:12:21] borkdude: has joined #ruby
[15:12:33] zohouser: has joined #ruby
[15:12:36] ndrei: has joined #ruby
[15:13:40] Pumukel: has joined #ruby
[15:14:37] tubbo: is that actually off-topic or is he just talking about using rubocop?
[15:17:35] dgutierrez1287: has joined #ruby
[15:18:01] Guest50: has joined #ruby
[15:18:56] allcentury: has joined #ruby
[15:20:17] mary5030_: has joined #ruby
[15:20:37] speakingcode: has joined #ruby
[15:21:07] Swappticon: has joined #ruby
[15:21:10] allcentury: has joined #ruby
[15:21:31] iWaffles: has joined #ruby
[15:23:44] mary5030: has joined #ruby
[15:24:02] hmnhf_: has joined #ruby
[15:25:55] psy: has joined #ruby
[15:27:48] marcoecc: has joined #ruby
[15:27:57] googya: has joined #ruby
[15:28:02] jerematic: has joined #ruby
[15:28:49] zohouser: has left #ruby: ()
[15:29:59] devoldmx: has joined #ruby
[15:31:30] ndrei: has joined #ruby
[15:32:51] syath: has joined #ruby
[15:34:27] MVPhelp: has joined #ruby
[15:35:18] Alina-malina: has joined #ruby
[15:36:43] khebbie: has joined #ruby
[15:37:45] optimusno: has joined #ruby
[15:38:02] freerobby: has joined #ruby
[15:38:22] freerobby: has joined #ruby
[15:38:36] dfinninger: has joined #ruby
[15:40:38] xet7_: has joined #ruby
[15:41:04] ngscheurich: has joined #ruby
[15:42:18] zenguy_pc: has joined #ruby
[15:42:40] luckyme: has joined #ruby
[15:44:00] JoshGlzBrk: has joined #ruby
[15:45:09] blackmesa: has joined #ruby
[15:45:10] bruno-: has joined #ruby
[15:45:47] kies: has joined #ruby
[15:49:16] bootstrappm: has joined #ruby
[15:50:35] jacaballero: has joined #ruby
[15:50:37] Iskarlar: has joined #ruby
[15:50:54] Spami: has joined #ruby
[15:52:08] podman: has joined #ruby
[15:53:00] solars: has joined #ruby
[15:54:04] rcvalle: has joined #ruby
[15:54:51] Rubie: has joined #ruby
[15:55:19] Adam1: has joined #ruby
[15:56:22] dfockler: has joined #ruby
[15:56:37] hessparker: has joined #ruby
[15:57:39] Jardayn: has joined #ruby
[15:59:57] nirjhor: has joined #ruby
[15:59:58] towski_: has joined #ruby
[16:00:38] nirjhor: I'm trying to filter out sentences from a passage and i'm using this : text.gsub(/\w+/, ' ').split(/\.|\?|!/)
[16:00:49] nirjhor: but it's showing the commas, not the sentences
[16:00:57] nirjhor: what am i doing wrong ?
[16:00:57] roxtrongo: has joined #ruby
[16:01:30] nirjhor: can anyone tell ?
[16:01:33] ruboto: Please provide us with an example of valid input for your problem, the output that you're getting, and the output that you were expecting.
[16:01:43] apeiros: you replace all \w characters with whitespace
[16:01:51] apeiros: so after that gsub, there's not really any text left???
[16:01:58] freerobby: has joined #ruby
[16:01:59] theery: has joined #ruby
[16:02:02] apeiros: >> "hello".gsub(/\w+/, ' ')
[16:02:04] ruboto: apeiros # => " " (https://eval.in/426266)
[16:02:21] choke: has joined #ruby
[16:02:28] freerobby: has joined #ruby
[16:02:59] shinnya: has joined #ruby
[16:03:14] psye: has joined #ruby
[16:03:20] jdawgaz: has joined #ruby
[16:03:54] hmnhf__: has joined #ruby
[16:06:21] choke: has joined #ruby
[16:06:57] SCHAAP137: has joined #ruby
[16:07:13] nirjhor: jhass: sentences = text.gsub(/\w+/, ' ').split(/\.|\?|!/)
[16:07:18] nirjhor: apeiros: sentences = text.gsub(/\w+/, ' ').split(/\.|\?|!/)
[16:07:25] nirjhor: then puts sentences
[16:07:34] jhass: nirjhor: that's 2, how about 1 and 3?
[16:07:44] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[16:08:07] anandubajith: has joined #ruby
[16:08:12] jhass: actually it's not even 2, you just only described 2 so far
[16:08:45] nirjhor: its just 1 line , but it was supposed to filter out the sentence, it's filtering out the commas for some reason
[16:08:54] ruboto: Please provide us with an example of valid input for your problem, the output that you're getting, and the output that you were expecting.
[16:08:58] jhass: ^ please read it
[16:09:05] jhass: I'm not asking for your code
[16:10:41] solars: has joined #ruby
[16:15:07] pietr0: has joined #ruby
[16:15:33] rushed: has joined #ruby
[16:16:32] Alayde: has joined #ruby
[16:17:26] chussenot: has joined #ruby
[16:18:02] nirjhor: figured out I had to put gsub(/(?=\W)/, '') instead of gsub(/\w+/, ' ')
[16:20:59] alejandrok5: has joined #ruby
[16:21:38] wald0: has joined #ruby
[16:22:05] Flipez-: has joined #ruby
[16:22:49] swgillespie: has joined #ruby
[16:23:43] mjuszczak: has joined #ruby
[16:24:01] mleung: has joined #ruby
[16:24:16] dopamean_: has joined #ruby
[16:25:01] daynaskully: has joined #ruby
[16:25:09] spider-mario: has joined #ruby
[16:25:44] nofxx: nirjhor, with regex 'X' is the complete opposite of 'x' up/down case
[16:25:58] relix: has joined #ruby
[16:27:12] jenrzzz: has joined #ruby
[16:27:41] symm-: has joined #ruby
[16:28:07] ponga: has joined #ruby
[16:28:38] ndrei: has joined #ruby
[16:28:46] leafybasil: has joined #ruby
[16:29:41] bricker: has joined #ruby
[16:29:42] iateadonut: has joined #ruby
[16:30:02] jpfuentes2: has joined #ruby
[16:32:52] bb010g: has joined #ruby
[16:32:54] tubuliferous: has joined #ruby
[16:34:41] jeadre: has joined #ruby
[16:35:54] _aeris_: has left #ruby: ("Konversation terminated!")
[16:37:09] barhum2013: has joined #ruby
[16:40:43] nertzy: has joined #ruby
[16:40:57] Pumukel: has joined #ruby
[16:41:52] arup_r: has joined #ruby
[16:43:20] rushed: has joined #ruby
[16:45:35] hahuang65: has joined #ruby
[16:46:18] alphaatom: has joined #ruby
[16:48:23] benlovell: has joined #ruby
[16:48:53] Agoldfish: has joined #ruby
[16:49:19] [gmi]: has joined #ruby
[16:50:46] eightfold_: has joined #ruby
[16:51:10] rbennacer: has joined #ruby
[16:52:11] ta: has joined #ruby
[16:52:59] apeiros: hm, nobody wanted to tell nirjhor that gsub(/(?=\W)/, '') does nothing at all?
[16:53:02] Adam1: has joined #ruby
[16:53:17] apeiros: but well, I guess they didn't exactly read replies anyway
[16:53:25] khebbie: has joined #ruby
[16:54:09] wldcordeiro__: has joined #ruby
[16:55:41] Maletor: has joined #ruby
[16:58:18] Jackneill: has joined #ruby
[17:00:15] skade: has joined #ruby
[17:00:58] rockyiii: has joined #ruby
[17:03:41] rodfersou: has joined #ruby
[17:04:08] shadoi: has joined #ruby
[17:04:21] pawnbox: has joined #ruby
[17:04:55] rippa: has joined #ruby
[17:06:15] rushed: has joined #ruby
[17:06:52] dfockler: I really need to look up this gsub function, everyone asks questions about it
[17:07:12] freerobby: has joined #ruby
[17:07:54] rakm: has joined #ruby
[17:09:44] dfockler: ahh it's just group substitution, but everyone really asks questions about regex
[17:10:40] rehat_: has joined #ruby
[17:12:13] rockyiii: para instalar ruby sass compass en debian 8 que me combiene
[17:12:27] rockyiii: aptitude install ruby-full
[17:12:33] riotjones: has joined #ruby
[17:12:49] apeiros: rockyiii: this channel is english
[17:12:53] rockyiii: curl -L get.rvm.io | bash -s stable
[17:12:53] rockyiii: source ~/.rvm/scripts/rvm
[17:13:22] rockyiii: ruby on espa??ol is dead
[17:13:33] apeiros: there are channels for other languages. I guess you're looking for #ruby-es
[17:13:48] rbennacer: has joined #ruby
[17:13:56] apeiros: well, then ask in english or ask people to join #ruby-es to answer your question in spanish
[17:13:59] rockyiii: #ruby-es non responding
[17:14:41] ejimz: has joined #ruby
[17:15:03] messysaurus: has joined #ruby
[17:15:34] failshell: has joined #ruby
[17:15:45] rockyiii: wats install ruby, sass compass in debian 8????
[17:16:19] juanpablo__: has joined #ruby
[17:16:20] rockyiii: apt-get install ruby-full ruby-sass
[17:16:34] apeiros: you usually use either apt or rvm
[17:16:36] Agoldfish: has joined #ruby
[17:16:38] rockyiii: curl -L get.rvm.io | bash -s stable
[17:16:53] apeiros: I prefer rvm over apt packages. apt has a history of lagging behind greatly
[17:16:57] rockyiii: rvm message non bash
[17:17:03] hessparker: has joined #ruby
[17:17:10] juanpablo___: has joined #ruby
[17:17:37] rockyiii: is for drupal7 theme omega4
[17:18:03] apeiros: drupal is php, not ruby
[17:19:01] dfockler: the sass compiler runs using ruby
[17:19:05] rockyiii: theme omega4 using sass
[17:19:16] apeiros: interesting
[17:19:25] blueOxigen: has joined #ruby
[17:19:49] apeiros: if you don't develop in ruby, then apt might overall be better. even if you get old stuff from it.
[17:20:33] amclain: has joined #ruby
[17:20:45] juanpablo____: has joined #ruby
[17:20:46] Swappticon: has joined #ruby
[17:20:57] rockyiii: video tutorial drupal omega4 sass https://www.youtube.com/playlist?list=PLLnpHn493BHH5nnK2dKE_42l1oXA6Tq6H
[17:22:38] leat: has joined #ruby
[17:25:47] davejlong: has joined #ruby
[17:25:57] failshell: has joined #ruby
[17:26:33] nettoweb: has joined #ruby
[17:26:58] postmodern: has joined #ruby
[17:29:04] nfk: has joined #ruby
[17:29:16] davejlong: has joined #ruby
[17:29:40] harvey: has joined #ruby
[17:30:14] ivanskie: has joined #ruby
[17:30:45] devoldmx: has joined #ruby
[17:31:42] juanpablo____: has joined #ruby
[17:31:52] mhib: has joined #ruby
[17:32:16] AlexAltea: has joined #ruby
[17:33:18] wldcordeiro__: has joined #ruby
[17:33:46] Salve: has joined #ruby
[17:34:38] truenito: has joined #ruby
[17:34:43] phutchins2: has joined #ruby
[17:35:04] messysaurus: has joined #ruby
[17:38:02] messysaurus: has joined #ruby
[17:38:06] allcentury: has joined #ruby
[17:38:21] wldcordeiro__: has joined #ruby
[17:41:49] messysaurus: has joined #ruby
[17:43:05] illbyte: has joined #ruby
[17:44:37] baweaver: has joined #ruby
[17:46:06] choke: has joined #ruby
[17:46:15] SolarSailor: has joined #ruby
[17:48:42] hessparker: has joined #ruby
[17:49:40] messysaurus: has joined #ruby
[17:50:26] bronson: has joined #ruby
[17:50:32] _djbkd: has joined #ruby
[17:50:43] havenwood: has joined #ruby
[17:51:25] benlovell: has joined #ruby
[17:51:33] ruurd: has joined #ruby
[17:51:37] nanoz: has joined #ruby
[17:52:15] blue_deref: has joined #ruby
[17:52:48] cnngimenez: has joined #ruby
[17:52:56] nertzy: has joined #ruby
[17:55:17] dopamean1: has joined #ruby
[17:55:38] JamesPPP: has joined #ruby
[17:55:56] snockerton: is there a way to nest an if expression in a hash definition?
[17:56:01] JamesPPP: has left #ruby: ()
[17:56:05] JamesPPP: has joined #ruby
[17:56:14] JamesPPP: has left #ruby: ()
[17:56:16] shadoi: has joined #ruby
[17:56:33] jhass: just use []= afterwards
[17:56:53] snockerton: to only include a key,value hash object (if condition)
[17:58:24] aldodelgado: has joined #ruby
[17:58:26] dawkirst: has joined #ruby
[17:58:39] ndrei: has joined #ruby
[17:58:42] ckinniburgh: has joined #ruby
[17:58:46] snockerton: i can use #{} within a string, which lets me include an expression
[17:59:01] snockerton: maybe i'm thinking about this wrong
[18:00:35] bricker: snockerton: you can't do it inline with the hash initialization, there's no syntax to support that.
[18:01:15] Hanmac: has joined #ruby
[18:01:58] JamesPPP: has joined #ruby
[18:02:05] jackjackdripper: has joined #ruby
[18:03:17] christiandsg: has joined #ruby
[18:03:21] jacaballero: has joined #ruby
[18:03:53] kinduff: has joined #ruby
[18:04:06] freerobby: has joined #ruby
[18:04:23] dfinninger: has joined #ruby
[18:04:39] cantaberry: has joined #ruby
[18:04:41] havenwood: has joined #ruby
[18:04:43] rakm: has joined #ruby
[18:06:11] demonlove: has joined #ruby
[18:06:37] scpike: What's the best way to call a ruby script with a specific gemset / rvm managed ruby version? I've got `BUNDLE_GEMFILE=/path/to/Gemfile bundle exec ruby /path/to/script.rb` in a bunch of places right now.
[18:07:07] scpike: script.rb is in a subfolder of the folder with Gemfile in it, if that helps
[18:07:21] bougyman: i just rvm use 2.x.x@gemset-name in the shell
[18:07:37] scpike: bougyman: but won't it look for a Gemfile relative to where I'm calling the script from, not the script itself?
[18:07:59] bougyman: depends. I also cd into the tree and make it my CWD, usually.
[18:08:11] bougyman: otherwise I make a bin/run.sh which does all of this for me and just call that
[18:08:21] bougyman: /path/to/tree/bin/run.sh path/to/script.rb
[18:08:25] bougyman: is what it becomes, then.
[18:08:46] bougyman: bundler and rvm will make such wrappers for you, too, but I make my own for more flexibility and CI fiddling, most times.
[18:08:49] apeiros: scpike: I think that's what rvm's wrappers are there for
[18:08:57] scpike: Hmm, I'm trying to come up with a solution where I can have ruby scripts I can invoke from anywhere (put the folder in PATH) that use a Gemfile
[18:09:03] bougyman: yes, what apeiros said.
[18:09:11] bougyman: scpike: and that's what mine do.
[18:09:20] dseitz: has joined #ruby
[18:09:23] bougyman: using the run.sh wrapper I include in the projects.
[18:09:39] scpike: bougyman: could I #! the run.sh wrapper somehow?
[18:09:45] bougyman: so my ci can mindlessly always run projectname/bin/run.sh rake and expect it to do everything necessary to run tests.
[18:10:15] kidmillions: has joined #ruby
[18:10:38] user1138: has joined #ruby
[18:10:50] scpike: The cwd trick messes some things up though, like if the script tries to output to a relative path
[18:11:02] bougyman: not necessarily
[18:11:30] bougyman: my deployments symlnk things like PROJECTROOT/config and PROJECTROOT/log to avoid some of those issues.
[18:11:32] wldcordeiro__: has joined #ruby
[18:12:01] bougyman: there's tradeoffs with allowing it to run outside the projectroot.
[18:12:16] RobertBirnie: has joined #ruby
[18:12:43] rideh: has joined #ruby
[18:12:43] sarkyniin: has joined #ruby
[18:12:45] kidmillions: has joined #ruby
[18:12:53] scpike: bougyman: I think my use case is a little different. It's not one ruby project being deployed somewhere; I have a tree full of standalone CLI tools, but they use libraries in a single Gemfile
[18:12:59] bougyman: you could export that BUNDLE_GEMFILE and put an rvm use in your scripts and be just fine in any cwd
[18:13:11] stamina: has joined #ruby
[18:13:11] scpike: oh that's a great idea, let me play with that
[18:13:22] uris: has joined #ruby
[18:13:50] hessparker: has joined #ruby
[18:13:59] baweaver: has joined #ruby
[18:15:05] baweaver: snockerton: hash.reject
[18:15:36] hessparker: has left #ruby: ()
[18:16:54] victortyau: has joined #ruby
[18:17:24] pandaant: has joined #ruby
[18:17:26] chipotle: has joined #ruby
[18:17:37] dgutierrez1287: has joined #ruby
[18:19:31] scpike: bougyman: it works! thanks so much
[18:20:29] bougyman: no worries.
[18:20:41] messysaurus: has joined #ruby
[18:23:14] rbennacer: has joined #ruby
[18:23:45] diegoaguilar: has joined #ruby
[18:24:47] dgutierrez1287: has joined #ruby
[18:25:02] snockerton: how do i merge two arrays of hashes with the same key names?
[18:25:21] kies: has joined #ruby
[18:25:23] Hanmac: snockerton: use inject or each_with_object
[18:25:33] lea: has joined #ruby
[18:25:45] snockerton: all i can get is the 2nd array nested as a new object in the first array
[18:25:51] vF3hNGxc47h8: has joined #ruby
[18:26:01] rushed: has joined #ruby
[18:26:11] apeiros: ?example snockerton
[18:26:11] ruboto: snockerton, Please provide us with an example of valid input for your problem, the output that you're getting, and the output that you were expecting.
[18:26:14] Hanmac: snockerton: show us sample data and what your output do you want from it
[18:26:17] hahuang65: has joined #ruby
[18:28:13] lkba: has joined #ruby
[18:28:14] JamesPPP: has joined #ruby
[18:29:05] jordanloky: has joined #ruby
[18:31:15] snockerton: https://gist.github.com/adampats/388154b23b1d9d0f33bd
[18:31:16] Silox|: has joined #ruby
[18:31:46] snockerton: this is probably stupid easy but unless i loop through array b and push each element to a, can't do it
[18:31:54] juanpablo____: has joined #ruby
[18:32:50] al2o3-cr: flatten snockerton
[18:33:08] al2o3-cr: unless i'm missing something
[18:33:36] al2o3-cr: no i'm missing something
[18:33:49] baweaver: has to merge like values
[18:34:05] apeiros: snockerton: c = a + b
[18:34:06] casadei: snockerton: did you try arr.flatten ?
[18:34:20] apeiros: no need for flatten or anything really
[18:34:30] messysaurus: has joined #ruby
[18:34:31] apeiros: .concat if you don't want a new array
[18:34:37] snockerton: apeiros: omg
[18:34:37] casadei: a.push(b).flatten
[18:35:08] apeiros: a.concat(b) # if you don't want a c
[18:35:10] snockerton: i tried like 20 different enumerable methods
[18:35:20] snockerton: and it was as simple as addition
[18:35:31] baweaver: though I'm guessing they want this behavior: [{a: 1}, {b: 2}].merge([{a: 2}]) to render [{a: 2}, {b: 2}]
[18:35:31] JamesPPP: has joined #ruby
[18:35:37] baweaver: (psuedocode)
[18:35:54] baweaver: if not, then yeah, +
[18:36:00] apeiros: baweaver: hm? I think the example is actually quite clear. rare enough :)
[18:36:36] baweaver: how do i merge two arrays of hashes _with the same key names?_
[18:36:40] baweaver: that part got me
[18:36:51] baweaver: why would that be relevant
[18:37:05] snockerton: baweaver: good catch, that was my next task
[18:37:16] baweaver: then + won't work
[18:37:28] snockerton: two diff use cases
[18:37:32] messysaurus: has joined #ruby
[18:37:35] baweaver: you'd get [{a:1}, {a: 2}, {b: 2}]
[18:39:11] havenwood: has joined #ruby
[18:40:55] aibo: has joined #ruby
[18:42:12] fantazo: has joined #ruby
[18:42:57] jobewan: has joined #ruby
[18:43:14] Coldblackice: has joined #ruby
[18:43:45] ruby-lang281: has joined #ruby
[18:44:46] pawnbox: has joined #ruby
[18:45:25] d10n-work: has joined #ruby
[18:45:54] ItSAN____: has joined #ruby
[18:46:31] Scripore: has joined #ruby
[18:48:54] vdamewood: has joined #ruby
[18:49:36] Fontly: has joined #ruby
[18:50:02] bronson: has joined #ruby
[18:50:33] Fontly: has left #ruby: ("Leaving")
[18:51:04] northfurr: has joined #ruby
[18:53:30] kirun: has joined #ruby
[18:54:00] juanpablo____: has joined #ruby
[18:54:12] bootstrappm: has left #ruby: ()
[18:54:35] messysaurus: has joined #ruby
[18:54:47] benlovell: has joined #ruby
[18:54:58] DCameronMauch: has joined #ruby
[18:55:30] DCameronMauch: has left #ruby: ()
[18:56:28] christiandsg: has joined #ruby
[18:57:00] davejlong: has joined #ruby
[18:57:15] Swappticon: has joined #ruby
[18:59:22] barhum2013: has joined #ruby
[18:59:46] Blaguvest: has joined #ruby
[18:59:50] relix: has joined #ruby
[19:00:23] ItSANgo_: has joined #ruby
[19:00:39] michaeldeol: has joined #ruby
[19:01:34] Respek: has joined #ruby
[19:02:14] rushed: has joined #ruby
[19:05:25] messysaurus: has joined #ruby
[19:05:57] shevy: what is happening
[19:06:18] ruurd: has joined #ruby
[19:06:23] al2o3-cr: why? what is happening?
[19:07:27] stevejobsinhell: has joined #ruby
[19:08:52] luckyruby: has joined #ruby
[19:09:36] rakm: has joined #ruby
[19:09:40] luckyruby: Is there a method that does [1,2,3] #=> "'1','2','3'"?
[19:10:02] apeiros: luckyruby: map + join, or interpolation + join
[19:10:04] dman777_alter: has joined #ruby
[19:10:14] stevejobsinhell: has joined #ruby
[19:10:18] apeiros: but no, no single method which does that exists
[19:10:40] nofxx: &: is almost a method hehe... a method caller helper?
[19:11:00] nofxx: >> [1,2,3].map(&:to_s)
[19:11:00] apeiros: &: is two separate things and not a single thing
[19:11:01] michael_mbp: has joined #ruby
[19:11:01] ruboto: nofxx # => ["1", "2", "3"] (https://eval.in/426370)
[19:11:11] nofxx: luckyruby, ^
[19:11:20] apeiros: nofxx: reread their example output
[19:11:29] luckyruby: >> [1,2,3].map {|i| "'#{i}'"}.join(',')
[19:11:30] ruboto: luckyruby # => "'1','2','3'" (https://eval.in/426371)
[19:11:35] nofxx: apeiros, ouch! yeah... I see now
[19:11:39] dman777_alter: javsascript has a way I can use a object to get a property of a object... such as session[request.method](do something). does ruby have a way that is similar?
[19:11:58] shevy: dman777_alter is it a method call in javascript?
[19:12:15] jhass: dman777_alter: do you look for public_send?
[19:12:17] dman777_alter: it's just a plug it in
[19:12:33] jhass: (do not pass unvalidated userinput into it)
[19:12:34] luckyruby: Would love to see a second argument to Array#join that let's you specify a wrapper.
[19:12:56] crdpink: has joined #ruby
[19:13:14] JoshGlzBrk: has joined #ruby
[19:13:23] riotjones: has joined #ruby
[19:13:24] apeiros: dman777_alter: since ruby does not have properties, there's no direct equivalent. you can call methods using Object#public_send
[19:13:56] davejlong: has joined #ruby
[19:14:24] dman777_alter: hmm... so if request.method is "get".... how could I use it to do session.get()?
[19:14:39] apeiros: session.public_send(request.method)
[19:14:47] apeiros: &ri Object#public_send
[19:14:47] `derpy: http://www.rubydoc.info/stdlib/core/Object#public_send-instance_method
[19:14:51] apeiros: ^ dman777_alter
[19:14:57] jhass: after if OK_METHODS.include? request.method only
[19:15:02] dman777_alter: apeiros: oh...nice...thanks!
[19:15:16] shevy: jhass does not trust the users!
[19:15:26] apeiros: dman777_alter: like jhass, I strongly suggest whitelisting user-input
[19:15:31] jhass: why would I
[19:16:06] benlovell: has joined #ruby
[19:17:08] swgillespie: has joined #ruby
[19:17:29] Tuxero: has joined #ruby
[19:18:03] stevejobsinhell: has left #ruby: ()
[19:18:15] baweaver: has joined #ruby
[19:18:58] jerware: has joined #ruby
[19:19:10] jerware: Is ruby easier than python?
[19:19:19] petricore: has joined #ruby
[19:19:35] apeiros: stevejobsinhell: yes
[19:19:42] miah: difficultly is subjective
[19:19:43] apeiros: now ask the reverse in #python
[19:19:54] crdpink2: has joined #ruby
[19:20:06] nofxx: let us know
[19:20:20] slash_nick: ?nohtyp naht reisea ybur sI
[19:20:20] ruboto: naht, I don't know anything about nohtyp
[19:20:51] apeiros: lol slash_nick
[19:22:31] michael_mbp: has joined #ruby
[19:23:24] northfurr: has joined #ruby
[19:23:46] arup_r: give me ruby offtopic channel link.. I have some offtopic question
[19:24:05] baweaver: #ruby-offtopic
[19:24:23] baweaver: !mute stevejobsinhell
[19:24:23] ruboto: +q stevejobsinhell!*@*
[19:24:23] ruboto: -o ruboto
[19:24:28] dfinninger: has joined #ruby
[19:25:10] poli: has joined #ruby
[19:25:57] northfurr: has joined #ruby
[19:26:29] DoubleMalt: has joined #ruby
[19:27:02] stevednd: has joined #ruby
[19:27:03] jacaballero: has joined #ruby
[19:27:55] ndrei: has joined #ruby
[19:28:18] hahuang65: has joined #ruby
[19:30:32] mic_e: has joined #ruby
[19:31:30] Spami: has joined #ruby
[19:31:31] devoldmx: has joined #ruby
[19:32:43] moeabdol: has joined #ruby
[19:33:00] banister: has joined #ruby
[19:33:02] tomaw_: has joined #ruby
[19:34:42] failshell: has joined #ruby
[19:34:46] bodie_: has joined #ruby
[19:34:46] KC9YDN: has joined #ruby
[19:34:46] csmb: has joined #ruby
[19:34:46] Urocyon: has joined #ruby
[19:34:46] zz_barkerd427: has joined #ruby
[19:35:03] dgutierrez1287: has joined #ruby
[19:35:04] choke: has joined #ruby
[19:35:04] towski_: has joined #ruby
[19:35:04] minimuffins: has joined #ruby
[19:35:04] umgrosscol: has joined #ruby
[19:35:04] iamninja: has joined #ruby
[19:35:04] psycho_one: has joined #ruby
[19:35:04] s00pcan: has joined #ruby
[19:35:04] hawkface: has joined #ruby
[19:35:04] atomical: has joined #ruby
[19:35:04] ByronJohnson: has joined #ruby
[19:35:04] rdark: has joined #ruby
[19:35:04] marr: has joined #ruby
[19:35:04] al2o3-cr: has joined #ruby
[19:35:04] rehat: has joined #ruby
[19:35:04] martinbjeldbak: has joined #ruby
[19:35:04] miliarch: has joined #ruby
[19:35:04] kgirthofer: has joined #ruby
[19:35:04] rikai: has joined #ruby
[19:35:04] jtdowney: has joined #ruby
[19:35:04] wedgwood: has joined #ruby
[19:35:04] mburns: has joined #ruby
[19:35:04] xxneolithicxx: has joined #ruby
[19:35:04] retornam: has joined #ruby
[19:35:04] nickjj: has joined #ruby
[19:35:04] rmrrn: has joined #ruby
[19:35:04] thang: has joined #ruby
[19:35:04] sn0wb1rd: has joined #ruby
[19:35:05] monsieurp: has joined #ruby
[19:35:05] rhg135: has joined #ruby
[19:35:05] AnoHito: has joined #ruby
[19:35:05] adamholt: has joined #ruby
[19:35:05] camilasan: has joined #ruby
[19:35:05] tchebb: has joined #ruby
[19:35:05] jbw: has joined #ruby
[19:35:05] Aria: has joined #ruby
[19:35:05] kappy: has joined #ruby
[19:35:05] jinie: has joined #ruby
[19:35:05] ghormoon: has joined #ruby
[19:35:05] phreakocious: has joined #ruby
[19:35:05] pleiosaur: has joined #ruby
[19:35:05] Adran: has joined #ruby
[19:35:05] irk: has joined #ruby
[19:35:05] Coraline: has joined #ruby
[19:35:05] dogeuira: has joined #ruby
[19:35:05] sarid: has joined #ruby
[19:35:05] olblak: has joined #ruby
[19:35:23] closer: has joined #ruby
[19:35:23] fulgore_: has joined #ruby
[19:35:23] cibs: has joined #ruby
[19:35:23] ashleyis: has joined #ruby
[19:35:23] nfsnobody: has joined #ruby
[19:35:23] ghormoon: has joined #ruby
[19:35:27] ndrei: has joined #ruby
[19:35:38] messysaurus: has joined #ruby
[19:36:40] marr: has joined #ruby
[19:36:55] kriskropd: has joined #ruby
[19:37:42] shadoi: has joined #ruby
[19:38:46] scampbell: has joined #ruby
[19:39:08] kgirthofer: has joined #ruby
[19:39:32] toretore: has joined #ruby
[19:39:49] jenrzzz: has joined #ruby
[19:41:31] michael_mbp: has joined #ruby
[19:42:01] JamesPPP: has joined #ruby
[19:42:55] messy: has joined #ruby
[19:43:53] failshell: im trying to embed sinatra in my app, it works until i try to use thin, than i get that error: https://gist.github.com/failshell/ef7e34cc3d56457974b4
[19:44:05] failshell: google says that's been fixed long ago. not sure what im doing wrong
[19:44:23] Papabear: has joined #ruby
[19:45:43] jpfuentes2: has joined #ruby
[19:46:52] workmad3: has joined #ruby
[19:47:35] messysaurus: has joined #ruby
[19:49:02] messy: has joined #ruby
[19:50:09] zendrix: has joined #ruby
[19:50:51] neanias: has joined #ruby
[19:50:54] davejlong: has joined #ruby
[19:51:30] sshuff|gone: has left #ruby: ()
[19:51:35] umgrosscol: has joined #ruby
[19:52:11] messysaurus: has joined #ruby
[19:52:20] robbyoconnor: has joined #ruby
[19:52:39] dgutierrez1287: has joined #ruby
[19:52:39] choke: has joined #ruby
[19:52:39] towski_: has joined #ruby
[19:52:39] minimuffins: has joined #ruby
[19:52:39] iamninja: has joined #ruby
[19:52:39] psycho_one: has joined #ruby
[19:52:39] s00pcan: has joined #ruby
[19:52:39] hawkface: has joined #ruby
[19:52:39] atomical: has joined #ruby
[19:52:39] ByronJohnson: has joined #ruby
[19:52:39] rdark: has joined #ruby
[19:52:39] al2o3-cr: has joined #ruby
[19:52:39] rehat: has joined #ruby
[19:52:39] martinbjeldbak: has joined #ruby
[19:52:39] miliarch: has joined #ruby
[19:52:39] rikai: has joined #ruby
[19:52:39] jtdowney: has joined #ruby
[19:52:39] wedgwood: has joined #ruby
[19:52:39] mburns: has joined #ruby
[19:52:39] xxneolithicxx: has joined #ruby
[19:52:39] retornam: has joined #ruby
[19:52:39] nickjj: has joined #ruby
[19:52:39] rmrrn: has joined #ruby
[19:52:39] thang: has joined #ruby
[19:52:39] sn0wb1rd: has joined #ruby
[19:52:39] monsieurp: has joined #ruby
[19:52:39] rhg135: has joined #ruby
[19:52:40] AnoHito: has joined #ruby
[19:52:40] adamholt: has joined #ruby
[19:52:40] camilasan: has joined #ruby
[19:52:40] tchebb: has joined #ruby
[19:52:40] jbw: has joined #ruby
[19:52:40] Aria: has joined #ruby
[19:52:40] kappy: has joined #ruby
[19:52:40] jinie: has joined #ruby
[19:52:40] phreakocious: has joined #ruby
[19:52:40] pleiosaur: has joined #ruby
[19:52:40] Adran: has joined #ruby
[19:52:40] irk: has joined #ruby
[19:52:40] Coraline: has joined #ruby
[19:52:40] dogeuira: has joined #ruby
[19:52:40] sarid: has joined #ruby
[19:52:40] olblak: has joined #ruby
[19:52:57] ivanskie: has joined #ruby
[19:52:57] sarid: has joined #ruby
[19:52:57] sarid: has joined #ruby
[19:53:11] sshuff: has joined #ruby
[19:53:32] mary5030: has joined #ruby
[19:55:59] solocshaw: has joined #ruby
[19:56:01] michael_mbp: has joined #ruby
[19:56:27] David27: has joined #ruby
[19:57:18] kinduff: has joined #ruby
[19:58:47] centrx: has joined #ruby
[19:59:00] meatherly: has joined #ruby
[19:59:54] nerium: has joined #ruby
[20:00:24] nerium: Any one knows a good way to parse/extract text from a document in plain text (without using regexp)? I need a less error prone way to parse the data
[20:00:40] googya: has joined #ruby
[20:00:52] kidmillions: has joined #ruby
[20:01:53] jacaballero: has joined #ruby
[20:02:25] jhass: well, that's highly contextual on the data
[20:03:03] baweaver: and your regex-fu
[20:03:31] baweaver: Short of writing your own lexer/parser
[20:03:59] eam: most of which use regexes anyway
[20:04:00] jhass: There's also things like StringScanner
[20:04:05] atmosx: nerium: just give a simple to the guys at #regex they'll work the rest out. You could also use 'rubular', but generally speaking if the data is complex, you need regex.
[20:04:06] shevy: oh is it create-your-language time again
[20:04:51] shevy: nerium one poor man's variant may be to use .each and extract on a per-line basis if you don't use a regex
[20:05:03] nerium: I???m currently using regexp, but its impossible to debug
[20:05:09] nerium: I???ll give an example
[20:05:23] shevy: you can combine the regex with non-regex code to make it more robust
[20:05:32] shevy: I hate the votality of $1 for instance
[20:05:35] eam: nerium: have you ever looked at how a parser works?
[20:05:42] shevy: erm *volatility
[20:06:01] nerium: eam: Yeah. I took a programming language course during my last semester so I know the basics
[20:06:16] eam: so, you can break up your patterns into small units
[20:06:19] nerium: Here???s is the current impl. https://gist.github.com/oleander/7f9c8bf4c210f67e78a9
[20:06:26] nhhagen: has joined #ruby
[20:06:40] ruboto: 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
[20:06:47] My_Hearing: Show us the input and how you want to break it up
[20:07:09] arup_r: has joined #ruby
[20:07:19] nerium: In short: I???m trying to parse an SAT like test. There are al kind of different questions and set ups
[20:07:44] JamesPPP: has joined #ruby
[20:07:45] nerium: Regexp works but is impossible to debug and maintain. I???m looking for a better wat
[20:07:49] benlovell: has joined #ruby
[20:07:57] allcentury: has joined #ruby
[20:08:09] jhass: it seems like you try to write a single regex for all cases
[20:08:10] Queeniebee: has joined #ruby
[20:08:14] nerium: I???m not looking for a solution to my problem, just the correct tools
[20:08:15] Mon_Ouie: Well, using StringScanner in combinations with regexps is a way that way mentioned already
[20:08:34] baweaver: Example input / example output?
[20:08:37] nerium: Mon_Ouie: aha, missed that
[20:08:48] jhass: use ^ to split up into smaller chunks (like each question answer block), detect type, parse accordingly
[20:08:50] nerium: baweaver: Hold on
[20:08:59] rockyiii: has left #ruby: ()
[20:09:01] michael_mbp: has joined #ruby
[20:09:19] rikai: has joined #ruby
[20:09:58] nerium: baweaver: http://i.imgur.com/hjsjwlz.png
[20:10:57] nerium: There???s a lot of problems here. One is that the questions are stored in a pdf. In plain text everyting *might be* on one line
[20:10:57] baweaver: Split the text on /^\d+\./ to get your number blocks
[20:11:19] nerium: baweaver: ^
[20:11:20] Pilate: has joined #ruby
[20:11:28] nerium: ^ wont work
[20:11:30] ruboto: Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[20:11:40] baweaver: !mute Pilate
[20:11:41] ruboto: +q Pilate!*@*
[20:11:41] ruboto: -o ruboto
[20:11:45] Pilate: has left #ruby: ()
[20:12:07] nerium: baweaver: So the number 11. in this case might not be on it???s own row
[20:12:18] baweaver: !ban Pilate
[20:12:33] baweaver: !ban Pilate !T 1d troll be gone
[20:12:34] ruboto: baweaver, could not find a matching user for "Pilate"
[20:12:46] jhass: +b-o $a:Pilate jhass
[20:13:13] baweaver: Do you have an example of the plaintext rip?
[20:13:25] nerium: baweaver: I can create one, hold on
[20:13:37] baweaver: probably the best bet is to try and get some consistency there.
[20:14:07] nerium: baweaver: ???123. This is a question A Option One B Option two C Danke D Nope"
[20:14:42] baweaver: Fun part is what happens when there's more than one A, B, C, or D?
[20:14:48] nettoweb: has joined #ruby
[20:15:04] nerium: baweaver: There???s is allways A-D and there might be a E
[20:15:14] baweaver: If you can guarantee punctuation on the end of the question you have some leverage
[20:15:27] baweaver: No, I mean what if the question starts as "A person..."
[20:15:30] nerium: baweaver: I can???t :)
[20:15:45] nerium: The question always starts with a \d+\.
[20:15:55] atmosx: so 'everyone' is okay?
[20:16:09] nerium: atmosx: I???m not following
[20:16:17] nerium: Or are you talking with someone else?
[20:16:56] benlovell: has joined #ruby
[20:17:13] atmosx: nerium: I was talking to jhass actually, I don't think any other operator is alive. There was an ongoing discussion about the use of the word 'guys' on github.. so...
[20:17:17] atmosx: I'm off to bed, night
[20:17:34] nerium: atmosx: Hehe, okay
[20:17:34] jeadre: has joined #ruby
[20:18:13] baweaver: Yeah, that'll be interesting.
[20:19:47] miah: 'everyone' is all encompassing, so of course its ok.
[20:20:43] Rubie: has joined #ruby
[20:21:06] freerobby: has joined #ruby
[20:21:16] rakm: has joined #ruby
[20:21:31] DLSteve: has joined #ruby
[20:22:15] nerium: baweaver: I???ve a plan.
[20:22:20] bronson: has joined #ruby
[20:22:21] Mendenhall: has joined #ruby
[20:22:27] nerium: baweaver: How about spliting the questions into blocks of questions/options
[20:22:36] nerium: and then run a smaller regexp on this block?
[20:22:51] baweaver: If possible, but if the text option has nothing to hook off of it's risky.
[20:23:10] nerium: baweaver: Why not just match between 1. and 2.
[20:23:20] nerium: and then 2. and 3.
[20:23:31] michael_mbp: has joined #ruby
[20:23:36] baweaver: 1. A person does this A Option
[20:23:54] baweaver: splitting options was what I was more worried on
[20:23:54] kidmillions: has joined #ruby
[20:23:55] radgeRayden_: has joined #ruby
[20:25:01] nerium: baweaver: Given that you have the questions/options as one block?
[20:25:09] C1V0: has joined #ruby
[20:25:15] nertzy: has joined #ruby
[20:25:22] baweaver: see that example above
[20:25:29] nerium: How about starting from the back. Match Everything from ???E??? to the end
[20:25:31] baweaver: how do you know which A to tag as an option?
[20:25:35] bootstrappm: has joined #ruby
[20:25:36] nerium: Remove it, then ???D"
[20:25:46] baweaver: What if an option has a cap?
[20:25:49] nerium: baweaver: You don't
[20:25:55] bootstrappm: has left #ruby: ()
[20:25:59] ghr: has joined #ruby
[20:26:02] baweaver: then reverse would be safe.
[20:26:19] Scripore: has joined #ruby
[20:26:25] nerium: baweaver: Exactly
[20:26:38] nerium: baweaver: This is good
[20:26:46] dopie: has joined #ruby
[20:26:49] roxtrongo: has joined #ruby
[20:27:02] Scripore: has joined #ruby
[20:27:59] baweaver: >> 'A option B option C option D option'.reverse.split(/[ABCD]/).map { |s| s.strip.reverse }
[20:28:00] ruboto: baweaver # => ["option", "option", "option", "option"] (https://eval.in/426403)
[20:28:33] jeadre: has joined #ruby
[20:28:34] stef1a: has joined #ruby
[20:28:46] bstrrm: has joined #ruby
[20:28:52] Cust0sLim3n: has joined #ruby
[20:28:55] stef1a: what's the difference between these two snippets of code? s.bids.each { |b| include = true and break if b.quarter == quarter } and s.bids.each { |b| include = true && break if b.quarter == quarter }
[20:29:13] stef1a: How would the distinction between `and` and `??` be relevant here?
[20:29:27] stef1a: I've read that `and` has higher precedence, but I don't know how that would affect this code.
[20:30:00] Scripore: has joined #ruby
[20:30:21] baweaver: best to avoid the english version in most cases.
[20:30:58] stef1a: baweaver: why? in this case, the English version does what i want, and the symbolic version does not
[20:31:09] miah: https://github.com/bbatsov/ruby-style-guide/#no-and-or-or
[20:31:18] nerium: baweaver: Thanks. Illl try it out!
[20:31:21] miah: "The and and or keywords are banned. It's just not worth it. Always use && and || instead."
[20:31:26] mrtomme: has joined #ruby
[20:31:47] modern: has joined #ruby
[20:31:47] modern: has joined #ruby
[20:31:52] baweaver: don't try and put things on one line.
[20:31:58] baweaver: that's your issue.
[20:31:59] Mon_Ouie: stef1a: `include = true and break if x' is like `((include = true) and break) if x'
[20:32:11] Mon_Ouie: vs (include = (true && break)) if x
[20:32:39] banister: has left #ruby: ()
[20:32:54] banister: has joined #ruby
[20:32:55] kidmillions_: has joined #ruby
[20:33:24] banister: has left #ruby: ()
[20:33:27] kadoppe: has joined #ruby
[20:33:40] banisterfiend: has joined #ruby
[20:33:43] yfeldblum: has joined #ruby
[20:33:47] stef1a: Gotcha. That's subtle :-) Thanks!
[20:33:47] banisterfiend: Mon_Ouie are you in a room without light?
[20:34:03] Mon_Ouie: I'm in a room with neon lights
[20:34:30] kidmillions: has joined #ruby
[20:34:57] banisterfiend: Mon_Ouie is there a woman of the world there with you?
[20:35:10] banisterfiend: she has to leave!
[20:35:13] Mon_Ouie: There's a kitten, does that count?
[20:36:17] ellisTAA: has joined #ruby
[20:36:30] ellisTAA: anyone know why i???m not getting my expected outcome: https://gist.github.com/ellismarte/db16caf989261b347137
[20:36:39] swgillespie: has joined #ruby
[20:36:48] yqt: has joined #ruby
[20:37:09] Mon_Ouie: Because [] evaluates to an array object. All the elements in that array are the same array object.
[20:37:23] ellisTAA: Mon_Ouie: thanks
[20:37:26] baweaver: if you use a block, it evaluates that block for each default
[20:37:37] Mon_Ouie: >> x = []; array = Array.new(2, x); array[0].equal? x
[20:37:38] ruboto: Mon_Ouie # => true (https://eval.in/426404)
[20:37:49] banisterfiend: Mon_Ouie so long as it's not a petit chien, then you would have to throw her into a basket of cushions and sail cloth
[20:37:59] kaps: has joined #ruby
[20:38:44] kaps: has left #ruby: ()
[20:38:44] baweaver: >> a= Array.new(2) { [] }; a[1] << %w(some stuff); a
[20:38:45] ruboto: baweaver # => [[], [["some", "stuff"]]] (https://eval.in/426405)
[20:39:24] naftilos76: has joined #ruby
[20:39:48] nerium: baweaver: How about this? https://gist.github.com/oleander/7b988a4cfbfd3e07b642
[20:39:54] nerium: Any problems?
[20:40:35] naftilos76: Hi, i am using ruby 2.2 . Is there a way to detect whether a file is being read? I basically want to delete a file after the read access from another source ceases.
[20:40:58] dawkirst: has joined #ruby
[20:41:02] michael_mbp: has joined #ruby
[20:41:38] chichou: has joined #ruby
[20:41:57] slash_nick: naftilos76: can you send a signal when the read ceases? then delete when the signal is received?
[20:42:01] baweaver: The other way will be faster
[20:42:04] opensource_ninja: has joined #ruby
[20:42:44] naftilos76: slash_nick, i want to delete a zip file after it is downloaded in rails
[20:43:33] naftilos76: after it i downloaded through the send_file method
[20:43:38] baweaver: either way have to get back to some work.
[20:43:40] diegoaguilar: has joined #ruby
[20:44:41] slash_nick: naftilos76: so (pseudocode) send_file(file); send_the_send_file_finished_signal... you can do it pub-subbishly using ActiveSupport::Notifications
[20:45:04] nerium: baweaver: Performence is not really a problem as it???s used in an admin panel. The code you posted had some smaller buggs
[20:45:17] naftilos76: slash_nick, let me see send_file in rails api
[20:45:23] majjoha: has joined #ruby
[20:46:12] slash_nick: naftilos76: looking now... but we should move this conversation to #rubyonrails
[20:46:28] naftilos76: slash_nick, sure
[20:47:10] nhhagen: has joined #ruby
[20:48:04] skade: has joined #ruby
[20:48:20] roxtrongo: has joined #ruby
[20:49:17] Scripore: has joined #ruby
[20:50:08] jordanloky: has joined #ruby
[20:50:34] jeadre: has joined #ruby
[20:50:55] _djbkd: has joined #ruby
[20:51:40] chichouw: has joined #ruby
[20:52:27] [Butch]: has joined #ruby
[20:52:48] ap4y: has joined #ruby
[20:53:11] mary5030: has joined #ruby
[20:53:19] Mon_Ouie: nerium: I'd use #scan_until, somewhat like this: https://eval.in/426416
[20:53:28] freerobby: has joined #ruby
[20:54:03] mary5030: has joined #ruby
[20:54:15] nerium: Mon_Ouie: Nice, i???ll give it a try
[20:55:07] TeresaP: has joined #ruby
[20:57:01] nerium: Mon_Ouie: Any idea how to split the questions into parts?
[20:57:06] TeresaP: OT: Did web chat.freenode.net get an upgrade?
[20:57:11] nerium: Mon_Ouie: Like this one data = "This is stuff 1. Number one 2. Number two 5. End of line"
[20:57:22] nettoweb: has joined #ruby
[20:57:27] nerium: Mon_Ouie: Output: [???Number one???, Number two???, ???End of line???]
[20:57:36] wldcordeiro__: has joined #ruby
[20:57:50] nerium: Mon_Ouie: I tried using data.scan(/\d+\.\s+(.+?)(?=\d+\.\s+)/m).to_a, but the output isn???t correct
[20:58:01] jhass: ?ot TeresaP ;)
[20:58:01] ruboto: TeresaP, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[20:58:22] TeresaP: I said "OT" but didn't realize there was an off-topic changel
[20:58:23] Mon_Ouie: Same idea as for splitting questions and answers, but with / (\d+)\. / as a regexp?
[20:58:59] iamninja: has joined #ruby
[20:59:01] shadoi: has joined #ruby
[21:00:31] nerium: Mon_Ouie: The problem is that the numbers arn???t in order
[21:01:15] baweaver: has joined #ruby
[21:01:32] havenwood: has joined #ruby
[21:01:35] beefcakeba: has joined #ruby
[21:02:18] Mon_Ouie: You can grab the number with the capture group (scanner[1]), put them in a hash of idx => option and then collect them in order in an array
[21:03:05] nerium: Mon_Ouie: Can I use then for anything? I mean, I might just have extracted #1, that doesn???t mean that #2 is next
[21:04:05] Mon_Ouie: / (\d+)\. / is going to match no matter what number is next
[21:04:27] kristian_on_linu: has joined #ruby
[21:04:29] kristian_on_linu: Could not find 'listen' (~> 2.7) - did find: [listen-3.0.3] (Gem::LoadError)
[21:04:40] kristian_on_linu: this means that I have the gem, but too new a version ... eh?
[21:05:43] adaedra: did you `bundle install` ?
[21:05:59] kristian_on_linu: https://github.com/holman/left
[21:06:00] shevy: you can select one from there https://rubygems.org/gems/listen/versions
[21:06:05] adaedra: under current user?
[21:06:09] David27: has joined #ruby
[21:06:24] kristian_on_linu: shevy, I would want the newest one, eh?
[21:06:25] Scripore: has joined #ruby
[21:06:41] shevy: kristian_on_linu I myself would but you have a hardlock there, probably in Gemfile
[21:06:43] adaedra: not if the thing you're trying to setup don't want it
[21:07:06] michael_mbp: has joined #ruby
[21:07:09] adaedra: and here, it requires something 2.7 and newer, but before 2.8
[21:07:20] nerium: Mon_Ouie: Hmm, I dont get any matches. What I???m i missing? https://gist.github.com/oleander/17f6be2c2db939a859f1
[21:07:27] adaedra: but bundle should install the right version
[21:07:30] dzejms: has joined #ruby
[21:07:53] mjuszczak: has joined #ruby
[21:08:17] adaedra: you don't run bundle under sudo, right?
[21:08:28] kristian_on_linu: I usually just gem install stuff
[21:08:29] badfish129: has joined #ruby
[21:08:40] kristian_on_linu: but I think I have rvm
[21:08:52] adaedra: gem install will pickup the last version if you don't give specifications on the version
[21:08:53] Mon_Ouie: You have to skip the "This is a stuff" part before you can use the scan loop
[21:08:55] badfish129: anyone can help with mocha, how would I mock a method that returns nothing but changes one of its arguments
[21:09:01] Mon_Ouie: e.g. with scan_until
[21:09:22] Mon_Ouie: (scan matches at the beginning of the remaining string)
[21:09:31] Majost__: has joined #ruby
[21:09:32] nerium: Mon_Ouie: Got an example? :/
[21:10:46] Mon_Ouie: x = "before 1. after"; before = scanner.scan_until(/(?= \d\. )/); while ???
[21:11:01] Majost__: Can someone explain this to me: /(.\d\.\d.\d|.\d\.\d)/.match('1.0') => nil
[21:11:49] Majost__: It matches 10.0 and 10.0.0 correctly though... is anything < 10 not concidered a digit or something?
[21:12:08] shevy: the | there I think
[21:12:11] shevy: it should be or
[21:12:14] Mon_Ouie: Well it doesn't match because the first pattern (before the '|' is any character, followed by a digit, followed by a dot, followed by a digit, followed by any character, followed by a digit
[21:12:15] nofxx: Majost__, 10 is not 1 digit
[21:12:20] yfeldblum: has joined #ruby
[21:12:25] nofxx: 2 digits, \d+
[21:12:34] nofxx: or \d{2,}
[21:12:37] Mon_Ouie: Second one is any character followed by a digit followed by a dot, followed by a digit.
[21:12:45] nofxx: ops, \d{1,}
[21:12:55] jhass: {1,} is +
[21:13:02] nofxx: jhass, yup
[21:13:07] Majost__: \d+ fixed it
[21:13:33] wldcordeiro__: has joined #ruby
[21:13:58] nofxx: jhass, was going to say about {1,x} later
[21:14:07] riotjones: has joined #ruby
[21:14:09] nofxx: Majost__, if you know how many digits
[21:14:28] chipotle: has joined #ruby
[21:14:46] sts: has joined #ruby
[21:15:23] sts: hello folks. I found a gem once which made it easy to align text properly, forgot about its name tho. Any ideas?
[21:16:14] shevy: .ljust and .rjust !
[21:16:15] sts: Looking for something like this: http://mailman.sil.at/pipermail/tac/2015-August/004513.html
[21:16:33] shevy: yay ?sterreich
[21:16:58] dfinninger: has joined #ruby
[21:17:08] sts: oh yeah maybe it was just stdlib :)
[21:17:12] minimuff1ns: has joined #ruby
[21:17:54] shevy: but really, .ljust and .rjust should suffice
[21:17:57] shevy: >> ["Ticket Type".ljust(14),"Maintenance".rjust(12)].join(':')
[21:17:58] ruboto: shevy # => "Ticket Type : Maintenance" (https://eval.in/426417)
[21:18:14] shevy: there was some boxed ascii formatter
[21:18:45] sts: No i don't want any boxes :)
[21:18:54] Azure: has joined #ruby
[21:19:04] shevy: I mean because of the ':' character, I remember that it also used that character to separate key-value pairs
[21:19:32] shevy: since the ':' on your link all appear to be aligned, top to bottom
[21:19:57] modern: has joined #ruby
[21:21:55] porfa: has joined #ruby
[21:21:58] porfa: lol hello
[21:22:00] gamename: has joined #ruby
[21:22:45] shevy: sts I don't remember, perhaps it was that project, in the event that stdlib won't suffice: https://github.com/tj/terminal-table
[21:23:10] gener1c: has joined #ruby
[21:23:32] minimuffins: has joined #ruby
[21:24:15] luksaur: has joined #ruby
[21:24:52] porfa: will anyone kind enough show me the syntax on a ruby selenium, on how to use regex?
[21:25:03] badfish129: has joined #ruby
[21:28:45] porfa: I'm cross helping (is that how you say it?) someone is chatting with me already, I'm only used to look ilke a fool in here
[21:28:57] kidmillions: has joined #ruby
[21:29:38] PenguinMan98: has joined #ruby
[21:30:06] PenguinMan98: I updated PATH to include the D:\Ruby\DevKit\bin but it doesn't seem to work
[21:30:51] diegoaguilar: has joined #ruby
[21:31:13] ellisTAA: has joined #ruby
[21:31:24] v4n: has joined #ruby
[21:31:53] PenguinMan98: Error installing _my gem_ The 'hittimes' native gem requires installed build tools.
[21:31:53] akurilin: has joined #ruby
[21:32:16] devoldmx: has joined #ruby
[21:32:19] PenguinMan98: I downloaded them and unzipped them to D:\Ruby\DevKit
[21:32:39] A-ron: has joined #ruby
[21:32:55] PenguinMan98: I updated PATH with both D:\Ruby\DevKit and D:\Ruby\DevKit\bin but no luck
[21:34:32] jordanloky: has joined #ruby
[21:37:31] michael_mbp: has joined #ruby
[21:37:40] Rubie: has joined #ruby
[21:41:52] alphaatom: has joined #ruby
[21:42:26] crdpink: has joined #ruby
[21:44:00] ivanskie: has joined #ruby
[21:45:29] gamename: has joined #ruby
[21:45:52] mary5030: has joined #ruby
[21:46:35] majjoha: has joined #ruby
[21:46:38] mary5030: has joined #ruby
[21:49:20] havenwood: has joined #ruby
[21:49:54] umgrosscol: PenguinMan98, you can call the executables in DevKit\bin from your command line?
[21:51:28] kristian_on_linu: should I update ruby?
[21:51:41] kristian_on_linu: I'm on ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
[21:52:17] shevy: kristian_on_linu the difference is marginal
[21:52:20] kristian_on_linu: (trying now, with RVM)
[21:52:22] shevy: but if you are bored you can
[21:52:34] shevy: I am on ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-linux]
[21:52:44] kristian_on_linu: I am sort of bored ... but I was thinking it could explain my woes
[21:52:52] havenwood: kristian_on_linu: grab the latest RVM first: rvm get master
[21:52:52] shevy: PenguinMan98 I think not many people use windows these days
[21:52:54] PenguinMan98: I know because ls works
[21:53:10] PenguinMan98: until I installed the tools, I was using dir still
[21:53:17] kristian_on_linu: ls is awesome ... I use it all the time
[21:53:19] PenguinMan98: shevy: regardless, I am
[21:53:32] kristian_on_linu: cat is also nice
[21:53:46] bronson: has joined #ruby
[21:53:48] absolutejam: has joined #ruby
[21:53:59] crdpink: has joined #ruby
[21:54:01] michael_mbp: has joined #ruby
[21:54:27] petricore: has joined #ruby
[21:54:36] PenguinMan98: http://screencast.com/t/qVcSRc51Tk
[21:55:37] baweaver: As someone who used to do Ruby on Windows, you _can_ do it but I wouldn't if I were you.
[21:55:40] kristian_on_linu: I'll pastebin the entire error. It's jekyll but it seems like a ruby problem to me.
[21:55:59] baweaver: kristian_on_linu: use gist
[21:56:10] kristian_on_linu: http://pastebin.com/raw.php?i=0xLpaPV1
[21:56:11] ruboto: kristian_on_linu, 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:56:13] baweaver: ruboto tends to
[21:56:49] workmad3: has joined #ruby
[21:57:30] kristian_on_linu: my first gist: https://gist.github.com/kristiannordestgaard/49eeb66d185c5febebed
[21:57:37] baweaver: kristian_on_linu: seems straightforward, version is missing
[21:57:42] meph: has joined #ruby
[21:57:47] BraddPitt: you have a very Nordic name, kristian_on_linu
[21:57:55] PenguinMan98: So, recommendations to delete my life and start over on an other OS aside, any ideas what is wrong?
[21:58:04] tmtwd: has joined #ruby
[21:58:06] kristian_on_linu: I'm in Denmark, BraddPitt
[21:58:12] BraddPitt: Makes sense
[21:58:42] kristian_on_linu: baweaver: elaborate, please?
[21:58:55] baweaver: cannot load such file -- jekyll/version (LoadError)
[21:59:55] jpfuentes2: has joined #ruby
[21:59:56] modern: has joined #ruby
[22:00:14] baweaver: which is odd considering: https://github.com/jekyll/jekyll/blob/v2.5.3/lib/jekyll/version.rb
[22:01:31] baweaver: https://github.com/jekyll/jekyll/blob/v2.5.3/bin/jekyll#L21
[22:01:37] shadoi: has joined #ruby
[22:02:09] decoponyo: has joined #ruby
[22:02:22] baweaver: I'd open an issue on it, or see if there's a patched version
[22:02:29] shinnya: has joined #ruby
[22:02:40] alphaatom: has joined #ruby
[22:02:44] bubbys: has joined #ruby
[22:03:52] alphaatom: has joined #ruby
[22:04:43] kristian_on_linu: I only needed to rename the gemfile!
[22:05:32] dgutierrez1287: has joined #ruby
[22:05:43] dfockler: should I modify $LOAD_PATH or use require_relative to load local files?
[22:07:10] nertzy: has joined #ruby
[22:08:31] shevy: install a gem :)
[22:08:52] shevy: I use require to load some local .rb file
[22:08:57] shevy: require_relative is so long to type
[22:09:01] dfockler: I don't want it to be a gem
[22:10:11] messysaurus: has joined #ruby
[22:10:24] centrx: has joined #ruby
[22:10:54] baweaver: everything is a gem
[22:10:57] baweaver: _everything_
[22:11:20] dfockler: I thought everything was an Object
[22:11:30] baweaver: Object is a gem
[22:11:47] baweaver: (not really, just being cheeky by now)
[22:11:57] baweaver: well, rubinius
[22:12:01] michael_mbp: has joined #ruby
[22:13:51] banisterfiend: baweaver sup weave-dogg
[22:14:28] yashinbasement: has joined #ruby
[22:14:37] erts: has joined #ruby
[22:14:46] baweaver: waiting for pull requests to get done.
[22:15:38] shevy: pull that dam already!
[22:16:23] jgpawletko: has joined #ruby
[22:18:23] ghr: has joined #ruby
[22:21:16] renodice: has joined #ruby
[22:21:24] freerobby: has joined #ruby
[22:22:34] mleung: has joined #ruby
[22:23:33] Rubie: has joined #ruby
[22:23:36] Oka: has joined #ruby
[22:24:02] michael_mbp: has joined #ruby
[22:24:18] ruby-lang494: has joined #ruby
[22:25:18] Sou|cutter: I'm finding myself writing interfaces that lean heavily on #call lately. I can't tell if this is a good or bad thing yet :/
[22:25:21] ledestin: has joined #ruby
[22:26:38] quazimodo: has joined #ruby
[22:28:06] davedev24: has joined #ruby
[22:28:53] robbyoconnor: has joined #ruby
[22:28:55] renodice: has left #ruby: ("Silentium est aureum")
[22:29:11] dfockler: has joined #ruby
[22:30:00] shevy: do you know what is going on?
[22:30:10] barhum2013: has joined #ruby
[22:30:21] renodice: has joined #ruby
[22:30:55] centrx: shevy, WHAT IS GOING ON!?!?
[22:33:36] PenguinMan98: has joined #ruby
[22:33:44] shevy: I mean the #call-able interfaces
[22:33:53] banisterfiend: Sou|cutter soon you'll be writing pure functions :)
[22:34:39] banisterfiend: i mean if your objects are small enough to have one method as their public interface you'll probably go whole-hog and just have single functions altogether, then you'll be blogging about haskell and monads soon enough..
[22:34:41] tmtwd: has joined #ruby
[22:34:52] renodice: has left #ruby: ()
[22:35:09] alejandrok5: has joined #ruby
[22:35:11] baweaver: ACTION hides monad tutorial slowly
[22:35:11] Sou|cutter: ACTION nods sadly
[22:35:13] mjuszczak: has joined #ruby
[22:35:54] mjuszczak: has joined #ruby
[22:36:14] aep: hm, rand() is too random for me. i wonder if there is a form of 'random' that is biased towards even distribution
[22:36:29] Sou|cutter: I'm really curious why anyone would ever use .() on a #call-able
[22:36:40] mleung: has joined #ruby
[22:36:56] banisterfiend: Sou|cutter in the case of lambdas it's just cos it looks more like () i guess
[22:37:00] banisterfiend: which ruby doesnt allow for various reasons
[22:37:16] Yzguy: has joined #ruby
[22:37:32] Sou|cutter: it looks so janky
[22:37:46] centrx: aep, I thought rand already used a uniform distribution?
[22:37:55] Sou|cutter: banisterfiend: probably true
[22:38:08] banisterfiend: Sou|cutter if you're writing something full of lambdas like the y-combinator, it can look a little neater
[22:38:13] banisterfiend: though still pretty janky yeah
[22:38:20] banisterfiend: but a lil nicer than #call everywhere imo
[22:38:30] ghr: has joined #ruby
[22:38:31] aep: centrx: probably, but i need more. i'm using it for a binary choice and it just returned 10 times true in a row. humans will think its broken
[22:38:36] zenspider: I'd honestly rather use call than .()
[22:38:42] zenspider: but I'll stick to []
[22:39:08] zenspider: mmm... no, apparently I use .call a fair amount too
[22:39:13] Sou|cutter: zenspider: [] doesn't #call does it?
[22:39:19] zenspider: hard to look for where I use []
[22:39:23] centrx: aep, Anything can happen, it's random
[22:39:25] zenspider: they're aliases
[22:39:28] baweaver: >> -> { 1 + 2 }[]
[22:39:29] ruboto: baweaver # => 3 (https://eval.in/426428)
[22:39:35] Sou|cutter: nice, I didn't realize that one
[22:39:36] aep: centrx: exactly, i want less random :D
[22:39:43] Maletor: How does Float#round work, in relation to IEEE 754? I mean, how does it add bits to increase the precision of the number?
[22:39:49] baweaver: >> -> a { 1 + 2 } === 1
[22:39:50] ruboto: baweaver # => 3 (https://eval.in/426429)
[22:39:53] centrx: aep, You could do (1..10).to_a.shuffle
[22:40:02] PenguinMan98: this solved my problem http://stackoverflow.com/questions/18869441/installation-issue-in-sproutcore
[22:40:03] zenspider: maletor: afaik, it _is_ 754
[22:40:04] shevy: Sou|cutter once you use [] your code will become even more magical to the un-initiated
[22:40:12] Sou|cutter: shevy: That is a concern, heh
[22:40:23] aep: centrx: doesnt that just use rand() ?
[22:40:39] Maletor: zenspider: then how does it remove the .000000000003 at the end by virtue of rounding it? Wouldn't they still exist?
[22:40:46] banisterfiend: Sou|cutter jim weirich used .() a lot in this vid on the y combinator https://www.youtube.com/watch?v=FITJMJjASUs
[22:40:46] aep: maybe i should just count and bias it myself
[22:40:49] zenspider: "too random" heh
[22:41:01] mleung: has joined #ruby
[22:41:13] zenspider: banisterfiend: and it was icky...
[22:41:19] zenspider: made it look slighly more lispy tho, I guess
[22:41:25] zenspider: if you squint
[22:41:27] banisterfiend: if you squint hard enough you can just ignore the '.' https://www.dropbox.com/s/nkdrhpbsjhyzkwh/Screenshot%202015-09-02%2000.41.17.png?dl=0
[22:41:31] michael_mbp: has joined #ruby
[22:41:34] zenspider: maletor: I don't think I understand your question
[22:41:36] centrx: aep, that gives you a randomly sorted array of the numbers 1 through 10
[22:42:03] zenspider: maletor: round returns a new value, and an integer... so...
[22:42:11] Sou|cutter: banisterfiend: I like(d) Jim a lot, but I think we have different aesthetic tastes
[22:42:12] aep: centrx: i dont understand how thats less random
[22:42:15] centrx: aep, each number appears only once. So figure out what the actual parameters of your randomness are. The same number appearing ten times in a row is unlikely, it's not going to happen to a lot of people, maybe no one else
[22:42:48] aep: unfortunatly i have true/false. but the idea was good
[22:42:50] Sou|cutter: or he's just challenging me, and my subconscious doesn't like that ;)
[22:43:11] zenspider: aep: (1..10).to_a is about as less random as you'll get
[22:43:43] zenspider: Sou|cutter: I don't think that talk was representative of his normal style. IIRC, he says something to that effect at the start
[22:43:48] Maletor: zenspider: i think it's because round has a ceiling of ~16
[22:44:01] Maletor: if it were any more than the float couldn't be trusted to be accurate
[22:44:03] zenspider: not to say that I don't disagree with many of his design choices
[22:44:33] maletor_: has joined #ruby
[22:44:35] Maletor: zenspider: which is a practical limit of floats in the first place
[22:44:39] aep: actually this is exactly what i need (([true]*5)+([false]*5)).to_a.shuffle thanks centrx
[22:45:08] zenspider: maletor: again, I'm not sure what you're asking. afaik, ruby implements ieee754 directly. Refer to that document
[22:45:30] nahtnam: has joined #ruby
[22:45:36] banisterfiend: zenspider "not" to say that i "dont" "dis"agree, for someone who doesnt even liek to use "unless" in ruby that hurt my tiny pigeon brain :)
[22:46:00] centrx: ACTION hopes aep is not writing the next version of OpenSSL
[22:46:13] zenspider: banisterfiend: jim didn't use unless?
[22:46:29] banisterfiend: zenspider i was just referring to your use of negatives in that sentence :)
[22:46:35] banisterfiend: not, dont, disagree
[22:46:41] banisterfiend: could also be because it's nearly 1am and i'm drunk though..
[22:46:44] aep: centrx: hehe. nah, its a coin toss. and humans get frustrated when it 'feels' not random
[22:46:53] Sou|cutter: banisterfiend: I laughed
[22:47:54] luksaur: has joined #ruby
[22:48:12] Mendenhall: has joined #ruby
[22:53:02] renodice: has joined #ruby
[22:53:11] truenito: has joined #ruby
[22:54:02] michael_mbp: has joined #ruby
[22:55:22] jesterfraud: has joined #ruby
[22:56:55] alejandrok5: has joined #ruby
[22:57:06] sdwrage: has joined #ruby
[22:58:58] kidmillions: has joined #ruby
[23:01:44] shadoi: has joined #ruby
[23:01:55] mjuszczak: has joined #ruby
[23:02:08] rickmasta: has joined #ruby
[23:02:49] pragmatism: has joined #ruby
[23:03:39] bigmac: has joined #ruby
[23:04:48] poli: has joined #ruby
[23:05:10] blue_deref: has joined #ruby
[23:05:54] theery: has joined #ruby
[23:05:57] tskogberg: has joined #ruby
[23:07:05] davejlong: has joined #ruby
[23:07:58] dopie: has joined #ruby
[23:08:05] jesterfraud: has joined #ruby
[23:09:55] jesterfraud: what happened to MINASWAN in the topic?
[23:11:06] shevy: who was the evil one who changed the topic last
[23:11:31] michael_mbp: has joined #ruby
[23:11:32] shevy: aha! it was apeiros!
[23:12:11] siaW: has left #ruby: ()
[23:12:11] shevy: jesterfraud I don't think I would have noticed any change at all, I don't even read topics, they scroll away so quickly :)
[23:13:49] robbyoconnor: has joined #ruby
[23:14:10] tubuliferous_: has joined #ruby
[23:14:53] riotjones: has joined #ruby
[23:14:54] BraddPitt: Outside of Rails, is there a way to feed a schema to Postgres?
[23:15:40] tubuliferous: has joined #ruby
[23:15:55] baweaver: or postgresql console
[23:16:31] BraddPitt: hmmm ideally reading from a file
[23:17:10] BraddPitt: I guess I could read in from a text file with table creation statements?
[23:17:14] dfockler: BraddPitt: psql db_name < file.sql
[23:17:25] BraddPitt: can I do that in code?
[23:17:42] Radar: `psql db_name < file.sql`
[23:17:48] Radar: next question plz
[23:18:02] baweaver: http://sequel.jeremyevans.net/
[23:18:03] dfockler: I'm sure pg or Sequel has some function for it
[23:18:14] BraddPitt: was trying to find it in pg
[23:18:16] BraddPitt: i hate their docs
[23:18:42] tubuliferous_: has joined #ruby
[23:18:52] BraddPitt: I think i'll do what Radar suggested, thanks
[23:19:07] dfockler: pg docs are annoying
[23:20:05] baweaver: ACTION shrugs
[23:20:21] Radar: Are they?
[23:20:37] bronson: has joined #ruby
[23:20:38] ghr: has joined #ruby
[23:21:02] BraddPitt: to read, yes
[23:21:10] Radar: explain plz
[23:21:16] tubuliferous: has joined #ruby
[23:21:38] BraddPitt: its just a list of classes, methods and files
[23:21:45] BraddPitt: but no description of what each does
[23:22:01] BraddPitt: so if you don't know what you're looking for, its hard to search
[23:23:07] messysaurus: has joined #ruby
[23:23:20] Salve: has joined #ruby
[23:23:31] michael_mbp: has joined #ruby
[23:23:36] shevy: people often get lazy when it comes to docu
[23:23:55] davejlong: has joined #ruby
[23:26:41] Radar: Oh the pg gem
[23:26:49] Radar: I thought you meant the PostgreSQL.org docs
[23:27:04] cscheib: is there a sane reason why people upload numerous iterations of their gem to rubygems within a very short span?
[23:27:10] Radar: cscheib: eg?
[23:27:16] cscheib: just curious, I've been following the rubygems twitter feed
[23:27:28] cscheib: example, frecon
[23:27:35] Radar: Bugs in it
[23:27:35] cscheib: https://twitter.com/rubygems
[23:27:58] cscheib: I can understand like 2 in 30 minutes
[23:28:11] Coraline: Sometimes, as Radar says, I release and realize that I published a bug
[23:28:12] Radar: Why are you following it? It's a firehose.
[23:28:19] Radar: GitHub link is broken for frecon.
[23:28:42] cscheib: Coraline: oh, totally understood... but there's like a dozen uploads
[23:28:47] BraddPitt: cscheib usually committing without testing
[23:29:08] cscheib: yea, that's what I figured, laziness
[23:29:20] BraddPitt: (I'm very guilty of that with my git commits but it gets me green squares so #yolo)
[23:29:22] cscheib: just wasn't sure if there was something I'm missing
[23:30:23] glenab: has joined #ruby
[23:30:53] messysaurus: has joined #ruby
[23:30:58] cscheib: Radar: it is a firehose, sure, but I've found out about a few reasonably useful gems by following the feed
[23:31:04] shevy: cscheib sometimes you may find some bug or typo as you release a gem
[23:31:19] shevy: so then you either publish a new update quickly, or wait until the next iteration which may happen in +x days
[23:31:23] cscheib: shevy: yes yes, but a dozen times? :P
[23:31:44] shevy: I think the highest count of gem release I had about 6 gems for one project in a single day
[23:31:51] cscheib: sounds like laziness, and not using versioning/branching/tagging properly
[23:32:11] barhum2013: has joined #ruby
[23:32:12] Ox0dea: cscheib: Perhaps they accidentally set up a hook that pushes on save. :P
[23:32:23] cscheib: I suspect that's part of it
[23:32:26] shevy: isn't that precisely how you would publish in any other version control system too?
[23:32:34] zenspider: cscheib: laziness / sloppy discipline. I try to never ever release the same thing more than once a day.
[23:32:48] zenspider: I've also had jr devs under me that thought they could put out shit and then just put out fixes as they came up
[23:32:57] zenspider: rude awakening when I made them live with their initial release for a week
[23:33:01] shevy: https://rubygems.org/gems/frecon/versions
[23:33:02] devoldmx: has joined #ruby
[23:33:03] zenspider: they cleaned up real quick
[23:33:05] mleung: has joined #ruby
[23:33:10] shevy: not sure how that dude added +x KB so quickly
[23:33:41] cscheib: zenspider: yea, I'm with you, I wouldn't be tagging a release until I'm sure it's ready
[23:33:47] cscheib: and not multiple times in a day
[23:34:12] zenspider: ew. and they use tabs
[23:34:29] shevy: hmm... saying there are 6 authors for frecon
[23:34:38] cscheib: heck, I'd leave it off rubygems until the release cycle was mildly stable
[23:34:47] Yzguy: has joined #ruby
[23:34:49] Ox0dea: https://github.com/frc-frecon/frecon/commits/master
[23:34:55] petricore: has joined #ruby
[23:35:01] Ox0dea: At least he's not pushing the gem for each additional piece of documentation. :P
[23:35:04] benlovell: has joined #ruby
[23:35:31] newmanships: has joined #ruby
[23:35:39] zenspider: my favorite is when they have horrible process and each release contains pkg/*.gem
[23:36:01] zenspider: there was one gem that had been doing that for months
[23:36:10] zenspider: they had no clue that their 100kb gem was megs in size
[23:37:01] r0bby_: has joined #ruby
[23:37:01] michael_mbp: has joined #ruby
[23:37:34] cscheib: https://github.com/frc-frecon/logo/blob/master/profile/logo.svg <-- this was worthy of SVG
[23:38:31] ghr: has joined #ruby
[23:39:01] cscheib: (I'll stop making fun now, it's not like I'm contributing anything useful publicly)
[23:39:23] rickmasta: has joined #ruby
[23:39:38] davejlong: has joined #ruby
[23:40:13] Aeyrix: I want to post this on Twitter but Dashlane still haven't fixed their issue with sites using CSP
[23:40:17] Aeyrix: so I can't be bothered to login normally.
[23:41:43] hahuang65: has joined #ruby
[23:42:02] blackmesa: has joined #ruby
[23:42:16] rodfersou: has joined #ruby
[23:42:55] Ropeney: has joined #ruby
[23:43:02] Motoservo: has joined #ruby
[23:43:22] einarj: has joined #ruby
[23:43:23] Authenticator: has joined #ruby
[23:45:08] Motoservo: has joined #ruby
[23:45:28] workmad3: has joined #ruby
[23:45:51] rushed: has joined #ruby
[23:47:19] majjoha: has joined #ruby
[23:47:26] theery: has joined #ruby
[23:49:15] amystephen: has joined #ruby
[23:50:11] dseitz: has joined #ruby
[23:50:50] chouhoulis: has joined #ruby
[23:51:56] chouhoulis: has joined #ruby
[23:53:01] michael_mbp: has joined #ruby
[23:55:21] mleung: has joined #ruby
[23:56:44] tfranco: has joined #ruby
[23:57:06] dseitz: has joined #ruby