« Back to channel list

#ruby - 26 April 2016

« Back 1 day Forward 1 day »
[00:00:12] ryanneufeld: smathy: how would you do it?
[00:00:13] aspiers_: has joined #ruby
[00:00:20] crime: where is it going wrong?
[00:01:19] jud: has joined #ruby
[00:01:19] jud: has joined #ruby
[00:01:27] ryanneufeld: agrantfile:7:in `to_bool': undefined method `blank?' for "false":String (NoMethodError)
[00:01:28] Vile`: has joined #ruby
[00:02:58] ryanneufeld: which doesn't make sense to me
[00:03:10] crime: yeah thats weird
[00:03:28] weaksauce: blank is not a ruby thing
[00:03:33] weaksauce: it's a rails thing
[00:03:54] crime: yeah strings dont have that method
[00:03:55] baweaver: >> !!'false'
[00:03:56] ruby[bot]: baweaver: # => /tmp/execpad-fd24853d35b9/source-fd24853d35b9:2: warning: string literal in condition ...check link for more (https://eval.in/559587)
[00:04:02] ryanneufeld: weaksauce: thanks!!
[00:04:21] crime: u can do .empty?
[00:04:28] rickmasta: has joined #ruby
[00:04:28] AncientAmateur: has joined #ruby
[00:04:29] crime: on strings, which is true for "" and ''
[00:04:49] weaksauce: blank? is true for strings like " "
[00:04:55] baweaver: >> nil.empty? # But be careful of this
[00:04:56] ruby[bot]: baweaver: # => undefined method `empty?' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/559588)
[00:05:20] baweaver: ACTION still thinks that empty should be defined on nil
[00:05:35] crime: but nil cant not hold values
[00:05:43] devbug: has joined #ruby
[00:05:46] weaksauce: always empty
[00:05:49] smathy: ryanneufeld, I added what I'd do to your gist: https://gist.github.com/ryanneufeld/11b83ba96fd80b56d06951117961571f
[00:05:49] crime: nil can only ever be nil, why would it ever need empty?
[00:06:08] baweaver: fallback in case a value is nil instead of a string / etc
[00:06:13] crime: who is it, somebody has a class for that
[00:06:25] smathy: ryanneufeld, no way I'm modifying core classes for something this simple.
[00:06:34] crime: its avdi, he has naught, for objects that only respond with nil
[00:07:11] baweaver: You're probably thinking of a Maybe monad, which has close derivatives in Option and other libs
[00:07:36] weaksauce: ryanneufeld i agree with smathy... just use a helper method for it
[00:08:01] Dimik1: has joined #ruby
[00:08:03] smathy: It's MUCH clearer what is happening.
[00:08:22] kasisnu: has joined #ruby
[00:09:15] kasisnu_: has joined #ruby
[00:09:30] baweaver: Looks to be a good short one on Maybe: https://medium.com/learnings-in-and-around-sharetribe/option-pattern-in-ruby-7b0f7c5abdb6#.wcibz79rx
[00:10:07] kasisnu__: has joined #ruby
[00:10:28] patrick99e99: has joined #ruby
[00:10:52] baweaver: of course that thing leads to a magnificent rabbit hole: http://moonbase.rydia.net/mental/writings/programming/monads-in-ruby/00introduction.html
[00:11:38] droobie: has joined #ruby
[00:11:50] baweaver: http://adit.io/posts/2013-04-17-functors,_applicatives,_and_monads_in_pictures.html
[00:12:03] baweaver: though this is all far into FP
[00:12:34] kasisnu__: has joined #ruby
[00:12:50] patrick99e99: Hey everyone.. I am trying to post an image blob with Net::HTTP... according to the ruby 2.0 Net HTTPHeader docs, it looks like I can, but I am having no such luck.. I am basically doing: request.set_form([['filename', 'lol.jpg'], ['file', File.open('lol.jpg')]], 'multipart/form-data')
[00:13:16] patrick99e99: but somehow that is just not working........... if I curl, it works just fine.
[00:13:22] kasisnu: has joined #ruby
[00:13:55] Radar: patrick99e99: consider using typhoeus instead of Net:HTTP. Net::HTTP has an API that reminds me a lot of Angular.
[00:14:03] patrick99e99: curl shows: Content-Disposition: form-data; name="file"; filename="waka.jpg"--- Content-Type: image/jpeg---- "..../.Exif..MM.*............." (data)
[00:14:09] moeabdol1: has joined #ruby
[00:14:15] patrick99e99: Radar: I am trying to not have to add another dependency to our app...
[00:14:18] CloCkWeRX: has joined #ruby
[00:14:22] CloCkWeRX: has left #ruby: ()
[00:14:22] patrick99e99: if I can get this working with Net::HTTP it would be ideal
[00:14:29] Radar: "I'm trying to make life hard for myself intentionally"
[00:14:43] crime: awfully ironic ^
[00:15:04] patrick99e99: no, rewriting an http wrapper library to now use a different library would be making life hard
[00:15:09] kasisnu_: has joined #ruby
[00:15:20] patrick99e99: can anyone point me in the right direction?
[00:15:21] mjuszczak: has joined #ruby
[00:17:19] smathy: patrick99e99, read http://ruby-doc.org/stdlib-2.3.0/libdoc/net/http/rdoc/Net/HTTP.html look for "multipart"
[00:18:08] tAn: has joined #ruby
[00:19:05] howdoicomputer: has joined #ruby
[00:19:18] ramfjord: has joined #ruby
[00:22:27] jhack: has joined #ruby
[00:23:39] baweaver: has joined #ruby
[00:23:41] fulgore_: has joined #ruby
[00:25:21] patrick99e99: smathy: thanks.. Looking at that, do you know what "multipart_data" should look like? If I pass a file instance, I get a failure from the server I am uploading to "Unsupported Media Type".. which I assume is because it doesn't know the Content-type of the part is image/jpeg.
[00:25:46] patrick99e99: is there a way to say, part 1 is Content-type: 'image/jpeg' ?
[00:27:13] pawnbox: has joined #ruby
[00:27:39] danielpclark: has joined #ruby
[00:28:10] Radar: hey michael_mbp
[00:28:42] michael_mbp: anyone recall how to auto-wrap highlighted code in vim into a block?
[00:30:31] mfb2: has joined #ruby
[00:31:37] GriffinHeart: has joined #ruby
[00:31:57] symm-: has joined #ruby
[00:34:03] s00pcan: has joined #ruby
[00:34:12] rahult_: has joined #ruby
[00:36:18] s00pcan: has joined #ruby
[00:37:20] Ropeney: has joined #ruby
[00:38:17] chipotle: has joined #ruby
[00:42:47] vishwa: has joined #ruby
[00:45:20] s00pcan_: has joined #ruby
[00:47:05] patrick99e99: gah.. ok figured it out... the answer is: request.set_form([['file', file_instance, { :filename => 'my_file.jpg' }]], 'multipart/form-data')
[00:47:16] binaryplease1: has joined #ruby
[00:47:20] patrick99e99: the options hash is apparently important
[00:47:25] Radar: It's obvious in hindsight.
[00:47:51] vdamewood: has joined #ruby
[00:47:52] pawnbox: has joined #ruby
[00:49:38] skweek: has joined #ruby
[00:50:08] lkba: has joined #ruby
[00:51:09] blackmesa: has joined #ruby
[00:52:43] Xeago: has joined #ruby
[00:53:08] mjuszczak: has joined #ruby
[00:53:50] mjuszczak: has joined #ruby
[00:54:30] weemsledeux: has joined #ruby
[00:55:05] wilbert: has joined #ruby
[00:55:08] GriffinHeart: has joined #ruby
[00:56:38] smathy: patrick99e99, nice.
[00:57:09] smathy: Nothing about Net::HTTP is obvious, especially not where to find the docs for methods.
[00:57:59] allcentury: has joined #ruby
[00:59:40] hxegon: has joined #ruby
[01:02:11] RahulT: has joined #ruby
[01:02:15] bronson: has joined #ruby
[01:02:57] s00pcan_: has joined #ruby
[01:03:16] htmldrum: has joined #ruby
[01:03:25] karapetyan: has joined #ruby
[01:05:48] w1lson: has joined #ruby
[01:06:39] speakingcode: has joined #ruby
[01:09:46] crazyphil: has left #ruby: ()
[01:11:10] RahulT: has joined #ruby
[01:11:57] jaguarmagenta: has joined #ruby
[01:15:31] LoneHermit: has joined #ruby
[01:16:02] tax: has joined #ruby
[01:18:15] bradleyprice: has joined #ruby
[01:19:37] tAn: has joined #ruby
[01:25:06] deadnull_: has joined #ruby
[01:25:51] deadnull_: has joined #ruby
[01:28:02] deadnull: has joined #ruby
[01:30:13] deadnull: has joined #ruby
[01:32:56] symm-_: has joined #ruby
[01:32:59] amincd: has joined #ruby
[01:33:24] amincd: hi, what does IO.sysopen do? I read the Ruby docs but don't fully get the point
[01:34:18] tubuliferous: has joined #ruby
[01:35:00] tax: has joined #ruby
[01:36:44] jdawgaz: has joined #ruby
[01:38:00] bradleyprice: has joined #ruby
[01:38:16] jhack: has joined #ruby
[01:39:48] meinside: has joined #ruby
[01:40:56] Cyrus: has joined #ruby
[01:41:53] erict: has joined #ruby
[01:43:38] hxegon: has joined #ruby
[01:47:29] rbennacer: has joined #ruby
[01:53:57] brendan-: has joined #ruby
[01:55:35] weemsledeux: has joined #ruby
[01:56:10] noService: has joined #ruby
[02:01:53] The_Phoenix: has joined #ruby
[02:02:34] moeabdol1: has joined #ruby
[02:04:27] hxegon: has joined #ruby
[02:05:05] rahult_: has joined #ruby
[02:06:24] SilverKey: has joined #ruby
[02:06:43] Vile`: has joined #ruby
[02:08:21] axisys: has joined #ruby
[02:14:49] jaguarmagenta: has joined #ruby
[02:18:52] GriffinHeart: has joined #ruby
[02:19:04] jenrzzz: has joined #ruby
[02:23:44] tAn: has joined #ruby
[02:24:42] Ropeney: has joined #ruby
[02:28:09] htmldrum: has joined #ruby
[02:28:50] agent_white: has joined #ruby
[02:30:14] minimalism: has joined #ruby
[02:32:00] Dreamer3: has joined #ruby
[02:32:50] nando293921: has joined #ruby
[02:34:43] elifoster: has joined #ruby
[02:39:26] Exce1l: has joined #ruby
[02:39:36] braincra-: has joined #ruby
[02:40:19] ruby-lang834: has joined #ruby
[02:40:55] bradleyprice: has joined #ruby
[02:41:22] rkazak: has joined #ruby
[02:46:47] auzty: has joined #ruby
[02:50:43] minimalism: has joined #ruby
[02:50:59] Es0teric: has joined #ruby
[02:52:10] karapetyan: has joined #ruby
[02:54:49] DotKite: has joined #ruby
[02:55:23] DotKite: Does ruby have a Prime enumerator that take a lowerbound instead of just an upperbound?
[02:56:47] Exce1l: has left #ruby: ()
[02:58:27] bob434: has joined #ruby
[03:03:09] noService: has joined #ruby
[03:04:06] berserk_ren: has joined #ruby
[03:04:12] bronson: has joined #ruby
[03:04:37] Spami: has joined #ruby
[03:04:50] devbug: has joined #ruby
[03:05:08] pawnbox: has joined #ruby
[03:06:58] zast: has joined #ruby
[03:09:29] maletor_: has joined #ruby
[03:12:24] elico: has joined #ruby
[03:12:55] braincrash: has joined #ruby
[03:16:34] solocshaw: has joined #ruby
[03:16:37] p1k: has joined #ruby
[03:25:22] jdawgaz: has joined #ruby
[03:25:47] tAn: has joined #ruby
[03:28:16] cibs: has joined #ruby
[03:28:51] fedexo: has joined #ruby
[03:29:05] baweaver: has joined #ruby
[03:29:21] dn`: has joined #ruby
[03:30:54] yfeldblum: has joined #ruby
[03:31:51] dh64: has joined #ruby
[03:32:32] Gaelan: has joined #ruby
[03:33:42] Gaelan: Is there an easy way to turn an array of (e.g.) people with a `state` method into a hash of {state => [person…]}?
[03:34:21] bradleyprice: has joined #ruby
[03:35:00] GinoMan2440: has joined #ruby
[03:35:54] benzrf: Gaelan: u could do a fold
[03:36:04] benzrf: or use #mash, if you wanna import something from a gem
[03:36:32] Gaelan: benzrf: activesupport?
[03:36:52] GinoMan2440__: has joined #ruby
[03:36:54] benzrf: hash = {}; ppl.each {|p| (hash[p.state] ||= []) << p}
[03:37:13] gix: has joined #ruby
[03:42:41] droptone: Questino: I'm leveraging AR for this app and I'm attempting to minimize SQL transactions, since profiling indicates most of my activity revolves around SQL transiactions
[03:43:10] davedev24: has joined #ruby
[03:43:47] droptone: Therefore, I'm essentially attempting to eager load this table into an array so that I can then perform analysis and comparisons on the values of the table while the contents of the table are in ram, without my app having to hit the DB
[03:43:50] Spami: has joined #ruby
[03:44:18] droptone: Does anyone current present have experience with such activity?
[03:44:34] Gaelan: benzrf: Guess so. My modified implementation: https://gist.github.com/Gaelan/167af2b1e58d379064abb019e434694f
[03:45:12] bb010g: has joined #ruby
[03:45:18] Gaelan: droptone: Funny enough, I just asked a question about my implementation of this. Do you have a specific question?
[03:45:50] droptone: Gaelan: Well yes. to simplify the example, let's say I have a users table, and a patients table that belongs_to user.
[03:45:55] droptone: I'm leveraging AR as my ORM
[03:46:42] droptone: What happened was, I'm getting more customers for my app and I need to speed it up.
[03:47:06] benzrf: Gaelan: nice :)
[03:47:21] droptone: So I profiled it and it was clear the majority of my activity revolves around SQL DB queries, which are occurring against an Amazon RDS instance
[03:47:40] droptone: right now, the way my app behaves is, simplified:
[03:47:41] benzrf: Gaelan: hmm, not sure that's what you're looking for, though - the result hash will continue to default to []
[03:47:42] pawnbox: has joined #ruby
[03:47:48] droptone: 1) Load a bunch of data from a remote API provider
[03:48:18] droptone: 2) Iterate through the data returned and compare it to the corresponding records on file
[03:48:28] droptone: 3) If needed, perform actions on said data and send them to another API
[03:49:15] droptone: So what I'm trying to do is dump the "patients" table in an object so that I can perform the check-on-iteration in ram instead of having to hit the DB every time
[03:49:41] Devalo: has joined #ruby
[03:49:50] droptone: I'm trying to figure out the best way to do this minimizing SQL queries
[03:50:08] RahulT: has joined #ruby
[03:50:42] moeabdol1: has joined #ruby
[03:51:07] emilford: has joined #ruby
[03:51:49] agent_white: has joined #ruby
[03:52:58] bradleyprice: has joined #ruby
[03:54:01] w1lson: has joined #ruby
[03:54:38] Bloomer: has joined #ruby
[03:55:02] Gaelan: benzrf: Huh. The argument could be made that an empty array makes more sense than nil. I guess it depends.
[03:55:16] GriffinHeart: has joined #ruby
[03:56:12] benzrf: Gaelan: yr impl doesnt work anyway :V
[03:56:22] jdawgaz: has joined #ruby
[03:56:46] Gaelan: ACTION urbandictionary’s that emoticon
[03:57:09] Gaelan: “Created by Internet pioneer Joe Griffith in August of 1999, the :V is as ambiguous as it is masterful, representing a variety of expressions and emotions. Occasionally seen on the somethingawful.com forums in one or more forms.”
[03:58:19] Bloomer: has joined #ruby
[03:58:35] benzrf: i think i have some kind of compulsive drive to add emoticons to my chats
[03:58:41] defo: has joined #ruby
[03:58:41] tildes: has joined #ruby
[03:58:48] benzrf: and i guess i just kind of default to ambiguous/meaningless ones when i have nothing in particular to emote
[04:00:03] ramfjord: has joined #ruby
[04:00:10] RegulationD: has joined #ruby
[04:00:12] axisys: has joined #ruby
[04:00:16] GriffinHeart: has joined #ruby
[04:04:06] Dimik1: has joined #ruby
[04:04:27] Dimik1: has joined #ruby
[04:06:13] al2o3-cr: has joined #ruby
[04:06:51] eboaz: has joined #ruby
[04:11:43] LoneHerm_: has joined #ruby
[04:11:47] droptone: So guys, got a question. If I have a User table, and I have a patients table that belongs_to :user, what is the preferred way of eager-loading user.patients to an object to minimize the number of SQL queries needed to load all patients for a given user?
[04:12:10] droptone: Using ActiveRecord, obviously.
[04:12:23] Bloomer: has joined #ruby
[04:12:36] Radar: droptone: Are you serious.
[04:12:41] Radar: You just asked this in #rubyonrails
[04:12:42] eboaz: has joined #ruby
[04:12:45] Radar: And we gave you advice
[04:12:48] Radar: and now you come and ask it here too?
[04:13:20] droptone: Yes Radar, becuase every time I ask in #rubyonrails I get commentary like "this sounds like a hack" and "why are you doing this" and "I need code segments" instead of just providing an example, so I figured I'd give it a shot here.
[04:13:24] Radar: droptone: For the umpteenth time: hire a consultant.
[04:13:33] Radar: droptone: Rails questions should go in #rubyonrails.
[04:13:41] droptone: It's not a rails question.
[04:13:56] Radar: +q droptone!*@*
[04:14:00] Radar: This is not debateable.
[04:14:02] Radar: Hire a consultant.
[04:14:07] Radar: See you in a week.
[04:14:25] noService: has joined #ruby
[04:16:54] stardiviner: has joined #ruby
[04:17:03] defo: has left #ruby: ()
[04:19:56] CloCkWeRX: has joined #ruby
[04:22:45] jdawgaz: has joined #ruby
[04:23:12] Coldblackice_: has joined #ruby
[04:24:32] kareeoleez: has joined #ruby
[04:26:05] LoneHerm_: has joined #ruby
[04:26:26] moeabdol1: has joined #ruby
[04:29:01] tAn: has joined #ruby
[04:32:23] Yiota: has joined #ruby
[04:32:58] rickmasta: has joined #ruby
[04:33:29] howdoicomputer: has joined #ruby
[04:35:48] terminalrecluse: has joined #ruby
[04:40:17] karapetyan: has joined #ruby
[04:42:18] Radar: -q droptone!*@*
[04:43:05] GriffinHeart: has joined #ruby
[04:43:31] devbug: has joined #ruby
[04:44:36] chipotle: has joined #ruby
[04:45:31] GriffinHeart: has joined #ruby
[04:47:12] caudill: has joined #ruby
[04:48:11] Devalo: has joined #ruby
[04:48:29] hxegon: has joined #ruby
[04:57:25] Xeago: has joined #ruby
[04:58:09] jackjackdripper1: has joined #ruby
[05:03:07] pawnbox: has joined #ruby
[05:06:05] bronson: has joined #ruby
[05:07:35] sauvin: has joined #ruby
[05:08:37] UserInneed: has joined #ruby
[05:10:58] Sembei: has joined #ruby
[05:11:26] jenrzzz: has joined #ruby
[05:13:16] GriffinHeart: has joined #ruby
[05:14:02] bluOxigen: has joined #ruby
[05:16:41] Pupeno: has joined #ruby
[05:17:01] moeabdol1: has joined #ruby
[05:18:31] djbkd: has joined #ruby
[05:18:47] victortyau: has joined #ruby
[05:20:26] yfeldblum: has joined #ruby
[05:21:02] yfeldblum: has joined #ruby
[05:22:21] last_staff: has joined #ruby
[05:22:36] maletor_: has joined #ruby
[05:24:51] last_staff1: has joined #ruby
[05:25:22] djbkd: has joined #ruby
[05:28:43] tvw: has joined #ruby
[05:29:35] bitsapien: has joined #ruby
[05:32:47] bitsapien: is there a way to call a method say 'move' implemented in two different classes(inherited from the same class 'storage'), according to a configuration switch ? The configuration switch is a string. ’storage’ class is a singleton.
[05:34:32] BrunoSaboia: has joined #ruby
[05:37:27] dionysus69: has joined #ruby
[05:39:31] Radar: bitsapien: yes
[05:40:35] Radar: bitsapien: let's keep the conversation here rather than in PM
[05:41:36] Radar: bitsapien: What code do you have so far?
[05:42:23] bitsapien: The configuration switch is a string which is either an 'A' or a 'B'. I do not want to call `A.move`, instead, I would like to call `Base.move`, which should decide which class's method to call according to the switch.
[05:42:54] Radar: You could use a case statement for that.
[05:42:57] Radar: case string
[05:42:58] navneet: has joined #ruby
[05:43:01] karapetyan: has joined #ruby
[05:43:03] Radar: when a; A.move
[05:43:19] bitsapien: that would be inefficient, right?
[05:43:24] bitsapien: is there a better way?
[05:43:25] Radar: Would it?
[05:43:29] Arcaire: bitsapien: When are you setting the switch?
[05:43:44] Arcaire: I did something recently where I modified which class a class inherited from based on a configuration option.
[05:43:53] Radar: https://gist.github.com/radar/f371554d12f271f2a26e28947c98d1ec
[05:43:53] Arcaire: I'll have to find the code but it worked for me™.
[05:44:01] heyimwill: has joined #ruby
[05:45:20] w1lson: has joined #ruby
[05:45:25] wilbert: has joined #ruby
[05:45:28] Macaveli: has joined #ruby
[05:46:47] bitsapien: in initialize
[05:47:06] Pupeno: has joined #ruby
[05:47:11] Radar: bitsapien: Please show me some code. It would help us both if we communicate using code rather than just words.
[05:48:29] bitsapien: @Arcaire could you please share how you did it?
[05:48:39] Arcaire: Yeah trying to find the code fam.
[05:48:39] bitsapien: @Radar I'l be sharing the code in a moment
[05:49:31] blackgoat: has joined #ruby
[05:53:46] Guest54-ru: has joined #ruby
[05:54:27] bitsapien: @Radar https://gist.github.com/bitsapien/bcf1f23191a5104f59a7bbd972015db7
[05:55:10] Radar: @bitsapien: What does ConfigurationHelper::DEFAULT_STORAGE return? Is it a class?
[05:55:15] Radar: i.e. StorageDriver::Local?
[05:56:12] Arcaire: bitsapien: https://gist.github.com/Arcaire/575dc240f81fbfa76bc6fed37fc4b381
[05:56:34] dionysus69: has joined #ruby
[05:56:38] bitsapien: Nope, it returns a string, either 's3' or 'local'
[05:56:40] Arcaire: It's honestly not super clean, but it means your initialized classes maintain those methods properly and you don't need a case around everything you do.
[05:56:52] Radar: Oh right.
[05:58:08] maletor_: has joined #ruby
[05:58:26] GriffinHeart: has joined #ruby
[05:59:17] Arcaire: bitsapien: does the code i provided make sense to you?
[05:59:39] bitsapien: Arcaire: going through it
[05:59:47] Radar: bitsapien: Could it perhaps be Local or S3? that would make it easier.
[05:59:57] Radar: I mean, you could convert it to that I guess.
[06:00:10] Radar: then it's: StorageDriver.const_get(@storage)
[06:00:13] Arcaire: bitsapien: So in your case, lines 29 and 33 would be "local" and "s3" respectively.
[06:00:17] bitsapien: Radar: cool, that could be done, then?
[06:00:56] RegulationD: has joined #ruby
[06:01:08] kareeoleez: has joined #ruby
[06:01:54] navneet: has joined #ruby
[06:02:19] Arcaire: bitsapien: sec
[06:02:52] kareeoleez: has joined #ruby
[06:02:56] moeabdol1: has joined #ruby
[06:03:13] bitsapien: arcaire: makes sense to me
[06:03:21] Arcaire: https://gist.github.com/Arcaire/575dc240f81fbfa76bc6fed37fc4b381
[06:03:26] Arcaire: Updated to work for you with S3/Local.
[06:03:33] Arcaire: Should work even though it's a string. :)
[06:04:59] moeabdol: has joined #ruby
[06:05:38] Radar: .capitalize won't work in plain Ruby.
[06:05:46] Radar: Or am I thinking of something else
[06:05:53] Arcaire: That works in plain ruby.
[06:05:55] Radar: My bad, it will.
[06:05:57] Arcaire: You're thinking of titleize.
[06:06:09] Radar: I was still thinking about .constantize and how it's not available in plain Ruby.
[06:08:40] Arcaire: Far better than a bunch of case statements imo.
[06:08:47] Arcaire: Since you only do it once instead of potentially multiple times per second.
[06:09:01] Pupeno: has joined #ruby
[06:09:11] bitsapien: radar: arcaire's solution works for me :)
[06:09:17] Radar: bitsapien: +1
[06:09:36] bitsapien: Thanks a lot people :)
[06:10:35] Devalo: has joined #ruby
[06:12:30] solars: has joined #ruby
[06:14:25] terminalrecluse: has joined #ruby
[06:14:30] marcdel: has joined #ruby
[06:17:09] toretore: has joined #ruby
[06:17:39] GriffinHeart: has joined #ruby
[06:21:02] pandaant: has joined #ruby
[06:21:30] devbug: has joined #ruby
[06:24:48] firstdayonthejob: has joined #ruby
[06:24:54] yardenbar: has joined #ruby
[06:26:55] aganov: has joined #ruby
[06:26:58] bigkevmcd: has joined #ruby
[06:27:23] devbug: has joined #ruby
[06:27:51] yardenbar: Hello, I'm trying to connect to a FTP server using net/sftp lib. authentication is combined of ssh key and a password, both are passed as options hash. looking at the logs, I'm seeing the remote server requests the password, which after a timeout the connection fails.
[06:27:52] Es0teric: has joined #ruby
[06:28:13] yardenbar: Has anyone encountered that behavior?
[06:28:25] Arcaire: If you're using SFTP and the server is requesting a password you need to configure the server to accept key alone.
[06:28:59] yardenbar: its a 3rd party, not in my control
[06:29:08] Arcaire: That doesn't magically make it solveable.
[06:29:16] Arcaire: You can pass a password.
[06:30:17] yardenbar: The hash I'm passing is: {:password => "MY_PASS", :keys => [KEYS_ARRAY]}
[06:30:32] Arcaire: http://net-ssh.github.io/net-sftp/classes/Net/SSH/Connection/Session.html ?
[06:30:41] Arcaire: No hash there.
[06:30:42] yardenbar: Checking...
[06:31:36] Arcaire: Yeah you're not meant to pass a hash in by the looks, you should create an SSH session then SFTP wrap it.
[06:32:03] pawnbox: has joined #ruby
[06:32:14] codecop_: has joined #ruby
[06:32:14] navneet_: has joined #ruby
[06:32:27] tildes: has joined #ruby
[06:32:54] yardenbar: I'll try that. Thank you Arcaire
[06:33:55] Guest54-ru: has joined #ruby
[06:38:33] shmuli: has joined #ruby
[06:41:00] shmuli: practically, how does pass-by-sharing behave differently than other evaluations strategies?
[06:42:30] skade: has joined #ruby
[06:42:47] konsolebox: has joined #ruby
[06:44:06] yardenbar: Arcaire, See https://github.com/net-ssh/net-sftp/blob/master/lib/net/sftp.rb, one can pass options hash which in turn gets passed to Net::SSH.start
[06:44:21] Arcaire: yardenbar: generally i just go by the docs
[06:44:25] Arcaire: which said use kwargs
[06:46:29] LoneHerm_: has joined #ruby
[06:47:28] RahulT: has joined #ruby
[06:47:53] MyMind: has joined #ruby
[06:48:15] GriffinHeart: has joined #ruby
[06:48:53] yardenbar: Can you paste a link, I can't find the kwargs part
[06:49:06] Arcaire: Ah sorry, not sure if that's the Ruby term for it.
[06:49:13] Arcaire: But the first link I pasted showed keyword args used.
[06:49:18] Arcaire: :password => whatever
[06:49:18] raeoks: has joined #ruby
[06:49:19] Arcaire: but not in a hash
[06:49:23] Arcaire: that's what i was referring to
[06:49:33] Arcaire: in Python they're called kwargs (keyword arguments). Not sure what they're called in Ruby.
[06:50:08] shmuli: has joined #ruby
[06:50:34] yardenbar: I'll try that
[06:52:12] moeabdol: has joined #ruby
[06:53:37] pawnbox: has joined #ruby
[06:54:12] Mon_Ouie: has joined #ruby
[06:54:45] dionysus69: has joined #ruby
[06:56:58] vondruch_: has joined #ruby
[06:59:26] anisha: has joined #ruby
[07:01:07] snowy: has joined #ruby
[07:01:14] sjums: has joined #ruby
[07:06:50] victortyau: has joined #ruby
[07:07:47] yardenbar: Arcaire, I tried to connect using the sftp util (from command line). the sftp server requires both password and ssh-key authentication. is there a way to tell net-sftp to authenticate using both?
[07:08:49] Arahael: https://robots.thoughtbot.com/ruby-2-keyword-arguments
[07:09:45] Arahael: Arcaire: see that. ^^^ :)
[07:10:17] Dimik1: has joined #ruby
[07:10:50] Pupeno: has joined #ruby
[07:10:59] yardenbar: Thank you arahael , do you know whether net-sftp can authenticate using both password and ssh-key?
[07:11:16] Devalo: has joined #ruby
[07:11:42] Arahael: yardenbar: not sure, i would assume that you can use ssh-agent though, taking care of the password, if any.
[07:13:55] Tharbakim: has joined #ruby
[07:14:20] antgel: has joined #ruby
[07:18:26] x77686d: has joined #ruby
[07:19:36] biberu: has joined #ruby
[07:19:38] Pupeno: has joined #ruby
[07:19:40] RahulT: has joined #ruby
[07:24:30] PedramT: has joined #ruby
[07:27:12] AlexJakeGreen: has joined #ruby
[07:27:38] mikecmpbll: has joined #ruby
[07:29:51] dionysus69: has joined #ruby
[07:31:02] the_drow: has joined #ruby
[07:31:22] raeoks: has joined #ruby
[07:31:51] tagaulap: has joined #ruby
[07:33:19] evidex: has joined #ruby
[07:33:46] Coldblackice_: has joined #ruby
[07:34:14] ur5us: has joined #ruby
[07:34:59] yfeldblum: has joined #ruby
[07:35:06] terlar: has joined #ruby
[07:35:20] jaruga___: has joined #ruby
[07:36:03] alecs: has joined #ruby
[07:36:43] Pisuke: has joined #ruby
[07:39:10] phatypus: has joined #ruby
[07:39:48] moeabdol: has joined #ruby
[07:39:55] Pupeno: has joined #ruby
[07:39:57] JohnBat26: has joined #ruby
[07:40:12] terlar: has joined #ruby
[07:42:19] Sembei: has joined #ruby
[07:43:12] Couch: has joined #ruby
[07:44:06] aufi: has joined #ruby
[07:44:19] mikecmpbll: has joined #ruby
[07:44:46] ur5us: has joined #ruby
[07:45:11] Xeago: has joined #ruby
[07:46:06] navneet: has joined #ruby
[07:46:41] bruce_lee: has joined #ruby
[07:47:21] stardiviner: has joined #ruby
[07:48:59] andikr: has joined #ruby
[07:48:59] navneet_: has joined #ruby
[07:49:18] PedramT: has joined #ruby
[07:49:29] skade: has joined #ruby
[07:50:09] navneet: has joined #ruby
[07:51:09] Billias: has joined #ruby
[07:53:42] phaza_: has joined #ruby
[07:55:36] bitsapien: has joined #ruby
[07:55:57] edwinvdgraaf: has joined #ruby
[07:56:30] Pupeno: has joined #ruby
[07:56:40] GriffinHeart: has joined #ruby
[07:56:57] araujo: has joined #ruby
[07:57:16] mikecmpbll: has joined #ruby
[07:58:16] ponga: has joined #ruby
[07:59:42] Polysics: has joined #ruby
[08:00:47] xcesariox: has joined #ruby
[08:01:42] RegulationD: has joined #ruby
[08:01:59] mark_66: has joined #ruby
[08:02:03] LoneHermit: has joined #ruby
[08:02:11] bkxd: has joined #ruby
[08:05:53] n008f4g_: has joined #ruby
[08:07:53] pawnbox: has joined #ruby
[08:11:17] Polysics: has joined #ruby
[08:11:32] sepp2k: has joined #ruby
[08:12:06] Polysics_: has joined #ruby
[08:13:19] Shashikant86: has joined #ruby
[08:13:46] yeticry: has joined #ruby
[08:14:22] vondruch: has joined #ruby
[08:17:47] navneet: has joined #ruby
[08:19:13] william3: has joined #ruby
[08:21:16] ferr: has joined #ruby
[08:22:16] PedramT: has joined #ruby
[08:22:19] mrgrieves: has joined #ruby
[08:22:31] astrobun_: has joined #ruby
[08:22:44] TvL2386: has joined #ruby
[08:23:20] hk238: has joined #ruby
[08:23:28] pwnd_nsfw: has joined #ruby
[08:23:48] TvL2386: has joined #ruby
[08:24:17] marr: has joined #ruby
[08:26:45] marcdel: has joined #ruby
[08:28:25] pawnbox: has joined #ruby
[08:28:25] skade: has joined #ruby
[08:28:46] marcdel_: has joined #ruby
[08:30:11] jottr: has joined #ruby
[08:31:37] troulouliou_div2: has joined #ruby
[08:31:56] jottr: has joined #ruby
[08:32:24] alexherbo2: has joined #ruby
[08:34:16] tomphp: has joined #ruby
[08:34:41] Xeago: has joined #ruby
[08:35:59] andchar: has joined #ruby
[08:37:32] andchar: has joined #ruby
[08:40:06] igam: has joined #ruby
[08:42:01] skislak: has joined #ruby
[08:42:08] phatypus: has joined #ruby
[08:43:04] dgncn: has joined #ruby
[08:44:24] andchar: has joined #ruby
[08:45:45] william3: has joined #ruby
[08:46:01] robbyoconnor: has joined #ruby
[08:46:40] ruby-lang538: has joined #ruby
[08:47:01] Sovon: has joined #ruby
[08:47:18] ruby-lang538: need help in installing capybara on ruby 1.9.3
[08:47:20] Sovon: when I hit 'gem install sass' I get an error saying 'could not find a valid gem'. Can anyone help me please ?
[08:47:33] arthurnn: has joined #ruby
[08:49:44] ruby-lang538: Error installing capybara: mime-types-data requires Ruby version >= 2.0. this is the error i ma getting when i do gem install capybara on ruby 1.9.3
[08:51:44] Xeago: has joined #ruby
[08:51:59] ruby-lang538: anyone know how to resolve this problem
[08:52:11] ruby-lang538: Error installing capybara: mime-types-data requires Ruby version >= 2.0. this is the error i ma getting when i do gem install capybara on ruby 1.9.3
[08:52:11] ruby-lang538: Error installing capybara: mime-types-data requires Ruby version >= 2.0. this is the error i ma getting when i do gem install capybara on ruby 1.9.3
[08:52:40] PedramT: has joined #ruby
[08:52:41] Macaveli: has joined #ruby
[08:53:14] apeiros: ruby-lang538: I think you have to unstuck your cmd and v key
[08:53:34] pawnbox: has joined #ruby
[08:53:38] aupadhye: has joined #ruby
[08:54:25] navneet: has joined #ruby
[08:54:40] ruby-lang538: do you know how to resolve this problem
[08:55:13] pawnbox: has joined #ruby
[08:56:02] alecs: has joined #ruby
[08:56:09] igam: ruby-lang538: upgrade to ruby 2.0.
[08:56:17] navneet: has joined #ruby
[08:57:38] apeiros: ruby-lang538: I'm curious - what part of "mime-types-data requires Ruby version >= 2.0" did you not understand?
[08:58:01] Hanmac: maybe its the ">=" part?#
[08:58:42] william3: has joined #ruby
[08:58:51] gdp: has joined #ruby
[08:59:45] igam: I'd say the "why" part.
[08:59:48] igam: Why, oh why?
[09:00:10] ruby-lang538: sorry i think I got it
[09:00:36] alecs: has joined #ruby
[09:00:54] lubekpl: has joined #ruby
[09:01:49] jackdaniel: o, igam here o/
[09:04:08] moei: has joined #ruby
[09:04:14] apeiros: ruby-lang538: so you won't tell us what part about that message confused you? because I'm genuinely curious.
[09:07:02] anisha_: has joined #ruby
[09:07:26] tildes_: has joined #ruby
[09:07:53] weckl: has joined #ruby
[09:08:33] igam: jackdaniel: hi!
[09:09:45] igam: jackdaniel: yep, I had to use Xcodeproj (from cocoapods), and what I have in lisp is not as advanced (yet).
[09:10:11] blaix: has joined #ruby
[09:11:48] Macaveli: has joined #ruby
[09:11:51] Devalo: has joined #ruby
[09:12:38] igam: jackdaniel: anyways, I write ruby as: (class Foo (def m (a b) (if (a == b) then 42 else nil end)) end), so…
[09:13:04] igam: plus some comma or semicolon where needed…
[09:13:04] kimegede: has joined #ruby
[09:13:18] isxek: has joined #ruby
[09:13:55] _aeris_: hello guy !
[09:14:15] _aeris_: https://github.com/ruby/openssl/blob/master/lib/openssl/ssl.rb#L370
[09:14:20] jackdaniel: heh. I'm flirting with the idea to implement ruby atop of ECL's CRS as a second language
[09:14:44] _aeris_: seeding the PRNG with the script name hash, not very cool for security, no ?
[09:14:45] jackdaniel: (or third, if we count inlining C)
[09:14:48] igam: Like this: (class Foo; (def m (a,b) (if (a == b) then 42 else nil end) end) end) (Foo.new.m 1,1)
[09:15:06] igam: That's where you see that ruby is botched, with all those commans, and end before the closing parentheses… Whatever…
[09:15:28] igam: jackdaniel: why not, nowadays, there's a ruby standard.
[09:15:49] jackdaniel: yes, finding time for the task is more problematic :)
[09:15:59] isxek: has joined #ruby
[09:16:05] al2o3-cr: has joined #ruby
[09:16:18] gregf_: that looks.. plain awful...
[09:16:25] igam: not to a lisper :-)
[09:16:41] gregf_: lisp is not rocketscience :|
[09:16:44] igam: Well, it looks awful, but not for the same reasons.
[09:16:48] jackdaniel: gregf_: having common runtime for two languages is awful? hm, let's throw .net then
[09:17:11] Gasher: has joined #ruby
[09:17:24] jackdaniel: s/throw/throw away/
[09:17:30] gregf_: jackdaniel: no no.. that lisp syntax.. some folks just want to fuel their egos' :|.. fortunately theres better folks in Ruby!
[09:18:00] jackdaniel: gregf_: syntax is just a tool – one tool fits one objective, the other one the second
[09:18:07] jackdaniel: sexps are great if you do macros
[09:18:13] igam: jackdaniel: well, one problem will be to mix the Ruby OOS with CLOS. Happily, the Ruby OOS is one of the closest to CLOS, and CLOS is so maleable, that it should be possible to write metaclasses for the whole Ruby OOS.
[09:18:28] jackdaniel: or if you write a compiler (sexp is basically an AST, you don't have to use 10k yacc file)
[09:19:03] Weavel: has joined #ruby
[09:19:07] Sovon: where can I get the SSL certificate *.pem file for the manual SSL certificate fix in Ruby ?
[09:19:32] igam: gregf_: the ones who fill their egos are those who design new languages with botched syntaxes, instead of just having the humility of realizing that if there's a need for syntax, they don't know anything about it, but the end users of each application. And therefore lisp approach is the best: no syntax in the language, and tools to build new syntaxes for end-users.
[09:19:59] jackdaniel: igam: I disagree. Good syntax eliminates thought
[09:20:05] igam: Sovon: letsencrypt.org ?
[09:20:17] jackdaniel: and is something very good for a certain kind of tasks
[09:20:43] igam: jackdaniel: yes, but not pre-defined syntax. First comes the task, then the syntax you implement for that task.
[09:20:46] workmad3: has joined #ruby
[09:20:58] igam: Sovon: letsencrypt.org will give you certificates.
[09:21:00] gregf_: all this lisp discussion seems OT :|. this is Ruby!!!
[09:21:20] igam: Which is a matzacred lisp, so on topic. :-)
[09:21:41] jackdaniel: igam: having common syntax reduces effort to learn it for outsiders, hence consolidates the community. Having good general purpose syntax is good. Either way I disagree with both of you :P
[09:22:00] jackdaniel: sorry for offtop (if it really is offtopic) – I've got stuff to do o/
[09:22:03] tildes: has joined #ruby
[09:22:11] igam: "Matsumoto describes the design of Ruby as being like a simple https://en.wikipedia.org/wiki/Lisp_(programming_language) language at its core" — https://en.wikipedia.org/wiki/Ruby_(programming_language)
[09:22:40] Sovon: Can you please find me the link of the AddTrustExternalCARoot-2048.pem. SSL in that website ? I need that as mentioned in this github tutorial [ https://gist.github.com/luislavena/f064211759ee0f806c88#installing-using-update-packages-new ]
[09:23:33] igam: https://raw.githubusercontent.com/rubygems/rubygems/master/lib/rubygems/ssl_certs/AddTrustExternalCARoot-2048.pem
[09:23:43] igam: is the URL, I don't know if you can download anything from it.
[09:23:45] Arcaire: arahael: oh so they are called kwargs in rubyland too
[09:24:03] Arcaire: i just always called them that because i don't program in a team so i didn't care if i was wrong. good to know!
[09:24:03] Sovon: That link says 'Not Found'
[09:24:27] Sovon: I can not download the certificate
[09:24:43] igam: You can google using allinurl: https://www.google.fr/search?q=allinurl:"AddTrustExternalCARoot-2048.pem"
[09:25:45] sepp2k: has joined #ruby
[09:26:26] igam: Of course, you would need to be sure of those root certificates…
[09:27:56] Sovon: nice google filter trick
[09:28:01] toretore: the certs are in the repo
[09:28:18] Sovon: I'll try saving it in that filename and extension and give it a go
[09:28:31] toretore: https://github.com/rubygems/rubygems/tree/master/lib/rubygems/ssl_certs
[09:28:49] toretore: if you manually upgrade the rubygems installation it should come with the new certs
[09:28:57] someperson4465: has joined #ruby
[09:29:34] someperson4465: could anyone advise me how to setup a ruby package
[09:29:56] igam: gem install $package # what else?
[09:29:57] redasus: has joined #ruby
[09:30:05] redasus2: has joined #ruby
[09:30:07] someperson4465: or whatever they are called in ruby :) it is an addon for a python package but was written in ruby for some reason
[09:30:25] igam: this might make things a little more complex :-)
[09:30:29] Radar: someperson4465: https://github.com/radar/guides/blob/master/gem-development.md
[09:30:35] Radar: I have a guide for exactly that :)
[09:30:51] toretore: someperson4465: provide more information
[09:30:56] someperson4465: how can i show you the problem ive been having
[09:31:03] someperson4465: ie you cant paste code here
[09:31:09] ruby[bot]: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[09:33:04] patrick_star_2: has joined #ruby
[09:33:06] tAn: has joined #ruby
[09:34:46] mikecmpb_: has joined #ruby
[09:36:01] someperson4465: here is the info https://gist.github.com/anonymous/a5cc10b12570bff2db9f610be24a234f
[09:36:18] blackmesa: has joined #ruby
[09:37:28] mdw: has joined #ruby
[09:40:06] Sovon: it still says error fetching http://rubygems.org/
[09:40:23] evidex: has joined #ruby
[09:40:30] bluOxigen_: has joined #ruby
[09:40:31] toretore: someperson4465: link to app?
[09:40:39] Sovon: I replaced the certificate
[09:40:53] someperson4465: https://github.com/vdaubry/youtube-multiple-dl
[09:41:10] blaix1: has joined #ruby
[09:41:14] Sovon: toretore, can you help me setup Sass in Ruby - windows ?
[09:42:26] toretore: i don't know anything about windows
[09:42:55] iamvery: has joined #ruby
[09:43:07] toretore: someperson4465: did you have ruby installed before you installed rbenv?
[09:43:28] someperson4465: though it was the wrong version
[09:43:39] adgtl: has joined #ruby
[09:43:46] blackmesa: has joined #ruby
[09:43:54] yfeldblum: has joined #ruby
[09:44:33] lubekpl: has joined #ruby
[09:44:36] toretore: someperson4465: that's the problem, your system is confused. make sure `which ruby` points to rbenv
[09:44:47] toretore: same thing with `which gem`
[09:44:56] toretore: uninstall the system ruby is possible
[09:45:37] Sovon: I installed ruby version which says '2.4.5' in gem --version command
[09:46:05] someperson4465: i already uninstalledthe system ruby and the new install is now in the path
[09:46:13] someperson4465: here is output of which ruby ~/.rbenv/shims/ruby
[09:46:14] Sovon: I am trying to install Sass (as a gem in Ruby) in this..
[09:46:27] xthread: has joined #ruby
[09:46:53] someperson4465: ~/.rbenv/shims/gem
[09:47:06] xthread: has joined #ruby
[09:47:11] johnny56_: has joined #ruby
[09:47:26] GriffinHeart: has joined #ruby
[09:47:32] toretore: someperson4465: `which bundle` ?
[09:47:49] someperson4465: ~/.rbenv/shims/bundle
[09:48:28] toretore: so why does your bash say "/usr/bin/bundle: /usr/bin/ruby: bad interpreter: No such file or directory"?
[09:49:00] toretore: `which rake` too
[09:49:16] someperson4465: no idea. :( i can run bundle only when i do full path to bundle /home/User1/.rbenv/versions/2.2.0/bin/bundle install
[09:49:27] Olipro: has joined #ruby
[09:49:41] DanyC: has joined #ruby
[09:49:51] someperson4465: @toretore ~/.rbenv/shims/rake
[09:49:57] toretore: are you in the app root when you run this?
[09:50:06] htmldrum: has joined #ruby
[09:50:13] someperson4465: im in the directory yes
[09:50:21] someperson4465: and as i said the files did process
[09:50:27] LoneHerm_: has joined #ruby
[09:50:33] someperson4465: there was output for bundle isntall and for rake db
[09:50:37] toretore: do you have a config/database.yml ?
[09:51:24] toretore: you're doing `ruby youtube-multiple-dl`
[09:51:44] montagne_goat: has joined #ruby
[09:51:45] toretore: `cd ..; ruby bin/youtube-multiple-dl`
[09:52:11] someperson4465: yes and the output showed in the gist line 25 https://gist.github.com/anonymous/a5cc10b12570bff2db9f610be24a234f is what the error was to `ruby youtube-multiple-dl`
[09:52:24] DanyC: has left #ruby: ()
[09:52:50] someperson4465: what do you mean by cd..;
[09:53:00] toretore: the app dir is /home/User1/youtube-multiple-dl
[09:53:09] toretore: do everything from there
[09:53:16] someperson4465: yes that is where i was
[09:53:18] toretore: not inside bin
[09:53:29] toretore: no it says in your gist you were in bin
[09:54:28] toretore: then do `ruby -I. bin/youtube-multiple-dl`
[09:55:08] someperson4465: ruby: No such file or directory -- youtube-multiple-dl (LoadError) fomr directory /home/User1/youtube-multiple-dl from typing ruby youtube-multiple-dl
[09:55:24] toretore: that's not what i told you to do
[09:55:28] toretore: read it again
[09:56:16] someperson4465: this one? then do `ruby -I. bin/youtube-multiple-dl`
[09:56:16] william3: has joined #ruby
[09:57:50] someperson4465: ruby -I. bin/youtube-multiple-dl i put that in and it didnt make an error
[09:58:06] someperson4465: jsut went back to command prompt
[09:59:44] someperson4465: the gist is from yesterday
[09:59:51] someperson4465: and i tried it many ways
[10:00:00] someperson4465: i mean both in and out of bin
[10:02:31] RegulationD: has joined #ruby
[10:03:12] n008f4g_: has joined #ruby
[10:04:19] isxek: has joined #ruby
[10:05:09] pLaToOn: has joined #ruby
[10:05:53] que: has joined #ruby
[10:05:53] d0lph1n98: has joined #ruby
[10:06:09] someperson4465: you meant do 'ruby -I' as a seperate command? not `ruby -I. bin/youtube-multiple-dl`all as one line?
[10:06:17] htmldrum: has joined #ruby
[10:06:21] someperson4465: ie ruby -I enter
[10:06:29] baweaver: has joined #ruby
[10:06:49] que: hi guys, i got small thing and with my english skills i am unable to find the answer. i do curl quetion ( after that in shell i have to put password ) and i dont know how to put password from ruby script
[10:07:04] william3: has joined #ruby
[10:07:20] oqui: has joined #ruby
[10:08:44] toretore: que: gist your code
[10:08:47] ruby[bot]: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[10:09:12] alecs: has joined #ruby
[10:09:37] alecs: has joined #ruby
[10:09:47] kits: has joined #ruby
[10:09:59] que: toretore: http://paste.ofcode.org/4gzxm6ti5Je5KRMdz5KbRx
[10:10:09] adgtl: has joined #ruby
[10:10:23] que: shell asks for password
[10:10:38] bronson: has joined #ruby
[10:10:49] navneet: has joined #ruby
[10:11:52] toretore: "-u, --user <user:password>"
[10:12:10] toretore: curl -u user:password -XGET "http://127.0.0.1:533/_template/template_1"
[10:12:25] nixmaniack: has joined #ruby
[10:13:20] TheHodge: has joined #ruby
[10:13:41] que: toretore: yeah but for future i also want to know how to put the password to shell
[10:13:47] sgambino: has joined #ruby
[10:14:15] toretore: then you have to connect to the process stdin
[10:14:24] toretore: using popen or similar
[10:14:46] flashpoint9: has joined #ruby
[10:15:09] toretore: and probably read its stdout to know when it's time
[10:15:34] que: stdin not stdout ?
[10:17:28] someperson4465: toretore i tried what you wrote and nothing happens i dont know what i did wrong but i tried reading it many times and nothing ahppens
[10:19:12] toretore: `ruby -I. bin/youtube-multiple-dl -h
[10:19:18] toretore: - the first `
[10:20:02] someperson4465: did you mean all as one command or the full stop indicates two commands?
[10:20:11] shayan: has joined #ruby
[10:20:31] someperson4465: ok i did that in the root and it didnt make an error just goes back to prompt
[10:21:56] someperson4465: in the app root i mean /home/User1/youtube-multiple-dl
[10:22:25] rdvdet: has joined #ruby
[10:22:55] moeabdol: has joined #ruby
[10:23:35] someperson4465: ok i tried with the -h on now and it gives me the progrms options so some progress :)
[10:24:33] mdw: has joined #ruby
[10:25:16] someperson4465: oh i get what that did :D -h being for help
[10:26:42] Shashikant86: has joined #ruby
[10:28:33] oqui: hey guys is there a ruby on rails specific channel?
[10:28:39] adgtl: has joined #ruby
[10:29:11] someperson4465: alright i see now i can make it run with prefixing 'ruby -I. bin/' how would i add it to run via linux path
[10:29:20] ghr: oqui #rubyonrails?
[10:29:25] someperson4465: withouit typing that prefix
[10:31:46] the_drow: has joined #ruby
[10:32:05] Moosashi: has joined #ruby
[10:32:18] ur5us: has joined #ruby
[10:33:24] nixmaniack: has joined #ruby
[10:33:38] nixmaniack: has joined #ruby
[10:36:05] genpaku: has joined #ruby
[10:36:34] redasus2: has joined #ruby
[10:36:35] redasus: has joined #ruby
[10:39:59] nixmaniack: has joined #ruby
[10:40:35] nixmaniack: has joined #ruby
[10:41:16] AlexRussia: has joined #ruby
[10:41:39] adgtl: has joined #ruby
[10:44:00] _3by8: has joined #ruby
[10:44:15] _3by8: I assumed that I'd be able to do this in a method: self.date || self.created_at where self.date is a user-defined date. My thinking was that it would return date if it were there and created_at if it wasn't. Obviously, that doesn't work. How should that work?
[10:44:46] william3: has joined #ruby
[10:46:25] toretore: _3by8: it should work. gist your code
[10:46:32] tao_: has joined #ruby
[10:48:18] _3by8: toretore: https://gist.github.com/threebyeight/9a0dac17a6df299e345f01c994f2e5a6
[10:49:45] n008f4g_: has joined #ruby
[10:50:00] Spami: has joined #ruby
[10:50:45] giz|work: has joined #ruby
[10:51:34] jaguarmagenta: has joined #ruby
[10:52:51] Shashikant86: has joined #ruby
[10:53:07] TomyWork: is it possible to install a global exception handler in ruby?
[10:53:33] Xeago: has joined #ruby
[10:53:53] TomyWork: i'm trying to get my Vagrantfile a first chance at inspecting certain exceptions thrown by vagrant's puppet provisioner
[10:55:35] lxsameer: has joined #ruby
[10:56:27] johnmilton: has joined #ruby
[10:57:28] Xeago: has joined #ruby
[10:57:47] toretore: _3by8: `def date` not `def self.date`
[10:58:01] _3by8: toretore: oops, thanks.
[10:59:14] adgtl: has joined #ruby
[10:59:19] sepp2k: has joined #ruby
[10:59:40] Xeago: has joined #ruby
[10:59:48] rubirc: has joined #ruby
[11:00:53] allcentury: has joined #ruby
[11:01:52] blaix: has joined #ruby
[11:02:03] PedramT: has joined #ruby
[11:04:09] p1k: has joined #ruby
[11:07:03] Ropeney: has joined #ruby
[11:09:00] GodFather: has joined #ruby
[11:10:44] ur5us: has joined #ruby
[11:12:20] navneet: has joined #ruby
[11:12:38] weckl: has joined #ruby
[11:13:12] rodfersou: has joined #ruby
[11:13:18] Devalo: has joined #ruby
[11:15:08] moeabdol: has joined #ruby
[11:15:27] mdw7: has joined #ruby
[11:16:08] droids___: has joined #ruby
[11:20:40] Yiota: has joined #ruby
[11:21:13] rubynoob: has joined #ruby
[11:23:20] Pupeno: has joined #ruby
[11:23:33] PedramT: has joined #ruby
[11:23:59] ur5us: has joined #ruby
[11:24:10] rubynoob: Hi there fellow programmers. I have recently started using RubyMine. I made a project which is linked to my dropbox file ( so it automatically synchronizes my work and home computer ), but for some reasons it doesn't recognize global variables declared in other files within the project.
[11:24:11] oliver___: has joined #ruby
[11:25:37] rubynoob: As example, in 1 file I have a global variable named @invoice_start = 0, in the another file I use this variable. But the IDE says: Cannot find declaration for field @invoice_start
[11:25:44] rubynoob: Anyone has an idea how to solve this ?
[11:27:34] blaxter: has joined #ruby
[11:28:00] blackgoat: has joined #ruby
[11:29:39] moeabdol: has joined #ruby
[11:30:54] william3: has joined #ruby
[11:31:06] ldnunes: has joined #ruby
[11:34:31] jokke: any idea what's wrong here: extconf.rb:10:in `<main>': uninitialized constant Config
[11:34:44] jokke: i'm trying to install nokogiri
[11:38:27] sepp2k: has joined #ruby
[11:38:56] dionysus69: has joined #ruby
[11:40:09] tAn: has joined #ruby
[11:40:53] pawnbox: has joined #ruby
[11:41:09] roshanavand: has joined #ruby
[11:41:26] brendan-: has joined #ruby
[11:41:38] jsaak: rubyNoob: there are much better solutions for code sharing than dropbox, search for git or svn in google, also try to avoid global variables, they are not needed most of the time, if you insist on global variables try $var instead
[11:43:04] moeabdol: has joined #ruby
[11:43:07] jokke: rubyNoob: for git: https://git-scm.com/book/en/v2
[11:43:16] jokke: very much recommended
[11:43:33] anisha_: has joined #ruby
[11:43:37] Shashikant86: has joined #ruby
[11:44:59] sgambino: has joined #ruby
[11:45:07] rubynoob: Thanks for the answer, ill look into git.
[11:46:51] yardenbar: Hello, How do I set the working directory for "bundle exec" ?
[11:47:06] skade: has joined #ruby
[11:47:32] charlemagne: has joined #ruby
[11:49:01] droids___: Would this close the file automatically? File.open('file.txt', 'w') { |file| file.write("hello") }
[11:50:20] mikecmpb_: has joined #ruby
[11:51:20] genpaku: has joined #ruby
[11:52:41] skade: has joined #ruby
[11:54:20] kristofferR: has joined #ruby
[11:55:37] mdw: has joined #ruby
[11:56:04] neuraload: has joined #ruby
[11:56:16] moeabdol: has joined #ruby
[11:56:22] PedramT: has joined #ruby
[11:57:09] banister: has joined #ruby
[11:58:43] canton7: droids___, yes: that's the point of the version of File.open which takes a block
[11:58:46] Pupeno: has joined #ruby
[12:00:41] rubirc: C# has this thing where you can set public attributes very neatly: new Object() { Field1 = true }
[12:00:46] rubirc: does ruby have something similar?
[12:01:50] raeoks: has joined #ruby
[12:02:15] rickmasta: has joined #ruby
[12:02:17] tAn: has joined #ruby
[12:02:50] freerobby: has joined #ruby
[12:05:14] godzillaenlacasa: has joined #ruby
[12:07:28] charlema_: has joined #ruby
[12:07:28] chipotle: has joined #ruby
[12:07:34] william3: has joined #ruby
[12:09:04] baweaver: has joined #ruby
[12:10:21] sdothum: has joined #ruby
[12:11:58] GBrawl: has joined #ruby
[12:12:35] bronson: has joined #ruby
[12:13:24] synthroid: has joined #ruby
[12:14:43] Pupeno: has joined #ruby
[12:18:22] emilford: has joined #ruby
[12:19:21] moeabdol: has joined #ruby
[12:22:16] Yiota: has joined #ruby
[12:22:16] Ropeney: has joined #ruby
[12:24:16] bob434: has joined #ruby
[12:24:45] navneet: has joined #ruby
[12:28:42] solars: has joined #ruby
[12:28:43] Spami: has joined #ruby
[12:30:08] sepp2k: has joined #ruby
[12:32:42] andikr: has joined #ruby
[12:36:19] stennowork: has joined #ruby
[12:36:45] navneet: has joined #ruby
[12:38:59] droids___: has left #ruby: ()
[12:39:33] anisha: has joined #ruby
[12:43:59] shayan: has joined #ruby
[12:45:09] jokke: any ideas regarding my nokogiri problem
[12:47:10] Ropeney: has joined #ruby
[12:50:30] GodFather: has joined #ruby
[12:51:46] Carella: has joined #ruby
[12:52:18] m8: has joined #ruby
[12:52:19] jaguarmagenta: has joined #ruby
[12:53:16] Fernando-Basso: rubyNoob: @foo is not global. Make it $foo = 0
[12:53:49] Fernando-Basso: rubyNoob: Ruby doesn't assume a variable is global based only on where it is defined. It also depends on naming convention.
[12:53:55] Fernando-Basso: Global vars start with $.
[12:54:49] flashpoint9: has joined #ruby
[12:55:36] tinnvec: has joined #ruby
[12:55:42] Fernando-Basso: rubyNoob: Also, I know knwo how multiple files interect when it comes to global vars.
[12:56:10] PedramT: has joined #ruby
[12:58:19] apeiros: uh, don't use globals
[12:58:36] navneet: has joined #ruby
[12:58:49] tax: has joined #ruby
[12:59:24] w1lson: has joined #ruby
[12:59:42] andikr: has joined #ruby
[12:59:42] LinuxHippie: has joined #ruby
[12:59:44] JakFrist: has joined #ruby
[13:01:44] ramortegui: has joined #ruby
[13:02:48] navneet_: has joined #ruby
[13:03:21] kam270: has joined #ruby
[13:04:21] kam270: has joined #ruby
[13:04:22] crameth: has joined #ruby
[13:05:10] newjersey: has joined #ruby
[13:05:23] zacstewart: has joined #ruby
[13:06:14] kam270: has joined #ruby
[13:06:17] blaxter: has joined #ruby
[13:06:54] JagaJaga: has joined #ruby
[13:09:34] gagrio: has joined #ruby
[13:09:54] w1lson: has joined #ruby
[13:10:29] ChiefAlexander: has joined #ruby
[13:11:44] n008f4g_: has joined #ruby
[13:11:45] banister: has joined #ruby
[13:11:57] qba73: has joined #ruby
[13:13:09] newjersey: so do I need ruby-dev on ubuntu to install jekyll
[13:13:43] grn: has joined #ruby
[13:13:45] moeabdol: has joined #ruby
[13:13:53] blackmesa: has joined #ruby
[13:14:32] Xeago: has joined #ruby
[13:14:34] IrishGringo: has joined #ruby
[13:14:53] ddv: newjersey: have you tried?
[13:14:58] Devalo: has joined #ruby
[13:15:11] newjersey: no I have not installed ruby-dev yet
[13:15:20] charlemagne: has joined #ruby
[13:15:21] sgambino: has joined #ruby
[13:16:22] newjersey: I get ERROR: Failed to build gem native extension. and stack overflow https://stackoverflow.com/a/26161563/227646 said you need to in 2014 but I don't know ruby so I don't know if that was a short term bug or ...
[13:16:28] diegoaguilar: has joined #ruby
[13:16:39] newjersey: I have run gem update --system though
[13:17:03] aeterne: has joined #ruby
[13:17:04] aeterne_: has joined #ruby
[13:17:08] newjersey: is ruby-dev for people who want to work on the language itself or is it for users? the name is confusing
[13:18:16] JagaJaga: has left #ruby: ("WeeChat 1.4")
[13:20:17] _nex_: has joined #ruby
[13:21:42] aspiers_: has joined #ruby
[13:22:49] Macaveli: has joined #ruby
[13:24:06] vishwa: has joined #ruby
[13:24:12] victortyau: has joined #ruby
[13:24:47] bkxd_: has joined #ruby
[13:26:04] william3: has joined #ruby
[13:26:09] LoneHermit: has joined #ruby
[13:26:13] jds_: has joined #ruby
[13:28:48] xthread: has joined #ruby
[13:31:20] PedramT: has joined #ruby
[13:32:22] lxsameer: has joined #ruby
[13:32:44] bob434: has joined #ruby
[13:33:21] htmldrum: has joined #ruby
[13:33:47] swills: has joined #ruby
[13:34:10] isxek: newjersey: the former
[13:34:42] mjuszczak: has joined #ruby
[13:34:50] newjersey: isxek, so why would a user who just wants to run gem install jekyll need ruby-dev?
[13:35:55] whiteline: has joined #ruby
[13:37:00] Waqas: has joined #ruby
[13:38:21] UglyVendetta: has joined #ruby
[13:39:25] rbennacer: has joined #ruby
[13:40:05] joonty: has joined #ruby
[13:40:36] malconis: has joined #ruby
[13:40:47] isxek: newjersey: not completely sure what you're asking
[13:40:57] augustold: has joined #ruby
[13:40:58] douglascorrea: has joined #ruby
[13:41:35] Waqas: has joined #ruby
[13:42:15] newjersey: I am trying to do sudo gem install jekyll on lubuntu. I get ERROR: Failed to build gem native extension. and stack overflow https://stackoverflow.com/a/26161563/227646 said you need to in 2014 but I don't know ruby so I don't know if that was a short term bug or ...
[13:42:29] tobiasvl: I think newjersey means that ruby-dev seems to be a dependency for compass, which assumedly is a dependency for jekyll?
[13:42:38] Macaveli: has joined #ruby
[13:43:54] augustold: has left #ruby: ()
[13:45:02] william3: has joined #ruby
[13:45:41] isxek: newjersey: usually when you get those "failed to build gem native extension" errors, part of the gem needs to be built/compiled
[13:46:19] isxek: newjersey: since you're on lubuntu, you might need to have the 'build-essential' package installed
[13:47:17] isxek: newjersey: or, in other words, you would need to run 'sudo apt-get install build-essential'
[13:48:05] newjersey: nope, already installed
[13:48:26] Fernando-Basso: apeiros: Let the guy use globals. Come on!
[13:48:57] apeiros: Fernando-Basso: I've no idea whether it's a guy. they can use whatever, but globals are a bad idea.
[13:49:05] isxek: newjersey: that's odd, lemme try
[13:49:22] solars: has joined #ruby
[13:49:31] Fernando-Basso: M$ has a js library that had over 400 globals.
[13:50:08] apeiros: I'm not sure whether that should be a supporting argument for globals
[13:50:15] newjersey: Fernando-Basso, send a pull request fixing it?
[13:50:17] morochena: has joined #ruby
[13:50:38] Emmanuel_Chanel: has joined #ruby
[13:50:48] Fernando-Basso: newjersey: I would rather send a missile aiming M$ headquarters.
[13:51:06] isxek: newjersey: how did you install ruby, by any chance?
[13:51:09] newjersey: or better yet, rewrite it in typescript for them
[13:51:18] newjersey: isxek, sudo apt install ruby
[13:51:23] Fernando-Basso: apeiros: I'm sorry. I'm just joking. Of course globals shall not be used.
[13:51:33] Fernando-Basso: I even think langs should not even provide them.
[13:51:41] newjersey: ruby is already the newest version (1:2.3.0+1).
[13:52:18] isxek: newjersey: I have v2.3.0 too, but I did not install ruby via 'apt-get'
[13:52:30] apeiros: Fernando-Basso: depends. constants are in a way similar to globals and I consider them to be ok. but ruby is a great example - it could do well without the $globals and just use constants
[13:52:58] newjersey: is this old?
[13:53:12] isxek: newjersey: I generally install Ruby through chruby/ruby-install, which builds Ruby inside my home directory
[13:53:18] apeiros: newjersey: check the topic. 2.3.0 is the current ruby version.
[13:53:20] newjersey: I don't know any ruby actually
[13:53:36] newjersey: I just want to play with jekyll
[13:54:06] newjersey: maybe there is a jekyll channel
[13:54:08] isxek: newjersey: I'd suggest installing Ruby that way, to make the gems build
[13:54:26] newjersey: but I'd have to add a ppa?
[13:54:30] mustmodify: has joined #ruby
[13:54:36] dhollinger: has joined #ruby
[13:54:37] mustmodify: can someone explain this code to me? https://twitter.com/drbrain/status/724746366539337728
[13:54:57] isxek: no need, the ruby-install script will get the Ruby source code, compile it on its own
[13:55:07] isxek: then install it in a directory inside your home directory
[13:57:26] isxek: newjersey: here's the guide I used to install Ruby here in Ubuntu: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
[13:57:48] isxek: i was able to install the jekyll gem without any issues
[13:58:06] Frem: has joined #ruby
[13:58:23] william3: has joined #ruby
[13:58:40] isxek: unless someone more experienced than both of us objects, I'd suggest using that as the way to install Ruby on Ubuntu
[13:58:56] fmcgeough: has joined #ruby
[13:59:06] p1k: has joined #ruby
[13:59:07] noService: has joined #ruby
[13:59:45] isxek: newjersey: if you do try that, better run 'sudo apt-get remove ruby' first, to avoid conflicts
[14:00:09] prestorium: has joined #ruby
[14:01:31] neha-: dont use apt ruby
[14:01:38] isxek: there you go :)
[14:01:43] stennowork: has left #ruby: ("Verlassend")
[14:02:54] phoo1234567: has joined #ruby
[14:03:00] rubirc: either there are up to date packages provided for a programming language
[14:03:18] rubirc: or you use something like rvm
[14:03:30] newjersey: this is great
[14:03:59] stannard: has joined #ruby
[14:05:29] apeiros: mustmodify: "I had to convert to |&b| because mruby doesn’t have Method"
[14:05:48] idle_task: has joined #ruby
[14:05:55] theunraveler: has joined #ruby
[14:05:57] apeiros: oh, the code, not the reason for the change
[14:06:05] apeiros: what part about it do you have difficulties?
[14:06:06] isxek: apeiros: so what could have been a one-liner got converted into a 3-liner?
[14:06:14] w1lson: has joined #ruby
[14:06:31] apeiros: isxek: that's a silly notion. the new code can be written in a single line too.
[14:08:19] isxek: apeiros: yeah, misread the code, sorry
[14:09:34] fn2187: has joined #ruby
[14:11:13] noService: has joined #ruby
[14:14:23] bronson: has joined #ruby
[14:14:29] blue_lizzard: has joined #ruby
[14:15:07] lxsameer: has joined #ruby
[14:15:07] lxsameer: has joined #ruby
[14:15:35] Xeago: has joined #ruby
[14:17:31] zacstewart: has joined #ruby
[14:18:27] snebel: has joined #ruby
[14:20:33] mustmodify: apeiros: right.
[14:20:37] snebel: A newbie question
[14:21:19] snebel: I'm trying to understand why my gem intall chef -v 12.5.1 works versus bundle install for the same gem.. more info into this gist
[14:21:20] snebel: https://gist.github.com/snebel29/7e6202a5751e91d32e22ef83163ac108
[14:21:21] mustmodify: Well what is &method(:each) doing? It reminds me of something like collection.map(&:stuff) but obviously not the same.
[14:21:26] crime: has joined #ruby
[14:21:30] hxegon: has joined #ruby
[14:23:29] ferr: has joined #ruby
[14:23:32] alexherbo2: has joined #ruby
[14:23:47] moeabdol: has joined #ruby
[14:27:23] ChanServ: +o havenwood
[14:27:44] ChanServ: -o havenwood
[14:28:10] stardiviner: has joined #ruby
[14:28:40] charlemagne: has joined #ruby
[14:29:30] troulouliou_div2: has joined #ruby
[14:30:18] havenwood: mustmodify: if #each is private
[14:31:04] mustmodify: It calls each if each is private?
[14:31:05] edwinvdgraaf: has joined #ruby
[14:32:25] SilverKey: has joined #ruby
[14:32:51] Xeago: has joined #ruby
[14:33:41] apeiros: mustmodify: see Object#method, returns a Method instance for the method `each` on self
[14:34:12] apeiros: and &arg does as usual, pass in that object as a proc, i.e. invoke Method#to_proc and pass that as a block then
[14:34:33] apeiros: whoops, first "proc" should be "block"
[14:34:49] allcentury: has joined #ruby
[14:36:39] havenwood: mustmodify: For example consider #puts. It's a module function from Kernel so it's private, so you can't: [1, 2, 3].map &:puts
[14:37:09] apeiros: havenwood: I think you're on the wrong track :)
[14:37:24] apeiros: [1, 2, 3].map &:puts would do 1.puts etc.
[14:37:37] havenwood: apeiros: Right!
[14:37:59] havenwood: map i didn't mean >.>
[14:38:13] havenwood: but nils, okay!
[14:38:28] havenwood: >> [1, 2, 3].map &method(:puts)
[14:38:42] apeiros: hm, but interesting. I never checked whether Symbol#to_proc used send or public_send, and you're right, it uses public_send. nice.
[14:39:13] Xeago: has joined #ruby
[14:39:25] paulgrmn3: has joined #ruby
[14:39:43] zast: has joined #ruby
[14:40:27] Stan: has joined #ruby
[14:41:26] havenwood: mustmodify: ^ so `&method(:puts)` there ^ lets you do a private method where `&:puts` is like `&public_method(:puts)` via `:puts.to_proc`
[14:41:51] jhack: has joined #ruby
[14:42:04] havenwood: (but is used as a block, since & is the magical block fairy)
[14:42:48] apeiros: havenwood: that's not the only difference ;-)
[14:43:58] havenwood: let us count the differences! https://www.youtube.com/watch?v=kQC82okzTXI
[14:44:00] crystal77: has joined #ruby
[14:44:39] apeiros: havenwood: what's the receiver and what's the arguments passed in is probably more important :)
[14:44:40] rickmasta: has joined #ruby
[14:45:03] smathy: has joined #ruby
[14:45:14] ruby[bot]: has joined #ruby
[14:45:14] ChanServ: +o ruby[bot]
[14:45:27] RegulationD: has joined #ruby
[14:45:46] epochwolf: has left #ruby: ()
[14:46:04] havenwood: apeiros: I was just thinking the "why" behind it generally - and hadn't scrolled back to the actual question :)
[14:46:04] skade: has joined #ruby
[14:46:24] bob434: has joined #ruby
[14:46:35] Devalo: has joined #ruby
[14:47:10] troulouliou_div2: has joined #ruby
[14:48:02] hobodave: has joined #ruby
[14:48:07] havenwood: apeiros: The multiple things does make it harder to explain the `&` but handy to use!
[14:48:19] havenwood: Just one thing... boring!
[14:48:20] patrick_star_2: has joined #ruby
[14:48:25] JakFrist: has joined #ruby
[14:48:59] crime: [1,2,3].map &method(:puts) doesnt work for me?
[14:49:04] crime: is it supposed to?
[14:49:23] ChiefAlexander: has joined #ruby
[14:49:25] deavid: has joined #ruby
[14:49:28] havenwood: crime: I meant #each, it's early. But year it should work.
[14:49:46] havenwood: crime: #=> [nil, nil, nil]
[14:49:56] mostlybadfly: has joined #ruby
[14:49:58] crime: oh, yeah i missed a char, it works
[14:51:09] rippa: has joined #ruby
[14:51:30] Xeago: has joined #ruby
[14:51:37] crime: so then &method(:symbol) is {|x| x.symbol}, or something similar?
[14:52:10] crime: if I do just &method(:puts) into irb, i get an error, so how does that end up being a Proc?
[14:52:12] havenwood: crime: `x.symbol` is like `x.public_send :symbol`
[14:52:33] havenwood: crime: Drop the ampersand if you're not passing it as a block.
[14:52:59] havenwood: crime: method(:puts).owner
[14:53:05] jaguarmagenta: has joined #ruby
[14:53:09] havenwood: crime: method(:puts).parameters
[14:53:30] crime: i can do: lambda &method(:puts)
[14:53:52] havenwood: crime: Well, anywhere you can use a block, you can use it as a block.
[14:54:04] crime: ok i get it
[14:54:11] havenwood: crime: &method(:puts).to_proc
[14:54:13] stannard: has joined #ruby
[14:54:36] havenwood: I didn't mean to prefix the &, force of habit now. :P
[14:54:55] havenwood: crime: method(:puts).to_proc.call 'wheeee'
[14:55:13] havenwood: crime: Not the most straightforward way of printing, but it works.
[14:55:41] havenwood: crime: The to_proc of course isn't needed, but doesn't hurt.
[14:55:43] crime: it might come in handy for something eventually
[14:55:47] skade: has joined #ruby
[14:56:24] havenwood: crime: Fun to play with in Pry. Check out #curry, #unbind and friends for some fun.
[14:56:58] crime: so then methods are not inherently procs?
[14:57:05] havenwood: crime: Ask it!
[14:57:08] aufi: has joined #ruby
[14:57:20] crime: Method's superclass is object, not Proc, idk why I expected differently
[14:57:30] nanoz: has joined #ruby
[14:58:29] havenwood: crime: Though when you to_proc it it does become a lambda: method(:puts).to_proc.lambda? #=> true
[14:59:12] crime: whats the purpose of the Method class? why not just make all methods procs?
[14:59:39] mitt3ns: has joined #ruby
[14:59:59] apeiros: crime: Method instances are still bound to an object
[15:00:00] bob434: has joined #ruby
[15:00:01] apeiros: procs are not
[15:00:28] crime: im not sure I follow, Proc.superclass is Object
[15:00:34] apeiros: >> [1,2,3].map(&5.method(:+))
[15:00:36] ruby[bot]: apeiros: # => [6, 7, 8] (https://eval.in/560017)
[15:00:56] apeiros: >> 5.method(:+).call(1)
[15:00:57] ruby[bot]: apeiros: # => 6 (https://eval.in/560018)
[15:01:19] apeiros: the method instance is still bound to 5. it's calling 5.+(), not just + without a receiver.
[15:01:39] apeiros: and the superclass of Proc & Method is rather irrelevant.
[15:02:07] crime: ok, I gotcha
[15:02:13] shayan: has joined #ruby
[15:02:27] crime: so without Method, 5's .+ would just be floating around with no way know about 5 in the first place
[15:02:31] apeiros: that's why [1,2,3].each(&method(:puts)) is quite different from .each(&:puts)
[15:02:44] apeiros: former is self.puts(1), latter is 1.puts()
[15:03:05] shevy: & reminds me of a snake
[15:03:08] shevy: the snake operator
[15:03:16] apeiros: ACTION prefers the sake operator
[15:03:21] crime: & reminds me of a pretzel
[15:03:46] crime: in nyc we have those like food carts with those big pretzels, so delicious
[15:03:49] kareeoleez: has joined #ruby
[15:06:03] berserk_ren: has joined #ruby
[15:06:54] william3: has joined #ruby
[15:07:07] stardiviner: has joined #ruby
[15:10:06] kobain: has joined #ruby
[15:11:20] skade: has joined #ruby
[15:11:30] antgel: has joined #ruby
[15:11:38] mdw: has joined #ruby
[15:14:19] PedramT: has joined #ruby
[15:14:44] LoneHermit: has joined #ruby
[15:15:25] x77686d: has joined #ruby
[15:16:08] mustmodify: apeiros: Missed your messages... just got them. Thanks for the explanation.
[15:16:55] solars: has joined #ruby
[15:17:51] shevy: crime lol
[15:18:07] shevy: big pretzels
[15:18:14] crime: they r so good
[15:18:29] crime: you wanna hear something that is both terrible and amazing
[15:18:54] crime: I bought 2 big slices of ny style pizza, put a pretzel in the middle, combined the slices so that the cheese enveloped the pretzel
[15:18:58] shevy: it's awkward because it's a german word... like kindergarten... or eigenklass!
[15:19:06] crime: its the most NY thing that I've done so far
[15:19:17] crime: and it was great
[15:19:33] shevy: those titan-sized pizzas?
[15:19:45] allcentury: has joined #ruby
[15:20:06] impermanence: has joined #ruby
[15:21:46] redasus2: has joined #ruby
[15:21:51] redasus: has joined #ruby
[15:22:06] william3: has joined #ruby
[15:23:27] timmow: has joined #ruby
[15:23:49] swills: has joined #ruby
[15:23:54] ur5us: has joined #ruby
[15:24:20] deadnull: has joined #ruby
[15:25:08] bob434: has joined #ruby
[15:25:33] nhhc: has joined #ruby
[15:25:35] IrishGringo: has joined #ruby
[15:26:20] nhhc: has joined #ruby
[15:26:22] Carella: has joined #ruby
[15:26:43] Infra-Red: has joined #ruby
[15:26:48] berserk_ren: has joined #ruby
[15:28:30] raeoks: has joined #ruby
[15:28:37] berserk_ren: has joined #ruby
[15:28:38] duckpuppy: has joined #ruby
[15:29:02] RegulationD: has joined #ruby
[15:29:42] william3: has joined #ruby
[15:30:32] ramfjord: has joined #ruby
[15:32:20] SilverKey: has joined #ruby
[15:33:24] Ropeney: has joined #ruby
[15:34:04] htmldrum: has joined #ruby
[15:38:40] dopie: has joined #ruby
[15:39:40] JakFrist: has joined #ruby
[15:39:43] ssiris: has joined #ruby
[15:39:44] Macaveli: has joined #ruby
[15:39:49] william3: has joined #ruby
[15:40:13] tubuliferous: has joined #ruby
[15:41:35] solars: has joined #ruby
[15:43:36] Pupeno: has joined #ruby
[15:43:36] Pupeno: has joined #ruby
[15:45:03] tildes: has joined #ruby
[15:45:28] synthroid: has joined #ruby
[15:46:31] lxsameer: has joined #ruby
[15:47:31] diegoaguilar: has joined #ruby
[15:48:13] Coldblackice_: has joined #ruby
[15:48:37] pawnbox: has joined #ruby
[15:50:08] SilverKey: has joined #ruby
[15:50:18] Macaveli: has joined #ruby
[15:51:21] crime: shevy, yes
[15:51:25] Devalo: has joined #ruby
[15:51:27] crime: those are ny's finest treasure
[15:51:30] crime: dollar slices
[15:51:47] crime: i guess the diabetes i'll probably get later just comes for free
[15:51:51] karapetyan: has joined #ruby
[15:52:10] Dry_Lips: has joined #ruby
[15:52:10] Dry_Lips: has joined #ruby
[15:54:12] [Butch]: has joined #ruby
[15:55:17] shevy: don't worry, there are lots of things that come with old age - like wisdom!!! look at the ruby code written by old people it is PERFECT
[15:55:50] Regulati_: has joined #ruby
[15:57:22] 18WAASLIQ: has joined #ruby
[15:58:03] william3: has joined #ruby
[15:59:03] DoubleMalt: has joined #ruby
[16:00:45] ramfjord: has joined #ruby
[16:01:44] norc: has joined #ruby
[16:02:18] amclain: has joined #ruby
[16:02:28] armyriad: has joined #ruby
[16:04:09] xpt: has joined #ruby
[16:04:31] blaix: has joined #ruby
[16:07:33] stannard: has joined #ruby
[16:07:41] navneet: has joined #ruby
[16:08:04] speakingcode: has joined #ruby
[16:09:40] crime: im channeling my inner zed shaw and trying to join the army so i can ruby in my spare time. he has wisdom, right?
[16:10:02] s00pcan: has joined #ruby
[16:10:23] baweaver: has joined #ruby
[16:11:04] baweaver: has joined #ruby
[16:13:22] william3: has joined #ruby
[16:15:05] GinoMan2440: has joined #ruby
[16:15:21] Pumukel: has joined #ruby
[16:16:12] bronson: has joined #ruby
[16:16:46] Mon_Ouie: has joined #ruby
[16:17:42] Devalo: has joined #ruby
[16:18:11] davedev24: has joined #ruby
[16:18:33] crime: its funnier because i actually am doing that
[16:18:40] knamehost: has joined #ruby
[16:20:54] william3: has joined #ruby
[16:22:09] tAn: has joined #ruby
[16:22:56] salviaD: has joined #ruby
[16:23:08] salviaD: I am kinda lost, how do I install this https://github.com/vdaubry/youtube-multiple-dl ?
[16:24:36] shevy: salviaD the usage instruction says "Clone this repository; Bundle install; rake db:migrate"
[16:25:05] shevy: seems it got install issues too https://github.com/vdaubry/youtube-multiple-dl/issues/2
[16:25:13] salviaD: git clone ok, but " Bundle install" I dont have this command
[16:25:51] salviaD: hmm do you believe it is broken?
[16:25:58] smathy: Lower b, and if you don't have that `gem install bundler`
[16:26:01] blue_lizzard: has joined #ruby
[16:26:08] theunraveler: has joined #ruby
[16:26:16] smathy: salviaD, that README is assuming a certain amount of ruby knowledge.
[16:26:28] knamehost: has left #ruby: ("Leaving")
[16:26:40] smathy: ...see the Requirements too if you haven't already.
[16:28:52] salviaD: so my osx system has ruby 2.0.0 and brew install just installed ruby 2.3.0.... Yet Bundle is linked to system's ruby 2.0.0
[16:29:24] sandelius: has joined #ruby
[16:29:52] salviaD: on no... Your Ruby version is 2.3.0, but your Gemfile specified 2.2.0
[16:30:16] shevy: welcome to bundler!
[16:30:31] mlakewood: has joined #ruby
[16:30:42] smathy: salviaD, you should be able to change the Gemfile, a 2.2 app should work fine with 2.3
[16:30:49] salviaD: and that is what I call automagic
[16:31:21] Don_John: has joined #ruby
[16:31:29] Ishido: has joined #ruby
[16:31:36] shevy: in fairness, it really does not have many direct dependencies https://github.com/vdaubry/youtube-multiple-dl/blob/master/Gemfile
[16:31:36] workmad3: salviaD: gem binaries are installed with a wrapper script that points to the ruby they were installed under... so if you haven't installed bundler in ruby 2.3, your `bundle` binary will point to the system ruby you installed it with
[16:31:46] smathy: salviaD, ...if you continue to want to play with different versions of ruby then I'd recommend chruby or rbenv and their installation helpers ruby-install or ruby-build.
[16:31:55] symm-: has joined #ruby
[16:32:15] salviaD: workmad3: yep, I quickly imagined that, and my bundler is already linked to lastest ruby.
[16:32:48] deadnull: has joined #ruby
[16:32:52] shevy: hmm will pull in active* gems
[16:33:47] SCHAAP137: has joined #ruby
[16:35:08] deadnull: has joined #ruby
[16:35:11] yardenbar: has joined #ruby
[16:35:57] blackmesa: has joined #ruby
[16:36:22] salviaD: shevy: did you succeded? When I try to run the binarie: https://arin.ga/Qh7x4Z/raw
[16:36:26] terminalrecluse: has joined #ruby
[16:36:39] marr: has joined #ruby
[16:37:38] shevy: I did not try. I'd be way too lazy to modify anything and I am on ruby 2.3.0p0 (2015-12-25 revision 53290)
[16:37:38] ruby-lang403: has joined #ruby
[16:37:59] Vaevictus: has joined #ruby
[16:38:06] ruby614: has joined #ruby
[16:38:27] salviaD: why people wont write portable sutff
[16:38:27] Vaevictus: anyone do any scripting (expect like, perhaps) for ciscos over ssh ?
[16:38:29] tomphp: has joined #ruby
[16:38:59] armyriad: has joined #ruby
[16:39:02] shevy: salviaD I think many people can and do, the author probably did not have a lot of experience
[16:41:23] smathy: salviaD, I bet if you paid them then they'd do something to your specifications.
[16:41:30] smathy: ...it's a free sample app, sheesh.
[16:41:35] benlieb: has joined #ruby
[16:42:33] tomphp_: has joined #ruby
[16:42:39] salviaD: smathy: I am trying to run it, not modify it, and it seems that this wont install anywhere not the creator own computer
[16:42:56] kareeoleez: has joined #ruby
[16:42:59] salviaD: without a rewrite
[16:45:54] armyriad: has joined #ruby
[16:46:20] mfb2: has joined #ruby
[16:46:45] VeryBewitching: has joined #ruby
[16:48:41] Spami: has joined #ruby
[16:48:50] armyriad: has joined #ruby
[16:49:47] Xeago: has joined #ruby
[16:50:21] godzillaenlacasa: has joined #ruby
[16:50:22] Ropeney: has joined #ruby
[16:50:46] snockerton: has joined #ruby
[16:51:03] phoo1234567: Is there a better pasting site than pastebin.com for Ruby code?
[16:51:21] crime: Vaevictus: cisco recently open-sourced chez scheme, which they use themselves
[16:51:38] theRoUS: given an array of arrays, how can i get combinations from them? e.g., [[1,2],['a','b']].<method>(2) should return [[1,'a'],[1,'b'],[2,'a'],[2,'b']]
[16:51:40] toretore: phoo1234567: ?gist
[16:51:46] toretore: ?gist phoo1234567
[16:51:47] ruby[bot]: phoo1234567: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[16:51:55] theRoUS: i'm sure it's staring me in the face but my brain is num..
[16:52:04] phoo1234567: Thanks, toretore.
[16:52:06] theRoUS: numb, even
[16:52:16] skade: has joined #ruby
[16:52:26] dionysus69: has joined #ruby
[16:52:58] theRoUS: complicated by the number of arrays, and the number of elements in each sub-array, being unpredictable
[16:53:35] solars: has joined #ruby
[16:53:53] jaguarmagenta: has joined #ruby
[16:53:59] malconis: has joined #ruby
[16:54:16] Vaevictus: crime: i'll look into it
[16:54:25] theRoUS: whoa, #product -- derp!
[16:55:36] moeabdol: has joined #ruby
[16:55:59] Cohedrin: has joined #ruby
[16:56:19] al2o3-cr: salviaD: Does it run when you run `./bin/youtube-multiple-dl --help` from the youtube-multiple-dl directory?
[16:56:20] nando293921: has joined #ruby
[16:57:12] Polysics: has joined #ruby
[16:57:47] Polysics_: has joined #ruby
[16:57:50] salviaD: al2o3-cr: runs and exits with: https://arin.ga/Qh7x4Z/raw
[16:58:33] benlieb: has joined #ruby
[16:59:15] al2o3-cr: salviaD: you sure you're not executing from bin directory directly?
[17:00:05] bradleyprice: has joined #ruby
[17:00:09] Xeago: has joined #ruby
[17:00:13] weaksauce: has joined #ruby
[17:01:32] yardenbar: has joined #ruby
[17:01:36] nemoNoboru: has joined #ruby
[17:01:59] Cohedrin_: has joined #ruby
[17:02:46] salviaD: al2o3-cr: it is not installed on /bin ... I did a fulll find / -name youtube-multiple-dl and it is not installe anywhere else than inner bin directory of the project
[17:03:09] Synthead: has joined #ruby
[17:03:33] al2o3-cr: salviaD: works here: http://imgur.com/iL3sLvg
[17:03:41] Devalo: has joined #ruby
[17:03:42] nando293921: has joined #ruby
[17:03:48] Norrin: has left #ruby: ("Dueces")
[17:04:02] bradleyp_: has joined #ruby
[17:04:27] salviaD: al2o3-cr: hey ya.. maybe some osx incompatibility with the installation
[17:04:40] smathy: salviaD, installed and ran for me. I got an error on the download, but that seems well past where you got to. I'm on OSX too.
[17:05:53] Mia: has joined #ruby
[17:05:53] Mia: has joined #ruby
[17:06:45] n008f4g_: has joined #ruby
[17:07:14] salviaD: al2o3-cr: oh I did not understood your question.... I see, I am runnning from bin/youtube-multiple-dl dir and it works
[17:07:32] shevy: YOU DID IT!!!
[17:08:11] phoo1234567: I've been trying to learn the CSV capabilities in ruby and I can't seem to figure out how to get back to a CSV:Table from an array of CSV:Rows.
[17:08:21] phoo1234567: Here is a gist: https://gist.github.com/anonymous/de677118f02945fb6107767697af92ee
[17:08:56] phoo1234567: For me, this all stems from the fact that there is no sort_by! method.
[17:09:10] phoo1234567: And sort_by returns an array of CSV::Rows.
[17:09:13] ruby[bot]: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[17:09:41] phoo1234567: No, it's really not that, ruby[bot].
[17:10:06] phoo1234567: I'm trying to learn how to get back to a CSV::Table from an array of CSV:Rows.
[17:10:16] neha-: you'll never get help on irc
[17:10:30] neha-: poeple are obsessed with "What are you really trying to do"
[17:10:32] SilverKey: has joined #ruby
[17:10:39] neha-: they want to know your direction in life
[17:10:48] phoo1234567: Oh, neha-, thanks.
[17:10:48] neha-: and will recommend you not even program and become a farmer instead
[17:10:52] phoo1234567: Sorry for the noise.
[17:11:00] toretore: phoo1234567: what are you really trying to do?
[17:11:00] neha-: just saying from my experience
[17:11:21] toretore: that doesn't mean we're not right and everyone else is wrong
[17:11:37] mlakewood: has joined #ruby
[17:11:42] gizmore: has joined #ruby
[17:11:43] neha-: i wish i could start a room where people actually answered questions
[17:11:45] neha-: instead of all this BS
[17:11:57] neha-: maybe one day in the future :)
[17:12:05] PedramT: has joined #ruby
[17:12:20] toretore: it's obvious here that phoo1234567 doesn't know what they're doing, so to actually help them get the problem solved we need to know more information
[17:12:24] phoo1234567: toretore: I'm trying to import a CSV file, sort it and then work with it.
[17:12:34] smathy: neha-, you should totally do that, we'll send everyone who doesn't make sense to you.
[17:12:41] phoo1234567: Yes, toretore, beginner.
[17:13:00] smathy: neha-, because, y'know, screw what their actual problem is, let's just blindly answer literally what they're asking.
[17:13:11] toretore: phoo1234567: define "work with it"
[17:13:56] phoo1234567: Well, eventually, manipulate based on field contents, calculate means, standard deviations, ...
[17:14:02] mrgrieves: has joined #ruby
[17:14:19] phoo1234567: If I could just get past the CSV::Table hump, I can continue reading.
[17:14:34] blackmesa: has joined #ruby
[17:14:41] phoo1234567: I'm sorry if this was to silly and I'm sorry for the noise.
[17:14:45] phoo1234567: Thanks for trying.
[17:14:52] toretore: hey guys, i've got this gun pointing at my foot and i've tied it to a string. i'm trying to hunt for giraffes, but the string is too short, how can i make it longer so that it works?
[17:15:15] smathy: phoo1234567, have it your way, you can't get from a Row back to a Table.
[17:15:18] Mon_Ouie: Why would that require a CSV::Table? You can do map { |row| row["field"] }.reduce(0, :+) to calculate a sum, for example
[17:15:37] toretore: phoo1234567: i'd just convert everything into something that's not CSV::Anything
[17:15:44] skade: has joined #ruby
[17:16:24] phoo1234567: It was pretty easy to use the symbols to access the columns, but OK. I'll try another approach.
[17:16:42] phoo1234567: The data I have is in a tab delimited file, Mon_Ouie.
[17:16:56] toretore: data = csv.map{|r| r.map(&:to_s) }
[17:17:06] toretore: or something similar
[17:17:25] phoo1234567: OK, toretore, thanks for your help.
[17:17:40] smathy: Heh, we have a sickness, even when told not to address the actual problem we can't help ourselves.
[17:17:52] toretore: then you get an array of arrays with strings. it's easier to work with
[17:18:42] shmuli: has joined #ruby
[17:20:20] cschneid: has joined #ruby
[17:20:29] TomyWork: has joined #ruby
[17:21:09] giz|work: has joined #ruby
[17:22:58] crime: dang yall got salty
[17:23:58] phoo1234567: I'm afraid that was my fault...
[17:24:28] mdw: has joined #ruby
[17:24:33] phoo1234567: Oh, simple: csv3=CSV::Table.new(csv2).
[17:24:39] phoo1234567: Thanks for the nudge, smathy.
[17:25:00] jhack: has joined #ruby
[17:25:23] phoo1234567: I still wish I could sort the imported CSV in place.
[17:25:28] crime: i blame neha-
[17:25:32] phoo1234567: Maybe toretore's suggestion is best.
[17:25:46] smathy: ACTION wants no part of this insanity
[17:26:08] replay: has joined #ruby
[17:26:13] phoo1234567: No, smathy, I wasn't pointing fingers and I'm sorry if it appears that way.
[17:26:15] SCHAAP137: has joined #ruby
[17:26:29] phoo1234567: Boy, *rough* channel.
[17:26:57] phoo1234567: Is there a kindergarten ruby channel?
[17:27:15] ramfjord: has joined #ruby
[17:27:34] crime: wasnt there a learn-ruby or something like that at one point?
[17:27:51] phoo1234567: I didn't see it in /list but I'll look again.
[17:28:19] crime: well you can always ask here. nobody can fault you for trying to get better
[17:28:54] Yiota: has joined #ruby
[17:29:19] Macaveli: has joined #ruby
[17:30:06] phoo1234567: I've got pretty thick skin. Not a problem. I just don't like to generate too much noise.
[17:30:19] djbkd: has joined #ruby
[17:30:33] Xeago: has joined #ruby
[17:30:47] smathy: It's not about noise phoo1234567, it's about you asking a question that doesn't make sense and then resisting help from people trying to make sense of your problem.
[17:31:00] havenwood: phoo1234567: There's a ##new2ruby channel that's a smaller place specifically for new folk. Feel free to ask anything here as well!
[17:31:06] djbkd: has joined #ruby
[17:31:20] phoo1234567: Oh, I was completely unaware of my faux pas.
[17:31:35] phoo1234567: I didn't intend to resist anything but thanks for the heads up.
[17:31:54] phoo1234567: Thanks very much havenwood!
[17:31:59] smathy: phoo1234567, "how to get back to a CSV:Table from an array of CSV:Rows" is like asking something like: "I'm learning to drive, and I'm facing the wrong way on the freeway and so I need to know how to reverse faster"
[17:32:33] phoo1234567: Yes, I see that now. It was your nudge that made me understand that.
[17:32:48] smathy: ...that's why we asked what your actual problem was, but your reaction was "My actual problem is that I don't know how to reverse faster."
[17:33:18] smathy: phoo1234567, cool. Unfortunately neha-'s comments didn't make it any easier for you.
[17:33:20] neha-: has left #ruby: ("Textual IRC Client: http://www.textualapp.com/")
[17:33:44] skade: has joined #ruby
[17:33:48] phoo1234567: Meh... I've been around IRC for a long time. I understand the nuances.
[17:33:57] phoo1234567: And thanks again for the help.
[17:34:23] phoo1234567: I'll check out the kindergarten havenwood suggested.
[17:34:51] smathy: ...but still I think you should go further and do it the way toretore suggested, the CSV module is really just for the IO for csv files, you don't get great data structures for manipulating the data.
[17:35:33] phoo1234567: Yes, I'm already on that path. I thought the CSV stuff was the right way to go based on the web reading I did.
[17:35:55] phoo1234567: It did seem to solve the header interpretation.
[17:36:03] last_staff: has joined #ruby
[17:36:09] phoo1234567: Lunch time over. Back to the grind.
[17:36:21] william3: has joined #ruby
[17:36:24] karapetyan: has joined #ruby
[17:36:35] william3: has joined #ruby
[17:37:38] baweaver: has joined #ruby
[17:37:56] synthroid: has joined #ruby
[17:39:15] toretore: phoo1234567: you can actually do what you want with `csv2 = CSV::Table.new(csv1.sort_by{ whatever })`
[17:39:24] blaix: has joined #ruby
[17:39:34] roelof: has joined #ruby
[17:39:38] toretore: it's just that CSV::Table doesn't implement a mutable `sort!`
[17:40:17] roelof: how can I make the seconds avaible in the time_string method. @seconds give nill. Code so far : http://lpaste.net/161610
[17:40:19] phoo1234567: Yes, that's how I got to this point and I couldn't see the forest through the trees.
[17:40:20] toretore: or a `sort` for that matter; this method comes from Enumerable which doesn't know what a CSV::Table is and always returns an Array
[17:40:58] phoo1234567: Thanks for taking the extra time to help me out, toretore.
[17:41:36] mikecmpbll: has joined #ruby
[17:41:46] toretore: np, you were quite reasonable. a lot of people aren't
[17:42:53] phoo1234567: Sweet! No more temp variable csv3.
[17:42:58] toretore: roelof: do you understand the difference between `self.seconds` and `@seconds`
[17:43:29] roelof: I thougth I knew the difference but now I doubt that
[17:43:45] roelof: @seconds is a instance variable
[17:44:07] toretore: secondly, do you understand at what point @seconds gets set to a value (0) ?
[17:44:33] roelof: self is pointing to the class so self.seconds should be the same as timer.seconds, right ?
[17:44:45] toretore: roelof: thirdly, do you know how an uninitialized instance variable behaves?
[17:44:57] roelof: toretore: yep, at the seconds function
[17:45:32] toretore: re #1, instance and @timer but close enough
[17:45:36] roelof: I think a unintialized variable is always nill
[17:46:12] toretore: where in your code does the `seconds` method get called?
[17:46:37] roelof: oops, nowwhere
[17:47:06] roelof: so i have to think how I schould call it so I see the seconds part, right ?
[17:47:10] toretore: your attr_accessor is useless too because you're overwriting `seconds` and `seconds=`
[17:48:06] Trieste: has joined #ruby
[17:48:41] roelof: toretore: oke, when I do self.seconds the output is 0
[17:48:58] yardenbar: has joined #ruby
[17:49:04] TomyLobo: has joined #ruby
[17:50:49] emilford: has joined #ruby
[17:52:27] shevy: hmm what does this https://github.com/ruby/ruby/blob/trunk/ChangeLog#L23 mean? will we no longer have Bignum?
[17:52:47] djbkd: has joined #ruby
[17:54:09] RegulationD: has joined #ruby
[17:55:02] roelof: toretore: I think I need seconds= function somehow to change. Can you give me a tip ?
[17:56:46] JakFrist: has joined #ruby
[17:57:32] Xeago: has joined #ruby
[17:58:11] jfutbol: has joined #ruby
[17:59:58] roelof: oke, this seems to be promosing : http://lpaste.net/161614 . I hope someone can give me a hint how I can make @timer.second a argument to this part : self.seconds=(0)
[18:01:19] kirun: has joined #ruby
[18:01:23] karapetyan: has joined #ruby
[18:03:07] roelof: toretore: is this a good solution : http://lpaste.net/161614
[18:04:22] pawnbox: has joined #ruby
[18:04:30] toretore: roelof: what is it supposed to do?
[18:04:32] n008f4g_: has joined #ruby
[18:04:49] tildes: has joined #ruby
[18:05:02] tvw: has joined #ruby
[18:05:07] roelof: I have to convert the number zero to "00:00:00"
[18:05:31] roelof: its a challenge of learn ruby which I found on github
[18:06:00] baweaver: has joined #ruby
[18:06:09] roelof: I can now check the contents of seconds so the next step will be make the desired layout
[18:06:12] toretore: describe in detail what your code does
[18:06:21] toretore: (hint: it's wrong)
[18:06:42] Devalo: has joined #ruby
[18:07:06] roelof: toretore: the function seconds set the timer to zero . line 3 - 5
[18:07:58] roelof: the function seconds= I can set the instance variable to a certain number which I want to convert . line 7 - 9
[18:08:44] theRealAlexz: has joined #ruby
[18:08:47] roelof: on line 12 I try to read the instance variable so I can check it's value to make the desired output.
[18:08:48] p0p0pr37_: has joined #ruby
[18:09:59] toretore: roelof: line 12 and 18 call the same method
[18:10:02] patrick99e99: has joined #ruby
[18:10:44] roelof: I thought that is what you mean. Line 18 I have copied from the Rspec file
[18:11:32] thomashaw: has joined #ruby
[18:11:34] chouhoulis: has joined #ruby
[18:12:05] toretore: roelof: don't copy stuff into your program
[18:12:20] toretore: write it line by line and make sure you understand what each line does
[18:12:24] patrick99e99: Hey everyone, I've got some code that has some special behavior for file objects, and am wondering if there's a handy way to test for a file? seems like I have to do is_a?(File) || is_a?(Tempfile) ... but I hate that.. I could do something like .respond_to?(:close), but I don't really like that either...
[18:12:30] roelof: toretore: oke, I can change it to : seconds = seconds=(@seconds) so the variabel seconds holds now the new value
[18:12:54] pawnbox: has joined #ruby
[18:12:56] tildes: has joined #ruby
[18:13:03] toretore: roelof: you are lacking some very basic understanding of how ruby works, i suggest you read a book or some tutorials
[18:13:07] nofacade: has joined #ruby
[18:14:29] roelof: toretore: Im doing ruby monk , I did finisched the Primer and doing now the Primer Ascent stuff
[18:15:01] toretore: i don't know what that is, but you have to actually read something that explains how things work
[18:15:41] toretore: not just do "challenges" or whatever without reading first
[18:16:24] toretore: patrick99e99: usually what you want is to test if something is an IO
[18:16:35] chouhoul_: has joined #ruby
[18:16:55] toretore: patrick99e99: but this is difficult to know without knowing the context
[18:17:05] synthroid: has joined #ruby
[18:17:32] roelof: toretore: oke, thanks for the help. I will look for a good ruby book
[18:18:09] bronson: has joined #ruby
[18:19:36] weemsledeux: has joined #ruby
[18:19:50] cyanboy: has joined #ruby
[18:20:07] roelof: toretore: is this a good book : http://www.amazon.com/gp/product/1933988657/ref=as_li_ss_tl?ie=UTF8&tag=mediumequalsm-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=1933988657
[18:20:17] patrick99e99: toretore: Tempfile.new('foo').kind_of?(IO) #=> false
[18:20:53] toretore: patrick99e99: right
[18:21:07] baweaver: has joined #ruby
[18:21:13] toretore: patrick99e99: as i said, it's difficult to give advice without knowing the broader context
[18:21:24] sandelius: roelof I really liked http://www.confidentruby.com/
[18:22:13] patrick99e99: toretore: well, its hard to give broader context other than, I have a method that takes an object, and if it's a file (one that can have .read) called on it, then I need to branch off and do different behavior.
[18:22:17] patrick99e99: maybe I should just do respond_to(:read)
[18:22:52] elifoster: has joined #ruby
[18:23:01] jaruga___: has joined #ruby
[18:23:08] bob434: has joined #ruby
[18:23:22] adaedra: The problem is Tempfile which is a delegator
[18:24:00] toretore: patrick99e99: if you expect an object that responds to read with certain arguments and returns certain data then yes
[18:24:27] Spami: has joined #ruby
[18:24:35] SilverKey: has joined #ruby
[18:26:20] toretore: patrick99e99: why do you have to have this branch though?
[18:27:07] mjuszczak: has joined #ruby
[18:30:31] Log1x: has joined #ruby
[18:30:47] baweaver: sandelius: roelof: Much of anything written by avdi is worth a look. Also consider looking into his Ruby Tapas series
[18:31:24] x77686d: has joined #ruby
[18:31:46] baweaver: Also the blog has some good reads - http://devblog.avdi.org/
[18:31:51] jackjackdripper: has joined #ruby
[18:31:58] jackjackdripper1: has joined #ruby
[18:32:37] roelof: baweaver: thanks
[18:32:37] patrick99e99: toretore: have to be able to do the nonsense to setup Net::HTTP to use multipart/form-data when a file is given to my http wrapper client
[18:32:49] codecop: has joined #ruby
[18:32:53] moei: has joined #ruby
[18:33:04] salviaD: has left #ruby: ()
[18:33:14] baweaver: As far as other print books: Eloquent Ruby, Practical Object Oriented Development in Ruby, Effective Ruby
[18:33:54] jaruga___: has joined #ruby
[18:34:00] baweaver: Eloquent will cover a lot of writing Ruby like Ruby, POODR gets into OO concepts heavily, and Effective is a series that focuses on professional tips and tricks of dealing with a language
[18:34:06] baweaver: Effective Python is great too.
[18:34:18] Dimik1: has joined #ruby
[18:34:32] roshanavand: has joined #ruby
[18:34:56] baweaver: (* in reference to the Effective series, they're great books overall for any language)
[18:35:19] newjersey: has joined #ruby
[18:36:05] baweaver: big thing though, as mentioned above as well, is to not copy and paste code you find. Try and do it from memory as much as possible, then go to docs.
[18:36:33] baweaver: if the goal is learning, see if you can figure something out rather than look for a solution immediately
[18:36:46] baweaver: after you come up with one, then look up and compare
[18:38:47] failshell: has joined #ruby
[18:38:58] Devalo: has joined #ruby
[18:41:33] jenrzzz: has joined #ruby
[18:42:12] djbkd: has joined #ruby
[18:42:57] vondruch: has joined #ruby
[18:43:09] weaksauce: I love eloquent ruby
[18:43:30] crime: baweaver with that avdi promotion, wow
[18:43:52] baweaver: crime: be nice.
[18:44:00] crime: arent I always?
[18:44:28] crime: maybe its a cultural malalignment
[18:44:36] crime: misalignment?
[18:44:47] crime: i meant what you knew tho
[18:44:49] shinnya: has joined #ruby
[18:45:19] crime: so thats only three people thank think im not a kind and gentle soul
[18:45:22] RegulationD: has joined #ruby
[18:45:29] crime: if we work as a team im sure we could gather up thousands
[18:45:35] mustmodify: three for three.
[18:45:39] mustmodify: just saying.
[18:45:49] crime: yeah definitely, i got good numbers, good percentages
[18:46:11] crime: id say this is an optimal scenario
[18:46:43] RegulationD: has joined #ruby
[18:47:14] aspiers_: has joined #ruby
[18:47:15] Infra-Red: has joined #ruby
[18:48:31] crime: so idk if you guys have ever been to ##ruby, but it's worth it for the cringe-factor alone.
[18:48:33] crime: pretty great
[18:49:59] banister: has joined #ruby
[18:50:38] baweaver: If I didn't know any better I'd think you had a highlighter on their name
[18:50:56] LoneHerm_: has joined #ruby
[18:50:56] yfeldblum: has joined #ruby
[18:50:56] snebel: has joined #ruby
[18:50:57] GinoMan2440_: has joined #ruby
[18:51:12] Cohedrin: has joined #ruby
[18:51:47] snebel_: has joined #ruby
[18:51:50] baweaver: They write good content, and one of their books was mentioned earlier. I see no reason to not mention it.
[18:52:11] baweaver: The same as I tend to mention Radar/ssc's Rails book in the Rails channel when resources are asked for.
[18:52:38] spider-mario: has joined #ruby
[18:52:43] baweaver: if you continue to obsess over avdi, or any mention thereof, I will not hesitate to ban you
[18:52:55] minimalism: has joined #ruby
[18:54:03] crime: i didnt say anything inappropriate
[18:54:21] crime: and i cant be restricted from talking about a highly prominent ruby community figure
[18:54:27] ferr: has joined #ruby
[18:54:29] crime: tens of thousands of people read him
[18:54:37] jaguarmagenta: has joined #ruby
[18:54:51] baweaver: you were already rude towards them yesterday
[18:55:09] crime: so? that doesnt mean I can never mention that person ever again
[18:55:14] roshanavand: has joined #ruby
[18:55:31] crime: i was warned or w/e yesterday, and have refrained from direct harrassment so far today. no harm done
[18:55:58] mrgrieve1: has joined #ruby
[18:56:06] crime: do you feel that I have harrassed anybody in here today? whether direct or not
[18:56:09] crime: name them
[18:56:33] crime: I'll issue an Official Crime Apology (TM)
[18:56:38] shevy: come on people!
[18:57:34] baweaver: It was heavily implied in the endorsement comment.
[18:57:49] baweaver: but in any case, lunch time for me.
[18:58:37] jaruga___: has joined #ruby
[18:58:40] roelof: Thanks all for the explanation and have a good day/evening
[18:58:46] crime: heavily implied? I was only making an observation
[18:59:06] crime: if I was going to talk shit about you endorsing his material, I can come up with something way snarkier than "check it out"
[18:59:36] crime: I endorse plenty of rubyists myself, even work of avdi's when necessary
[18:59:42] skade: has joined #ruby
[19:01:44] dhollinger: has joined #ruby
[19:03:03] platzhirsch: has joined #ruby
[19:03:42] nofxx: has joined #ruby
[19:03:43] nofxx: has joined #ruby
[19:04:22] Uptime: has joined #ruby
[19:04:49] smathy: crime, even now your choice of words is ambiguous at best, how about instead of "promote" and "endorse" (which both are commonly used to mean a statement has been financially incentivized) you use "recommend" which has no such connotation.
[19:05:03] jackjackdripper: has joined #ruby
[19:05:18] crime: i strongly disavow any claims that I'm paid for my ruby contributions
[19:05:27] smathy: ...then no one will misunderstand your noble intentions.
[19:05:38] crime: if that is the case, I will recommend things from now on
[19:05:52] crime: encourage consideration of?
[19:06:09] havenwood: I endorse moving this convo to #ruby-offtopic or #ruby-community so this channel can be used to discuss Ruby!
[19:06:20] smathy: crime, you are free to use whatever word you like in reference to your own statements, but when commenting on the statements of others let's use "recommend" instead of "promote" and "endorse".
[19:06:30] smathy: Thanks havenwood - timely reminder.
[19:07:16] crime: wait, so havenwood gets paid to mention offtopic then?
[19:07:28] havenwood: ?offtopic crime
[19:07:28] ruby[bot]: crime: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[19:08:11] jackjackdripper1: has joined #ruby
[19:08:25] karapetyan: has joined #ruby
[19:08:57] karapetyan: has joined #ruby
[19:09:25] Uptime: has left #ruby: ("I guess that's how it's post to be.")
[19:10:26] ferr: has joined #ruby
[19:11:49] baweaver: has joined #ruby
[19:12:50] deadnull: has joined #ruby
[19:13:41] IrishGringo: has joined #ruby
[19:14:17] bob434: has joined #ruby
[19:14:23] crime: ladies and gentleman, ###ruby has been created to service the greater ruby community. no rules, no one to hold you back or regulate you. enjoy it or dont.
[19:14:44] devbug: has joined #ruby
[19:14:56] shevy: so many #
[19:15:03] deadnull: has joined #ruby
[19:16:24] crime: its strategically engineering to resist potential influence from this very channel, necessitating the ###
[19:16:40] sdothum: has joined #ruby
[19:16:56] benlieb: has joined #ruby
[19:18:58] chouhoulis: has joined #ruby
[19:20:49] n008f4g_: has joined #ruby
[19:24:05] Polysics: has joined #ruby
[19:24:42] baweaver: has joined #ruby
[19:25:02] Zomber: has joined #ruby
[19:27:09] pawnbox: has joined #ruby
[19:27:43] flashpoi_: has joined #ruby
[19:28:02] adaedra: I need somebody
[19:28:03] ruby[bot]: Zomber: You can find a list of my commands on http://ruby-community.com/ruboto/commands and my factoids on http://ruby-community.com/ruboto/facts
[19:29:12] Polysics_: has joined #ruby
[19:30:21] Zomber: ello good look I have a channel and fuende I know how to put quisera and I am a staff say Zomber @ linuayuda / staff / Zomber
[19:30:25] tildes: has joined #ruby
[19:30:34] rdark: has joined #ruby
[19:30:34] rdark: has joined #ruby
[19:30:44] baweaver: !troll Zomber
[19:30:44] ruby[bot]: +bbb $a:Zomber$#ruby-banned Zomber!*@*$#ruby-banned *!*@176.1.229.198.in-addr.arpa$#ruby-banned
[19:30:44] ruby[bot]: ruby[bot] kicked Zomber: is a bannable offense, see http://ruby-community.com/pages/user_rules
[19:30:45] adaedra: !spam Zomber
[19:32:19] bob434: has joined #ruby
[19:32:25] bronson: has joined #ruby
[19:32:27] sandelius: I'm not much of a javascript guy but did a simple benchmark to test the speed of node's interpreter. It turns out that's not faster than Ruby? I know all about the async IO but people also say it's fast. Am I missing something?
[19:32:36] aegis3121: has joined #ruby
[19:33:17] adaedra: Yes, the fact that raw benchmarks are kind of irrelevant.
[19:33:46] Papierkorb: sandelius: micro benchmarks are only helpful if that problem they solve is the exact problem you want to solve, which is rarely the case.
[19:33:46] sandelius: adaedra it's not if it prove people are wrong
[19:34:08] sandelius: I was trying the interpreter speed, not if it "scales"
[19:34:23] adaedra: the interpreter speed? What does it mean?
[19:34:27] htmldrum: has joined #ruby
[19:34:27] adaedra: The speed when doing what?
[19:34:39] adaedra: Also, what people, wrong about what?
[19:34:52] sandelius: adaedra different things, sorting arrays, some math, bla bla. no IO
[19:35:04] crime: has joined #ruby
[19:38:59] nton: has joined #ruby
[19:41:03] Durin_: has joined #ruby
[19:41:10] Emmanuel_Chanel: has joined #ruby
[19:41:17] flashpoint9: has joined #ruby
[19:41:32] blue_lizzard: has joined #ruby
[19:42:29] Devalo: has joined #ruby
[19:42:41] chouhoulis: has joined #ruby
[19:42:47] ruby[bot]: +bbb $a:crime$#ruby-banned crime!*@*$#ruby-banned *!*@65.88.88.156$#ruby-banned
[19:42:47] ruby[bot]: ruby[bot] kicked crime:
[19:43:54] xxneolithicxx: has joined #ruby
[19:44:56] Dimik: has joined #ruby
[19:45:56] w1lson: has joined #ruby
[19:46:22] Xeago: has joined #ruby
[19:46:46] shevy: sandelius they don't know either :)
[19:46:55] Dimik1: has joined #ruby
[19:47:00] kareeoleez: has joined #ruby
[19:47:36] sandelius: shevy got that :)
[19:48:01] JBlazeCoder21: has joined #ruby
[19:48:17] moeabdol: has joined #ruby
[19:48:49] d5sx43: has joined #ruby
[19:49:11] blue_lizzard: Which ruby runs on the android platform (I don't care so much about Apple iOS).
[19:49:53] apeiros: blue_lizzard: iirc it's called ruboto
[19:50:04] smathy: blue_lizzard, https://play.google.com/store/apps/details?id=org.ruboto.irb&hl=en
[19:50:07] adaedra: Poor Windows Phone is always forgotten.
[19:50:12] smathy: First google result ^
[19:50:13] sandelius: http://www.rubymotion.com/
[19:51:00] xpt: no no! you use bing for windows related stuff
[19:51:43] blue_lizzard: smathy: It just seems there are various options for this, and I didn't know what the canonical one was
[19:52:32] JakFrist: has joined #ruby
[19:52:46] symm-: has joined #ruby
[19:53:24] smathy: blue_lizzard, yep, understood, it's that one.
[19:55:24] benlieb: has joined #ruby
[19:55:31] deadnull: has joined #ruby
[19:56:21] agent_white: has joined #ruby
[19:56:45] malconis: has joined #ruby
[20:01:18] skade: has joined #ruby
[20:01:21] yardenbar: has joined #ruby
[20:01:45] jenrzzz: has joined #ruby
[20:01:46] jenrzzz: has joined #ruby
[20:01:58] IrishGringo: has joined #ruby
[20:02:04] diegoviola: has joined #ruby
[20:02:47] djbkd: has joined #ruby
[20:02:55] Tharbakim: has joined #ruby
[20:04:23] devyn: has joined #ruby
[20:04:44] newjersey: has joined #ruby
[20:04:56] terlar: has joined #ruby
[20:04:57] GodFather: has joined #ruby
[20:06:04] zacts: has joined #ruby
[20:07:16] hxegon: has joined #ruby
[20:11:33] gizless: has joined #ruby
[20:11:53] blackmesa: has joined #ruby
[20:14:02] nfk: has joined #ruby
[20:14:11] Xeago: has joined #ruby
[20:14:34] sneakerhax: has joined #ruby
[20:14:55] _aeris_: has joined #ruby
[20:15:41] deadnull: has joined #ruby
[20:17:15] n008f4g_: has joined #ruby
[20:18:03] bob434: has joined #ruby
[20:18:37] cdg: has joined #ruby
[20:19:30] jonr22: has joined #ruby
[20:20:14] Polysics: has joined #ruby
[20:20:15] Xeago: has joined #ruby
[20:20:44] deadnull: has joined #ruby
[20:22:50] gizmore: has joined #ruby
[20:22:52] deadnull: has joined #ruby
[20:25:19] gizmore|2: has joined #ruby
[20:25:20] brent__: has joined #ruby
[20:25:31] chosen1: has joined #ruby
[20:25:34] ged: has joined #ruby
[20:25:59] firstdayonthejob: has joined #ruby
[20:26:47] gizless: has joined #ruby
[20:28:01] mahlon: has joined #ruby
[20:29:55] zacts: hi rubyists
[20:30:36] hxegon: has joined #ruby
[20:31:04] blackgoat: has joined #ruby
[20:31:30] mdw: has joined #ruby
[20:31:46] priodev: has joined #ruby
[20:33:39] sandelius: has joined #ruby
[20:34:40] djbkd: has joined #ruby
[20:34:45] fragtastic: has joined #ruby
[20:34:57] vF3hNGxc47h8: has joined #ruby
[20:35:20] jfutbol: has joined #ruby
[20:36:54] wuyin: has joined #ruby
[20:37:07] Uranio: has joined #ruby
[20:37:50] whiteline_: has joined #ruby
[20:39:01] LoneHerm_: has joined #ruby
[20:39:53] gizmore: has joined #ruby
[20:41:17] lkba: has joined #ruby
[20:41:24] Jonah11_: has joined #ruby
[20:42:05] nando293921: has joined #ruby
[20:43:30] failshell: has joined #ruby
[20:46:25] x77686d: has joined #ruby
[20:46:39] joast: has joined #ruby
[20:47:09] djbkd: has joined #ruby
[20:48:23] gizless: has joined #ruby
[20:48:51] rbennacer: has joined #ruby
[20:49:10] malconis: has joined #ruby
[20:49:14] roshanavand: has joined #ruby
[20:49:40] djbkd: has joined #ruby
[20:52:47] mjuszczak: has joined #ruby
[20:52:48] jww_42__: has joined #ruby
[20:52:58] phaza: has joined #ruby
[20:53:21] pawnbox: has joined #ruby
[20:53:24] tsherman: has joined #ruby
[20:53:47] freerobby: has joined #ruby
[20:54:00] Macaveli: has joined #ruby
[20:55:21] jaguarmagenta: has joined #ruby
[20:56:37] nando294021: has joined #ruby
[20:57:59] Jonah11_: has joined #ruby
[20:58:41] ilv1: has joined #ruby
[21:01:06] karapetyan: has joined #ruby
[21:01:26] ilv1: has left #ruby: ()
[21:01:55] tubuliferous: has joined #ruby
[21:03:43] blaix: has joined #ruby
[21:04:19] Xeago: has joined #ruby
[21:04:48] ur5us: has joined #ruby
[21:06:19] Trynemjoel: has joined #ruby
[21:08:19] phaza: has joined #ruby
[21:08:49] mary5030: has joined #ruby
[21:09:50] bob434: has joined #ruby
[21:09:52] baweaver: has joined #ruby
[21:12:04] w1lson: has joined #ruby
[21:12:32] gizmore: has joined #ruby
[21:13:00] moei: has joined #ruby
[21:14:01] bronson: has joined #ruby
[21:14:31] JakFrist: has joined #ruby
[21:14:50] dmr8: has joined #ruby
[21:16:36] emilford: has joined #ruby
[21:17:27] gizless: has joined #ruby
[21:18:23] allcentury: has joined #ruby
[21:21:10] diegoaguilar: has joined #ruby
[21:23:18] benlieb: has joined #ruby
[21:23:19] Yiota: has joined #ruby
[21:23:22] yfeldblum: has joined #ruby
[21:23:37] edwinvdgraaf: has joined #ruby
[21:27:10] mrgrieves: has joined #ruby
[21:27:50] frem_: has joined #ruby
[21:28:51] S1kx: has joined #ruby
[21:31:06] perlgod: has joined #ruby
[21:32:55] JBlazeCoder21: has joined #ruby
[21:33:21] mdw: has joined #ruby
[21:34:35] nikger: has joined #ruby
[21:35:28] Waqas: has joined #ruby
[21:35:57] neggir: has joined #ruby
[21:37:09] ruby-lang438: has joined #ruby
[21:37:30] Jonah11_: has joined #ruby
[21:37:44] Madplatypus: has joined #ruby
[21:38:22] tsherman: has joined #ruby
[21:39:09] havenwood: ruby-lang438: hi
[21:39:17] Yiota: has joined #ruby
[21:41:03] zacts: has joined #ruby
[21:43:20] garethrees: has joined #ruby
[21:44:32] mclong: has joined #ruby
[21:44:46] htmldrum: has joined #ruby
[21:47:53] Azure: has joined #ruby
[21:48:08] alexherbo2: has joined #ruby
[21:48:56] bob434: has joined #ruby
[21:52:26] nullFxn: has joined #ruby
[21:53:52] ledestin: has joined #ruby
[21:54:33] baweaver: !troll NEGGIR
[21:54:33] SilverKey: has joined #ruby
[21:54:33] ruby[bot]: +bbb nikger!*@*$#ruby-banned NEGGIR!*@*$#ruby-banned *!*@172.56.40.79$#ruby-banned
[21:54:33] ruby[bot]: ruby[bot] kicked NEGGIR: is a bannable offense, see http://ruby-community.com/pages/user_rules
[21:54:42] pythoninthegrass: has joined #ruby
[21:54:42] ruby[bot]: -b diggernick!*@*$#ruby-banned
[21:57:16] IrishGringo: has joined #ruby
[21:57:41] minimalism: has joined #ruby
[22:00:39] aspiers_: has joined #ruby
[22:01:12] deadnull: has joined #ruby
[22:01:49] skade: has joined #ruby
[22:02:24] joast: has joined #ruby
[22:06:10] gregf: has joined #ruby
[22:07:38] nullFxn: has joined #ruby
[22:10:09] tax: has joined #ruby
[22:13:24] nullFxn: has joined #ruby
[22:14:56] n008f4g_: has joined #ruby
[22:16:22] nullFxn: has joined #ruby
[22:16:34] ChiefAlexander: has joined #ruby
[22:19:07] jenrzzz: has joined #ruby
[22:20:47] nullFxn: has joined #ruby
[22:27:12] LoneHerm_: has joined #ruby
[22:28:57] gregf: has joined #ruby
[22:33:45] bronson: has joined #ruby
[22:34:13] GinoMan2440: has joined #ruby
[22:35:17] william3: has joined #ruby
[22:35:48] x77686d: has joined #ruby
[22:37:36] zenlot: has joined #ruby
[22:50:05] lkba_: has joined #ruby
[22:55:21] benlieb: has joined #ruby
[22:56:05] jaguarmagenta: has joined #ruby
[22:56:24] duoi: has joined #ruby
[22:58:31] eggoez: has joined #ruby
[22:58:59] duderonomy: has joined #ruby
[22:59:00] rickmasta: has joined #ruby
[22:59:23] devbug: has joined #ruby
[23:01:38] allcentury: has joined #ruby
[23:08:15] ejnahc: has joined #ruby
[23:09:50] benzrf: ... why did it just unban """diggernick"""
[23:11:58] bobbycvi: has joined #ruby
[23:13:12] dorje: has joined #ruby
[23:14:18] baweaver: has joined #ruby
[23:14:56] lacuna: has joined #ruby
[23:15:42] akkad: band benzrf for saying it
[23:15:58] SilverKey: has joined #ruby
[23:17:13] weemsledeux: has joined #ruby
[23:17:36] tvon: has joined #ruby
[23:19:42] chipotle: has joined #ruby
[23:20:11] smathy: ?offtopic benzrf akkad
[23:20:12] ruby[bot]: benzrf: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
[23:20:49] benlieb: has joined #ruby
[23:22:18] RahulT: has joined #ruby
[23:23:09] gregf: has joined #ruby
[23:23:11] axisys: has joined #ruby
[23:26:38] xcesariox: has joined #ruby
[23:27:21] bzb: has joined #ruby
[23:28:09] Arcaire: smathy pls
[23:28:43] Arcaire: we have a !troll command? wut
[23:29:23] zenlot: has joined #ruby
[23:32:09] Vile`: has joined #ruby
[23:32:27] moeabdol: has joined #ruby
[23:33:18] swills: has joined #ruby
[23:34:32] ChiefAlexander: has joined #ruby
[23:35:20] _wwwbukolaycom: has joined #ruby
[23:35:25] robbyoconnor: has joined #ruby
[23:36:54] william3: has joined #ruby
[23:37:28] johnmilton: has joined #ruby
[23:40:19] rickmasta: has joined #ruby
[23:41:11] gregf: has joined #ruby
[23:41:30] bronson: has joined #ruby
[23:41:49] valeri_ufo: has joined #ruby
[23:42:14] banister: has joined #ruby
[23:46:07] ChiefAlexander: has joined #ruby
[23:47:18] graft: that seems pretty powerful
[23:47:32] graft: you can just summarily ban anyone by labeling them a troll?
[23:47:51] wnd: has joined #ruby
[23:47:57] graft: who runs this show anyway?
[23:48:10] graft: ACTION looks behind the curtain
[23:49:57] rkazak: has joined #ruby
[23:50:44] brianpWins: has joined #ruby
[23:52:36] eam: Supreme executive power derives from a mandate from the masses, not from some f\
[23:52:37] eam: arcical aquatic ceremony
[23:52:43] Arcaire: graft: i'd imagine it's oper only
[23:52:46] Arcaire: but yes, they can
[23:52:50] Arcaire: and /cs info will give you a list
[23:52:55] Arcaire: /cs info #ruby
[23:53:46] eam: Ah, now we see the violence inherent in the system.
[23:54:52] aspiers_: has joined #ruby
[23:55:20] johnmilton: has joined #ruby
[23:59:47] ChiefAlexander: has joined #ruby