« Back to channel list

#ruby - 30 June 2015

« Back 1 day Forward 1 day »
[00:00:03] dgutierrez1287: has joined #ruby
[00:00:03] Azure: has joined #ruby
[00:01:46] cmisenas: has joined #ruby
[00:02:05] CloCkWeRX: has joined #ruby
[00:02:56] snapcase: has joined #ruby
[00:04:14] Azure: has joined #ruby
[00:04:30] QKO: has joined #ruby
[00:05:53] rbennacer: has joined #ruby
[00:05:59] CloCkWeRX1: has joined #ruby
[00:07:34] Willian|i7: has joined #ruby
[00:08:27] Cache_Money: has joined #ruby
[00:09:46] jfarmer: has joined #ruby
[00:09:54] Azure: has joined #ruby
[00:13:09] dseitz: has joined #ruby
[00:13:20] rbennacer: has joined #ruby
[00:13:34] balazs: has joined #ruby
[00:13:53] sevenseacat: has joined #ruby
[00:14:28] ruby-lang155: has joined #ruby
[00:15:51] blaines: has joined #ruby
[00:16:56] CloCkWeRX: has joined #ruby
[00:16:56] chipotle: has joined #ruby
[00:17:06] jhooker: has joined #ruby
[00:21:16] JoshuaPaling: has joined #ruby
[00:23:23] fabrice31: has joined #ruby
[00:23:29] workmad3: has joined #ruby
[00:25:14] thiagovsk: has joined #ruby
[00:26:27] genpaku: has joined #ruby
[00:26:34] CloCkWeRX1: has joined #ruby
[00:26:42] CloCkWeRX1: has left #ruby: ()
[00:26:47] Rollabunna: has joined #ruby
[00:28:03] Hobogrammer: has joined #ruby
[00:28:49] Channel6: has joined #ruby
[00:29:11] shadoi: has joined #ruby
[00:31:05] ght: Question: I am having one hell of a time getting API calls to a provider that uses XMLRPC formatting to work. I can successfully retreive the "code", use the code to get an initial authorize_key, then use that authorize key to attain a new one and new refresh_key. That's all working properly, and all with RestClient.
[00:31:15] ght: I've called them successfully to this provider for years using their legacy API and xmlrpc/client.
[00:31:18] ght: My question is, does anyone have an example of calling any API method to any provider that uses oauth2 and xmlrpc, using RestClient or XMLRPC::client.new2() or .new()?
[00:34:02] bf4: has joined #ruby
[00:34:06] Azure: has joined #ruby
[00:35:07] zacstewart: has joined #ruby
[00:36:01] Oog: has joined #ruby
[00:36:40] dgutierrez1287: has joined #ruby
[00:39:54] chipotle: has joined #ruby
[00:40:42] RegulationD: has joined #ruby
[00:45:04] William|i7: has joined #ruby
[00:45:26] blackmes1: has joined #ruby
[00:45:28] balazs: has joined #ruby
[00:45:49] shadoi: has joined #ruby
[00:48:24] irle: has joined #ruby
[00:49:17] rodfersou: has joined #ruby
[00:51:15] hmsimha_: has joined #ruby
[00:51:19] hmsimha__: has joined #ruby
[00:53:12] Azure: has joined #ruby
[00:54:03] QKO: has joined #ruby
[00:56:05] woodruffw: has joined #ruby
[00:57:09] brendan-: has joined #ruby
[00:57:41] brendan-: hi ya'll, if i need to execute a shell command via a ruby script (iptables addition), etc. what would be the recommended method or gem to use?
[00:58:06] brendan-: i would like to capture the output & the exit status
[00:58:19] brendan-: to validate that it was successful
[00:58:20] al2o3-cr: brendan-: open3
[00:59:20] hotpancakes: has joined #ruby
[00:59:22] jack_rabbit: has joined #ruby
[00:59:34] Muhannad: has joined #ruby
[00:59:36] QKO: has joined #ruby
[01:00:06] brendan-: al2o3-cr: gotcha
[01:00:09] al2o3-cr: brendan-: Open3.popen3(command) {| i,o,e,t| if t.exitstatus.zero? ...}
[01:00:15] bkxd: has joined #ruby
[01:01:14] al2o3-cr: brendan-: np
[01:01:22] j4cknewt: has joined #ruby
[01:01:29] al2o3-cr: or capture2/3
[01:01:48] al2o3-cr: depending on what you wanna do :)
[01:02:31] al2o3-cr: ?Open3#popen
[01:02:31] ruboto: I don't know anything about Open3
[01:02:45] al2o3-cr: ?Open3#popen3
[01:02:45] ruboto: I don't know anything about Open3
[01:02:51] irle: has joined #ruby
[01:03:18] jpfuentes2: has joined #ruby
[01:04:43] ebbflowgo: has joined #ruby
[01:06:35] a346: has joined #ruby
[01:06:59] bronson: has joined #ruby
[01:08:15] TiKo: has joined #ruby
[01:08:37] TiKo: whAT IS ruby?
[01:09:04] Ropeney: a nice rock
[01:09:12] havenwood: TiKo: A programming language.
[01:09:38] TiKo: [havenwood] is similar to?
[01:10:01] amclain: has joined #ruby
[01:10:14] lolmaus: has joined #ruby
[01:11:42] havenwood: TiKo: "Ruby is an interpreted scripting language for quick and easy object-oriented programming. It has many features to
[01:11:43] havenwood: process text files and to do system management tasks (like in Perl). It is simple, straight-forward, and extensible."
[01:11:53] havenwood: TiKo: ^ Check: man ruby
[01:12:38] al2o3-cr: havenwood: what if ruby is not installed or he/she is using windows?
[01:13:04] havenwood: TiKo: Here're some brief overviews of Ruby from the perspective of different languages: https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/
[01:13:12] havenwood: al2o3-cr: hem?
[01:13:33] al2o3-cr: havenwood: hem?
[01:13:43] TiKo: [havenwood] thanls
[01:13:44] havenwood: al2o3-cr: What if who is installing Ruby?
[01:13:46] TiKo: [havenwood] thanks
[01:14:06] al2o3-cr: havenwood: i didn't say installing
[01:14:35] havenwood: al2o3-cr: I just don't follow. What if Ruby isn't installed?
[01:14:48] al2o3-cr: havenwood: man ruby
[01:14:55] havenwood: al2o3-cr: ahhh, gotcha
[01:15:18] al2o3-cr: easily done :P
[01:15:21] NeverDie: has joined #ruby
[01:15:33] crdpink: has joined #ruby
[01:17:24] startupality: has joined #ruby
[01:18:20] mary5030: has joined #ruby
[01:18:53] Oog: has joined #ruby
[01:20:12] ddarkpassenger: has joined #ruby
[01:20:35] Pupeno_: has joined #ruby
[01:20:42] chipotle: has joined #ruby
[01:21:06] Rollabunna: has joined #ruby
[01:22:40] yfeldblum: has joined #ruby
[01:23:46] ryba: has joined #ruby
[01:24:02] Muhannad: has joined #ruby
[01:24:46] crdpink: has joined #ruby
[01:26:56] crdpink2: has joined #ruby
[01:31:07] luckyno7: has joined #ruby
[01:32:03] Igorshp: has joined #ruby
[01:32:42] crdpink2: has joined #ruby
[01:33:32] crdpink2: has joined #ruby
[01:36:14] tkuchiki: has joined #ruby
[01:36:39] tkuchiki_: has joined #ruby
[01:40:30] lavros: has joined #ruby
[01:40:41] p1k: has joined #ruby
[01:45:39] doctorly: has joined #ruby
[01:49:10] konsolebox: has joined #ruby
[01:50:22] bullcitydev: has joined #ruby
[01:52:54] dfockler: has joined #ruby
[01:54:06] zacstewart: has joined #ruby
[01:56:47] craysiii: has left #ruby: ()
[01:57:38] balazs: has joined #ruby
[01:58:36] j4cknewt: has joined #ruby
[02:00:12] MatthewsFace: has joined #ruby
[02:00:41] casadei_: has joined #ruby
[02:01:18] mtx_init_: has joined #ruby
[02:02:05] mtx_init_: has left #ruby: ("WeeChat 1.0.1")
[02:02:52] houhoulis: has joined #ruby
[02:03:15] dgutierrez1287: has joined #ruby
[02:06:24] pothibo: has joined #ruby
[02:07:55] ryba: has joined #ruby
[02:07:57] scottschecter: has joined #ruby
[02:08:50] jesterfraud: has joined #ruby
[02:11:06] balazs: has joined #ruby
[02:12:08] fabrice31: has joined #ruby
[02:12:14] workmad3: has joined #ruby
[02:15:24] Rollabunna: has joined #ruby
[02:15:44] dented42: has joined #ruby
[02:17:34] twistedpixels: can someone ELI5 gsub vs gsub!
[02:17:34] baweaver: has joined #ruby
[02:17:49] d1ngell: has joined #ruby
[02:18:06] RegulationD: has joined #ruby
[02:18:27] sevenseacat: gsub! is in place and will modify whatever you call it on. gsub will return the modified value.
[02:18:38] C0deMaver1ck: this is true for most methods that end with a bang
[02:18:43] sevenseacat: this is explained in the docs.
[02:18:53] lessless: has joined #ruby
[02:18:58] twistedpixels: oh okay, that makes sense thank you!
[02:20:10] dgutierrez1287: has joined #ruby
[02:22:24] jtdoncas: has joined #ruby
[02:23:37] ebbflowgo: has left #ruby: ()
[02:27:18] govt: has joined #ruby
[02:28:28] govt: I was watching John Worthington of Perl 6 notoriety the other day and he was talking about designing method-first and letting the classes be derived from the flow of method calls. I'm having trouble with OO design principles, i can program just fine but I don't know how to THINK in oo. How do I get past this?
[02:28:55] mahmoudmahfouz: has joined #ruby
[02:29:26] sevenseacat: the simple answer is probably 'practice'
[02:29:44] _jesterfraud: has joined #ruby
[02:29:44] sevenseacat: I have a hard time not thinking in OO (which makes learning functional programming fun)
[02:30:42] pepperbreath: has joined #ruby
[02:31:36] allomov: has joined #ruby
[02:31:44] govt: i love fp, but when I look at other peoples code i just feel lost sometimes and I dont know how to write my code so that when other people read it they dont feel lost
[02:31:57] chipotle: has joined #ruby
[02:33:14] sevenseacat: I think thats a bit natural with any kind of evolved design - the first version was probably simple enough for anyone to jump in and understand, but as the functionality and complexity grows, it naturally gets harder to understand
[02:35:31] fromthedepths: has joined #ruby
[02:35:52] dgutierrez1287: has joined #ruby
[02:37:06] hotpancakes: has joined #ruby
[02:37:33] Cache_Money: has joined #ruby
[02:37:37] govt: thats tru
[02:38:30] mahmoudmahfouz: has joined #ruby
[02:38:34] Spami: has joined #ruby
[02:39:25] zacstewart: has joined #ruby
[02:40:55] mistermocha: has joined #ruby
[02:41:16] RegulationD: has joined #ruby
[02:41:57] RegulationD: has joined #ruby
[02:44:25] dstarh: has joined #ruby
[02:45:50] Rollabunna: has joined #ruby
[02:46:47] bf4: has joined #ruby
[02:48:06] mistermocha: has joined #ruby
[02:48:50] mcclurmc: has joined #ruby
[02:50:03] mistermocha: has joined #ruby
[02:52:19] minmax: has joined #ruby
[02:53:11] chinmay_dd: has joined #ruby
[02:56:18] zacstewart: has joined #ruby
[02:56:21] mcclurmc: has joined #ruby
[03:00:28] scx_: has joined #ruby
[03:01:58] serivich: has joined #ruby
[03:03:51] hotpancakes: has joined #ruby
[03:04:03] hahuang65: has joined #ruby
[03:04:45] sbhatore1: has joined #ruby
[03:06:07] Rubie: has joined #ruby
[03:07:57] darkf: has joined #ruby
[03:10:17] mcclurmc: has joined #ruby
[03:12:11] braincrash: has joined #ruby
[03:13:20] s2013: has joined #ruby
[03:13:57] zacstewart: has joined #ruby
[03:14:21] jackjackdripper: has joined #ruby
[03:15:03] Oog: has joined #ruby
[03:17:10] sbhatore: has joined #ruby
[03:18:06] mistermocha: has joined #ruby
[03:19:17] towski_: has joined #ruby
[03:19:51] acrux09: has joined #ruby
[03:20:39] Cache_Money: has joined #ruby
[03:20:57] ebbflowgo: has joined #ruby
[03:23:28] jpfuentes2: has joined #ruby
[03:24:25] bf4: has joined #ruby
[03:25:26] emptyflask: has joined #ruby
[03:27:16] sbhatore1: has joined #ruby
[03:27:32] yfeldblum: has joined #ruby
[03:27:44] MEATCHICKEN: Easy way to pair each array element with every other? [1,2,3,4,5] -> 1*2,1*3,1*4,1*5,2*3,2*4 etc
[03:27:52] MEATCHICKEN: what is this "equation" called
[03:28:35] charliesome: has joined #ruby
[03:29:00] dopie: has joined #ruby
[03:29:22] lavros: has joined #ruby
[03:29:58] mozzarella: >> [1, 2, 3, 4, 5].combination(2).to_a
[03:29:59] ruboto: mozzarella # => [[1, 2], [1, 3], [1, 4], [1, 5], [2, 3], [2, 4], [2, 5], [3, 4], [3, 5], [4, 5]] (https://eval.in/389614)
[03:30:20] mozzarella: meatchicken: ^
[03:30:24] i: has joined #ruby
[03:31:24] dopie: has joined #ruby
[03:31:30] Al3ks: has joined #ruby
[03:31:36] gix: has joined #ruby
[03:32:23] MEATCHICKEN: mozzarella, nicely done
[03:32:56] danman: has joined #ruby
[03:33:59] rbennacer: has joined #ruby
[03:35:01] Oog: has joined #ruby
[03:35:40] mcclurmc: has joined #ruby
[03:35:40] lavros: has joined #ruby
[03:36:58] dgutierrez1287: has joined #ruby
[03:40:10] Rollabunna: has joined #ruby
[03:41:20] sbhatore: has joined #ruby
[03:42:11] yfeldblum: has joined #ruby
[03:42:42] s2013: has joined #ruby
[03:44:16] Oka: has joined #ruby
[03:45:27] jenrzzz: has joined #ruby
[03:46:56] luckyno7: has joined #ruby
[03:50:05] sargas: has joined #ruby
[03:51:41] havenwood: has joined #ruby
[03:51:49] Oka: has joined #ruby
[03:51:55] serivich: has joined #ruby
[03:53:59] geilt: has joined #ruby
[03:55:07] nyanz: has joined #ruby
[03:56:26] dionysus69: has joined #ruby
[03:59:14] doctorly: has joined #ruby
[04:00:58] fabrice31: has joined #ruby
[04:01:50] robbyoconnor: has joined #ruby
[04:02:09] kfpratt: has joined #ruby
[04:02:22] rrichardsr3: has joined #ruby
[04:04:06] mcclurmc: has joined #ruby
[04:07:07] psy: has joined #ruby
[04:07:32] MacDaddy: has joined #ruby
[04:07:49] s2013: has joined #ruby
[04:08:13] psy: has joined #ruby
[04:08:56] bronson: has joined #ruby
[04:09:01] Oog: has joined #ruby
[04:09:16] michael_mbp: has joined #ruby
[04:11:18] p1k: has joined #ruby
[04:19:49] yayfoxes: has joined #ruby
[04:20:14] startupality: has joined #ruby
[04:22:36] astrobunny: has joined #ruby
[04:23:57] Kryptonical: has joined #ruby
[04:30:32] ruby-lang068: has joined #ruby
[04:30:58] Al3ks: has joined #ruby
[04:31:32] bluOxigen: has joined #ruby
[04:32:42] s2013: has joined #ruby
[04:32:51] doctorly_: has joined #ruby
[04:33:46] zacstewart: has joined #ruby
[04:34:25] Rollabunna: has joined #ruby
[04:35:22] juiko: has joined #ruby
[04:36:24] psye: has joined #ruby
[04:38:04] p1k: has joined #ruby
[04:38:10] dgutierrez1287: has joined #ruby
[04:40:00] mcclurmc: has joined #ruby
[04:40:46] Oog: has joined #ruby
[04:40:48] j4cknewt: has joined #ruby
[04:43:02] ebbflowgo: has joined #ruby
[04:47:15] peter_paule: has joined #ruby
[04:49:43] LiquidInsect: has joined #ruby
[04:51:03] Oog: has joined #ruby
[04:51:58] LiquidIn1ect: has joined #ruby
[04:55:30] chipotle: has joined #ruby
[04:56:12] karols: has joined #ruby
[04:56:38] giuseppesolinas: has joined #ruby
[04:56:47] keen___________6: has joined #ruby
[04:56:54] nobitanobi: has joined #ruby
[04:56:56] aryaching: has joined #ruby
[05:01:03] Oog: has joined #ruby
[05:01:11] giuseppesolinas: Hello, I'm having issues with CKEditor.js. Issue is I hate its interface, I want to be able to use custom selects, buttons, links and other html elements to control text formatting. Does anybody know how to do this?
[05:03:05] ellisTAA: has joined #ruby
[05:08:36] revath: has joined #ruby
[05:08:42] yfeldblum: has joined #ruby
[05:10:57] bf4: has joined #ruby
[05:11:03] baweaver: has joined #ruby
[05:13:03] Melite: has joined #ruby
[05:13:12] Kryptonical: has joined #ruby
[05:13:57] yfeldblum: has joined #ruby
[05:14:18] sfarley: has joined #ruby
[05:14:22] sevenseacat: has joined #ruby
[05:18:39] revath: has left #ruby: ()
[05:18:51] Xeago: has joined #ruby
[05:21:14] mary5030: has joined #ruby
[05:23:58] Spami: has joined #ruby
[05:26:28] jfarmer: has joined #ruby
[05:26:41] dhjondoh: has joined #ruby
[05:28:24] Xeago: has joined #ruby
[05:28:44] Rollabunna: has joined #ruby
[05:28:46] danman: has joined #ruby
[05:30:29] lkba: has joined #ruby
[05:32:16] grey_beard: has joined #ruby
[05:32:53] kp666: has joined #ruby
[05:33:29] p1k: has joined #ruby
[05:33:50] whiteline: has joined #ruby
[05:34:02] grey_beard: So anyone feel like talking about sort_by?
[05:34:03] Musashi007: has joined #ruby
[05:34:58] jfarmer: grey_beard What about it? :)(
[05:35:03] jfarmer: ()()()( parens party
[05:35:54] ngsw: has joined #ruby
[05:36:32] jfarmer: grey_beard ?!?!?
[05:36:35] Rubie: has joined #ruby
[05:36:41] chipotle: has joined #ruby
[05:37:06] grey_beard: I don't quit understand the arguments part. For example frequencies.sort_by { |k, v| v } was given, what exactly is the |k,v| v indicating
[05:37:08] dhjondoh: has joined #ruby
[05:37:38] Aeyrix: key, value
[05:37:43] jfarmer: grey_beard Can you articulate your understanding of blocks?
[05:38:14] Aeyrix: >> example_hash = {"key": "value"}; p example_hash['key']
[05:38:15] ruboto: Aeyrix # => nil ...check link for more (https://eval.in/389649)
[05:38:20] jfarmer: grey_beard Aeyrix's answer isn't wrong, but don't take it to mean there is something special about the names "k" and "v" there
[05:38:22] Aeyrix: lmao thanks ruboto
[05:38:30] sphex: doesn't it have a single argument?
[05:38:33] havenwood: >> {aim: true, another: false}.map { |_, v| v }
[05:38:33] havenwood: >> {aim: true, another: false}.map { |k, _| k }
[05:38:34] ruboto: havenwood # => [true, false] (https://eval.in/389651)
[05:38:34] ruboto: havenwood # => [:aim, :another] (https://eval.in/389652)
[05:38:44] grey_beard: Well so far the only blocks I've learned are code blocks.
[05:38:59] dgutierrez1287: has joined #ruby
[05:39:03] jfarmer: grey_beard Can you give an example of what you'd call a "code block" in Ruby?
[05:39:46] yeticry: has joined #ruby
[05:39:49] Eiam_: has joined #ruby
[05:40:23] jfarmer: grey_beard Use a service like gist.github.com to type/paste in some code and highlight the part you'd identify as a "code block."
[05:40:38] grey_beard: { } and the do and end delimiters.
[05:40:53] jfarmer: grey_beard Ok, great.
[05:41:20] jfarmer: grey_beard You've seen something like "[1,2,3].each { |num| puts(num) }" yeah?
[05:41:27] jfarmer: As in, that code doesn't make you go "WTF?!"
[05:41:44] baweaver: it makes me go wtf
[05:41:48] baweaver: parens on puts?
[05:41:52] baweaver: how could you ;-;
[05:42:30] p1k: has joined #ruby
[05:42:31] grey_beard: Yes I can understand what happens.
[05:42:47] jfarmer: grey_beard Ok, and the "{ |num| ....}" bit is what you'd call a "code block"?
[05:42:49] revath1: has joined #ruby
[05:43:16] grey_beard: Yes from the tutorial I've read.
[05:43:54] jfarmer: Part of what I'm trying to do is make sure we're talking about the same thing. Apologies if it seems pedantic, but it's easy to talk about something for 15 minutes only to realize we're talking about different things. :)
[05:43:56] jfarmer: grey_beard What role is "{ |num| puts(num) }" playing in that chunk of code?
[05:44:02] rht: has joined #ruby
[05:44:09] lxsameer: has joined #ruby
[05:44:11] jfarmer: In your mind, I mean? What picture do you have in your head?
[05:44:58] jfarmer: grey_beard If this doesn't seem like I'm answering your question it's because your question doesn't really have anything to do with sort_by *per se*
[05:45:22] grey_beard: It's fine my understanding it pretty basic if its interchangeable with parameters or arguments my apologies I don't want any ambiguity from using the wrong language.
[05:45:31] Ox0dea: has joined #ruby
[05:45:40] jfarmer: grey_beard No, don't take me as critiquing your usage.
[05:45:47] baweaver: Ox0dea: do you come bearing gifts of perlisms?
[05:45:53] jfarmer: Your usage is fine, although you'd just call it a "block" and not a "code block"
[05:46:10] Ox0dea: baweaver: Alas, I've come only to assist grey_beard in his understanding of blocks.
[05:46:26] Ox0dea: >> %w[Ruby is awesome].sort_by { |word| word.length }
[05:46:27] ruboto: Ox0dea # => ["is", "Ruby", "awesome"] (https://eval.in/389661)
[05:46:35] Ox0dea: grey_beard: Does that example help you get a better sense of what's going on?
[05:46:46] baweaver: >> !!["is", "Ruby", "awesome"]
[05:46:47] ruboto: baweaver # => true (https://eval.in/389662)
[05:46:59] grey_beard: Well it gets iterated through each string/intergar whatever and put in the placeholder num then num is displayed.
[05:47:11] Ox0dea: Let's try this again.
[05:47:13] Ox0dea: >> %w[Ruby is awesome].sort_by { |word| word.length }
[05:47:14] ruboto: Ox0dea # => ["is", "Ruby", "awesome"] (https://eval.in/389663)
[05:47:16] baweaver: Ox0dea: wait wait
[05:47:22] Ox0dea: ACTION waits.
[05:47:26] baweaver: they're referring to something above
[05:47:39] baweaver: "22:42 jfarmer: grey_beard Ok, and the "{ |num| ....}" bit is what you'd call a "code block"?"
[05:47:52] baweaver: { |num| puts(num) }
[05:47:54] baweaver: specifically
[05:48:07] SuMo_D: has joined #ruby
[05:48:21] jfarmer: grey_beard What baweaver said. For example, what would happen if instead I wrote "[1,2,3].each { |num| puts(num * 2) }"
[05:48:34] Xiti: has joined #ruby
[05:48:44] jfarmer: How does me changing the block affect how "[1,2,3].each" behaves?
[05:48:45] Xiti: has joined #ruby
[05:49:00] Ox0dea: (It doesn't, technically.)
[05:49:03] speaking1ode: has joined #ruby
[05:49:06] baweaver: grey_beard: another question, what languages do you know well?
[05:49:28] baweaver: >> [1,2,3].each { |a| a + 1 }
[05:49:29] ruboto: baweaver # => [1, 2, 3] (https://eval.in/389666)
[05:49:35] baweaver: >> [1,2,3].map { |a| a + 1 }
[05:49:35] jfarmer: man alive folks
[05:49:36] ruboto: baweaver # => [2, 3, 4] (https://eval.in/389667)
[05:49:41] workmad3: has joined #ruby
[05:49:43] jfarmer: you are full of distracting and potentially confusing examples
[05:49:45] grey_beard: Know well none, I have dipped into Perl and Python, but I'm actually serious about ruby
[05:49:47] j4cknewt: has joined #ruby
[05:50:06] sphex: grey_beard: are you unconfused yet?!
[05:50:14] baweaver: so base case then
[05:50:33] jfarmer: grey_beard Here's the deal in 3 sentences.
[05:50:43] baweaver: http://learnrubythehardway.org/book/ - this might help later as well
[05:50:48] jfarmer: 1. Blocks are a special kind of method argument in Ruby and every method can accept one, even if they don't do anything with it.
[05:50:55] Ox0dea: jfarmer: I think the #puts example is not great; it involves IO and doesn't really demonstrate how blocks are great for customizing behavior.
[05:51:17] Ox0dea: I'll leave you to it, then.
[05:51:37] jfarmer: Ox0dea Alas, I'm constrained by the format of IRC.
[05:52:23] jfarmer: 2. Inside, methods can call the block (almost as if the block were a method itself)
[05:52:40] konsolebox: has joined #ruby
[05:52:49] grey_beard: Well maybe I backtrack and reformulate my question. So from what others said frequencies.sort_by { |k, v| v } the k and v indiciate |key, value| value, and there is nothing special about the k,v they are just convenient letters.
[05:52:56] mcclurmc: has joined #ruby
[05:53:26] jfarmer: 3. The analogy is that if a method looks like "def whatever(a, b, c) ... end" then blocks look like "{ |a, b, c| ... }"
[05:53:49] sphex: sort_by only passes one argument to its block though
[05:53:49] jfarmer: grey_beard The role a block plays in the overall code depends on the method you're passing the block to.
[05:53:58] jfarmer: sphex Stop.
[05:54:04] jfarmer: These technical details are correct but really confusing.
[05:54:22] jfarmer: grey_beard Do you know how to iterate over a Hash in Ruby?
[05:54:25] jfarmer: Using each?
[05:54:37] sphex: uh. I'm sorry, I'll guess I'll hold my comments for the end. :p
[05:54:44] grey_beard: So if I understand the frequencies.sort_by { |indicates key, indicates value| this tell to sort by key or value }
[05:54:50] jfarmer: grey_beard If you can follow (1), (2), and (3) of what I just said then Ox0dea's is the one to look at now.
[05:54:51] Aeyrix: #ruby helping new programmers learn Ruby in a nutshell.
[05:54:52] jfarmer: grey_beard Stop
[05:54:58] jfarmer: grey_beard Hold up.
[05:55:04] jfarmer: grey_beard Let's understand a simpler example first.
[05:55:21] jfarmer: There are three moving parts here: (1) the block, (2) sort_by, (3) and the fact that you're calling sort_by on a Hash
[05:55:51] jfarmer: If you're not comfortable with (1) and (2) then it will be easiest to understand them if we understand how sort_by works with something like an Array
[05:55:56] jfarmer: Using Ox0dea's example:
[05:56:19] jfarmer: >> ["Ruby", "is", "awesome"].sort_by { |word| word.length }
[05:56:20] ruboto: jfarmer # => ["is", "Ruby", "awesome"] (https://eval.in/389670)
[05:56:37] jfarmer: Or, to highlight the fact that the parameter name is just a placeholder:
[05:56:43] grey_beard: Okay I apolagize my irc doesnt automatically scroll down so I'm constantly scrolling down.
[05:56:51] jfarmer: >> ["Ruby", "is", "awesome"].sort_by { |waffles| waffles.length }
[05:56:52] ruboto: jfarmer # => ["is", "Ruby", "awesome"] (https://eval.in/389671)
[05:56:58] jfarmer: Oh. Really? That's....
[05:57:03] jfarmer: Well, that makes IRC hard.
[05:57:45] grey_beard: Yes it does, but im following you now.
[05:57:48] jfarmer: grey_beardy Blocks allow us to pass in behavior (encapsulated as a block) into another method. In the case of sort_by, the block is used to determine how to sort each thing in whatever collection you're trying to sort.
[05:57:49] roolo: has joined #ruby
[05:58:08] yardenbar: has joined #ruby
[05:59:00] Oog: has joined #ruby
[05:59:12] grey_beard: So from your example it assumes you want to sort into ascending order?
[05:59:34] jfarmer: grey_beard Yes.
[06:00:11] jfarmer: Just like:
[06:00:18] grey_beard: So that is the default and you would need to change the block if you wanted descending.
[06:00:19] jfarmer: >>> [10, 7, -12, 3].sort
[06:00:20] ruboto: jfarmer # => /tmp/execpad-b4af4cd81bb8/source-b4af4cd81bb8:2: syntax error, unexpected '>' ...check link for more (https://eval.in/389673)
[06:00:29] jfarmer: >> [10, 7, -12, 3].sort
[06:00:31] ruboto: jfarmer # => [-12, 3, 7, 10] (https://eval.in/389674)
[06:00:45] jfarmer: grey_beard Also correct.
[06:01:12] jfarmer: I can't really think of a language where sort order isn't ascending by default. That's a pretty universal thing.
[06:01:23] jfarmer: I think of it less as "sorting" and more as "ordering according to the usual order."
[06:01:40] jfarmer: And numbers are ordered by their order (left to right) on the number line
[06:01:57] grey_beard: Well makes sense now that I know it assumes ascending.
[06:02:12] jfarmer: grey_beard Great.
[06:02:31] chinmay_dd: has joined #ruby
[06:02:32] jfarmer: So, in general:
[06:02:53] grey_beard: Well thank you kindly for all the help everybody.
[06:02:57] jfarmer: 1. Methods that accept a block do so to allow the programmer to "pass in" custom behavior
[06:03:35] jfarmer: 2. How that behavior is used depends on the method; in the case of "each" it's used to determine what is to be done with each thing in the collection; in the case of "sort_by" it's used to determine the value by which to sort each thing in the collection
[06:03:42] codecop: has joined #ruby
[06:03:59] jfarmer: 3. When you're dealing with a Hash, the block will be given each (key, value) pair as an argument
[06:04:21] jfarmer: And I'd say like 80% of the time Ruby developers label the arguments something like "{ |k, v| ... stuff ...}"
[06:04:40] jfarmer: grey_beard If you want a big list of similar methods, check out http://ruby-doc.org/core-2.2.2/Enumerable.html
[06:05:05] jfarmer: All of those methods work on any Enumerable thing in Ruby, which includes Arrays, Hashes, and a few other things, too.
[06:05:26] jfarmer: (And almost all take a block of some kind.)
[06:05:34] jfarmer: the end (I hope)
[06:05:50] jfarmer: tune in again next week, same bat time, same bat channel
[06:05:55] mcclurmc: has joined #ruby
[06:06:28] Ox0dea: has joined #ruby
[06:06:38] grey_beard: Oh I see , I think because it looked foreign compared to the one I was being shown for hashes it threw me off.
[06:06:52] jfarmer: grey_beard Indeed!
[06:06:56] jfarmer: Be sensitive to that as you're learning.
[06:06:58] sandstrom: has joined #ruby
[06:07:03] rrichard_: has joined #ruby
[06:07:23] jfarmer: Beginners think that things which look different are different.
[06:07:33] jfarmer: (In any subject)
[06:07:43] jfarmer: Easier to catch yourself if you're aware that it's going on, though.
[06:08:14] sphex: jfarmer: are you an actual teacher?
[06:08:17] jfarmer: sphex Yes.
[06:08:48] bf4: has joined #ruby
[06:08:59] Xeago: has joined #ruby
[06:09:28] sphex: is there going to be a test?
[06:09:57] sphex: makes sense
[06:09:59] jfarmer: Although, funny thing: when you try to build a learning environment without tests, it doesn't take long for students to demand them.
[06:10:18] eGGsha: has joined #ruby
[06:10:38] jfarmer: "Ugh, fine, I'll give you a test."
[06:11:27] dented42: has joined #ruby
[06:12:33] ngsw: has joined #ruby
[06:13:02] Stan: has joined #ruby
[06:13:15] jfarmer: grey_beard If you want a test, here it is: go through each method in the list of methods on the Enumerable page I linked to above. For each method, look at an example of its usage but don't read the description. Make an educated guess about what the particular method does and write it down (actually write it). Read the description and compare your answer to what's written on that page.
[06:13:26] jfarmer: DIY testing
[06:13:29] jfarmer: college board, hire me
[06:14:06] jfarmer: grey_beard That's a good way to both familiarize yourself with all the Enumerable methods and to get comfortable with the (technical) language used to describe what they do.
[06:14:34] jfarmer: The key part is the comparison between your own thoughts and what's on the page, though, so don't just read the descriptions and call it a day. :)
[06:14:42] endash: has joined #ruby
[06:15:02] jfarmer: grey_beard Also, here are some exercises you might find useful: https://github.com/codeunion/ruby-exercises
[06:15:11] acke: has joined #ruby
[06:15:13] jfarmer: (warning, mild self promotion)
[06:15:13] grey_beard: I will, but it will lead me to more questions probably and back here as well.
[06:15:16] alex88: has joined #ruby
[06:15:19] jfarmer: grey_beard That's good.
[06:15:41] sphex: jfarmer: do you teach ruby a lot? is it in a public school? (just wondering where and how ruby gets taught "formally" like that)
[06:15:41] jfarmer: Better to be confused and have too many questions than be confused and have too few.
[06:15:46] qiukun: has joined #ruby
[06:15:57] jfarmer: sphex Yes and yes (a little).
[06:16:00] ebbflowgo: has joined #ruby
[06:16:07] gauke: has joined #ruby
[06:16:14] jfarmer: sphex I volunteer through some after-school programs to teach at public schools.
[06:16:36] jfarmer: I also make my living teaching it (slash, programming in general), mostly to adults.
[06:17:58] jfarmer: I wouldn't call how I teach very formal, at least relative to most classrooms. A lot of my public school students are at a loss at first about what to do.
[06:18:52] jfarmer: After a few fundamentals are shored up, I just try to maximize the amount of feedback they get on their code. "Make a plan, code it as best as you can, get feedback quickly, incorporate, repeat."
[06:19:02] jfarmer: "But what am I supposed to do?"
[06:19:05] sphex: prolly impatient to make their killer rails app too
[06:19:16] jfarmer: Yes, some students for sure.
[06:19:54] sphex: "Alright, blocks, got it. done. Is this how I geolocate and mashup?"
[06:20:24] jfarmer: If I'm doing a good job the dots are connected, but some students won't give an inch.
[06:20:31] jfarmer: I'll say this is more true of adults than children.
[06:21:36] emilkarl: has joined #ruby
[06:22:30] sphex: I'm guessing most of these students are fairly new to programming? pretty good choice of first language, eh. :p
[06:22:44] Jiks: has joined #ruby
[06:23:00] Rollabunna: has joined #ruby
[06:23:14] jfarmer: The public school students often have a little prior exposure.
[06:23:17] mcclurmc: has joined #ruby
[06:23:21] jfarmer: The most common languages seem to be Python and Java.
[06:23:33] jfarmer: (Largely because AP Computer Science uses Java.)
[06:23:54] jfarmer: You do see fun mistakes from students coming from Java at first, things like...
[06:24:04] Al3ks: has joined #ruby
[06:24:08] jfarmer: "def Fixnum add(Fixnum x, Fixnum y) ... end"
[06:24:16] baweaver: Still of the opinion Java is horrid
[06:24:19] last_staff: has joined #ruby
[06:24:21] baweaver: though that looks like Scala
[06:24:33] sphex: baweaver: my school had Visual Basic. I don't think I'll ever overcome the early brain damages. :/
[06:24:40] jfarmer: I'm "whatever" about Java as a production language, but I think it's awful as a teaching language.
[06:24:41] baweaver: def add(x:Int, y:Int):Int = x + y
[06:25:41] jfarmer: The main thing you want to get out of students' head early on is the idea that learning to program is like learning a bunch of magic spells called "programs."
[06:25:57] jfarmer: And an experienced programmer is just someone who's learned 10,000 magic spells or whatever.
[06:26:16] fromthedepths1: has joined #ruby
[06:26:16] jfarmer: But right off the bat, Java is filled with things like "public static void main(...)"
[06:26:21] sphex: hrm. supposedly that'
[06:26:37] sphex: oops. that's how they teach it in India
[06:26:37] jfarmer: "Don't worry about those things for now. *waves hands*"
[06:27:15] jfarmer: Some students do have an insane capability for memorizing that stuff.
[06:27:16] rrichardsr3: has joined #ruby
[06:27:32] jfarmer: (Often the ones who struggle the most, in my experience.)
[06:28:04] jfarmer: The quantity and detail at which they can memorize things blows my mind.
[06:28:22] baweaver: If I had to pick a learning language it'd probably be lisp
[06:28:34] baweaver: eliminate all concerns of syntax
[06:28:37] Ox0dea: MIT agreed with you for a long time.
[06:28:39] baweaver: just focus on how to build from there.
[06:28:45] baweaver: now they do python
[06:28:53] jfarmer: My alma mater uses Scheme as their intro language.
[06:29:09] jfarmer: (University of Chicago)
[06:29:20] sevenseacat: at university we covered C, Haskell, Java and Prolog, in that order. mostly C though.
[06:29:30] jfarmer: But the CS department is basically an extension of the math department
[06:29:57] shevy: baweaver but you have to use a lot of () in lisp!
[06:30:20] baweaver: the people who care about that are ironically from Java
[06:30:30] baweaver: where they have a lot worse syntax barriers to deal with routinely
[06:30:38] sevenseacat: I also did electives that dabbled in PHP and Python. woo.
[06:33:02] lsmola: has joined #ruby
[06:33:05] grey_bear: has joined #ruby
[06:33:13] MrJiks: Hello there, could you check the response of this url and see if you recognize any specific data format?
[06:33:15] MrJiks: http://erail.in/rail/getTrains.aspx?Station_From=ERN&Station_To=TVC&DataSource=0&Language=0&Cache=true
[06:33:22] darlinger: has joined #ruby
[06:33:27] darlinger: has left #ruby: ()
[06:33:42] MrJiks: I am trying to use this endpont to get the data; the data returns seems to be too weird.
[06:33:53] postmodern: has joined #ruby
[06:33:54] baweaver: post the data in a gist
[06:34:03] MrJiks: Sure, hold on.
[06:34:03] baweaver: most members here are a bit averse to strange links
[06:34:14] MrJiks: baweaver: sure.
[06:34:18] jfarmer: MrJiks Well, I'm a brave person and went there and viewed the source
[06:34:38] MrJiks: jfarmer: and?
[06:34:47] s2013: has joined #ruby
[06:34:57] unshadow: has joined #ruby
[06:35:01] jfarmer: I'm terrified
[06:35:18] MrJiks: Here is the data: http://pastebin.com/k8iLW3RK
[06:35:19] ruboto: MrJiks, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/010c0b82e22df19fd0fd
[06:35:19] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[06:35:29] jfarmer: CAN'T DO ANYTHING RIGHT, GEEZ MrJiks!
[06:35:44] baweaver: I want to say CSV
[06:35:45] jfarmer: MrJiks But sorry, no, the format looks totally unfamiliar (and slightly insane) to me
[06:36:02] MrJiks: baweaver: ya! But what are those ~?
[06:36:11] baweaver: formatting shenanigans
[06:36:12] MrJiks: It looks like they did something custom!!
[06:36:15] jfarmer: Yeah, it might be a generic "delimiter separated value" sort of thing.
[06:36:16] mister_solo: has joined #ruby
[06:36:22] JohnBat26: has joined #ruby
[06:36:40] MrJiks: jfarmer: But it looks mized.
[06:36:57] ngsw: has joined #ruby
[06:36:59] s2013: has joined #ruby
[06:37:11] codecop: has joined #ruby
[06:37:20] baweaver: shevy: well aren't you corny tonight
[06:37:20] MrJiks: If its helpful, have a look at the site: http://erail.in/
[06:37:30] mikecmpbll: has joined #ruby
[06:37:35] jfarmer: MrJiks I agree it doesn't look quite right, but that was my first reaction.
[06:37:44] jfarmer: But then you try to play "spot the columns" and I don't really see it.
[06:37:54] GnuYawk: has joined #ruby
[06:38:20] MrJiks: Try "ERN" and "TVC" for the from and to field to get the data
[06:38:23] MrJiks: in the site.
[06:38:51] mcclurmc: has joined #ruby
[06:39:43] hahuang65: has joined #ruby
[06:39:44] dgutierrez1287: has joined #ruby
[06:39:50] zacstewart: has joined #ruby
[06:39:51] MrJiks: I just don't understand why people do such text formating!
[06:40:06] Ox0dea: Job security.
[06:40:16] MrJiks: Ox0dea: :)
[06:40:27] gauke: has joined #ruby
[06:40:32] User458764: has joined #ruby
[06:40:35] MrJiks: I will have a dirty feel if I did something like this
[06:40:36] baweaver: Could always ping them and ask what the devil it is
[06:40:36] s2013: has joined #ruby
[06:40:44] jfarmer: MrJiks I had a job once where I had to interact with back-end data from multiple major retailers and it was a similar mess.
[06:40:54] baweaver: welcome to enterprise quality
[06:41:00] jfarmer: Every retailer had their own arbitrary text data format.
[06:41:21] MrJiks: baweaver: but what the hell, right? How can someone do this unless they intentionally planned to make it dirty?
[06:41:42] baweaver: you'd like to believe the best in people
[06:41:52] baweaver: but there are some who should never be allowed to program
[06:41:52] platzhirsch: has joined #ruby
[06:41:53] jfarmer: MrJiks The faulty assumption is likely that the person doing this was thinking about it that deeply. :)
[06:42:00] MrJiks: jfarmer: Haven't these people heard of JSON or is it intentionally done like this?
[06:42:26] krz: has joined #ruby
[06:42:32] jfarmer: This is likely older than JSON, but regardless, I just imagine it never entering their heads.
[06:42:43] jfarmer: It was more like "Oh, need some format, ok, I need to make a format."
[06:42:54] jfarmer: That's how I imagine it at least.
[06:42:57] astrobunny: has joined #ruby
[06:43:17] MrJiks: jfarmer: why does it need deep thought? If have to make an interface, I normally go and see whats there out there that needs to connect to this; isn't thats the simplest thing someone can think?
[06:43:21] baweaver: probably a COBOL or RPG column dump
[06:43:40] baweaver: I hate to say it, but welcome to programming
[06:43:44] MrJiks: Oh okay! baweaver thats exactly what I was thinking!
[06:43:55] baweaver: I'd have to remember the formatting there
[06:43:59] jfarmer: MrJiks Likely no.
[06:43:59] baweaver: check their job postins
[06:44:04] jfarmer: Is the answer to your question
[06:44:08] baweaver: they're using asp for that
[06:44:09] MrJiks: I cannot imagine someone invented a format for this.
[06:44:13] baweaver: so they at least use .NET
[06:44:28] jfarmer: MrJiks Well, more I meant they just do whatever is right in front of their face.
[06:44:28] Carnage\: has joined #ruby
[06:44:41] jfarmer: "I'll use Ruby's native serialization format! Solved."
[06:44:48] MrJiks: baweaver: this should some data dump/serialization.
[06:45:02] baweaver: though I've seen programmers bad enough that they'll do that
[06:45:10] MrJiks: Its cannot be something that they invented; thats what I feel.
[06:45:23] jfarmer: It does seem particularly byzantine, yeah
[06:45:27] MrJiks: baweaver: really? You mean 1/2 year experienced ones?
[06:45:28] baweaver: never underestimate a sufficiently lazy and bad programmer
[06:45:42] baweaver: I've seen a guy with 20+ years experience
[06:45:47] baweaver: couldn't reverse a string in ruby
[06:45:51] athos_diddy: has joined #ruby
[06:45:53] MrJiks: baweaver: this is not about laziness. Its jus dump.
[06:45:53] karols: has joined #ruby
[06:46:03] MrJiks: baweaver: what?
[06:46:05] baweaver: you'd like to think that
[06:46:20] revath1: has left #ruby: ()
[06:46:29] MrJiks: 20 years experinece developer who doesn't know how to reverse a string?
[06:46:46] baweaver: without the reverse function, granted
[06:47:02] solars: has joined #ruby
[06:47:29] baweaver: gave the same problem to an intern candidate
[06:47:33] baweaver: took him 2 minutes
[06:47:50] jfarmer: It would be amazing if this were some dump format from a cira-1982 IBM mainframe
[06:47:58] fabrice31: has joined #ruby
[06:48:21] Dreamer3: has joined #ruby
[06:48:26] baweaver: http://www.simotime.com/cblcsv01.htm
[06:48:31] baweaver: COBOL probably
[06:49:22] karols: has joined #ruby
[06:49:26] Ox0dea: Is properly reversing a string considered O(0.5n)?
[06:50:34] baweaver: I won't hold pointers against them
[06:50:42] fabrice31: has joined #ruby
[06:50:43] baweaver: for a ruby / js job that is
[06:50:47] MrJiks: baweaver: so you mean to say that I may be able to find amble 10+ year guys who may stumble at FizzBuzz?
[06:51:01] baweaver: I've interviewed some
[06:51:09] MrJiks: baweaver: thats quite surprising.
[06:51:11] karols: has joined #ruby
[06:51:11] Ox0dea: ACTION doesn't know how to implement FizzBuzz. :/
[06:51:24] jfarmer: Ox0dea We're here for you
[06:51:32] Nilium: I almost answered your O(n) question
[06:51:38] Radar: You're the guy who finds all the weird Ruby syntax!
[06:51:39] Nilium: Then decided you're crazy
[06:51:43] MrJiks: baweaver: I used to think that test was exagerating too much..
[06:51:44] baweaver: you forget who wrote that behemoth last night
[06:51:46] Radar: You could work it out in O(n) time
[06:52:03] Ox0dea: Radar: But you only need to iterate to the halfway point if you know the string's length.
[06:52:11] karols: has joined #ruby
[06:52:16] baweaver: >> _=$$/$$;__=_-_;@_=_+_;$_=@_+_;$__=@_+$_;$-_=$__*$_;@__=''<<$-_*($__+$_)+@_;$___=''<<$-_*$__-$__<<$-_*($__+@_)<<@__<<@__;@___=''<<$-_*$__-$_*$_<<$-_*($__+$_)-$_<<@__<<@__;(___=->____{$.+=_;____<<($.%$-_==__ ?$___+@___:$.%$_==__ ?$___:$.%$__==__ ?@___:$.);$.<($__*@_)**@_?___[____]:____})[[]]
[06:52:17] ruboto: baweaver # => [1, 2, "Fizz", 4, "Buzz", "Fizz", 7, 8, "Fizz", "Buzz", 11, "Fizz", 13, 14, "FizzBuzz", 16, 17, "Fiz ...check link for more (https://eval.in/389703)
[06:52:24] jfarmer: baweaver You're hired!
[06:52:28] Radar: SACRE BLEU
[06:52:29] MrJiks: How do you do that message? "Ox0dea doesn't know how to implement FizzBuzz. :/"
[06:52:32] shevy: CORDON BLEU!!!
[06:52:34] MrJiks: In IRC i mean
[06:52:36] Radar: MrJiks: /me thing
[06:52:39] baweaver: that was Ox0dea's from last night
[06:52:45] jfarmer: MrJiks Type "/me blah de blah" without the quotes
[06:52:45] shevy: he was drunk
[06:52:48] MrJiks: ACTION how?
[06:52:53] Ox0dea: /me doesn't work for me.
[06:53:03] baweaver: space helps
[06:53:08] haraoka: has joined #ruby
[06:53:16] MrJiks: ACTION MrJiks found it!
[06:53:19] karols: has joined #ruby
[06:53:33] shevy: twice the name, twice the fame
[06:53:42] MrJiks: shevy: ;P
[06:54:09] emhs: baweaver: This little 'FizzBuzz' contraption of yours is still a little frightening to behold.
[06:54:17] baweaver: but seriously, I've interviewed interns who are insanely good and seasoned veterans who have no idea how to program
[06:54:22] baweaver: it's Ox0deas
[06:54:26] karols: has joined #ruby
[06:54:32] emhs: oh, wrong attribution then.
[06:54:39] baweaver: http://irclog.whitequark.org/ruby/2015-06-29#13259662;
[06:54:46] baweaver: see the original fallout fun
[06:55:10] baweaver: https://gist.github.com/baweaver/88bbbc1a3e3b5dee2610 - and me trying to grok it
[06:55:33] karols: has joined #ruby
[06:56:05] jimms: has joined #ruby
[06:56:23] emhs: baweaver: that part I've read yesterday, that's why I assumed it was yours.
[06:56:29] emhs: Ox0dea: one hell of a creation.
[06:56:36] Spami: has joined #ruby
[06:56:39] karols: has joined #ruby
[06:56:40] Ox0dea: I'm ashamed of it.
[06:56:49] baweaver: I'd get bored before I finished something like that
[06:56:51] duderonomy: has joined #ruby
[06:56:54] sevenseacat: has joined #ruby
[06:56:55] Aeyrix: Radar: how busy are you
[06:57:05] sandstrom: has joined #ruby
[06:57:12] Aeyrix: like on a scale of "i can help you stop being a moron" to "i'm actually working"
[06:57:18] andikr: has joined #ruby
[06:57:19] MrJiks: So, I took a free tier in AWS yesterday. I tried a simple Sinatra Hello WOrld App; it worked internally. But when I tried to access it externally, I wasn't able to. Any idea why?
[06:57:22] Radar: Aeyrix: I just came back from a walk to the shops and now I'm starting on my next task.
[06:57:28] Aeyrix: ok, no problem
[06:57:37] Radar: Aeyrix: what's up?
[06:57:47] Aeyrix: I just wanted some advice w/ testing for a gem I'm writing.
[06:57:50] Aeyrix: You know how I am re: testing
[06:57:50] karols: has joined #ruby
[06:57:53] Aeyrix: but this is something I want to release.
[06:58:01] emhs: Ox0dea: Why would you be ashamed of it? It at shows up creativity and ability to work with obscure code.
[06:58:02] MrJiks: I have no clue about nginx; its installed and running but I don't know how to see that page outside.
[06:58:04] Radar: Aeyrix: shoot
[06:58:11] Aeyrix: Radar: Mainly just a quick run through, tbh.
[06:58:22] Aeyrix: Hence asking if you're busy instead of just asking the channel. :P
[06:58:25] Radar: Aeyrix: does it provide a CLI?
[06:58:40] Radar: Then call the methods from the gem using RSpec
[06:58:58] Aeyrix: any good go-to tutorial for gem r-g-r gem testing
[06:59:11] Aeyrix: tutorial / guide
[06:59:11] karols: has joined #ruby
[06:59:34] MrJiks: Any ideas anybody?
[06:59:45] baweaver: security groups
[07:00:00] vdamewood: has joined #ruby
[07:00:05] baweaver: though I'm probably the only devops / aws person on right now
[07:00:22] MrJiks: security groups? I have no idea about it; can you give me some pointers to read up on that?
[07:00:32] baweaver: might be a better idea to ask on the aws channel as well
[07:00:44] MrJiks: baweaver: my unix knowledge is pretty sloppy
[07:00:44] baweaver: a security group defines ingress and egress permissions
[07:00:47] jzigmund_: has joined #ruby
[07:00:49] Radar: Aeyrix: Typically I would just generate a spec directory which has a spec_helper.rb which requires anything needed that the library needs
[07:00:52] baweaver: it's an AWS concept
[07:00:56] Radar: Aeyrix: I don't have a tutorial to hand right now
[07:00:56] vondruch_: has joined #ruby
[07:01:00] Aeyrix: Radar: np
[07:01:06] Aeyrix: I just want to stop writing the code and start doing the tests firs.t
[07:01:09] karols: has joined #ruby
[07:01:13] MrJiks: baweaver: are you referring to AMI or something like that?
[07:01:27] baweaver: that'd be a machine instance
[07:01:34] MrJiks: baweaver: I didn't go through their security systems
[07:01:45] baweaver: so no vpc or anything?
[07:01:51] MrJiks: I just set it up as a plain instance.
[07:02:03] MrJiks: Just a simple ubuntu micro instance
[07:02:05] baweaver: did you use the external public ip or the private one?
[07:02:21] MrJiks: The external IP from the dashboard
[07:02:25] Ox0dea: I found out how to reverse a string!
[07:02:26] Ox0dea: >> (___=->_,__=''{__=_[$.]+__; _[$.+=$$/$$]?___[_,__]:__})['yllis os']
[07:02:27] ruboto: Ox0dea # => "so silly" (https://eval.in/389716)
[07:02:28] doodleha_: has joined #ruby
[07:02:33] Aeyrix: Jesus fucking Christ, Ox0dea.
[07:02:47] baweaver: well that explains where he went
[07:02:48] Aeyrix: I'm getting weird looks from how hard that made me laugh.
[07:02:50] Radar: I can *almost* read that Ruby
[07:02:53] ryez: has joined #ruby
[07:02:57] rdark: has joined #ruby
[07:03:16] MrJiks: Ox0dea: ! I don't even understand what thats even!
[07:03:20] sevenseacat: at least now he knows fizzbuzz and reversing a string
[07:03:24] troulouliou_dev: has joined #ruby
[07:03:31] LiquidInsect: has joined #ruby
[07:03:50] emhs: Ox0dea: next week, you'll be having a new subset of ruby that works without any alphanums.
[07:04:19] Ox0dea: I mean, I'm kind of demonstrating that it already exists within the language itself?
[07:04:45] emhs: sure, but you have to rewrite all utility functions, don't you?
[07:04:51] emhs: unless you'd be using alphanums... ;)
[07:04:52] pepperbreath: has left #ruby: ()
[07:04:53] Ox0dea: Well, yes.
[07:05:14] havenwood: Matz' FizzBuzz in lambda calc (line scrolls way to the right): https://github.com/mruby/mruby/blob/master/benchmark/bm_app_lc_fizzbuzz.rb#L11
[07:05:22] ngsw: has joined #ruby
[07:05:28] sevenseacat: pfft, it uses alnums.
[07:05:31] Ox0dea: havenwood: That's Tom Stuart's.
[07:05:40] baweaver: *translating*
[07:05:53] sevenseacat: rookie level obfuscation.
[07:05:56] havenwood: Ox0dea: Ah, saw matz commit it a while back but didn't look up origin.
[07:06:08] Ox0dea: https://github.com/tomstuart/nothing
[07:06:10] havenwood: Ah, the comment.
[07:06:28] MrJiks: baweaver: baweaver I just confirmed, I am using the public IP from the AWS instances' dashboar
[07:06:31] havenwood: Makes a nice little bench.
[07:06:53] baweaver: MrJiks: then I'd ask in AWS
[07:07:02] jzigmund: has joined #ruby
[07:07:26] MrJiks: baweaver: just to confirm again: I should be able to access the ip with port 80 right?
[07:07:36] MrJiks: http://<ip>:80
[07:07:48] baweaver: should and can are different though
[07:07:58] baweaver: and much past that you're better off asking on the aws channels
[07:08:13] doerteDev: has joined #ruby
[07:08:18] s2013: has joined #ruby
[07:08:26] MrJiks: Okay, I should probably. Let me try #aws see you! Thanks!
[07:08:40] sevenseacat: fifth time is the charm
[07:09:22] ta: has joined #ruby
[07:09:22] havenwood: Ox0dea: do any quines?
[07:09:48] eGGsha: has joined #ruby
[07:09:50] LiquidInsect: has joined #ruby
[07:11:03] havenwood: that would be neat without alnum
[07:11:21] bronson: has joined #ruby
[07:11:30] baweaver: https://gist.github.com/baweaver/0a088553f40d6f90299b
[07:11:34] baweaver: that one wasn't as bad
[07:11:38] Bertg: has joined #ruby
[07:11:43] Ox0dea: havenwood: I've written some of the boring variety, but a non-alphanumeric one would be hard even under those conditions.
[07:11:48] baweaver: out of index and ad-hoc reduce, not bad
[07:11:51] Ox0dea: havenwood: I trust you know of Endoh-san's Ouroboros?
[07:12:06] havenwood: Ox0dea: Aye, mind blown.
[07:12:13] doodleha_: has joined #ruby
[07:12:16] j4cknewt: has joined #ruby
[07:12:25] last_staff: has joined #ruby
[07:12:31] baweaver: though I wouldn't rely on $. as irb doesn't play nice with it.
[07:12:32] Ox0dea: I suspect it will remain the pinnacle of quine-ing for the foreseeable future.
[07:13:18] havenwood: Ox0dea: I'd consider it a major accomplishment just to install all the langs to run it. :P
[07:13:37] Ox0dea: havenwood: There's a meta-package in the AUR. :)
[07:13:44] havenwood: Ox0dea: hahaha
[07:15:04] ringarin: has joined #ruby
[07:15:26] Ox0dea: baweaver: What is the opposite of a magician?
[07:15:43] tvw: has joined #ruby
[07:16:02] doodleha_: has joined #ruby
[07:16:04] baweaver: ACTION is thinking of Break Blade right now
[07:16:15] baweaver: Un-Sorcerer :D
[07:16:17] Macaveli: has joined #ruby
[07:16:43] baweaver: Muggle if we're on Harry Potter
[07:17:14] Ox0dea: In any case, I'm honored. You're quite good at Muggling these things.
[07:17:17] Rollabunna: has joined #ruby
[07:17:26] Ox0dea: I have accepted your unspoken challenge.
[07:17:32] sevenseacat: oh this will be good.
[07:17:45] sevenseacat: ACTION makes enough popcorn for the entire channel
[07:17:51] emhs: yay popcorn
[07:17:54] emhs: suppose we'll need it.
[07:17:55] iateadonut: has joined #ruby
[07:17:58] Ox0dea: I bet I could do a bot.
[07:18:18] baweaver: Just give me a ring whenever you have some new concoction.
[07:18:22] Nilium: What about pigeons? RFCs 1149 / 2549?
[07:18:26] iateadonut: can i ask rails questions here? or where do i go for that?
[07:18:32] Ox0dea: IPoAC is best IP.
[07:18:32] baweaver: #RubyOnRails
[07:18:37] vondruch_: has joined #ruby
[07:18:40] iateadonut: (i'm wondering why /vender is not in the default .gitignore file
[07:19:12] Ox0dea: > mfw 2 transposition errors in the same word
[07:19:22] dfockler: has joined #ruby
[07:19:49] baweaver: Oooh, are we playing with Levenshtein now?
[07:19:53] doodleha_: has joined #ruby
[07:20:18] baweaver: Well, Dameraue for Transpose
[07:20:29] shevy: you are one clever beaver
[07:20:39] shevy: those dam calculations sure pay off
[07:20:46] baweaver: Ox0dea: do DL non-alpha-numeric :D
[07:20:49] shevy: dam-eraue as well :D
[07:21:02] Ox0dea: baweaver: That sounds good.
[07:21:09] wildroman2: has joined #ruby
[07:21:12] memph1s: has joined #ruby
[07:21:47] Ox0dea: ACTION is looking for his LOLCODE implementation of Boyer-Moore-Horspool.
[07:21:53] chenillen: has joined #ruby
[07:22:59] baweaver: ah, that I know what that one is as well
[07:23:23] baweaver: well, at least Boyer-Moore
[07:23:51] Aeyrix: I'm getting weird looks from how hard that made me laugh.
[07:23:55] baweaver: I tend to memorize string algorithms as I use them often enough
[07:23:57] Aeyrix: thanks ctrl-tab
[07:24:20] baweaver: I was about to say, the unspoken challenge thing had me rolling a bit
[07:24:23] memph1s: has joined #ruby
[07:24:46] jimms: has joined #ruby
[07:25:41] doodleha_: has joined #ruby
[07:26:01] Aeyrix: Is there a uh
[07:26:03] Aeyrix: valid way
[07:26:27] Aeyrix: actually no, that defeats the purpose
[07:26:32] hotpancakes: has joined #ruby
[07:26:58] msgodf: has joined #ruby
[07:27:05] Aeyrix: learning tho
[07:27:11] memph1s: has joined #ruby
[07:27:51] Macaveli: has joined #ruby
[07:28:10] baweaver: Ox0dea: you're not using the Y-combinator though, for shame :P
[07:29:29] doodleha_: has joined #ruby
[07:29:48] Ox0dea: baweaver: And that's why Tom's thing is so much more impressive than my shenanigans.
[07:29:55] Ox0dea: "Programming with Nothing" is my all-time favorite talk.
[07:30:21] baweaver: Look up Jim Weirich's Y Not
[07:30:26] Ox0dea: Also very good.
[07:31:20] Ox0dea: I love that he started the talk by demonstrating fixpoints with audience participation.
[07:32:39] codecop_: has joined #ruby
[07:32:42] Ox0dea: I can't find my BMH implementation. :(
[07:33:18] doodleha_: has joined #ruby
[07:34:59] Zarthus: has joined #ruby
[07:35:53] ngsw: has joined #ruby
[07:36:04] ledestin: has joined #ruby
[07:36:38] sevenseacat: i know them feels
[07:38:29] workmad3: has joined #ruby
[07:39:39] camonz: has joined #ruby
[07:40:16] shevy: cats sleep a lot
[07:40:30] dgutierrez1287: has joined #ruby
[07:40:45] jenrzzz: has joined #ruby
[07:40:58] doodleha_: has joined #ruby
[07:41:02] exadeci: has joined #ruby
[07:42:16] k3asd`: has joined #ruby
[07:42:26] ixti: has joined #ruby
[07:42:50] Oog: has joined #ruby
[07:42:52] doodleha_: has joined #ruby
[07:42:55] sandstrom: has joined #ruby
[07:43:09] Oog: having a very strange problem.... https://gist.github.com/anonymous/a6eedd3645223ec17ea0 - calling payments method returns [] immediately it doesnt execute the Mti function
[07:43:21] Oog: i think its something to do with the function coming from a module that i dont understand
[07:44:58] micmus: has joined #ruby
[07:45:23] hahuang65: has joined #ruby
[07:45:36] sevenseacat: you mean the payments method that isnt in a module?
[07:46:31] Oog: i call invoice.payments and you see it calls mti_get_macro(Payment)
[07:46:51] Oog: but mti_get_macro seems to just return [] without executing it is very odd. this works in rails console but not in the server
[07:47:16] Xeago: has joined #ruby
[07:47:26] Oog: even the firs tlog line in mti_get_macro isnt getting called
[07:47:51] sevenseacat: what does invoice.method(:payments).source_location return
[07:48:45] doodleha_: has joined #ruby
[07:48:58] Oog: website/app/models/invoice.rb", 29]
[07:49:06] krz: has joined #ruby
[07:49:23] sevenseacat: good start, so it is calling your payments method
[07:49:57] Oog: im using byebug stepping in it does go into the function and i just stepped over the log_console line but it didnt output anything. i also used step and it didnt step into it
[07:50:07] langlands: has joined #ruby
[07:50:23] sevenseacat: what is log_console ?
[07:50:38] Oog: basically puts
[07:50:50] Oog: actually no it does Rails.logger.info(message)
[07:50:53] sevenseacat: thats not helpful
[07:51:02] sevenseacat: so whats your log level set to?
[07:51:14] sevenseacat: above or below :info ?
[07:51:15] Musashi007: has joined #ruby
[07:51:16] Oog: in byebug if i do log_console the output is shown
[07:51:26] Oog: but when i step over the line no output
[07:51:30] langlands: has joined #ruby
[07:52:03] Oog: oh wait i think its i have a variable named method that might be messing stuff up maybe
[07:52:06] Oog: is method word special
[07:52:12] tkuchiki_: has joined #ruby
[07:52:23] felixr: has joined #ruby
[07:52:30] doodleha_: has joined #ruby
[07:52:47] Yiota: has joined #ruby
[07:52:56] Ox0dea: >> method(:method)
[07:52:58] ruboto: Ox0dea # => #<Method: Object(Kernel)#method> (https://eval.in/389732)
[07:53:32] senayar: has joined #ruby
[07:53:35] Oog: its all fine in console though its just in teh server
[07:53:49] sevenseacat: yay I get to go play with elixir some more
[07:55:37] Oog: even the debugger is messed up in that function
[07:56:57] Oog: https://gist.github.com/anonymous/77a12ba155400a8dc741
[07:56:58] mikecmpbll: has joined #ruby
[07:57:18] Oog: i step over the line - no output. then it lands on line 56 where there is no code.....
[07:57:28] Scroff: has joined #ruby
[07:57:32] ta: has joined #ruby
[07:57:44] sevenseacat: [15:50:59] sevenseacat: so whats your log level set to?
[07:57:48] dumdedum: has joined #ruby
[07:57:49] Oog: https://gist.github.com/anonymous/ef76f87f90320b614d19
[07:58:01] Spami: has joined #ruby
[07:59:16] DaniG2k: has joined #ruby
[07:59:21] Oog: see that last paste - im after the line where method_names is set and then it says nomethoderror....
[07:59:26] allomov: has joined #ruby
[07:59:45] sevenseacat: Oog: are you using spring?
[07:59:57] sevenseacat: if so, restart it.
[08:00:09] Oog: no i got rid of it long ago - it causes weird problems like this...
[08:00:15] Oog: gem is commented out
[08:00:23] sevenseacat: that doesnt mean its not running.
[08:00:50] Oog: bangs head not again.... how do i kill it
[08:00:54] Oog: i hate spring
[08:01:32] ishamo: has joined #ruby
[08:01:55] hotpancakes: has joined #ruby
[08:01:56] jfarmer: has joined #ruby
[08:01:59] shevy: winter start
[08:02:03] Rubie: has joined #ruby
[08:02:21] jzigmund_: has joined #ruby
[08:02:27] vondruch__: has joined #ruby
[08:02:53] Oog: ok... it worked this time. let me do some more experiments though... i think the issue is caching it gets in a screwed up state
[08:03:04] Oog: spring is TERRIBLE it has cuases to many weird problems i dont get it
[08:03:16] sevenseacat: aye, I wish it was nuked from orbit.
[08:03:22] Oog: how do i get rid of it
[08:04:11] sevenseacat: remove from Gemfile, bundle... theres probably a step to rebuild binstubs if you use binstubs
[08:04:13] yfeldblum: has joined #ruby
[08:04:26] Oog: i dont think i do
[08:05:17] Hounddog: has joined #ruby
[08:05:23] sevenseacat: yeah me either
[08:05:39] sevenseacat: had more problems with them than with spring
[08:06:22] ngsw: has joined #ruby
[08:06:54] Oog: wtf it is caching stuff stuff is still cached
[08:07:05] Oog: what else could be caching. spring is not running
[08:07:13] Scroff: has joined #ruby
[08:07:13] eGGsha: has joined #ruby
[08:07:37] ngsw: has joined #ruby
[08:07:49] doodleha_: has joined #ruby
[08:08:37] jzigmund: has joined #ruby
[08:08:52] ngsw: has joined #ruby
[08:09:17] valkyrka_: has joined #ruby
[08:09:44] joonty: has joined #ruby
[08:09:51] yardenbar: has joined #ruby
[08:11:17] startupality: has joined #ruby
[08:11:43] Rollabunna: has joined #ruby
[08:13:31] doodleha_: has joined #ruby
[08:13:38] jenrzzz: has joined #ruby
[08:14:28] white_bear: has joined #ruby
[08:15:28] Ox0dea: "There are only two hard problems in computer science: naming things, cache invalidation, and off-by-one errors."
[08:15:50] Contigi: has joined #ruby
[08:17:54] emilkarl_: has joined #ruby
[08:18:57] n008f4g_: has joined #ruby
[08:19:15] doodleha_: has joined #ruby
[08:19:56] einarj: has joined #ruby
[08:20:10] tkuchiki_: has joined #ruby
[08:20:12] skade: has joined #ruby
[08:20:13] vondruch__: has joined #ruby
[08:20:14] iwishiwerearobot: has joined #ruby
[08:23:09] eGGsha: has joined #ruby
[08:23:25] Spami: has joined #ruby
[08:24:18] dumdedum: has joined #ruby
[08:24:32] kitallis: why does this fail? http://pastie.org/10265705
[08:24:34] Zai00: has joined #ruby
[08:24:55] timonv: has joined #ruby
[08:25:23] ngsw: has joined #ruby
[08:26:02] ebbflowgo: has joined #ruby
[08:26:06] Ox0dea: kitallis: FILE is not a thing in Ruby, but File is.
[08:26:06] sevenseacat: kitallis: did you mean File, not FILE ?
[08:26:09] wnd: mayhaps you shold try File::LOCK_EX
[08:26:23] kitallis: ACTION kills self
[08:26:59] doodleha_: has joined #ruby
[08:27:16] heftig: zombie ghosts
[08:27:46] Ox0dea: >> '2spooky4me'.gsub(/\d/, &:succ)
[08:27:48] ruboto: Ox0dea # => "3spooky5me" (https://eval.in/389760)
[08:27:55] Guest85: has joined #ruby
[08:28:09] Ox0dea: sevenseacat: You can do &+1 in Elixir, right?
[08:28:33] sevenseacat: ummm something like that
[08:28:33] ahmetkapikiran: has joined #ruby
[08:30:25] bruno-: has joined #ruby
[08:30:49] doodleha_: has joined #ruby
[08:30:57] Ox0dea: kitallis: You're calling #flock on two distinct File objects. I suspect that's not what you want.
[08:30:59] zacts: has joined #ruby
[08:31:08] kitallis: yeah, I fixed that
[08:31:30] kitallis: changed it to http://pastie.org/10265714
[08:31:44] Ox0dea: Looks good.
[08:31:55] Ox0dea: But you've rekindled my envy of Python's context managers. :/
[08:32:13] DaniG2k: has joined #ruby
[08:32:23] kitallis: ha, yeah. I recall those.
[08:34:18] platzhirsch: has joined #ruby
[08:34:19] Xeago: has joined #ruby
[08:34:36] LiquidInsect: has joined #ruby
[08:34:40] doodleha_: has joined #ruby
[08:35:20] chrissonar: has joined #ruby
[08:35:48] withnale_: has joined #ruby
[08:35:49] langlands: has joined #ruby
[08:36:03] ngsw: has joined #ruby
[08:36:09] mister_solo: has joined #ruby
[08:36:22] _blizzy_: has joined #ruby
[08:36:37] Xeago_: has joined #ruby
[08:39:01] eGGsha: has joined #ruby
[08:40:27] shevy: python needs managers?
[08:40:41] axl_: has joined #ruby
[08:41:11] sevenseacat: iex(17)> Regex.replace ~r/(\d)/, "2spooky4me", &(String.to_integer(&1)+1) |> to_string
[08:41:15] sevenseacat: that took me way too long.
[08:41:18] dgutierrez1287: has joined #ruby
[08:41:20] terlar: has joined #ruby
[08:41:28] sevenseacat: and probably sucks.
[08:41:56] Ox0dea: And we're supposed to mass exodus?!
[08:42:04] sevenseacat: quiet, i'm learning.
[08:42:22] doodleha_: has joined #ruby
[08:42:33] ddv: quiet peasant
[08:43:25] sevenseacat: its not bad except for the String.to_integer part
[08:43:32] Ox0dea: In your defense, String#succ is kind of strange.
[08:43:51] Ox0dea: It's at once glorious and god-awful.
[08:44:04] emilkarl: has joined #ruby
[08:44:35] sevenseacat: String.replace would only accept a binary for the replacement, not a function. so had to go to Regex.replace.
[08:44:50] sevenseacat: which of course has its args in the opposite order.
[08:44:56] Xeago: has joined #ruby
[08:45:21] sevenseacat: https://github.com/elixir-lang/elixir/blob/v1.0.5/lib/elixir/lib/string.ex#L679-L681
[08:46:33] ngsw: has joined #ruby
[08:47:30] marr: has joined #ruby
[08:47:32] shevy: adaedra Baguette!
[08:47:46] Xeago: has joined #ruby
[08:47:53] adaedra: Bon, ??a suffit shevy
[08:48:17] shevy: is that a french insult! I learned about them in "The Holy Grail" movie
[08:48:19] Scrofff: has joined #ruby
[08:48:55] pgatt: has joined #ruby
[08:49:00] shevy: "King Arthur and his knights embark on a low-budget search for the Grail, encountering many very silly obstacles."
[08:50:34] ddv: shouldn't you be working shevy
[08:51:00] einarj: has joined #ruby
[08:51:04] sphex: bon, shevy calisse, ca va faire la
[08:51:27] shevy: that's like unicode, I can't see anything
[08:51:47] shevy: ddv only the poor have to work :) though I have to leave here soon, that is true... I just delay it...
[08:51:59] doodleha_: has joined #ruby
[08:52:09] adaedra: sphex: o_O
[08:52:56] msgodf: has joined #ruby
[08:52:58] ngsw: has joined #ruby
[08:54:33] platzhirsch: has joined #ruby
[08:54:39] Igorshp: has joined #ruby
[08:54:53] skade: has joined #ruby
[08:55:47] adaedra: shevy: ????????? ??????????????? ????????? ????????????????????????
[08:56:03] adaedra: This kind of answers my question :)
[08:56:04] yorickpeterse: -===??? ????????? ???????????? ????????? ????????????
[08:56:09] yorickpeterse: (??????????)???
[08:56:12] yorickpeterse: (??????????)?????? ?????????
[08:56:15] yorickpeterse: ACTION has plenty
[08:56:28] adaedra: poor shevy who can't see them ????
[08:56:32] ryba: has joined #ruby
[08:56:51] shevy: fix your encoding adaedra
[08:57:37] DaniG2k: (????????????)?????? ?????????
[08:57:38] adaedra: shevy: it's readable on public log, if you want to know
[08:57:44] yorickpeterse: Surely you mean GNU/Linux?
[08:57:53] einarj: has joined #ruby
[08:57:55] shevy: I need no logs
[08:58:19] adaedra: ????????????( ?? _ ?????) ????????????????????? ??????????????????
[08:58:22] lkba: has joined #ruby
[08:58:30] DaniG2k: adaedra: hahaha\
[08:58:36] musty: This is what the ruby community has becometh.
[08:58:48] adaedra: Thanks, Obama.
[08:59:33] hotpancakes: has joined #ruby
[08:59:46] michael_mbp: has joined #ruby
[09:00:22] bnagy: *hath become
[09:00:38] yorickpeterse: ( ???_???) ( ???_???)>??????-??? (??????_???)
[09:01:03] yorickpeterse: ??? ???_??????
[09:01:06] yorickpeterse: (???' ???' )???
[09:01:23] ngsw: has joined #ruby
[09:01:41] doodleha_: has joined #ruby
[09:02:01] musty: bnagy, thanks naggy.
[09:03:28] fabrice31_: has joined #ruby
[09:03:54] howdoi: has joined #ruby
[09:04:26] howdoi: any easy way to chain: `@book.present? && @book.isbn.present?`
[09:04:37] adaedra: there should be a !yorickpeterse command that throws a random unicode emoticon
[09:05:13] khebbie: has joined #ruby
[09:05:46] howdoi: ACTION waits in a corner
[09:05:49] ljarvis: howdoi: @book.try(:isbn).present? (assuming since you have present? you have try) but I prefer yours
[09:05:50] shevy: adaedra lol
[09:05:56] Rollabunna: has joined #ruby
[09:06:03] shevy: !yorickpeterse
[09:06:15] howdoi: ljarvis: I liked yours :)
[09:06:16] shevy: adaedra it's broken
[09:06:31] ljarvis: howdoi: I think it's awful, but ok :)
[09:06:36] howdoi: any reason for your preference?
[09:06:40] howdoi: heh heh cool
[09:07:02] ljarvis: howdoi: I don't think it reads very nicely
[09:07:34] ljarvis: I would write: @book && @book.isbn.present? or something similar
[09:07:45] howdoi: nice, thanks
[09:08:22] ljarvis: assuming you have AR and @book is a model, you *probably* have an isbn? method too
[09:10:17] yorickpeterse: so I have this code
[09:10:19] yorickpeterse: and it uses Nokogiri
[09:10:24] yorickpeterse: and leaks memory like a ******
[09:10:32] yorickpeterse: Swap it with Oga, no memory leak
[09:10:37] yorickpeterse: Just takes a bit longer to parse
[09:10:43] yorickpeterse: well, longer to query xpath/css
[09:10:44] ljarvis: are you saying nokogiri leaks memory? no bro
[09:11:00] yorickpeterse: Yes, I've seen it leak a few 100 MB in this instance
[09:11:11] yorickpeterse: but it's libxml so it's webscale
[09:11:18] howdoi: ljarvis: not always
[09:11:19] doodleha_: has joined #ruby
[09:11:28] anisha: has joined #ruby
[09:11:53] ljarvis: howdoi: hm?
[09:12:00] adaedra: ????????????????????????
[09:12:18] howdoi: well, the code i'm working on is screwed up
[09:12:47] howdoi: ??????????????? THE ?????????
[09:13:15] ljarvis: bear metal?
[09:13:21] yorickpeterse: Yes, bear metal
[09:13:22] ljarvis: like, a bear made out of metal?
[09:13:36] yorickpeterse: http://i282.photobucket.com/albums/kk263/Dandanimal99/HMBEAR.jpg bear metal
[09:13:41] adaedra: howdoi: lol
[09:13:51] ljarvis: wow photobucket
[09:14:01] ljarvis: last time i clicked their links i was like 12
[09:14:03] maloik: yay metal
[09:14:07] yorickpeterse: so like last year?
[09:14:25] ljarvis: that's more than half my life ago
[09:14:30] lkba: has joined #ruby
[09:14:32] riotjones: has joined #ruby
[09:14:42] maloik: wait you're not even 24?
[09:14:56] ljarvis: ... yes, MORE than half of my life ago
[09:15:19] ljarvis: i realise that is an awful way to say it
[09:15:26] adaedra: aren't we all 12 in here?
[09:15:28] maloik: just checking, maybe you counted years in some weird uk system
[09:15:28] shevy: nothing wrong with being young
[09:15:47] ljarvis: maloik: no we do counting like most places, everything else is unique though
[09:15:48] yorickpeterse: well they do drive on the wrong side of the road and have their own shoe sizes system
[09:16:06] maloik: I did think you were older though :)
[09:16:12] ljarvis: maloik: 26
[09:16:13] yorickpeterse: Everywhere in the EU: "I'm size 42" In the UK: "eh....9,5?"
[09:16:18] skade: has joined #ruby
[09:16:19] ljarvis: adaedra: kmh is insane
[09:16:26] adaedra: no it's not
[09:16:49] yorickpeterse: be grateful we don't measure things in inches, stones and feet
[09:17:09] doodleha_: has joined #ruby
[09:17:19] ljarvis: what's stupid is that although we often measure weight in stone, if you go to the doctors or a fitness expert, they'll measure it in KG
[09:17:29] ljarvis: sometimes in lbs when you really want a messed up experience
[09:17:47] Guest85: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[09:17:52] adaedra: Sounds simple and sensible /s
[09:17:56] ljarvis: and gym weights over here are all KG
[09:18:15] AlexAltea: has joined #ruby
[09:18:26] ljarvis: but, we have our own currency. Suck it EU
[09:18:33] workmad3: has joined #ruby
[09:18:45] zenspider: scrolls back to see what HOUR ruby was last discussed...
[09:18:54] adaedra: "Your weight is 20kg + 3 stones + 7 lbs"
[09:18:58] maloik: ?offtopic
[09:18:58] ruboto: I don't know anything about offtopic
[09:19:06] ljarvis: 7 minutes ago
[09:19:08] yorickpeterse: ljarvis: not a bad idea since the Euro is going to shit
[09:19:15] ruboto: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[09:19:26] yorickpeterse: ssssssh, jhass isn't here
[09:19:30] maloik: I don't even...
[09:19:49] zenspider: maloik: FULL ENGLISH WORDS? and you call yourself a programmer
[09:19:57] ljarvis: !fact add offtopic this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[09:19:58] ruboto: ljarvis, I will remember that offtopic is this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[09:20:02] Pathfinder: has joined #ruby
[09:20:19] maloik: zenspider: I would have just made it "o" instead of "ot"
[09:20:27] maloik: I'm all for saving keystrokes, but do it right the first time!
[09:20:44] ljarvis: it should just be ?
[09:20:59] adaedra: Use your client aliases/keybindings
[09:21:01] doodleha_: has joined #ruby
[09:21:20] maloik: I'm using a terminal window connected to irssi on a server with bad encoding
[09:21:22] maloik: what keybindings?
[09:21:28] aswen: has joined #ruby
[09:21:45] ljarvis: /alias foo bar
[09:21:58] senayar: has joined #ruby
[09:21:58] senayar: has joined #ruby
[09:24:52] doodleha_: has joined #ruby
[09:25:00] eGGsha: has joined #ruby
[09:25:34] LiquidInsect: has joined #ruby
[09:28:04] langlands: has joined #ruby
[09:29:37] speakingcode: has joined #ruby
[09:31:16] Scroff: has joined #ruby
[09:33:45] abuzze: has joined #ruby
[09:33:52] nfk: has joined #ruby
[09:34:13] Oog: has joined #ruby
[09:34:27] hahuang65: has joined #ruby
[09:35:20] Scroff: has joined #ruby
[09:36:15] einarj: has joined #ruby
[09:36:21] aapole: has joined #ruby
[09:37:25] Scroff: has joined #ruby
[09:37:47] ngsw: has joined #ruby
[09:38:57] _joes_: has joined #ruby
[09:39:12] iwishiwerearobot: has joined #ruby
[09:40:54] jimms: has joined #ruby
[09:41:07] Spami: has joined #ruby
[09:41:36] irle: has joined #ruby
[09:42:03] dgutierrez1287: has joined #ruby
[09:42:14] lolmaus: has joined #ruby
[09:42:23] ta: has joined #ruby
[09:43:14] Pupeno: has joined #ruby
[09:43:14] Pupeno: has joined #ruby
[09:43:53] Yiota: has joined #ruby
[09:44:04] astrobunny: has joined #ruby
[09:44:58] _joes_: has joined #ruby
[09:45:13] tesuji: has joined #ruby
[09:49:00] _joes_: has joined #ruby
[09:49:45] Miphix: has joined #ruby
[09:52:05] mcclurmc: has joined #ruby
[09:52:51] krz: has joined #ruby
[09:53:08] sdothum: has joined #ruby
[09:53:11] emilkarl: has joined #ruby
[09:53:35] emptyflask: has joined #ruby
[09:56:00] yardenbar: has joined #ruby
[09:56:42] IanV0rn2341: has joined #ruby
[09:58:00] terlar: has joined #ruby
[09:58:56] stamina: has joined #ruby
[09:59:44] hotpancakes: has joined #ruby
[10:00:11] Rollabunna: has joined #ruby
[10:03:04] qiukun: has joined #ruby
[10:03:04] ahmetkapikiran: has joined #ruby
[10:04:38] msgodf: has joined #ruby
[10:05:03] ebbflowgo: has joined #ruby
[10:05:04] sepp2k: has joined #ruby
[10:05:17] tomaz_b: has joined #ruby
[10:08:12] niemcu: has joined #ruby
[10:09:46] Pupeno_: has joined #ruby
[10:10:20] skade: has joined #ruby
[10:11:59] ndrei: has joined #ruby
[10:12:14] LiquidInsect: has joined #ruby
[10:13:05] bayed: has joined #ruby
[10:13:55] serivich: has joined #ruby
[10:14:13] Chills-`: has joined #ruby
[10:15:00] Macaveli: has joined #ruby
[10:15:23] zacstewart: has joined #ruby
[10:15:51] Spami: has joined #ruby
[10:15:54] Igorshp: has joined #ruby
[10:16:23] ryba: has joined #ruby
[10:19:27] startupality: has joined #ruby
[10:20:32] rickmasta: has joined #ruby
[10:24:29] startupality: has joined #ruby
[10:25:05] Scroff: has joined #ruby
[10:27:38] langlands: has joined #ruby
[10:28:38] lkba_: has joined #ruby
[10:29:07] atom3_: has joined #ruby
[10:29:38] fabrice31: has joined #ruby
[10:29:46] Yiota: has joined #ruby
[10:30:09] eGGsha: has joined #ruby
[10:33:08] Scroff: has joined #ruby
[10:33:22] arup_r: has joined #ruby
[10:33:43] Oog: >> method(:reason)
[10:33:44] ruboto: Oog # => undefined method `reason' for class `Object' (NameError) ...check link for more (https://eval.in/389787)
[10:33:46] sdothum: has joined #ruby
[10:33:53] NeverDie: has joined #ruby
[10:34:09] Oog: >> method(:method_name)
[10:34:10] ruboto: Oog # => undefined method `method_name' for class `Object' (NameError) ...check link for more (https://eval.in/389788)
[10:34:22] ruboto: irb is "interactive ruby", it is part of ruby. You can run ruby code and see results immediately. it's useful for testing code. Also see ?pry, a gem which is a popular alternative to irb.
[10:34:56] ljarvis: Oog: please use your local irb unless you have a question and are giving an example to others
[10:35:33] Oog: will do
[10:35:40] Scripore: has joined #ruby
[10:36:08] ngsw: has joined #ruby
[10:36:47] lxsameer: has joined #ruby
[10:38:36] Ox0dea: I wonder why $+, $-, and $^ aren't used.
[10:38:58] Ox0dea: $^ should be Process.uptime, which should exist.
[10:39:00] apeiros: I'm just happy about the fact.
[10:39:19] C1V0: has joined #ruby
[10:39:37] Ox0dea: apeiros: It doesn't complicate the parser any?
[10:40:06] apeiros: I don't care much for parser complexity. I care about code readability.
[10:40:12] langlands: has joined #ruby
[10:40:24] Ox0dea: But, I mean, look which way the variable is pointing.
[10:40:31] Ox0dea: Says "uptime" to me.
[10:41:41] adaedra: Keep calm and require English
[10:41:53] apeiros: if people just stopped to use the term "one-way encryption".
[10:42:48] manveru: but everybody thinks i'm using drugs when i talk about hashing
[10:42:51] dgutierrez1287: has joined #ruby
[10:43:20] adaedra: control sums?
[10:43:24] apeiros: then maybe you should put away the drugs before talking about hashing!
[10:43:43] manveru: hmm i'll try that next time
[10:44:05] adaedra: but yeah, ???one way encryption??? is stupid
[10:44:20] bnagy: wow it's manveru
[10:44:25] bnagy: I thought you quit ruby
[10:44:33] manveru: ruby didn't quit me
[10:44:42] apeiros: http://theartandscienceofruby.com/2015/06/29/how-do-i-encrypt-data-in-my-database/ shortened for (currently vapor) jacob: just use :password, :encrypted_text and :encrypted_binary column types.
[10:45:43] pyon: has joined #ruby
[10:45:52] apeiros: oh, and for :password, tell the users to frequently log in (automatic upgrade of the used hash function happens on login, since the original data is required)
[10:46:02] alex88: has joined #ruby
[10:46:09] apeiros: or rather: happens on password verification
[10:46:14] giuseppesolinas: has joined #ruby
[10:46:35] ljarvis: manveru: o/
[10:47:32] manveru: ljarvis: \o
[10:47:36] olistik: has joined #ruby
[10:48:24] Oog: has joined #ruby
[10:49:06] ljarvis: manveru: how's tricks?
[10:49:07] magical-imouto: has joined #ruby
[10:49:34] manveru: who's tricks? :P
[10:50:01] varunwachaspati: has joined #ruby
[10:50:03] ljarvis: http://www.urbandictionary.com/define.php?term=How%27s+tricks%3F
[10:50:35] hunt3r: has joined #ruby
[10:50:36] manveru: Not good man, I passed out last night while drinking and got teabagged.
[10:51:16] manveru: otherwise quite fine :)
[10:51:57] thelastinuit: has joined #ruby
[10:52:15] Rubie: has joined #ruby
[10:52:41] rodfersou: has joined #ruby
[10:54:24] Rollabunna: has joined #ruby
[10:55:05] emilkarl: has joined #ruby
[10:55:40] lolmaus: has joined #ruby
[10:55:42] GitGud: has joined #ruby
[10:57:29] fabrice31: has joined #ruby
[10:59:27] manveru: wonder if anyone from seattle.rb gonna be at TI5
[11:00:11] bar0n: has joined #ruby
[11:00:18] krz: has joined #ruby
[11:00:40] fabrice31: has joined #ruby
[11:00:50] khebbie: has joined #ruby
[11:01:06] ndrei: has joined #ruby
[11:01:17] hotpancakes: has joined #ruby
[11:01:54] langlands: has joined #ruby
[11:02:01] emilkarl: has joined #ruby
[11:02:29] ngsw: has joined #ruby
[11:02:50] Aryasam: has joined #ruby
[11:05:42] manveru: guess i can just go to the meetup on tuesday if that's still a thing
[11:06:14] allomov: has joined #ruby
[11:07:23] AlexAltea: has joined #ruby
[11:09:06] zacstewart: has joined #ruby
[11:10:03] mandarinkin: has joined #ruby
[11:10:28] jimms: has joined #ruby
[11:10:58] ngsw: has joined #ruby
[11:11:08] apeiros: manveru: you're in seattle?
[11:12:11] manveru: apeiros: going to http://www.dota2.com/international/announcement/
[11:12:18] dhjondoh: has joined #ruby
[11:12:25] pengin: has joined #ruby
[11:12:32] apeiros: watch or participate?
[11:12:41] manveru: yeah, whole city filled with even more nerds than usual :)
[11:13:20] manveru: business trip :)
[11:13:21] Ropeney: has joined #ruby
[11:13:31] apeiros: don't tell me you work for a gaming company
[11:13:41] apeiros: or are you combining business trip with fun?
[11:13:43] manveru: i work for dotabuff
[11:13:58] apeiros: ok, so both
[11:14:21] manveru: basically our yearly company get-together
[11:14:22] adaedra: this looks offtopic
[11:14:50] manveru: he caught us
[11:14:58] apeiros: !ot apeiros
[11:15:02] apeiros: ?ot apeiros
[11:15:02] ruboto: apeiros, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[11:15:11] langlands: has joined #ruby
[11:15:18] manveru: since when do we have bots?
[11:15:20] sleeper_: has joined #ruby
[11:15:25] manveru: is zenspider retired?
[11:15:39] apeiros: ruboto is the official channel bot
[11:15:47] senayar: has joined #ruby
[11:15:47] senayar: has joined #ruby
[11:16:10] apeiros: conundrum has gone the way of the dodo
[11:16:18] apeiros: or at least I have no idea where it is
[11:16:31] adaedra: mmmmh dodo
[11:17:27] krz: has joined #ruby
[11:20:51] dpollen: has joined #ruby
[11:21:01] Xeago: what happened to eval-in?
[11:21:04] djstorm: has joined #ruby
[11:21:10] apeiros: got replaced by ruboto
[11:21:16] apeiros: same code for code evaluation
[11:22:00] prestorium: has joined #ruby
[11:22:19] ruboto: manveru # => main (https://eval.in/389808)
[11:23:21] hahuang65: has joined #ruby
[11:23:32] dgutierrez1287: has joined #ruby
[11:24:47] hoelzro: has joined #ruby
[11:25:57] ebbflowgo: has joined #ruby
[11:26:45] atom3: has joined #ruby
[11:26:58] Scroff: has joined #ruby
[11:27:29] skade: has joined #ruby
[11:28:19] zacstewart: has joined #ruby
[11:28:44] but3k4: has joined #ruby
[11:28:57] abuzze: has joined #ruby
[11:29:18] sleeper_: has left #ruby: ("WeeChat 1.1.1")
[11:29:27] dorei: has joined #ruby
[11:29:47] Oog: has joined #ruby
[11:30:28] abuzze: has joined #ruby
[11:31:32] JohnBat26: has joined #ruby
[11:31:33] ruby-lang128: has joined #ruby
[11:32:00] phutchins: has joined #ruby
[11:33:05] giuseppesolinas: has joined #ruby
[11:33:51] railsraider: has joined #ruby
[11:34:00] eGGsha: has joined #ruby
[11:34:52] C1V0: has joined #ruby
[11:36:44] sparr: has joined #ruby
[11:36:56] benlovell: has joined #ruby
[11:38:00] qiukun: has joined #ruby
[11:38:33] SylarRuby: has joined #ruby
[11:38:37] tvw: has joined #ruby
[11:38:43] Bertg: has joined #ruby
[11:38:48] alex88: has joined #ruby
[11:39:06] LiquidInsect: has joined #ruby
[11:39:23] tvw: has joined #ruby
[11:40:05] janno90: has joined #ruby
[11:43:41] jimms: has joined #ruby
[11:44:49] ldnunes: has joined #ruby
[11:45:12] lxsameer: has joined #ruby
[11:45:26] Oog: has joined #ruby
[11:46:02] delianides: has joined #ruby
[11:46:41] Igorshp: has joined #ruby
[11:47:17] govt: has joined #ruby
[11:48:45] Rollabunna: has joined #ruby
[11:49:03] astrobunny: has joined #ruby
[11:49:59] zacstewart: has joined #ruby
[11:50:24] revath: has joined #ruby
[11:50:59] Xeago: has joined #ruby
[11:51:58] lucasfs7: has joined #ruby
[11:52:41] mdw: has joined #ruby
[11:54:11] symm-: has joined #ruby
[11:54:34] whiteline: has joined #ruby
[11:54:45] dorei: is there a better / more beautiful way to write this? https://gist.github.com/egwspiti/e450588a8585d23e1fa2
[11:55:05] nizmow: has joined #ruby
[11:55:05] sandstrom: has joined #ruby
[11:57:26] apeiros: dorei: you're "unstubbing"?
[11:58:03] apeiros: ACTION wonders whether a refinement does undef
[11:58:08] tkuchiki: has joined #ruby
[11:59:17] dorei: apeiros: ruby facets is adding #call to Symbol and this causes trouble with some versions of Slop
[12:00:44] workmad3: dorei: wow, what version of ruby are you on where symbol still needs #call monkey patched in? :/
[12:00:45] hotpancakes: has joined #ruby
[12:01:31] workmad3: oh wait, symbol has to_proc, not call
[12:01:40] Indian: has joined #ruby
[12:02:04] benlovell: has joined #ruby
[12:02:05] apeiros: "why monkey patching is bad, episode 217"
[12:02:27] apeiros: dorei: you don't have any threads in your code?
[12:03:32] jhass: ACTION is really curious about what the "some code" part could be
[12:03:42] apeiros: jhass: they said it - slop
[12:03:54] workmad3: has joined #ruby
[12:03:56] adaedra: /ignore workmad3
[12:03:57] apeiros: probably morphs on arg type
[12:04:14] workmad3: adaedra: :(
[12:04:16] apeiros: ah, right: "why argument polymorphism is bad, episode 219"
[12:04:24] adaedra: workmad3: eh, you asked it!
[12:04:50] jhass: "why facets is bad, episode 221"
[12:04:54] charliesome: has joined #ruby
[12:04:54] workmad3: adaedra: bah
[12:05:17] apeiros: jhass: I think we covered that in episode 13 already
[12:05:22] apeiros: early knowledge :D
[12:05:28] jhass: it's a flashback episode
[12:06:17] roolo_: has joined #ruby
[12:08:05] alex88: has joined #ruby
[12:09:22] ngsw: has joined #ruby
[12:10:12] charliesome: has joined #ruby
[12:10:43] zacstewart: has joined #ruby
[12:11:15] workmad3: ACTION imagines a jhass and apeiros podcast of "Why facets are bad" - 20 minutes of them saying "Facets are bad" in louder and louder voices
[12:11:19] Xeago: has joined #ruby
[12:11:32] jhass: meh, sounds boring
[12:11:41] jhass: can I write an espeak script for that?
[12:11:49] ngsw: has joined #ruby
[12:11:55] workmad3: jhass: episode 2 is on automation
[12:12:13] jhass: ah the cheap "how we made the last one" kind
[12:12:18] giuseppesolinas: has joined #ruby
[12:12:31] ngsw: has joined #ruby
[12:13:25] xrlabs: has joined #ruby
[12:13:30] rbennacer: has joined #ruby
[12:13:54] benlovell: has joined #ruby
[12:14:55] ngsw: has joined #ruby
[12:15:27] rodferso1: has joined #ruby
[12:15:58] ngsw: has joined #ruby
[12:17:10] dkphenom: has joined #ruby
[12:18:33] senayar: has joined #ruby
[12:18:45] senayar: has joined #ruby
[12:20:16] ndrei: has joined #ruby
[12:20:18] ngsw: has joined #ruby
[12:20:36] Xeago: has joined #ruby
[12:20:41] Scrofff: has joined #ruby
[12:21:39] bhorn1: has joined #ruby
[12:22:22] p1k: has joined #ruby
[12:22:38] fabrice31: has joined #ruby
[12:22:54] rodfersou: has joined #ruby
[12:23:31] serivich: has joined #ruby
[12:24:15] sgambino: has joined #ruby
[12:25:13] zacstewart: has joined #ruby
[12:26:05] jimms: has joined #ruby
[12:27:21] Igorshp: has joined #ruby
[12:27:26] intyl: has joined #ruby
[12:28:17] ninja-maid-robot: has joined #ruby
[12:30:40] ngsw: has joined #ruby
[12:31:05] Xeago: has joined #ruby
[12:32:07] eshy: has joined #ruby
[12:32:27] A124: has joined #ruby
[12:33:51] jcromartie: has joined #ruby
[12:33:52] eGGsha: has joined #ruby
[12:34:10] Papierkorb: has joined #ruby
[12:34:24] but3k4: has joined #ruby
[12:34:38] svoop: has joined #ruby
[12:34:39] tkuchiki: has joined #ruby
[12:35:17] michael_mbp: has joined #ruby
[12:35:33] dstarh: has joined #ruby
[12:38:23] voker57: has joined #ruby
[12:39:17] jlast: has joined #ruby
[12:40:10] sankaber: has joined #ruby
[12:40:22] n008f4g_: has joined #ruby
[12:43:00] ngsw: has joined #ruby
[12:43:01] Rollabunna: has joined #ruby
[12:43:25] serivich: has joined #ruby
[12:43:35] Yiota: has joined #ruby
[12:43:40] _blizzy_: has joined #ruby
[12:44:19] zacstewart: has joined #ruby
[12:45:31] anisha: has joined #ruby
[12:46:35] bubbys: has joined #ruby
[12:47:32] mahtennek: has joined #ruby
[12:47:56] Xeago: has joined #ruby
[12:48:11] mahtennek: hi does anybody know how to split this regex till the end?
[12:48:13] timonv: has joined #ruby
[12:48:13] mahtennek: CS4248[LEC]=1&CS3244[LEC]=1&CS3244[TUT]=4&CS3216[LEC]=1&CS3216[TUT]=2
[12:48:15] mahtennek: i can't seem to get the last few, there are different queries
[12:48:38] mahtennek: https://gist.github.com/anonymous/39ab7cba2e08ff85a449
[12:48:56] hunt3r: has joined #ruby
[12:48:58] jhass: mahtennek: looks like query params, the CGI module should have something to parse them
[12:49:00] ebbflowgo: has joined #ruby
[12:49:14] mahtennek: jhass: oh they do?
[12:49:39] fsvehla: has joined #ruby
[12:49:41] ljarvis: >> require 'cgi'; CGI.parse "CS4248[LEC]=1&CS3244[LEC]=1&CS3244[TUT]=4&CS3216[LEC]=1&CS3216[TUT]=2"
[12:49:42] ruboto: ljarvis # => {"CS4248[LEC]"=>["1"], "CS3244[LEC]"=>["1"], "CS3244[TUT]"=>["4"], "CS3216[LEC]"=>["1"], "CS3216[TUT ...check link for more (https://eval.in/389891)
[12:51:53] sameerynho: has joined #ruby
[12:52:25] charliesome: has joined #ruby
[12:52:52] delianides: has joined #ruby
[12:53:29] mahtennek: ah cgi fixed it
[12:53:33] mahtennek: thanks thanks guys
[12:53:43] shredding: has joined #ruby
[12:56:01] shevy: jhass you are the ultimately the guy who broke the +1000 mark on #ruby :>
[12:57:30] mister_solo: has joined #ruby
[12:58:09] yorickpeterse: now lets get it over 9000
[12:59:08] charliesome: has joined #ruby
[12:59:34] melter: has joined #ruby
[12:59:39] ljarvis: we talking about jruby?
[12:59:52] hotpancakes: has joined #ruby
[12:59:56] d1ngell: has joined #ruby
[13:00:29] griffindy: has joined #ruby
[13:00:29] arup_r: has joined #ruby
[13:01:42] rickmasta: has joined #ruby
[13:01:58] yorickpeterse: man I hate this weather
[13:02:06] yorickpeterse: Working from home, it's so hot I can't even get on my balcony
[13:02:07] shevy: yorickpeterse hmm I wonder what the channel record is at freenode
[13:02:10] yorickpeterse: my feat will literally burn
[13:02:19] yorickpeterse: shevy: in #ruby-lang I talked the most
[13:02:36] terlar: has joined #ruby
[13:02:39] tvb: has joined #ruby
[13:02:43] yorickpeterse: I wonder if I can bake an egg on my balcony
[13:02:45] yorickpeterse: ACTION has no eggs
[13:02:58] tvb: has left #ruby: ("Leaving...")
[13:03:46] yorickpeterse: my cat isn't even trying to go outside, he's just napping on my bed
[13:04:10] shevy: aren't you in the netherlands?
[13:04:25] shevy: don't you guys have an ocean right before your eyes!
[13:05:01] lupine: foor(&(-> e { e.bar }))
[13:05:07] yorickpeterse: I live pretty far from the ocean
[13:05:07] lupine: I am insulted that this is valid syntax
[13:05:33] victortyau: has joined #ruby
[13:05:45] lupine: remember when ruby was beautiful?
[13:05:48] lupine: chunky bacon!
[13:05:57] yorickpeterse: hm, "pretty far" 50 km
[13:05:59] lxsameer_: has joined #ruby
[13:06:21] dblessing: has joined #ruby
[13:06:36] shevy: lupine you also don't like the -> ?
[13:06:48] shevy: & and -> together is quite the ugliness
[13:07:02] shevy: and ruby can't even claim that it took that from perl now can it?
[13:07:08] lupine: it's an incredibly stringing-together of evil
[13:07:14] lupine: incredible*
[13:07:21] shevy: there is ruby of the light side
[13:07:24] shevy: and ruby of the dark side
[13:07:31] shevy: yoda and darth vader would have both used ruby
[13:08:05] tkuchiki: has joined #ruby
[13:08:27] a346: has joined #ruby
[13:08:34] delianides: has joined #ruby
[13:10:06] pothibo: has joined #ruby
[13:11:06] bullcitydev: has joined #ruby
[13:11:10] atomical: has joined #ruby
[13:11:57] hahuang65: has joined #ruby
[13:13:52] cashnguns: has joined #ruby
[13:13:59] Bertg: has joined #ruby
[13:15:50] jhooker: has joined #ruby
[13:16:59] fantasticsid: has joined #ruby
[13:18:58] malconis: has joined #ruby
[13:19:40] malconis: has joined #ruby
[13:19:41] skade: has joined #ruby
[13:20:40] Jackneill: has joined #ruby
[13:21:49] phutchins: has joined #ruby
[13:23:30] delianid_: has joined #ruby
[13:23:35] ebbflowgo: has joined #ruby
[13:23:51] arup_r1: has joined #ruby
[13:23:55] whippythellama: has joined #ruby
[13:24:34] [k-: has joined #ruby
[13:24:50] blaines: has joined #ruby
[13:26:18] gambl0re: has joined #ruby
[13:27:45] kfpratt: has joined #ruby
[13:28:13] blaines_: has joined #ruby
[13:28:15] fabrice31_: has joined #ruby
[13:28:34] fmcgeough: has joined #ruby
[13:28:36] ta: has joined #ruby
[13:28:57] but3k4: has joined #ruby
[13:29:02] mary5030: has joined #ruby
[13:29:37] _joes_: has joined #ruby
[13:30:23] radialneon: has joined #ruby
[13:30:33] krz: has joined #ruby
[13:30:50] Guest35544: has joined #ruby
[13:30:52] mary5030: has joined #ruby
[13:31:14] fantasti`: has joined #ruby
[13:31:31] ngsw: has joined #ruby
[13:32:22] charliesome: has joined #ruby
[13:32:44] delianides: has joined #ruby
[13:33:34] serivich: has joined #ruby
[13:33:56] Bertg: has joined #ruby
[13:34:28] d1ngell: has joined #ruby
[13:34:42] jtdoncas: has joined #ruby
[13:35:11] fantasti`: has joined #ruby
[13:35:15] white_bear: has joined #ruby
[13:35:29] jcromartie: has joined #ruby
[13:36:30] Muhannad: has joined #ruby
[13:37:17] Rollabunna: has joined #ruby
[13:37:22] rbennacer: has joined #ruby
[13:37:28] jerius: has joined #ruby
[13:37:35] d1ngell: has joined #ruby
[13:37:52] sevenseacat: has joined #ruby
[13:37:56] Pathfinder: has joined #ruby
[13:39:05] plains: has joined #ruby
[13:39:16] michael_mbp: has joined #ruby
[13:39:25] havenwood: has joined #ruby
[13:39:44] enebo: has joined #ruby
[13:41:06] bullcitydev: has joined #ruby
[13:41:27] Rubie: has joined #ruby
[13:42:32] Scripore: has joined #ruby
[13:43:00] fantasticsid: has joined #ruby
[13:43:06] kfpratt: has joined #ruby
[13:43:21] Yiota: has joined #ruby
[13:43:45] charliesome: has joined #ruby
[13:44:02] werelivinginthef: has joined #ruby
[13:45:06] Dj_TiKo: has joined #ruby
[13:45:15] eGGsha: has joined #ruby
[13:45:49] Igorshp: has joined #ruby
[13:46:38] rodfersou: has joined #ruby
[13:46:39] emergion: has joined #ruby
[13:47:19] benlovell: has joined #ruby
[13:47:46] hinbody: has joined #ruby
[13:51:02] Pathfinder: has joined #ruby
[13:51:08] eGGsha: has joined #ruby
[13:51:40] shevy: if only computers could program for us
[13:51:49] startupality: has joined #ruby
[13:52:06] xrlabs: they can, you just have to teach them
[13:52:34] Pathfinder_: has joined #ruby
[13:52:57] railsraider_: has joined #ruby
[13:53:37] hackeron_: has joined #ruby
[13:53:43] skade: has joined #ruby
[13:54:31] matrixise: has joined #ruby
[13:54:34] Scroff: has joined #ruby
[13:54:48] karpuragauram: has joined #ruby
[13:56:03] giuseppesolinas: has joined #ruby
[13:56:47] tkuchiki: has joined #ruby
[13:57:22] paulcsmith: has joined #ruby
[13:57:23] senayar: has joined #ruby
[13:57:23] senayar: has joined #ruby
[13:57:57] jensel: has joined #ruby
[13:58:57] Scrofff: has joined #ruby
[13:59:06] emptyflask: has joined #ruby
[13:59:34] bf4: has joined #ruby
[14:00:37] hotpancakes: has joined #ruby
[14:03:43] a346: has joined #ruby
[14:04:59] beilabs_: has joined #ruby
[14:05:51] soulcake: has joined #ruby
[14:05:52] soulcake: has joined #ruby
[14:05:56] beilabs_: so i've a string with the values "{1=>2015, 2=>6, 3=>12}" - whats the best way for me to get the value of 1, 2, 3
[14:06:24] mahtennek: is there a way i can get a dynamic value from regex? for eg /(variable)/ puts "#{variable}"?
[14:06:54] apeiros: beilabs_: simple answer: use the literal_parser gem to parse the string to a hash and use .keys on the hash
[14:07:01] apeiros: beilabs_: long answer: how do you get that string?
[14:07:09] apeiros: or rather: why do you have that data as a string?
[14:07:19] bougyman: mahtennek: yes.
[14:07:24] zacstewart: has joined #ruby
[14:07:25] beilabs_: apeiros, it's what I'm stuck with in an older system
[14:07:28] apeiros: mahtennek: string.match(regex).captures
[14:07:32] beilabs_: thanks for the tip with the gem
[14:07:38] apeiros: beilabs_: that's not really answering the question :)
[14:07:58] apeiros: (it's equivalent to say "I have it because I have it")
[14:08:08] beilabs_: well, yes it is, it's in a database and I have to extract it.
[14:08:21] DaniG2k: has joined #ruby
[14:08:26] mahtennek: oh okay cool
[14:08:29] beilabs_: the fact it's in a crap format is besides the point, but thanks for the tip.
[14:08:33] mahtennek: thanks bougyman apeiros
[14:08:40] dopie: has joined #ruby
[14:08:41] last_staff: has joined #ruby
[14:09:22] mahtennek: but if i am doing like this, when /what is my module for (modules)/i ...
[14:09:29] mahtennek: how do i even string.match regex?
[14:09:42] zacstewart: has joined #ruby
[14:09:45] jtdoncas: has joined #ruby
[14:10:19] apeiros: >> string = "some string"; regex = /([auejvmcie]*/; string.match(regex).captures
[14:10:20] ruboto: apeiros # => /tmp/execpad-2ff5f5ae2dfe/source-2ff5f5ae2dfe:2: end pattern with unmatched parenthesis: /([auejvmci ...check link for more (https://eval.in/389921)
[14:10:27] apeiros: >> string = "some string"; regex = /([auejvmcie]*)/; string.match(regex).captures
[14:10:29] ruboto: apeiros # => [""] (https://eval.in/389922)
[14:10:48] apeiros: oh, * matches empty string too??? silly
[14:10:51] apeiros: >> string = "some string"; regex = /([auejvmcie]+)/; string.match(regex).captures
[14:10:53] ruboto: apeiros # => ["me"] (https://eval.in/389923)
[14:11:12] bougyman: >> /(?<variable>foo)/ =~ "foobar"; variable
[14:11:13] ruboto: bougyman # => "foo" (https://eval.in/389924)
[14:11:17] michael_mbp: has joined #ruby
[14:11:19] apeiros: mahtennek: ^ this is how you string.match(regex). you have a string. you call .match on it. you pass it your regex.
[14:11:38] apeiros: bougyman: you're only allowed to show this if you also list the full restrictions of that feature.
[14:12:12] benlovell: has joined #ruby
[14:12:17] bougyman: that's a huge list.
[14:12:21] rjno: has joined #ruby
[14:12:32] bougyman: summary: don't use it.
[14:12:59] victortyau: has joined #ruby
[14:13:00] bougyman: but it matches his query.
[14:16:56] kobain: has joined #ruby
[14:17:33] athos_diddy: has joined #ruby
[14:18:51] axl__: has joined #ruby
[14:19:27] CloCkWeRX: has joined #ruby
[14:19:56] coderhs: has joined #ruby
[14:19:59] _joes_: has joined #ruby
[14:20:44] toddperkinz: has joined #ruby
[14:21:34] terlar: has joined #ruby
[14:22:09] ta: has joined #ruby
[14:22:13] fantasticsid: has joined #ruby
[14:23:42] kobain: has joined #ruby
[14:24:46] chipotle: has joined #ruby
[14:25:04] davedev24_: has joined #ruby
[14:26:03] kies: has joined #ruby
[14:27:11] bnobu: has joined #ruby
[14:28:16] davedev24: has joined #ruby
[14:28:40] kfpratt: has joined #ruby
[14:28:56] coderhs: has joined #ruby
[14:29:50] CloCkWeRX: has joined #ruby
[14:30:39] jcromartie: has joined #ruby
[14:31:32] Rollabunna: has joined #ruby
[14:33:35] Igorshp: has joined #ruby
[14:34:26] dfockler: has joined #ruby
[14:35:03] decoponio: has joined #ruby
[14:35:48] IanV0rn2341: has joined #ruby
[14:38:53] _ixti_: has joined #ruby
[14:39:06] kfpratt: has joined #ruby
[14:39:10] jpfuentes2: has joined #ruby
[14:39:26] revath: has joined #ruby
[14:42:16] ruv: has joined #ruby
[14:42:35] lordkryss: has joined #ruby
[14:42:41] Rubie: has joined #ruby
[14:42:57] denver: has joined #ruby
[14:43:19] Deele: has joined #ruby
[14:43:20] ruv: has joined #ruby
[14:43:51] pandaant: has joined #ruby
[14:43:59] plains: has joined #ruby
[14:43:59] plains: has joined #ruby
[14:45:08] tjbiddle: has joined #ruby
[14:45:39] kfpratt: has joined #ruby
[14:46:27] ruv: anyone here try to package traveling ruby with mock?
[14:46:48] tacit7: has joined #ruby
[14:48:35] Scroff: has joined #ruby
[14:50:11] Luun: has joined #ruby
[14:50:21] Rollabunna: has joined #ruby
[14:50:38] dudedudeman: has joined #ruby
[14:50:47] Rollabunna: has joined #ruby
[14:51:30] dudedudeman: has joined #ruby
[14:51:38] roolo: has joined #ruby
[14:51:53] sandstrom: has joined #ruby
[14:53:01] aryaching: has joined #ruby
[14:53:06] jeanlinux: has joined #ruby
[14:53:57] thiagovsk: has joined #ruby
[14:56:19] ahmetkapikiran: has joined #ruby
[14:57:58] chouhoulis: has joined #ruby
[14:58:22] dpollen: has joined #ruby
[14:59:30] plains: has joined #ruby
[14:59:30] plains: has joined #ruby
[15:00:02] kfpratt: has joined #ruby
[15:00:11] Luun: does anyone know of a ruby profiler that will work with 1.8.7? I can???t seem to find any
[15:00:39] ljarvis: Luun: that's because you shouldn't be using 1.8.7
[15:00:45] Luun: I know :(
[15:00:45] hahuang65: has joined #ruby
[15:00:49] msnyon: has joined #ruby
[15:00:55] wasamasa: shouldn't be any harder than finding people willing to work with 1.8.7
[15:00:57] dgutierrez1287: has joined #ruby
[15:00:59] hotpancakes: has joined #ruby
[15:01:06] ljarvis: Luun: why the version constraint?
[15:01:32] Luun: that???s just what version where I work has been running forever
[15:01:35] Luun: we???re upgrading soon
[15:01:38] Luun: but until them I???m stuck
[15:02:05] ljarvis: interesting, your work are ok with running outdated software huh
[15:02:39] StephenOTT: has joined #ruby
[15:02:47] Luun: not okay, but just too understaffed to update
[15:02:52] Luun: like I said, we???re updating soon though
[15:03:04] ljarvis: but yeah in all seriousness it's possible there are older profilers that'll work on 1.8.7 but I haven't used that version for a long time so I think you'll have to dig
[15:03:25] Luun: ok, thanks! just wanted to make sure there wasn???t an obvious one I was unaware of
[15:03:31] mertcna: has joined #ruby
[15:03:53] startupality: has joined #ruby
[15:05:06] Scripore: has joined #ruby
[15:06:08] cashnguns: has joined #ruby
[15:06:24] gix: has joined #ruby
[15:08:24] hunt3r: has joined #ruby
[15:09:25] kfpratt: has joined #ruby
[15:09:34] skade: has joined #ruby
[15:09:38] kfpratt: has joined #ruby
[15:09:42] juanpablo_: has joined #ruby
[15:10:09] CloCkWeRX: has joined #ruby
[15:11:32] mikecmpb_: has joined #ruby
[15:13:34] havenwood: has joined #ruby
[15:13:47] chouhoulis: has joined #ruby
[15:14:04] eggoez: has joined #ruby
[15:14:32] presto: has joined #ruby
[15:16:26] sharpmachine: has joined #ruby
[15:17:37] aapole: has joined #ruby
[15:19:31] senayar: has joined #ruby
[15:20:26] njs126: has joined #ruby
[15:20:32] snapcase: has joined #ruby
[15:20:57] dgarstang: has joined #ruby
[15:21:09] dgarstang: How can I extract a portion of text from a multiline string in ruby?
[15:21:09] jeanlinux: has joined #ruby
[15:22:00] Alina-malina: has joined #ruby
[15:22:02] adaedra: Have a sample?
[15:22:08] ljarvis: dgarstang: that's a bit broad, but no different to how you would extract it if it wasn't multiline. Maybe an example would help
[15:22:32] dgarstang: ljarvis: Let's call it a single line then... :)
[15:22:34] paulcsmith_: has joined #ruby
[15:22:49] yorickpeterse: God I love AWS
[15:22:55] adaedra: good for you
[15:22:57] yorickpeterse: You disable AlarmNotification on an autoscaling group
[15:23:01] senayar^: has joined #ruby
[15:23:03] dgarstang: ljarvis: actually I think I can do it line by line
[15:23:03] yorickpeterse: What does it do? ADD A NEW INSTANCE ANYWAY
[15:23:09] ljarvis: dgarstang: we still need an example
[15:23:27] adaedra: dgarstang: Not Enough Information
[15:23:56] jeanlinux: has joined #ruby
[15:24:13] snockerton: has joined #ruby
[15:25:32] IanV0rn2341: has joined #ruby
[15:26:19] Xeago: has joined #ruby
[15:27:38] Channel6: has joined #ruby
[15:28:00] dgarstang: python has re.match and grouping, so I can do stuff like re.match('foo=(.*?)$',str) and extract everything after the = with re.group(1)... has ruby got an equiv?
[15:28:39] Aria: Lots of ways to do it
[15:29:31] Oog: has joined #ruby
[15:30:16] emptyflask: has joined #ruby
[15:30:24] El3k0n: has joined #ruby
[15:30:36] cj: what's ruby's test framework? Anything like Test::More ?
[15:30:51] Aria: minitest and rspec and many others.
[15:31:15] Aria: You'll find a bit of a lack around TAP support, sadly, but some things support it
[15:31:28] cj: thanks. looks like ingy did a gem called test-more
[15:31:47] cj: in October of 2013... hmm...
[15:32:06] Aria: It's not like test frameworks need to change rapidly.
[15:32:10] peter_paule: has joined #ruby
[15:32:27] aamador: has joined #ruby
[15:32:28] langlands: has joined #ruby
[15:32:41] Scrofff: has joined #ruby
[15:32:45] freerobby: has joined #ruby
[15:33:21] jhass: dgarstang: I'd usually go for "foo=bar"[/foo=(.+?)/, 1] or "foo=bar"[/(?<=foo=).+?/]
[15:33:48] houhoulis: has joined #ruby
[15:35:22] eGGsha: has joined #ruby
[15:35:41] rippa: has joined #ruby
[15:36:12] dfockler: has joined #ruby
[15:37:12] blaines: has joined #ruby
[15:37:33] cj: Aria: yeah, it looks like it works fine in its current state... now to learn how to program a ruby class and instantiate an object! :-)
[15:37:41] symm-: has joined #ruby
[15:38:39] txdv: shevy: http://rubyfiddle.com/riddles/6f25b
[15:39:28] pothibo: has joined #ruby
[15:39:45] El3k0n: has joined #ruby
[15:40:32] El3k0n_: has joined #ruby
[15:41:30] rcvalle: has joined #ruby
[15:42:41] rjno: has joined #ruby
[15:42:44] j4d: has joined #ruby
[15:43:41] bluOxigen: has joined #ruby
[15:44:00] RobertBirnie: has joined #ruby
[15:44:15] Tempesta: has joined #ruby
[15:44:45] khebbie: has joined #ruby
[15:45:50] symm-_: has joined #ruby
[15:45:51] Cache_Money: has joined #ruby
[15:46:21] bronson: has joined #ruby
[15:48:50] shinnya: has joined #ruby
[15:49:03] senayar: has joined #ruby
[15:49:04] shevy: txdv for some strange reason, I always think you reside in Germany
[15:52:03] jlebrech: has joined #ruby
[15:52:32] phizzbuzz: has joined #ruby
[15:53:08] jlebrech: can I output excon request in json or hash? other than Excon.new(debug: true)
[15:53:13] houhoulis: has joined #ruby
[15:53:26] s2013: has joined #ruby
[15:57:01] emilkarl: has joined #ruby
[15:58:06] Alayde: has joined #ruby
[15:58:50] momomomomo: has joined #ruby
[15:59:07] jeanlinux: has joined #ruby
[15:59:56] casadei_: has joined #ruby
[15:59:57] Spami: has joined #ruby
[16:00:47] benlieb_: has joined #ruby
[16:01:12] hotpancakes: has joined #ruby
[16:01:23] rbennacer: has joined #ruby
[16:01:24] rjno: has joined #ruby
[16:01:31] towski_: has joined #ruby
[16:01:37] paulcsmith: has joined #ruby
[16:02:18] Yiota: has joined #ruby
[16:02:23] sharpmachine: has joined #ruby
[16:02:55] psye: has joined #ruby
[16:03:05] snockerton: has joined #ruby
[16:03:21] Scripore: has joined #ruby
[16:04:24] acke: has joined #ruby
[16:04:37] ralku: has joined #ruby
[16:05:37] momomomomo: has joined #ruby
[16:08:13] Xeago: has joined #ruby
[16:08:40] umgrosscol: has joined #ruby
[16:09:06] Igorshp: has joined #ruby
[16:09:31] xrlabs: has joined #ruby
[16:11:48] baweaver: has joined #ruby
[16:15:07] Izud: has joined #ruby
[16:15:59] findaway: has joined #ruby
[16:16:15] Izud: Anyone here
[16:16:51] griffindy: has joined #ruby
[16:17:37] joshbamboo1: has joined #ruby
[16:18:35] jhass: apeiros: I forgot, who did we decide is anyone? me right?
[16:18:36] chouhoulis: has joined #ruby
[16:19:01] apeiros: jhass: I think so
[16:19:03] apeiros: I'm nobody
[16:19:08] apeiros: don't remember who somebody was
[16:19:25] apeiros: wait, no, you're anybody
[16:19:33] apeiros: no clue who's anyone
[16:19:58] houhoulis: has joined #ruby
[16:20:02] n008f4g_: has joined #ruby
[16:20:06] WildBamboo-Josh: has joined #ruby
[16:20:32] shevy: I am anyone
[16:20:52] penzur: has joined #ruby
[16:21:03] revath: has joined #ruby
[16:21:18] Aria: I'm nobody.
[16:21:22] Aria: After all, nobody's perfect. ;-)
[16:21:49] jhass: but anyone usually know's X with X being whatever
[16:21:54] shevy: Aria is perfect
[16:22:58] jhass: Izud: so, what's up?
[16:23:26] zendrix: has joined #ruby
[16:23:49] Izud: Havenwood: Hello
[16:24:19] Izud: Very good jhass
[16:24:27] momomomomo: has joined #ruby
[16:24:34] Izud: Quite new here
[16:25:06] Izud: Oblivious of the syntax to mention a user ;)
[16:25:15] griffindy: has joined #ruby
[16:25:27] DexterLB: has joined #ruby
[16:25:34] rjno: has joined #ruby
[16:25:43] keen___________7: has joined #ruby
[16:26:01] jhass: it's a client feature, most trigger it if the nick appears anywhere
[16:26:23] jhass: and if you got a sane client you should have nick tab completion anywhere
[16:27:47] paulcsmith: has joined #ruby
[16:29:06] Izud: which client do u use?
[16:29:16] Izud: I'm using xchat
[16:29:50] Izud: ok...checking it out now
[16:30:13] railsraider: has joined #ruby
[16:31:16] michael_mbp: has joined #ruby
[16:31:32] revath: has joined #ruby
[16:33:11] pengin: has joined #ruby
[16:33:14] WildBamboo-Josh: has joined #ruby
[16:33:32] alex88: has joined #ruby
[16:33:37] rbennacer: has joined #ruby
[16:33:45] alex88: has joined #ruby
[16:34:02] acke: has joined #ruby
[16:35:32] WildBamboo-Josh: has joined #ruby
[16:35:58] senayar: has joined #ruby
[16:36:51] Bertg: has joined #ruby
[16:37:15] hotpancakes: has joined #ruby
[16:37:19] sarkyniin: has joined #ruby
[16:37:21] Izud: has anyone here tried out octopress 3?
[16:37:32] ivanskie: has joined #ruby
[16:37:41] keen___________7: has joined #ruby
[16:37:42] konsolebox: has joined #ruby
[16:40:10] findaway: has joined #ruby
[16:40:13] sandstrom: has joined #ruby
[16:40:31] dopie: has joined #ruby
[16:42:33] revath: has joined #ruby
[16:43:56] fantazo: has joined #ruby
[16:44:00] Agoldfish: has joined #ruby
[16:44:27] pengin: has joined #ruby
[16:44:37] bullcitydev: has joined #ruby
[16:44:58] Senjai: Morning ruby
[16:45:05] Senjai: ?use Izud
[16:45:06] ruboto: Izud, Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
[16:45:12] metaphage: has joined #ruby
[16:45:16] metaphage: has left #ruby: ()
[16:46:22] mdw: has joined #ruby
[16:46:33] adaedra: ?hello Senjai
[16:46:33] ruboto: Senjai, I don't know anything about hello
[16:46:44] [H]unt3r: has joined #ruby
[16:46:55] poguez_: has joined #ruby
[16:47:02] Senjai: ^ Dat be a bug
[16:47:03] hotpancakes: has joined #ruby
[16:47:08] towski_: has joined #ruby
[16:47:20] Senjai: jhass: https://www.youtube.com/watch?v=1Isjgc0oX0s
[16:47:25] Izud: ?okay ruboto
[16:47:25] ruboto: ruboto, I don't know anything about okay
[16:48:11] jhass: Senjai: idk how!
[16:48:45] Izud: i'm having issues with octopress 3 when i create a Gemfile and run jekyll serve i get series of errors
[16:49:28] hahuang65: has joined #ruby
[16:49:29] djstorm: has joined #ruby
[16:49:38] khebbie: has joined #ruby
[16:49:58] aryaching_: has joined #ruby
[16:50:10] soulcake: has joined #ruby
[16:50:31] railsraider: has joined #ruby
[16:50:50] balazs: has joined #ruby
[16:51:30] jhass: Izud: post them to gist
[16:52:05] Indian: has joined #ruby
[16:52:48] fabrice31: has joined #ruby
[16:54:17] presto: has joined #ruby
[16:54:57] momomomomo_: has joined #ruby
[16:55:16] jespada: has joined #ruby
[16:55:37] gamename: has joined #ruby
[16:55:38] khebbie_: has joined #ruby
[16:55:47] atom3: has joined #ruby
[16:56:00] CustosLimen: has joined #ruby
[16:57:17] j4cknewt: has joined #ruby
[16:58:16] Izud: ?jhass https://gist.github.com/kinsomicrote/b4b5e2531aebac5d8c2a
[16:58:16] ruboto: https://gist.github.com/kinsomicrote/b4b5e2531aebac5d8c2a, I don't know anything about jhass
[16:58:27] Izud: ?https://gist.github.com/kinsomicrote/b4b5e2531aebac5d8c2a jhass
[16:58:28] ruboto: I don't know anything about https
[16:58:30] NeverDie: has joined #ruby
[16:58:33] charliesome: has joined #ruby
[17:00:10] jhass: Izud: what's up with triggering the bot?
[17:00:31] jhass: Izud: that seems to only be a warning, do you get an error too?
[17:00:46] dkphenom: has joined #ruby
[17:02:49] Izud: jhass yea...a load error
[17:02:56] Izud: check the comment of the gist
[17:03:54] jhass: so you have a Gemfile? try prepending bundle exec to whatever you run
[17:03:58] bronson: has joined #ruby
[17:04:13] roolo_: has joined #ruby
[17:04:37] snockerton: has joined #ruby
[17:04:57] DexterLB: has joined #ruby
[17:05:56] Izud: Okay, would try that...gotta rush out now
[17:06:15] Spami: has joined #ruby
[17:07:10] djbkd: has joined #ruby
[17:07:15] sharpmachine: has joined #ruby
[17:07:34] terlar: has joined #ruby
[17:08:36] cmisenas: has joined #ruby
[17:09:04] ralku: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[17:09:04] Pwnna: has joined #ruby
[17:09:05] ralku: has joined #ruby
[17:09:25] gauke: has joined #ruby
[17:09:34] hunt3r: has joined #ruby
[17:09:43] havenwood: has joined #ruby
[17:10:00] aphprentice: has joined #ruby
[17:11:04] Pwnna: is there a way to get pwd if pwd is supposed to be in a symlink?
[17:11:21] last_staff: has joined #ruby
[17:11:30] jpfuentes2: has joined #ruby
[17:11:37] Pwnna: like: mkdir abc; ln -s abc abclinked; cd abclinked; ruby show_pwd.rb => should show abclinked rather than just abc?
[17:12:50] finisherr: has joined #ruby
[17:13:51] yaw: has joined #ruby
[17:14:22] T3: has joined #ruby
[17:14:41] rjno: has joined #ruby
[17:15:15] troulouliou_dev: has joined #ruby
[17:16:12] jhass: mmh, doesn't look like it, I wonder if it's resolved at OS level already
[17:16:47] yaw: has left #ruby: ()
[17:16:55] Pwnna: i don't think so
[17:17:08] Pwnna: /proc/$$/cwd show the original directory
[17:17:23] Pwnna: shell is doing something strange but idk if there is a way to replicate it.
[17:17:30] jhass: well, I couldn't find an API so you just answered yourself
[17:17:42] Pwnna: well but shell does it
[17:17:49] dopie: has joined #ruby
[17:17:49] Pwnna: cd abclinked; pwd => abclinked
[17:18:02] jhass: File.read("/proc/self/read")
[17:18:40] djellemah_: has joined #ruby
[17:18:43] Pwnna: if you read the link for /proc/self/cwd it points to the original directory..
[17:19:08] MatthewsFace: has joined #ruby
[17:19:19] chouhoulis: has joined #ruby
[17:19:28] jhass: er, right
[17:21:15] jhass: mmh, ENV["PWD"] I guess
[17:21:26] Pwnna: interesting
[17:21:36] jhass: yap, that overrides it
[17:21:52] Pwnna: but is that only when you start it from shell?
[17:21:57] jhass: if you launch a subshell after unsetting it the shells loose it too
[17:22:03] rdaviesDG: has joined #ruby
[17:22:08] snockerton: has joined #ruby
[17:22:22] spider-mario: has joined #ruby
[17:22:36] Pwnna: hmm i'm actually runnint my original service via running.. let me check if it overrides PWD
[17:22:40] Pwnna: thanks jhass that was super helpful :)
[17:23:44] findaway: has joined #ruby
[17:24:16] gusrub: has joined #ruby
[17:24:34] jhass: well, all that said relying on something like that surely sounds fishy ;)
[17:24:54] jhass: I mean the general idea that what's returned makes a difference at all
[17:25:04] rdaviesDG: has left #ruby: ()
[17:25:04] rdaviesDG: has joined #ruby
[17:25:25] Pwnna: well my problem is I will do a Dir.chdir(...) { ... }
[17:25:30] Pwnna: but sometimes when that call returns...
[17:25:44] Pwnna: the original directory might be removed, because a new version replaced it via symlink.
[17:26:02] Pwnna: so like /opt/program still points to /opt/program-1.2
[17:26:09] Pwnna: but the original program might be /opt/program-1.1
[17:26:19] RegulationD: has joined #ruby
[17:27:44] ledestin: has joined #ruby
[17:27:55] lkba: has joined #ruby
[17:27:57] jhass: I don't quite follow why that's a problem, in fact my intuition would be that that's desired, I was invoked when it pointed to 1.2, so I should continue working with that
[17:28:52] wallerdev: has joined #ruby
[17:29:32] Pwnna: no so the original program-1.1 is invoked. during a long running operation in a chdir block, program-1.1 is deleted and replaced with program-1.2
[17:29:38] pdoherty: has joined #ruby
[17:29:38] olistik: has joined #ruby
[17:29:49] Pwnna: the long running operation is done, it tries to change back to program-1.1's directory, it doesn't work.
[17:29:56] jhass: so you have /opt/program hardcoded and want to detect the change?
[17:30:12] Pwnna: no i just don't want it to chdir into an invalid directory.
[17:30:38] Pwnna: i also don't think it should stay in the directory it changed to, although i'm not sure if there's any adverse effect.
[17:30:39] bnobu: has joined #ruby
[17:30:44] Pwnna: maybe i'll just have it stay there
[17:32:05] jhass: mmh, I wonder if you could use a file lock to prevent it from being removed
[17:32:26] Rollabunna: has joined #ruby
[17:32:27] Pwnna: well i think that's too complicated
[17:32:34] Pwnna: i think the easiest is if the chdir is permanent
[17:32:36] benlieb_: has joined #ruby
[17:32:37] Pwnna: so i take that out of a block
[17:32:55] postmodern: has joined #ruby
[17:33:06] Pwnna: so the script will execute in the new directory location
[17:33:12] Pwnna: and don't return to its roots
[17:33:27] Pwnna: eventually the script will die, and it will be respawned by runit with the new version, so all is good.
[17:33:53] emptyflask: has joined #ruby
[17:34:26] jhass: well, if that's an option, it's certainly the simplest one
[17:34:42] Pwnna: i just realized
[17:34:46] Pwnna: thanks for all the help :)
[17:36:05] drewo: has joined #ruby
[17:36:49] airy: has joined #ruby
[17:38:03] aneesh_: has joined #ruby
[17:38:41] sharpmachine: has joined #ruby
[17:39:38] airy: how can a student participate in ruby open source devlopment
[17:40:04] rdaviesDG: air_, github issues!
[17:40:21] bricker: has joined #ruby
[17:40:28] havenwood: air_: Know any Ruby already or just starting learning it?
[17:40:43] airy: how can one know which project he have to contribute?
[17:40:50] Xeago: has joined #ruby
[17:40:51] airy: know little ruby
[17:40:53] havenwood: air_: Non-technical contributions are valuable as well.
[17:41:23] airy: non-technical what?
[17:41:24] crazydiamond: has joined #ruby
[17:42:00] chipotle: has joined #ruby
[17:42:04] havenwood: air_: Fixing typos or grammar mistakes in documentation. Improving readme's and wikis. Providing graphics for branding.
[17:42:30] rdaviesDG: also juggling is useful
[17:43:43] havenwood: air_: I'd suggest picking a tool you're interested in and taking a while to study its code. Then review all the issues and pull requests and see if there's anything you can contribute. Or any places you can improve documentation, examples, formatting, etc along the way.
[17:45:23] giuseppesolinas: has joined #ruby
[17:45:34] havenwood: air_: For example, Ruby's documentation could always use some love!: http://documenting-ruby.org/
[17:46:21] havenwood: air_: As they say ^: Writing documentation is a gentle, but effective introduction to contributing to open source
[17:46:34] havenwood: air_: And it's a valuable contribution!
[17:46:36] jhass: With larger issue trackers pointing out duplicates or old issues that can't be solved anymore due to changes in the project and stuff like that can be useful too
[17:46:36] pengin: has joined #ruby
[17:47:08] presto: has joined #ruby
[17:47:16] intyl: has joined #ruby
[17:48:18] platzhirsch: has left #ruby: ()
[17:48:29] rjno: has joined #ruby
[17:48:50] renderful: has joined #ruby
[17:49:10] discr33t__: has joined #ruby
[17:49:14] konsolebox: has joined #ruby
[17:49:22] anjen: has joined #ruby
[17:49:33] chipotle: has joined #ruby
[17:49:37] airy: how it will help to student?
[17:49:41] sphex: I sure wish ruby had a set of man pages that succinctly described the language. perl 4 had an awesome manpage that described almost the whole language.
[17:49:48] discr33t__: i'm fairly new to ruby and having trouble getting some code to work. i'm trying to get the output as a single array but i keep getting 3 individual arrays. can anyone help point me in the right direction? http://pastie.org/10266634
[17:50:20] jhass: air_: if it's not obvious and fun to you, then there's no point. Move on to something that motivates you
[17:50:36] towski_: has joined #ruby
[17:51:21] postmodern: is there anyway to have warden store the session in the database, so it hard-expires at logout time?
[17:51:21] jhass: discr33t__: start by properly indenting your code so you're not confused about its structure
[17:51:33] airy: no its fun, how does it will help me in future
[17:52:27] jhass: air_: it can bring you some reputation, but that shouldn't be your goal IMO. Your goal should be having fun. Now.
[17:52:47] jobewan: has joined #ruby
[17:53:00] iateadonut: has left #ruby: ()
[17:53:07] Wolland: has joined #ruby
[17:53:34] jhass: discr33t__: apart from that I'm not sure I understand your question, could you elaborate?
[17:54:10] symbol: has joined #ruby
[17:54:42] delianides: has joined #ruby
[17:54:47] discr33t__: jhass: what i am trying to do is execute the postgres command to tell me the version that is installed. we have some hosts that have more than one version of postgres installed which is why i have doing the Dir.glob, to get an array of all paths to the postgres command
[17:55:35] discr33t__: jhass: i'm iterating over that array to run the command for each installed version, which is unfortunately giving me 3 separate arrays. i'm trying to turn that into a single array with multiple objects
[17:55:42] casadei_: has joined #ruby
[17:56:25] momomomomo: has joined #ruby
[17:56:28] senayar: has joined #ruby
[17:56:37] jhass: well, you don't collect anything in your example code, you simply iterate and print a bit
[17:56:45] konsolebox: has joined #ruby
[17:56:52] jhass: or well, even the printing code is commented so you're not doing anything really
[17:57:03] JDiPierro: has joined #ruby
[17:57:14] jhass: so still not sure what your goal is
[17:57:43] chouhoulis: has joined #ruby
[17:57:49] jhass: if I had to take a wild guess, I'd say you want Array#map
[17:58:15] jhass: but given I have no idea about your goal, I can't predict if it's anywhere near the best tool for it
[17:59:21] discr33t__: jhass: this is going to become a puppet fact for postgres installed version. i'm just trying to work out the code that gives me the correctly formatted output. i'm uncommenting the puts statements as needed to check the output
[17:59:39] baweaver: has joined #ruby
[18:00:47] jhass: discr33t__: btw foo = bar.sub(/.../, '\1') is a bit silly, just foo = bar[/.../, 1]
[18:01:03] atomical: has joined #ruby
[18:01:08] dgutierrez1287: has joined #ruby
[18:01:48] discr33t__: jhass: ok, i'll make that change for the regex
[18:01:58] phutchins1: has joined #ruby
[18:01:59] Rubie: has joined #ruby
[18:03:15] bnobu: has joined #ruby
[18:03:20] noethics: has joined #ruby
[18:04:09] cashnguns: has joined #ruby
[18:04:34] atomical_: has joined #ruby
[18:05:36] _blizzy_: has joined #ruby
[18:05:55] lkba_: has joined #ruby
[18:06:01] shadoi: has joined #ruby
[18:06:51] gizmore: has joined #ruby
[18:07:22] mcclurmc: has joined #ruby
[18:10:05] hunt3r: has joined #ruby
[18:10:09] phutchins2: has joined #ruby
[18:11:03] SCHAAP137: has joined #ruby
[18:11:37] shevy: if someone else defines: module Configuration
[18:12:31] shevy: then I can no longer do
[18:12:34] shevy: class Configuration; end # TypeError: Configuration is not a class
[18:12:39] shevy: is there a way to clear the earlier defined module?
[18:12:48] jeanlinux: has joined #ruby
[18:12:53] jhass: const_remove
[18:13:14] jhass: if you have a library which does that at the toplevel that's enough reason to ditch it
[18:13:15] shevy: Object.send :remove_const, :Configuration
[18:13:38] zacstewart: has joined #ruby
[18:13:38] havenwood: shevy: Shevy::Configuration and Chevy::Configuration
[18:13:48] phutchins: has joined #ruby
[18:14:05] shevy: well, the problem is that another namespace can get blocked; so in my code, I can not differ between who originated any given module or class
[18:14:28] shevy: so in my code I could modify module Foo, but it may have been defined by someone else
[18:14:36] Senjai: shevy: If you have to remove an earlier module, you're doing it wrong
[18:14:48] Senjai: shevy: Instead, write your code so you dont have to run into this scenario
[18:15:01] shevy: and I can do this how when I use the same name?
[18:15:06] Senjai: Namespaces
[18:15:08] chouhoulis: has joined #ruby
[18:15:14] Senjai: Solving naming problems since forever
[18:15:14] shevy: yes, we have the same name. Now what?
[18:15:21] Senjai: Same namespace?
[18:15:32] Senjai: What are you writing?
[18:15:36] shevy: it does not matter
[18:15:44] Senjai: It does, do you control both namespaces?
[18:16:03] Senjai: If you dont, then your shit is simply incompatible with other shit. If you do, don't write your code so that there's a conflict
[18:16:10] shevy: of course not; I don't control namespaces defined and used by others/external code; see how RbConfig got added, it was called Config in the past wasn't it?
[18:16:12] Senjai: Either way, removing a module is bound to break something else
[18:16:31] Senjai: Dont remove other peoples stuff, just fail
[18:16:31] Cork: has joined #ruby
[18:16:33] shevy: Don't clog up namespaces perhaps?
[18:16:45] workmad3: has joined #ruby
[18:16:46] Senjai: Or use a namespace that is unique
[18:16:53] shevy: Don't use my namespace?
[18:16:56] kfpratt: has joined #ruby
[18:16:59] Senjai: What namespace
[18:17:03] shevy: it does not matter!
[18:17:05] Senjai: are you using something like Application
[18:17:08] Senjai: because that's just silly
[18:17:19] shevy: cool argument
[18:17:22] Senjai: GemName:: is fine
[18:17:32] shevy: is ApplIcation better?
[18:17:54] Senjai: I'm saying if your using something so generic that its running into problems like that...
[18:18:13] jhass: or if you use stuff that does use something such generic
[18:18:20] casadei_: has joined #ruby
[18:18:20] jhass: simply don't use it
[18:18:23] Senjai: Just fail
[18:18:25] Senjai: its not your job
[18:18:27] Senjai: Cause an error
[18:18:39] Senjai: if you're actually using a unique namespace
[18:18:52] Senjai: You still havent told me what it is
[18:19:01] atomi: has joined #ruby
[18:19:07] shevy: does it matter?
[18:19:08] Senjai: It's probably Configuration:: or something
[18:19:09] shevy: pick any name
[18:19:23] IanV0rn2341: has joined #ruby
[18:19:25] Senjai: I guarentee nobody is using OmgAwesomeGemNamespaceZeroOhOne
[18:19:26] shevy: let's say a namespace called Bundler
[18:19:34] Senjai: Fixed forever
[18:19:38] shevy: I want to bundle some gems together
[18:19:58] jhass: shevy: do you expect to be able to upload a gem called bundler?
[18:20:04] shevy: jhass I want to!
[18:20:05] Senjai: Bundler is a canonical ruby paradigm. It's a bread and butter tool.
[18:20:16] jhass: shevy: that's not answering my question
[18:20:50] havenwood: shevy: ah, looks like the "bundler" gem name is already taken!
[18:20:51] shevy: jhass I expect that I can use non-ruby internal constants in any way I want to use them
[18:21:04] Senjai: Dont ever include another library
[18:21:06] Senjai: and you'll be fine
[18:21:07] jhass: shevy: still not answering my question
[18:21:17] jhass: actually actively evading it
[18:21:18] shevy: jhass sure it is answered
[18:21:24] jhass: it's simple
[18:21:27] Senjai: jhass: He/she has been evading every single quetsion
[18:21:30] jhass: do you expect to be able to upload a gem called bundler?
[18:21:33] Senjai: What namespace? "Does it matter?":
[18:21:39] railsraider: has joined #ruby
[18:21:40] mary5030: has joined #ruby
[18:21:55] shevy: Senjai I have answered it precisely; see above, Bundler
[18:21:56] bf4: has joined #ruby
[18:22:03] Senjai: shevy: Oh, so your adding stuff to Bundler::
[18:22:05] jhass: Senjai: I know, the trick is to just be fundamentalistic, if you move on they thing they won
[18:22:06] Senjai: Name your gem better
[18:22:11] jhass: *think, even
[18:22:15] shevy: jhass I expect to be able to use my gems in any way I see fit <--- that was the answer
[18:22:24] shevy: Senjai my names are perfect
[18:22:25] Senjai: Okay , so fork bundler
[18:22:26] jhass: shevy: nope, I refuse that answer
[18:22:31] Senjai: Next question?
[18:22:31] shevy: what for? why should I fork bundler?
[18:22:34] jhass: do you expect to be able to upload a gem called bundler? Valid answers: yes, no
[18:22:52] Senjai: shevy: Because you want to use a namespace that has been taken by a library you're already using
[18:22:54] shevy: jhass I expect to use every gem that I want to use in every way I want to see it <- valid answer
[18:23:07] shevy: Senjai I have no control over what other people do in their code now, have I?
[18:23:11] mary5030: has joined #ruby
[18:23:13] jhass: shevy: no, that's completely evading my quesiton
[18:23:19] Senjai: shevy: Sure you do, fork it
[18:23:21] Senjai: then you have control
[18:23:22] shevy: jhass the question was answered
[18:23:25] jhass: shevy: no
[18:23:32] shevy: Senjai why should I fork the project of someone else? how does that make sense?
[18:23:32] Senjai: jhass: Can we just +q him for a day?
[18:23:39] shevy: Senjai can you please stop abuse?
[18:23:40] Senjai: This has devolved to trolling
[18:23:43] jhass: Senjai: just /ignore if you're fed up
[18:23:46] shevy: Senjai stop trolling?
[18:24:06] atomi: has joined #ruby
[18:24:59] dgarstang: has joined #ruby
[18:27:15] hotpancakes: has joined #ruby
[18:27:33] phutchins1: has joined #ruby
[18:29:26] bking39116: has joined #ruby
[18:31:14] hahuang65: has joined #ruby
[18:33:12] baweaver: has joined #ruby
[18:33:57] wildroman2: has joined #ruby
[18:34:28] bking39116: has left #ruby: ()
[18:34:32] djbkd: has joined #ruby
[18:35:40] tjbiddle: has joined #ruby
[18:37:07] mcclurmc: has joined #ruby
[18:37:30] Zai00: has joined #ruby
[18:37:33] sharpmachine: has joined #ruby
[18:38:22] centrx: has joined #ruby
[18:38:33] eam: shevy: this is part of why I think Ruby oughten't have both module and class
[18:38:39] allomov: has joined #ruby
[18:38:57] eam: it's super obnoxious needing to know which type of element a namespace field is
[18:38:58] shevy: eam yeah that too, I'd love to just extend it without that error
[18:39:17] eam: btw, if you want you can simply change the constant
[18:39:21] bf4: has joined #ruby
[18:39:24] havenwood: shevy: clojure namespace includes the author so you don't quite have to be so creative with coming up with your own name :P
[18:39:36] havenwood: shevy: for example: org.shevy/bundler.namespace
[18:39:38] shevy: well it's indeed not so simple because I actually can not modify namespaces too easily like in the above example
[18:39:52] havenwood: shevy: TL;DR: Don't use an existing namespace.
[18:40:00] shevy: since my changes will also feedback in a global way, and may affect other code; so whoever is the first to define a namespace/constant, sort of wins
[18:40:03] eam: ruby is also very non-hierarchical in its module structure. I suspect part of why is this issue
[18:40:29] shevy: havenwood interesting
[18:40:40] bking39116: has joined #ruby
[18:40:51] bffff_: has joined #ruby
[18:40:52] shevy: havenwood that means one could have the "same" name, but clojure would still know that it might be different? since these are not by the same author?
[18:41:24] havenwood: shevy: You could say use `Shevy::Bundler` for a similar effect.
[18:41:33] havenwood: shevy: Or: ShevyBundler
[18:41:37] havenwood: shevy: But yeah, by convention.
[18:41:51] fabrice31: has joined #ruby
[18:42:14] shevy: true, I could make a Shevy namespace in Bundler
[18:42:31] havenwood: shevy: Don't share top level namespaces with other tools. :)
[18:42:44] Senjai: What we've been trying to say forever :P
[18:42:56] shevy: that means I have to accept what others decide onto me
[18:42:59] nertzy: has joined #ruby
[18:43:02] multi_io: has joined #ruby
[18:43:12] pothibo: has joined #ruby
[18:43:35] djbkd: has joined #ruby
[18:44:18] eam: just hang it off Object
[18:44:20] bonhoeffer: has joined #ruby
[18:44:26] eam: no one does that; unlikely to conflict
[18:44:38] shevy: I once wanted to define my own objects for a MUD in ruby; I ended up calling it MudObject instead :\
[18:44:40] bonhoeffer: what am i missing here: foo.gsub(/(.*?)\-(.*?)\-(.*?)/) {"$3/$2/$1"}
[18:44:46] bonhoeffer: i have the match data all wrong . . .
[18:44:54] eam: bonhoeffer: sample input?
[18:45:25] Igorshp: has joined #ruby
[18:45:52] bonhoeffer: "2013-03-12".gsub(/(.*?)\-(.*?)\-(.*?)/) {"\3/\2/\1"} -> want 3/12/2013
[18:46:04] Soda: has joined #ruby
[18:46:22] benlieb_: has joined #ruby
[18:46:40] dpollen: has joined #ruby
[18:46:43] Senjai: bonhoeffer: Have you tried using rubular.com
[18:46:53] workmad3: has joined #ruby
[18:46:56] bonhoeffer: oh yeah ??? the regex works
[18:47:15] bonhoeffer: but not in gsub
[18:47:39] eam: >> "2013-03-12".gsub(/(\d+)-(\d+)-(\d+)/) {"#{$3}/#{$2}/#{$1}"}
[18:47:40] ruboto: eam # => "12/03/2013" (https://eval.in/390001)
[18:48:37] symm-: has joined #ruby
[18:49:19] bonhoeffer: wow - eam nice ??? thanks
[18:49:42] eam: avoid .*? for a more explicit pattern whenever you can, it's much more efficient
[18:50:25] zendrix: has joined #ruby
[18:50:27] benlieb_: has joined #ruby
[18:50:28] Marisa: has joined #ruby
[18:51:00] bougyman: oniguruma optimizes it doesn't it, eam?
[18:51:24] Senjai: You could also run a match and use the match data object to avoid using globals.
[18:51:25] erts: has joined #ruby
[18:51:36] eam: no, .*? is always going to be more expensive than \d+ in that example
[18:51:40] Senjai: and build a new astring instead
[18:52:17] eam: bougyman: because it has to traverse the entire input starting with the maximum match (all of the string) and then find each consecutively smaller match until it can't get smaller
[18:52:37] balazs: has joined #ruby
[18:52:52] eam: and it has to do that for every .*? instance
[18:53:36] bougyman: eam: yes, I know it's more expensive than a more exact match, I was just mentioning that oniguruma shortcuts some of the steps when it can (optimizes)
[18:53:37] eam: there are a couple very basic looking regex expressions that will send any engine into conniptions
[18:53:51] eam: ah yeah. I don't think it can do much in that case, though
[18:54:01] bougyman: oh can you lock onig up with the +)* with backrefs stuff?
[18:54:12] eam: probably, let's see
[18:54:29] Indian: has joined #ruby
[18:55:02] gizmore: has joined #ruby
[18:55:48] havenn: has joined #ruby
[18:56:11] aapole: has joined #ruby
[18:57:18] Rubie: has joined #ruby
[18:57:41] jackjackdripper: has joined #ruby
[18:58:06] m8: has joined #ruby
[19:00:12] Xiti: has joined #ruby
[19:02:53] peter_paule: has joined #ruby
[19:03:20] jerius_: has joined #ruby
[19:03:56] Rubie: has joined #ruby
[19:04:54] PaulCapestany: has joined #ruby
[19:06:07] _stu_: has joined #ruby
[19:06:09] solars: has joined #ruby
[19:06:30] DLSteve: has joined #ruby
[19:07:02] mikecmpbll: has joined #ruby
[19:10:27] juanca_: has joined #ruby
[19:11:28] bonhoeffer: has joined #ruby
[19:13:44] snapcase: has joined #ruby
[19:13:48] dfockler: is there an enumerable to count how many elements in an enumerable match a condition?
[19:14:55] dfockler: oh count hah
[19:18:16] yardenbar: has joined #ruby
[19:18:18] ivanskie: has joined #ruby
[19:18:52] lapide_viridi: has joined #ruby
[19:19:03] sandstrom: has joined #ruby
[19:20:10] ivanskie: anyone else patiently waiting for iTunes 12.2 ?
[19:20:17] ivanskie: 'patiently'
[19:22:06] nertzy: has joined #ruby
[19:22:27] zacstewart: has joined #ruby
[19:23:19] Aswebb_: has joined #ruby
[19:23:38] miah: no. because i have vox.app
[19:24:29] shevy: I don't even know what is iTuna
[19:25:08] mcclurmc: has joined #ruby
[19:25:55] wallerdev: has joined #ruby
[19:26:43] ivanskie: iTuna is very tasty..
[19:27:18] ivanskie: I doub't their apple music interface will come close to Spotify's implementation..
[19:27:23] alphaatom: has joined #ruby
[19:27:24] ivanskie: but we''ll see
[19:27:39] sphex: hey. I see that ruby comes with some documentation files in doc/ that aren't associated with specific classes (e.g. "doc/security.rdoc"). they get processed and .ri files are installed for them, but is there any way to read them with ri(1) afterward?
[19:28:34] blaines: has joined #ruby
[19:28:44] ivanskie: try this http://yardoc.org/
[19:28:54] miah: thats not the question
[19:28:58] mcclurmc: has joined #ruby
[19:29:55] GitGud: has joined #ruby
[19:32:20] bf4: has joined #ruby
[19:32:23] slumos: has left #ruby: ()
[19:33:13] miah: you can do like `rdoc --server` and then go to http://localhost:8214/ruby/security_rdoc.html
[19:33:17] atomical: has joined #ruby
[19:33:28] miah: but ya, i don't know the magical incantation from the cli to get that specific doc
[19:33:35] ivanskie: was googling and found this too: http://rxr.whitequark.org/mri/source/doc/security.rdoc which probably doesn't help either but
[19:33:58] shevy: it's the gesture that counts!
[19:34:04] djbkd: has joined #ruby
[19:34:15] mary5030: has joined #ruby
[19:35:23] ivanskie: shevy yah but there's also people, like most of Canadian people.. lol that'll say about anything just to be helpful. now whether that information is going to be helpful is usually worse than 50/50
[19:35:25] mary5030: has joined #ruby
[19:35:36] ivanskie: i'm canadian.. but i'm european canadian.. lol
[19:35:37] sphex: miah, ivanskie: alright, thanks! yeah looks like ri is really only designed to lookup classes/methods. not a big deal I guess, the other docs don't need to be looked up very often.
[19:36:02] shevy: as long as you speak the real canadian language... french
[19:36:05] gauke: has joined #ruby
[19:36:28] ivanskie: ur saying it wrong shevy.. Real Canadien
[19:36:44] miah: you mean Quebecua
[19:36:47] ivanskie: and nope i don't speak french
[19:36:50] eggoez: has joined #ruby
[19:36:58] ivanskie: i speak English, Russian, and Ukrainian tho
[19:36:58] shevy: adaedra that's a land for you to visit!
[19:37:29] Xeago: I'm bored.
[19:37:42] mcclurmc: has joined #ruby
[19:37:57] miah: #ruby-offtopic is great for bordem.
[19:38:09] Xeago: Ituna is great for hunger.
[19:38:35] ivanskie: there's a separate channel for that?
[19:38:41] ivanskie: adding that to my TIL list
[19:39:25] ivanskie: it feels like #ruby-offtopic is more like a fake number you give someone instead of your own...
[19:39:28] miah: so that we can keep this place focused (of course it does occasionally get OT)
[19:39:36] miah: 867-5309
[19:39:43] yaw: has joined #ruby
[19:39:53] shevy: we just mention ruby every now and then to insinuate that it is relevant to ruby
[19:40:00] shevy: like how many many ruby users are in Canada! \o/
[19:40:16] miah: i grew up in almost-canada (michigan).
[19:40:27] mcclurmc_: has joined #ruby
[19:40:43] shevy: that explains the french accent when you type! \o/
[19:41:03] sphex: and I'm from .qc.ca. gee what's with canada and ruby?
[19:41:07] workmad3: has joined #ruby
[19:41:16] miah: nothing as far as i know
[19:41:45] ivanskie: tomorrow there'll be somethin
[19:41:54] peter_paule: has joined #ruby
[19:41:56] sphex: right. definitively no take over going on.. << >>
[19:42:22] shevy: perhaps Canada is the new California
[19:42:27] ivanskie: tomorrow's Canadian Ruby Day right?
[19:42:29] shevy: just with less sun. and more snow
[19:42:40] cmisenas: has joined #ruby
[19:42:54] mcclurmc: has joined #ruby
[19:42:57] fantasticsid: has joined #ruby
[19:43:40] Frem: has joined #ruby
[19:44:00] sphex: ivanskie: so yard is an alternative toolchain to rdoc?
[19:44:09] BanzaiJoe: has joined #ruby
[19:44:14] miah: yardoc is a pretty nice doc parser
[19:44:25] ivanskie: i've just found it yesterday.. it just makes it easier to read..
[19:44:29] miah: and you can write docs in more formats (though I think rdoc supports a few as well)
[19:45:09] tubuliferous_: has joined #ruby
[19:45:37] Carnage\: has joined #ruby
[19:45:45] dfockler: yardoc was really simple and did a pretty good job
[19:45:50] dfockler: at least for my project
[19:46:07] monod: has joined #ruby
[19:46:09] miah: i just wish rdoc/yardoc had better options for linking with simplecov
[19:46:18] hotpancakes: has joined #ruby
[19:46:38] MyMind: has joined #ruby
[19:46:54] miah: rdoc can generate a nice list of coverage details. but i want it all in one easy to digest place.
[19:47:40] miah: yardoc has yardstick, https://github.com/dkubb/yardstick but its not quite what i want
[19:48:48] k3asd`: has joined #ruby
[19:49:21] shevy: C versus C++! http://250bpm.com/blog:4
[19:50:47] NeverDie: has joined #ruby
[19:51:00] _blizzy_: has joined #ruby
[19:53:30] symm-: has joined #ruby
[19:53:34] paulcsmith: has joined #ruby
[19:54:58] sandstrom: has joined #ruby
[19:55:24] renderful: has joined #ruby
[19:56:07] jerius: has joined #ruby
[19:56:20] baweaver: has joined #ruby
[19:56:25] yqt: has joined #ruby
[19:57:07] frode15243: has joined #ruby
[19:57:33] shevy: there is so much python code out there
[19:57:38] shevy: feels as if they outnumber us 3:1
[19:59:12] miah: well, Python has the scientific community
[19:59:43] miah: more colleges teach it, than Ruby.
[20:00:11] miah: though honestly most of what researchers were writing when i was working with them was perl, lisp, and java.
[20:00:18] wmoxam: it's just more popular for basically anything non-web dev
[20:00:21] Musashi007: has joined #ruby
[20:01:06] shevy: well I could see some perlers
[20:01:13] shevy: never really saw a lot of lispers
[20:01:39] miah: i worked with a _ton_ of MIT grads. emacs & lisp were their way of life
[20:02:00] nofxx: has joined #ruby
[20:03:47] eam: what generation though? MIT switched from lisp to python a while back
[20:03:51] wprice: has joined #ruby
[20:04:00] zendrix: has joined #ruby
[20:04:08] shevy: miah is not *that* old!
[20:04:12] arcanez: has left #ruby: ()
[20:04:24] eam: coworkers might be though ;-)
[20:04:36] alphaatom: has joined #ruby
[20:05:18] Senjai: I've considered going back to school, but I'm pretty torn on it
[20:05:48] bricker: I am super bored with programming
[20:05:51] cmisenas: has joined #ruby
[20:05:51] miah: im 36. most of my coworkers were close to my age, maybe a tad older.
[20:05:52] wmoxam: Senjai: what's keeping you from it?
[20:05:52] bricker: I find no joy in it anymore
[20:05:52] eam: shevy: they switched in like 2009 iirc
[20:05:58] eam: miah: you're older than I am
[20:05:59] Senjai: I already have a job in the industry, and I know what kind of grads most schools produce. But there's a longing for some of the more fundemental concepts and math
[20:06:04] Senjai: wmoxam: ^
[20:06:21] wmoxam: Senjai: maybe try some part time courses?
[20:06:22] dfockler: I wish I knew stats better
[20:06:26] snockerton: has joined #ruby
[20:06:38] wmoxam: bricker: :(
[20:06:46] Senjai: wmoxam: With work? Eh..
[20:06:48] miah: i wish i could school. i have a hard time learning in that kind of environment / teaching method though
[20:06:48] wmoxam: bricker: make something fun ;)
[20:07:02] Senjai: bricker: You still working in SoCal?
[20:07:05] wmoxam: Senjai: yeah, it can be hard
[20:07:10] bricker: wmoxam: The motivation do program outside of work just isn't there anymore
[20:07:13] bricker: Senjai: yes
[20:07:22] Senjai: bricker: Consider going to NYC or?
[20:07:36] Senjai: Or any place that has a really motivated team
[20:08:03] miah: totally oc, but we're hiring ;) https://www.simple.com/careers
[20:08:15] eam: miah: oh you're at simple?
[20:08:26] davejlong: has joined #ruby
[20:08:50] bricker: Senjai: moving jobs might help for a while, but I've done it a few times now and always after about a year I just lose interest again
[20:08:51] miah: two years now
[20:08:53] Senjai: We're also hiring. www.freerunningtech.com. Unfortunately most of our clients are under NDA, suffice it to say we work on some really cools tuff
[20:09:22] eam: bricker: I made a switch from a big valley company to a much more dynamic startup and it helped a lot
[20:09:23] Senjai: bricker: I think it might be related to the team man. I get the motivation issue, but you can do cool things and get paid for it, that's a pretty good setup
[20:09:33] bricker: Senjai: this time feels different, this time I don't even want to move jobs. I'll probably leave the industry after this job, dunno when that will be
[20:09:43] tno: has joined #ruby
[20:09:52] Senjai: bricker: Sorry to hear m8.
[20:09:56] bricker: eam: yeah, I work for a big ass company and it's just totally not fun
[20:09:56] allomov: has joined #ruby
[20:10:05] jmignault: has joined #ruby
[20:10:06] Senjai: Work for a smaller firm
[20:10:09] eam: bricker: try somewhere smaller (but not too small) where you can teach people
[20:10:20] bricker: eam: may as well be preparing excel spreadsheets or something
[20:10:26] miah: i have worked for BACs and they were indeed not fun. too many people working in management.
[20:10:30] eam: yeah that was me 5 years ago
[20:10:31] benlieb_: has joined #ruby
[20:10:34] wmoxam: smaller companies are way more fun IMO
[20:10:36] bricker: eam: I need dat big company paycheck though you know what I mean
[20:10:41] Senjai: bricker: https://boards.greenhouse.io/bonobos
[20:10:44] bricker: startups pay okay I guess
[20:10:44] eam: bricker: I do, I do - try a unicorn though
[20:10:46] Senjai: bricker: ^ might be a solution
[20:10:53] Senjai: bricker: I know they're hiring
[20:11:17] Senjai: I know they're dev team too, REALLY good group of guys
[20:11:19] eam: bricker: I took a huge salary paycut for a bit of equity gamble -- going to do much better in the longer term
[20:11:37] eam: most startups can pay "enough"
[20:11:47] miah: most startups have worthless equity though
[20:11:51] eam: yeah most do
[20:12:00] sharpmachine: has joined #ruby
[20:12:11] eam: pick wisely, go for someone who's already essentially made it
[20:12:15] eam: but are still small
[20:12:28] Senjai: *cough* Bonobos
[20:13:01] miah: lots of sales positions =)
[20:13:47] jenrzzz: has joined #ruby
[20:14:01] bricker: Senjai: what do they do at Bonobos?
[20:14:18] wmoxam: they monkey around
[20:14:20] bricker: clothing it looks like?
[20:14:23] Senjai: They're an ecommerce retailer.
[20:14:25] bricker: wmoxam: hah-hah-hah
[20:14:29] eam: wmoxam: their technology is bananas
[20:16:11] sdwrage: has joined #ruby
[20:16:25] shevy: until the day they'll start to program
[20:17:14] eam: can you imagine all the "million monkeys" jokes
[20:18:01] wmoxam: no, infinite monkeys
[20:18:14] wmoxam: typing on infinite mechanical keyboards
[20:18:35] eam: I hope that's not an open office layout
[20:18:43] wmoxam: will produce ActiveSupport, which will cause infinite tears
[20:18:49] sarkyniin: has joined #ruby
[20:19:22] miah: hopefully not chaos monkeys though
[20:20:07] wmoxam: specs will take infinte years to run
[20:22:13] juanca_: has joined #ruby
[20:22:35] ruv: has joined #ruby
[20:23:33] rbennacer: has joined #ruby
[20:23:43] sharpmachine: has joined #ruby
[20:23:44] eam: prove it
[20:24:01] kirun: has joined #ruby
[20:24:08] miah: i generally only see slow tests when virtualized browsers are involved
[20:24:12] bruno-: has joined #ruby
[20:24:27] wmoxam: because of infintite fixtures of course
[20:24:34] Senjai: miah: Let me tell you about Spree
[20:24:45] miah: the candy?
[20:24:55] axisys: need help with a value with space in it .. trying to use it with rvc (ruby vsphere console)
[20:24:58] axisys: http://dpaste.com/32D29XC
[20:25:02] miah: http://candyaddict.com/blog/candy_images/wonka_spree_original.jpg
[20:25:07] NeverDie: How long until ruby gets overtaken by node.js?
[20:25:12] NeverDie: Or has this happened already.
[20:25:14] Senjai: miah: https://github.com/spree/spree
[20:25:23] Senjai: NeverDie: It won't happen, and no
[20:25:35] NeverDie: Why won't it happen?
[20:25:40] Senjai: Why would it?
[20:25:47] NeverDie: It recently took over ruby on hacker news for jobs last month from what I read.
[20:25:58] NeverDie: Because node.js is apparently faster?
[20:26:14] baweaver: has joined #ruby
[20:26:15] Senjai: Sure, do you enjoy writing javascript?
[20:26:24] apeiros: NeverDie: what's the purpose of your question?
[20:26:31] NeverDie: To see what everyone's thoughts on it are.
[20:26:31] apeiros: if you want to use the most popular language, use java
[20:26:40] apeiros: if you want to write in the fastest language, use C
[20:26:48] Senjai: ACTION places crown on apeiros
[20:27:03] miah: assembly?
[20:27:05] Senjai: I'm going to answer every language question like that for now on
[20:27:06] wmoxam: NeverDie: there are plenty of languages that are faster and/or more popular than Ruby ;)
[20:27:09] darix: apeiros: it depends.
[20:27:17] wmoxam: it's not a race
[20:27:19] drewvanstone: has joined #ruby
[20:27:30] miah: slow and steady wins the race
[20:27:35] wmoxam: and everything has a tradeoff ;)
[20:27:36] bking39116: has joined #ruby
[20:27:39] apeiros: miah: besides the point :) insert *any fast language and probably very low level language*
[20:28:12] apeiros: so NeverDie - what is it that motivates you to ask that question?
[20:28:15] miah: i've written more C than ASM, and I don't want to write either.
[20:28:35] NeverDie: To see if I should invest time into learning Ruby or not.
[20:28:37] j4cknewt: has joined #ruby
[20:28:48] apeiros: NeverDie: then you're asking the wrong question.
[20:29:00] NeverDie: Then what would be the right question
[20:29:00] miah: do you like imperative or oop? =)
[20:29:08] Senjai: miah: That's not the right question
[20:29:13] NeverDie: Are they not practically one and the same.
[20:29:16] apeiros: NeverDie: what's the deciding factor for you to invest time?
[20:29:17] Senjai: NeverDie: Find a language you enjoy writing in, and continue writing it
[20:29:19] Papipo: has joined #ruby
[20:29:28] apeiros: amount of job offers? probably java again.
[20:29:30] NeverDie: apeiros: Salary and employment.
[20:29:31] Senjai: NeverDie: Go to codecademy, run through the examples, and pick one
[20:29:38] apeiros: salary? learn cobol.
[20:29:44] eam: amount of job offers is distinct from quality of job offers
[20:29:47] Senjai: apeiros: YOU ARE THE KING SIR
[20:29:49] wmoxam: apeiros: beat me to it
[20:29:51] miah: its what keeps me off of Go even though its an alright lang. i just hate the amount of repetition and boilerplate code.
[20:30:13] yorickpeterse: if lol != nil { ... }
[20:30:15] apeiros: NeverDie: ruby is a nice language. it's a joy to work with for the most part. and there's good jobs.
[20:30:22] kadoppe: has joined #ruby
[20:30:25] Senjai: s/good/great
[20:30:27] devoldmx: has joined #ruby
[20:30:31] Senjai: There are less jobs, but less developers
[20:30:33] eam: if you're looking for a runtime to maximize earnings, consider an RDBMS
[20:30:36] Senjai: It's never a problem finding work
[20:30:40] yorickpeterse: Ruby is boring and mainstream but it pays and it's a good thing to use
[20:30:42] fabrice31: has joined #ruby
[20:30:43] havenwood: NeverDie: They're also comparing the entire Node ecosystem to a single Ruby gem.
[20:30:48] Senjai: yorickpeterse: Boring? :(
[20:30:52] havenwood: NeverDie: There are lots of non-Rails apps in Ruby.
[20:30:54] fantazo: has joined #ruby
[20:30:56] yorickpeterse: Senjai: Yes, the language is fairly stable
[20:31:05] Senjai: yorickpeterse: You prefer YoloLang? xD
[20:31:09] yorickpeterse: except for the april fools features such as refinements that get introduced once in a while
[20:31:12] eam: yorickpeterse: gonna disagree with you there, ruby is super unstable
[20:31:13] NeverDie: Yeah but practically everything revolves around ruby and its rails framework.
[20:31:21] miah: yorickpeterse: exactly. if err != nil..
[20:31:21] havenwood: NeverDie: Oh?
[20:31:23] yorickpeterse: eam: MRI might be, the language itself is not
[20:31:31] miah: why cant gofmt just do that for me? ;)
[20:31:51] eam: yorickpeterse: unless you say MRI doesn't implement the language I don't see how that can be true
[20:31:53] dblessing: has joined #ruby
[20:32:11] eam: major api changes over the last decade, changes to core things like scoping
[20:32:17] havenwood: NeverDie: You might be surprised that companies you think of as Rails actually have more non-Rails Ruby apps than Rails apps.
[20:32:21] yorickpeterse: "over the last decade"
[20:32:22] renderful: has joined #ruby
[20:32:30] yorickpeterse: By what standard is something stable then, not changing for a century?
[20:32:39] eam: yorickpeterse: uh yes? meanwhile the perl I wrote in the 90s is still working perfectly
[20:32:40] nofxx: eam, I disagree, got software running for years w/o any problem
[20:32:42] railsraider: has joined #ruby
[20:32:43] yorickpeterse: What I meant is that things don't break radically left and right anymore since 2.0
[20:32:44] havenwood: NeverDie: There is more to Ruby than Rails. If you disagree you're in the wrong channel.
[20:32:48] yorickpeterse: 2.1 was bumpy due to the GC
[20:32:51] yorickpeterse: 2.2 wasn't that bad
[20:32:57] eam: nofxx: write more software :D
[20:32:59] yorickpeterse: anything prior to 2.0 was a wild west
[20:33:00] bougyman: eam: you never use defined?
[20:33:05] NeverDie: havenwood: I'm here to see if that's not the case. I'm here for informational purposes.
[20:33:08] nofxx: eam, write better software ;)
[20:33:11] havenwood: NeverDie: There's a #RubyOnRails channel for Rails-specific discussion
[20:33:15] bougyman: a bunch of not-that-old perl stuff is breaking now because of that.
[20:33:29] eam: nofxx: api changes don't break software because it's bad
[20:33:35] eam: they change the interface
[20:33:52] ivanskie: has joined #ruby
[20:33:54] bougyman: eam: will that 90s perl work on perl6?
[20:33:59] yorickpeterse: miah: what I find interesting about Go is how very few seem to be bothered by the GC. Meanwhile in D land _everybody_ is complaining about the GC
[20:34:03] eam: bougyman: perl6 is a different language
[20:34:07] polyrob: has joined #ruby
[20:34:12] bougyman: ruby has never hidden that major revs will change the api.
[20:34:17] nofxx: eam, yeah.. ruby is bleeding edge, but it's all for good hehe. At least things move fast, python for instance is 20 years now moving to version 3
[20:34:22] pengin: has joined #ruby
[20:34:32] bougyman: python isn't unstable beacuse 3.0 breaks 2.x python apps.
[20:34:34] shevy: eam will you abandon ruby for perl6?
[20:34:34] bougyman: that's expected.
[20:34:41] bougyman: you run 2.x python apps on 2.x python.
[20:34:43] eam: shevy: I won't be using perl6
[20:35:00] nofxx: bougyman, you suffer like a motherless child trying that you mean
[20:35:30] miah: i havent written complex enough code in Go to care about the GC
[20:35:32] nofxx: and your system pkg you need is already 3... and you try changing the shebang... and nah, won't work hehe
[20:35:42] langlands: has joined #ruby
[20:35:44] hoelzro: eam: no interest in trying it?
[20:35:51] eam: hoelzro: I did a bit
[20:36:02] eam: not a compelling platform for me
[20:36:07] wmoxam: I haven't wrote any Perl since 2003 :p
[20:36:22] miah: wmoxam: about the same
[20:36:32] miah: the 90's are alive in Perl
[20:36:38] eam: perl5 is nice because it has a simple syntax for short one-liners and a very close 1:1 mapping to posix interfaces
[20:36:42] shevy: <marquee>!
[20:36:59] eam: every time I try to do systems stuff in ruby it's a frustrating dive into weirdly implemented object systems
[20:37:02] workmad3: has joined #ruby
[20:37:11] yorickpeterse: "simple syntax"
[20:37:13] miah: and seriously lacking systems library
[20:37:16] yorickpeterse: "short one-liners"
[20:37:25] eam: yorickpeterse: it is very simple
[20:37:25] yorickpeterse: you had me at "simple"
[20:37:28] miah: ruby's multiple tar implementions are all :(
[20:37:31] shevy: I never managed to adjust to perl's syntax
[20:37:40] eam: yorickpeterse: for example, no boilerplate for string interpolation
[20:37:56] j4cknewt: has joined #ruby
[20:37:56] yorickpeterse: "#{foo}" isn't exactly boilerplate
[20:38:04] eam: vs "$thing" ?
[20:38:15] yorickpeterse: You can do that for non locals
[20:38:29] shevy: damn the #!
[20:38:51] eam: yorickpeterse: hm that's nicer
[20:38:55] yorickpeterse: but oh heavens, you need 2 characters more
[20:39:04] yfeldblum: has joined #ruby
[20:39:10] nofxx: yeah, #@ is pretty unkown... but dollar signs NEVER
[20:39:13] eam: yorickpeterse: it adds up for a 30 character one liner -- but the regex access is the bigger issue
[20:39:16] eam: s/// vs gsub
[20:39:28] yorickpeterse: (??????????????;)
[20:39:33] eam: and bad autoviv behavior
[20:39:49] yorickpeterse: Also, it worries me people measure syntax by how useful it is for one liners
[20:39:51] nofxx: more $ lang has more smell ...that's the reason php is a pile of shit
[20:39:55] yorickpeterse: when was the last time you wrote a one-liner Rails app?
[20:40:02] eam: yorickpeterse: I don't write apps in perl
[20:40:13] shevy: I don't write rails!
[20:40:13] eam: I told you I prefer perl for a small subset of problems :)
[20:40:29] yorickpeterse: well yeah, use whatever floats your boat
[20:40:30] snockerton: has joined #ruby
[20:40:33] eam: I'm not making a contentious statement here I hope
[20:40:41] eam: it's way way better for sed/awk style use cases
[20:40:50] vickleton: has joined #ruby
[20:40:56] shevy: I tend to store "one-liners" in a .rb file and just call that though
[20:41:01] kraljev11: has joined #ruby
[20:41:05] Senjai: eam: I.. just use sed and awk
[20:41:22] eam: if you want to talk about gross language syntax, why would you use those over perl?
[20:41:29] Senjai: eam: Because I understand them, and I don't know perl?
[20:41:33] eam: they differ between unixes, perl is consistent
[20:41:37] Senjai: literallytheonlyreason
[20:41:37] eam: and way more expressive
[20:41:45] eam: Senjai: ah well, I suggest replacing them
[20:41:53] shevy: with perl or with ruby
[20:41:55] Senjai: Sure, but as this conversation is heading, pick any tool meant to solve the job
[20:42:06] shevy: or with python or php
[20:42:11] Senjai: Eh, I haven't had problems. I use them as oneoffs.
[20:42:11] eam: I'd pick the best tool. I'd never write a shell script for example
[20:42:30] Senjai: Nothing wrong with shell scripts
[20:42:33] Senjai: where it makes sense
[20:42:40] nofxx: when there's no logic
[20:42:41] roolo: has joined #ruby
[20:42:47] Senjai: Or very little
[20:42:49] eam: I sometimes use ruby for one-liners, but usually they're more like 5-liners in irb (which is fine, it's just a lot more boilerplate for some simple ops)
[20:43:06] eam: Senjai: there's a LOT wrong with shell scripts, mostly surrounding how variables work
[20:43:11] eam: you cannot write shell safely
[20:43:25] Senjai: Sure you can.
[20:43:31] yorickpeterse: You can also use Node.js for your scripts
[20:43:35] yorickpeterse: Then even your frontenders can write them
[20:43:41] yorickpeterse: plus they work in the browser too
[20:43:47] eam: Senjai: no, you really can't -- and if you think you can I suggest you need to learn more about shell scripts
[20:43:49] ljarvis: plus they scale
[20:43:49] Senjai: You could also write your scripts in C, and compile them
[20:44:18] Senjai: eam: Am I confident in writing super cross platform & posix compliant scripts? No, do I care? No
[20:44:21] snockerton: has joined #ruby
[20:44:22] Senjai: I'd use something else
[20:44:46] eam: I'm not talking about portability -- I'm talking about danger of misbehavior due to how variables are string interpolated and evaluated
[20:44:56] juanca_: has joined #ruby
[20:45:11] podman: has joined #ruby
[20:45:41] shevy: eam has been around a while to remember the old days
[20:45:44] Senjai: Are you talking about that bash bug or something?
[20:45:45] shevy: of the 1980s :)
[20:45:52] JDiPierro: has joined #ruby
[20:45:53] Senjai: I'm not saying its perfect man
[20:45:56] eam: "that" bug? It's a design issue
[20:46:09] Senjai: I'm saying my script that curls an api endpoint, and does some formatting with cut and tr, doesnt need to be secure
[20:46:16] eam: Senjai: neither of us are saying it's perfect. And I'm saying it's fundamentally dangerous
[20:46:20] TheHodge: has joined #ruby
[20:46:39] kraljev11: has joined #ruby
[20:46:48] Senjai: eam: Can you link me to a resource that explains this to me?
[20:46:48] eam: because every time you reference a variable you need to do some rather crazy analysis of how it will be interpolated, quoted and evaluated
[20:47:04] Senjai: eam: Not all scripts need to use variables
[20:47:13] Senjai: It can just perform a series of operations
[20:47:15] eam: Senjai: how about this: write me a (should be <2 lines) shell script that simply execs its arguments properly
[20:47:22] Guest250: has joined #ruby
[20:47:44] eam: like ruby -e'exec ARGV'
[20:47:51] apeiros: IT'S A TRAP!
[20:48:00] eam: *ARGV w/e :)
[20:48:03] Senjai: eam: I have something terrible
[20:48:06] Senjai: but it was just sitting around
[20:48:11] Senjai: I havent written it, I know its bad
[20:48:18] eam: sure, let's look at it, I'll use it as an example
[20:48:20] sgambino: has joined #ruby
[20:48:21] Senjai: eam: https://gist.github.com/Senjai/c0c7ea69fb66447f4b35
[20:48:52] eam: ok perfect, so `pwd` and $NODE_PATH in that first expression
[20:48:59] eam: what happens when there's whitespace in a filename?
[20:49:15] miah: classic problem =)
[20:49:20] Senjai: I would assume it'd be escaped, but I have no idea
[20:49:21] eam: you quoted "$@" properly (good idiom, classic shell magic)
[20:49:28] eam: it's not, you need "" around those too
[20:49:38] wildroman2: has joined #ruby
[20:49:43] Senjai: around $NODE_PATH and `pwd`?
[20:49:49] eam: "`echo -n foo`" is "foo"
[20:49:57] eam: you need to double quote *every* variable
[20:50:10] eam: because the way shell works is to interpolate $FOO first, then eval()
[20:50:30] eam: it's really crazy complexity and essentially no one on earth writes safe shell
[20:50:45] eam: (it's theoretically possible, but ...)
[20:50:48] miah: or portable shell
[20:50:57] eam: yeah, but I'll even forgive portable
[20:50:58] Senjai: miah: I already said I dont care about portability :P
[20:51:08] eam: it's just super dangerous every time you even reference a value
[20:51:17] miah: ya just saying, its _very_ difficult to write portable / secure shell
[20:51:26] Senjai: eam: Okay, I'll concede the point
[20:51:39] eam: so the language is also filled with magic idioms, like "$@" which expands into individually tokenized whitespace separated elements
[20:51:41] Senjai: but most shell scripts that have no variables, and just perform a long series of pipes
[20:51:46] Senjai: would that not be fine?
[20:51:58] eam: "$FOO" is one string, "$@" is multiple strings because "$@" is a special case
[20:52:14] phutchins1: has joined #ruby
[20:52:25] sarkyniin: has joined #ruby
[20:52:31] miah: valve failed this recently. https://github.com/valvesoftware/steam-for-linux/issues/3671
[20:52:37] apeiros: ok, so there are actually sane rationales for my dislike of *sh?
[20:52:37] eam: Senjai: everything's relative, typing commands into bash isn't gonna end the world -- but I really really would not write scripts in it
[20:52:51] apeiros: (wrt anything beyond 2 lines)
[20:53:04] jhass: apeiros: we should never let the systemd haters hear this ;D
[20:53:05] juanca99: has joined #ruby
[20:53:23] eam: jhass: I hate systemd too ;-)
[20:53:30] B1n4r10: has joined #ruby
[20:53:34] apeiros: jhass: in about 4 to 6 months you'll have to give me a systemd crash course ;-)
[20:53:36] jhass: but it replaces all the shell scripts!
[20:53:37] kraljev11: has joined #ruby
[20:53:41] eam: jhass: poorly yes :)
[20:53:57] eam: jhass: I don't use the sys5 init system either
[20:54:00] balazs: has joined #ruby
[20:54:03] Hanmac: has joined #ruby
[20:54:05] rbennacer: has joined #ruby
[20:54:06] miah: runit for life.
[20:54:13] jhass: apeiros: sure
[20:54:19] jhass: there's not much to it
[20:54:24] miah: runit/daemontools/s6 i should say ;)
[20:54:25] eam: and I use ruby to template the runit scripts in fact
[20:54:26] apeiros: btw., foooolks, y'all way OT here :-p
[20:54:31] ruboto: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[20:54:46] eam: (because the default of shell is unsafe, so ruby + json = safe format)
[20:55:01] apeiros: jhass: that line needs more propaganda
[20:55:18] apeiros: like: #ruby-offtopic is an awesome channel, you should totally join it to discuss all that stuff there!
[20:55:18] eam: miah: https://github.com/square/prodeng/blob/master/servicebuilder/bin/servicebuilder
[20:55:34] jhass: apeiros: don't forget the hangman synergy!
[20:56:16] Senjai: eam: You're not in the OT channel :(
[20:56:22] eam: it's not OT, that's ruby
[20:56:37] eam: I don't think explaining why ruby should be used for runscripts instead of shell is OT
[20:56:42] Senjai: eam: I meant that I cant talk to you bout this more because you're not in the OT channel
[20:56:47] eam: oh haha
[20:57:04] kraljev11: has joined #ruby
[20:57:36] momomomomo: has joined #ruby
[20:57:46] Guest67: has joined #ruby
[20:58:38] shevy: we are planning to replace shell scripts with ruby scripts
[20:58:56] nobitanobi: has joined #ruby
[20:59:03] rbennacer: has joined #ruby
[20:59:13] jpfuentes2: has joined #ruby
[20:59:17] mordocai: has joined #ruby
[20:59:45] hunt3r: has joined #ruby
[21:01:17] stoodfarback: has joined #ruby
[21:02:57] wallerdev: has joined #ruby
[21:04:24] kraljev11: has joined #ruby
[21:04:47] bruno-_: has joined #ruby
[21:05:08] ledestin: has joined #ruby
[21:05:35] baweaver: has joined #ruby
[21:06:09] sphex: thank god all that OT stuff stopped to make room for *all these* ruby discussions...
[21:07:14] centrx: yeah One channel to rule them all!
[21:07:29] eam: I find the peripheral discussions often are the most enlightening
[21:07:31] centrx: can't even talk in #ruby-pro
[21:07:42] eam: what's ruby-pro
[21:07:44] centrx: #ruby-offtopic is just a hangman channel
[21:07:53] centrx: it's nothing, there's no talking!
[21:08:23] baweaver: This is what we have #ruby-meta for
[21:08:49] ljarvis: ls channels | grep ^ruby- | wc -l
[21:08:57] eam: this is why I have 78 irssi windows
[21:09:00] kraljev11: has joined #ruby
[21:09:01] lkba: has joined #ruby
[21:09:05] B1n4r10: has joined #ruby
[21:09:11] havenwood: centrx: That's not true! We were just talking about Streem replacing all other shells when they're deprecated this Fall.
[21:09:12] baweaver: ACTION is being cheeky
[21:09:19] baweaver: but #ruby-meta totally exists
[21:09:25] baweaver: because funny
[21:09:39] yorickpeterse: omg you folks this is offtopic
[21:09:45] djbkd: has joined #ruby
[21:09:46] yorickpeterse: ?offtopic offtopic
[21:09:46] ruboto: offtopic, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[21:09:50] ljarvis: ?ot yorickpeterse
[21:09:50] ruboto: yorickpeterse, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[21:09:57] yorickpeterse: no you're offtopic
[21:10:07] ljarvis: ACTION puts on wizard hat
[21:10:17] centrx: Ruby is optimized for programmer happiness, so everything happy is on-topic
[21:10:19] juanca_: has joined #ruby
[21:10:21] __butch__: has joined #ruby
[21:10:28] ljarvis: centrx: nice try
[21:12:03] Bertg: has joined #ruby
[21:12:03] apeiros: ACTION hugs the channel and waves gn8
[21:12:10] Senjai: apeiros: Sweet dreams
[21:13:21] iamninja: has joined #ruby
[21:13:38] casadei_: has joined #ruby
[21:14:48] flak: has joined #ruby
[21:15:06] djbkd: has joined #ruby
[21:15:28] Rubie: has joined #ruby
[21:18:04] renderful: has joined #ruby
[21:18:08] davedev24_: has joined #ruby
[21:18:34] shevy: centrx is PHP off topic
[21:19:19] centrx: shevy, Take it to #ruby-meta please,thanks
[21:19:27] mister_solo: has joined #ruby
[21:19:32] thiagovsk: has joined #ruby
[21:20:06] Senjai: How many ruby channels do we have
[21:20:20] Senjai: Is #ruby and #ruby-offtopic not good enough? :P
[21:20:26] hotpancakes: has joined #ruby
[21:21:57] jamesaxl: has joined #ruby
[21:22:33] s2013: has joined #ruby
[21:23:01] ljarvis: uh.. yes, ruby-offtopic is fine
[21:23:14] Muhannad: has joined #ruby
[21:24:15] baweaver: It is, I was just being cheeky
[21:24:22] baweaver: probably closing the channel a bit later.
[21:24:23] Senjai: baweaver: Oh.. I am gullable today
[21:24:40] DCameronMauch: has joined #ruby
[21:25:25] Oka: has joined #ruby
[21:25:39] Scripore: has joined #ruby
[21:26:00] Azure: has joined #ruby
[21:26:36] vasilakisfil_: has joined #ruby
[21:27:09] soulcake: has joined #ruby
[21:27:26] hotpancakes: has joined #ruby
[21:27:44] paulcsmith: has joined #ruby
[21:28:40] wallerdev: has joined #ruby
[21:30:04] dfockler: has joined #ruby
[21:30:10] pengin: has joined #ruby
[21:30:28] ivanskie: has joined #ruby
[21:30:45] Guest250: has joined #ruby
[21:31:03] gambl0re: has joined #ruby
[21:31:36] s2013: has joined #ruby
[21:32:50] blackmesa: has joined #ruby
[21:34:54] kennell: has joined #ruby
[21:35:33] railsraider: has joined #ruby
[21:35:47] shevy: GitGud interesting nicks!
[21:36:01] nfk: has joined #ruby
[21:36:03] GitGud: thanks shevy
[21:37:16] bullcitydev: has joined #ruby
[21:39:25] sarkyniin: has joined #ruby
[21:41:03] gambl0re: has joined #ruby
[21:42:25] MacDaddy: has joined #ruby
[21:42:49] n_blownapart: has joined #ruby
[21:43:08] bonhoeffer: has joined #ruby
[21:44:22] PaulCapestany: has joined #ruby
[21:44:37] eggoez: has joined #ruby
[21:44:45] juanca99: has joined #ruby
[21:47:42] jfarmer: has joined #ruby
[21:51:35] A205B064: has joined #ruby
[21:51:59] User458764: has joined #ruby
[21:52:45] hahuang65: has joined #ruby
[21:53:53] ndrei: has joined #ruby
[21:54:47] kraljev11: has joined #ruby
[21:55:44] jhass: good morning
[21:56:30] adaedra: shevy: heh. Quebec is on my list of places I could go. But they speak a fancy french over there :)
[21:56:50] __butch__: has joined #ruby
[21:59:25] hotpancakes: has joined #ruby
[21:59:33] wildroman2: has joined #ruby
[21:59:48] Renich: has joined #ruby
[22:00:15] baweaver: afternoon for us mate.
[22:00:42] eam: and a good one at that
[22:01:04] ruboto: it's morning, see http://www.total-knowledge.com/~ilya/mips/ugt.html
[22:01:23] decoponio: has joined #ruby
[22:01:27] eam: I'm in a climate controlled box and have no concept of weather, time, or self
[22:01:50] renderful: has joined #ruby
[22:02:31] yorickpeterse: are you literally a computer?
[22:02:44] eam: I mean, yeah, all humans are right?
[22:03:02] jhass: eam: you should download some windows
[22:03:09] yorickpeterse: pretty sure I don't have an Intel processor in my stomach
[22:03:15] eam: my implementation even contains a (slow and error prone) ruby interpreter
[22:03:16] yorickpeterse: or an nvidia GPU up my ass
[22:04:05] eam: yorickpeterse: around the valley you can't always make that kind of assumption
[22:04:46] yorickpeterse: good thing I don't live in the valley
[22:05:00] solars: has joined #ruby
[22:05:02] msgodf: has joined #ruby
[22:05:26] cmisenas: has joined #ruby
[22:05:30] nobitanobi: has joined #ruby
[22:06:08] hotpancakes: has joined #ruby
[22:07:57] yorickpeterse: also TIL MRI's eval() with a String is _really_ slow
[22:08:01] yorickpeterse: as in, stupidly slow
[22:08:06] yorickpeterse: even more so than expected
[22:08:17] shevy: we have to accept the fact
[22:08:23] shevy: ruby will always be remembered as slow
[22:08:26] gamename: has joined #ruby
[22:08:36] yorickpeterse: jruby 9k is pretty fast with the right options
[22:08:47] yorickpeterse: and rubinius will hopefully soon be webscale (TM)
[22:09:03] yorickpeterse: But yeah, people will always remember it due to whatever MRI does
[22:09:15] adaedra: ????????????????????????
[22:09:21] atomi: has joined #ruby
[22:09:57] skade: has joined #ruby
[22:10:00] yorickpeterse: ah well, good thing I'll be caching my eval() output
[22:10:01] adaedra: Well everyone, I wish you ?????????????? ???????????????
[22:10:10] yorickpeterse: so in an actual app there will be few calls to it
[22:11:06] Marisa: has joined #ruby
[22:11:14] jfarmer: yorickpeterse What are you using eval(...) for?
[22:11:26] yorickpeterse: I'm generating Ruby source code based on XPath expressions
[22:11:37] yorickpeterse: which is then cached and used to query documents
[22:12:38] jhooker: has joined #ruby
[22:12:43] kinduff: has joined #ruby
[22:12:43] kinduff: has joined #ruby
[22:12:51] yorickpeterse: well how about that, this code is actually faster than Nokogiri
[22:12:55] yorickpeterse: suck it libxml2
[22:13:01] eam: I will forever judge jruby by its startup time
[22:13:02] yorickpeterse: Ruby code outperforming C
[22:13:15] jhass: well, libxml2...
[22:13:26] lolmaus: has joined #ruby
[22:13:46] juanpablo_: has joined #ruby
[22:13:51] voker57: has joined #ruby
[22:13:55] mikecmpbll: has joined #ruby
[22:13:56] yorickpeterse: jhass: few libraries out there that are faster _and_ do more than just XML parsing
[22:14:00] juanca_: has joined #ruby
[22:14:21] lavros: has joined #ruby
[22:14:28] yorickpeterse: https://gist.github.com/YorickPeterse/b9c7f9f4d2ebc9d2b621 totally legit benchmarking results
[22:16:38] volty: has joined #ruby
[22:18:19] mcclurmc: has joined #ruby
[22:19:32] jhass: mmh, wonder how gumbo holds up
[22:20:11] zenspider: delicious when my mom makes it
[22:20:30] yorickpeterse: jhass: gumbo only does HTML
[22:20:35] yorickpeterse: and doesn't do XPath last time I checked
[22:20:48] yorickpeterse: granted that was...2 years ago I think
[22:20:50] _joes_: has joined #ruby
[22:21:55] rippa: has joined #ruby
[22:22:30] jhass: ugh, seems still not indeed
[22:23:09] renderful: has joined #ruby
[22:23:22] nfk: has joined #ruby
[22:24:38] Jello_Raptor: has joined #ruby
[22:26:34] _blizzy_: has joined #ruby
[22:27:13] Senjai: o/ zenspider
[22:28:30] constantinexvi: has joined #ruby
[22:28:39] volty: what is delicious? some cake, or html? :)
[22:29:17] dgutierrez1287: has joined #ruby
[22:29:26] scottymeuk: has joined #ruby
[22:30:18] ivanskie: has joined #ruby
[22:31:16] gkra_: has joined #ruby
[22:31:17] juanca99: has joined #ruby
[22:31:47] zenspider: volty: gumbo. it's an american creole/cajun (usually-)seafood stew
[22:33:48] volty: zenspider: looks nice, on wikipedia. got hungry by looking at it. going to eat some cheese since
[22:33:52] momomomomo: has joined #ruby
[22:34:12] zenspider: heh. cheese is good too
[22:34:17] zenspider: different, but also good
[22:34:28] _blizzy_: has joined #ruby
[22:34:49] lolmaus: has joined #ruby
[22:35:34] dfockler: I've got cold biscuits and gravy waiting at home
[22:35:39] atom3: has joined #ruby
[22:37:37] finisherr: has joined #ruby
[22:37:47] startupality: has joined #ruby
[22:39:01] shellie_: has joined #ruby
[22:39:12] bricker: has joined #ruby
[22:39:25] shellie_: has left #ruby: ()
[22:44:14] juanpablo_: has joined #ruby
[22:45:09] Pupeno: has joined #ruby
[22:45:10] tammy_girl: has joined #ruby
[22:45:35] jas02: has joined #ruby
[22:46:52] hotpancakes: has joined #ruby
[22:49:49] zotherstupidguy: has joined #ruby
[22:50:50] d5sx43: has joined #ruby
[22:51:10] mary5030: has joined #ruby
[22:52:31] twistedpixels: has joined #ruby
[22:54:01] twistedpixels: has joined #ruby
[22:54:06] s2013: has joined #ruby
[22:54:07] VictorBjelkholm: has joined #ruby
[22:54:45] kies: has joined #ruby
[22:55:21] balazs_: has joined #ruby
[22:55:32] twistedpixels: has joined #ruby
[22:55:42] kortes: has joined #ruby
[22:55:58] JDiPierro: has joined #ruby
[22:56:02] HakN99: has joined #ruby
[22:56:32] twistedpixels: has joined #ruby
[22:56:56] zenspider: now I'm hungry, again
[22:57:07] kortes: guys, following the ruby project structure
[22:57:31] twistedpixels: has joined #ruby
[22:57:38] kortes: if i have a script that uses a erb template
[22:57:41] kortes: and a csv file
[22:57:47] kortes: where would those files go>
[22:57:59] kortes: inside the lib ?
[22:58:10] zenspider: are you planning on publishing this as a gem?
[22:58:16] kortes: or is it common practice to create a sort of, 'resources' folder?
[22:58:32] zenspider: don't really think it matters
[22:58:32] kortes: nah, this is just a homework for a bootcamp im applying to
[22:58:38] baweaver: has joined #ruby
[22:58:52] kortes: i just want it to look real neat, organized, as if i did my research and went the xtra mile
[22:59:00] nobitanobi: has joined #ruby
[22:59:11] zenspider: either way you're prolly going to reference the file relative to your current file
[22:59:23] kortes: but in regular ruby applications intended to be published, where would it go?
[22:59:27] zenspider: whether you tack on "../resources" or not doesn't really matter
[22:59:35] dgutierrez1287: has joined #ruby
[22:59:41] zenspider: where you put it
[22:59:49] kortes: yeah im thinking more of a developer looking at my project folder
[23:00:12] kortes: if theres a common practice, id like for him to see that i followed it
[23:00:52] kortes: so youre saying just to leave them all inside the lib?
[23:01:30] zenspider: I'm saying it doesn't matter. put it where you want to put it.
[23:02:22] kortes: are you also saying theres no common practice of where to put this kind of files which are not a script but the script does use ?
[23:02:36] kortes: where would you put them?
[23:03:51] Senjai: Kortes: Lib is common for libraries
[23:04:15] Senjai: Kortes: Also for utilities that can be used outside of the current application
[23:04:26] momomomomo_: has joined #ruby
[23:04:27] shevy: Kortes normally it's not so important as long as you load the .rb files; typically for a project "foobar", you have: lib/foobar/ and lib/foobar.rb and inside of lib/foobar/ you have the other .rb files; that is the default gem structure, http://stackoverflow.com/questions/3307209/what-is-the-modern-way-to-structure-a-ruby-gem
[23:04:34] Senjai: Like classes only used by rake tasks etc.
[23:04:40] shevy: http://chneukirchen.github.io/rps/
[23:04:47] Senjai: In the end, feel free to structure your app however
[23:04:54] michael_mbp: has joined #ruby
[23:05:16] shevy: wow... that page from chris2 is already 5 years old by now...
[23:05:17] Senjai: Nooooooooo
[23:05:33] Senjai: Lol @ attempt to write a standard for this kind of thing
[23:05:35] kortes: thanks guys, thats exactly what confused me about placing an '.erb' and a '.csv' file in there
[23:05:36] Ropeney: has joined #ruby
[23:05:59] kortes: ill just create a res folder in the structure
[23:06:02] Senjai: Kortes: I would seperate views/fixturedata/etc from models or business logic
[23:06:12] Senjai: Kortes: That works, just call it resources though or something :P
[23:06:22] kortes: jaja yeah good idea
[23:06:25] kortes: thanks a lot
[23:09:59] kdehl: has joined #ruby
[23:11:10] moeSeth: has joined #ruby
[23:11:15] kdehl: has left #ruby: ()
[23:12:04] jpfuente_: has joined #ruby
[23:12:50] pgatt: has joined #ruby
[23:14:51] juanpablo_: has joined #ruby
[23:15:10] bruno-: has joined #ruby
[23:16:14] rickmasta: has joined #ruby
[23:17:00] dfockler: so ::Thread means it's calling the top level namespace right?
[23:17:39] railsraider: has joined #ruby
[23:18:09] hotpancakes: has joined #ruby
[23:18:16] dfockler: ahhh I got it now
[23:18:40] nobitanobi: has joined #ruby
[23:19:04] zendrix: has joined #ruby
[23:19:05] tkuchiki: has joined #ruby
[23:19:08] jeanlinux: has joined #ruby
[23:19:46] tkuchiki_: has joined #ruby
[23:20:24] eggoez: has joined #ruby
[23:20:45] mcclurmc: has joined #ruby
[23:21:00] lictor36: has joined #ruby
[23:21:22] jud^: has joined #ruby
[23:21:47] mister_solo: has joined #ruby
[23:22:04] tercenya: has joined #ruby
[23:22:36] platzhirsch: has joined #ruby
[23:22:52] wallerdev: has joined #ruby
[23:22:58] platzhirsch: has left #ruby: ()
[23:23:04] mcclurmc_: has joined #ruby
[23:24:19] delianides: has joined #ruby
[23:24:39] FernandoBasso: has joined #ruby
[23:26:11] bruno-: has joined #ruby
[23:28:29] s2013: has joined #ruby
[23:31:07] bruno-: has joined #ruby
[23:31:12] RegulationD: has joined #ruby
[23:33:25] s2013: has joined #ruby
[23:33:31] mahmoudmahfouz: has joined #ruby
[23:34:04] delianid_: has joined #ruby
[23:35:18] baweaver: has joined #ruby
[23:35:48] s2013: has joined #ruby
[23:38:26] bruno-: has joined #ruby
[23:39:39] fmcgeough: has joined #ruby
[23:41:04] bricker: has joined #ruby
[23:41:58] luckyno7: has joined #ruby
[23:42:43] avahey: has joined #ruby
[23:44:28] nobitanobi: has joined #ruby
[23:47:35] knite: has joined #ruby
[23:49:27] radialneon: has joined #ruby
[23:53:14] blaines: has joined #ruby
[23:53:51] Xoro: has joined #ruby
[23:53:57] yqt: has joined #ruby
[23:54:21] djbkd: has joined #ruby
[23:54:44] blaines_: has joined #ruby
[23:57:49] _blizzy_: has joined #ruby
[23:57:52] bf4: has joined #ruby
[23:57:53] Oog: has joined #ruby
[23:58:38] nobitanobi: has joined #ruby
[23:59:11] enebo: has joined #ruby