« Back to channel list

#ruby - 22 March 2016

« Back 1 day Forward 1 day »
[00:04:54] ramfjord: has joined #ruby
[00:06:38] JoshGlzBrk: has joined #ruby
[00:08:55] kies: has joined #ruby
[00:09:27] trosborn: has joined #ruby
[00:16:05] siaW: has joined #ruby
[00:18:11] baweaver: has joined #ruby
[00:20:57] jpfuentes2: has joined #ruby
[00:22:34] jackjackdripper1: has joined #ruby
[00:24:05] jamil: has joined #ruby
[00:25:37] Musashi007: has joined #ruby
[00:25:51] th0m_: has joined #ruby
[00:26:38] Rutix`away: has joined #ruby
[00:26:38] Rutix`away: has joined #ruby
[00:26:39] clorisu: has joined #ruby
[00:27:39] rht: has joined #ruby
[00:27:55] bezhermoso: has joined #ruby
[00:28:21] icesmurf: has joined #ruby
[00:28:22] oz: has joined #ruby
[00:28:39] rickmasta: has joined #ruby
[00:28:59] baweaver: has joined #ruby
[00:29:42] resno: has joined #ruby
[00:29:53] hydrajump: has left #ruby: ("WeeChat 0.4.3")
[00:33:17] hiljusti: has joined #ruby
[00:33:46] citrusfizz: has joined #ruby
[00:35:28] uglybandersnatch: has joined #ruby
[00:37:14] varesa_: has joined #ruby
[00:37:45] citrusfizz: Hello, i have many arrays that looks like this array1 = [{"name"=>"ec2:Name=FD_PrintServices_01 #20"}, {"name"=>"ec2:fd-application=RDP"}, {"name"=>"ec2:fd-org-id=3602"}, {"name"=>"ec2:fd-project-code=Remote Desktop Services Print - Stores"}] i'm trying to figure out how to find if "ec2:fd-org-id=3602" exists in that response like array1.some_method_i_can't_seem_to_f
[00:37:46] citrusfizz: igure_out('ec2:fd-org-id=3602')
[00:39:46] i: has joined #ruby
[00:41:55] SG045734: has joined #ruby
[00:42:26] y2mq37: has joined #ruby
[00:43:01] havenwood: citrusfizz: array1.any? { |h| h['name'] == 'ec2:fd-org-id=3602' }
[00:43:17] stannard: has joined #ruby
[00:44:16] SG045734_: has joined #ruby
[00:45:17] citrusfizz: thanks havenwood
[00:45:24] havenwood: citrusfizz: you're welcome
[00:47:31] elifoster: has joined #ruby
[00:47:34] lessless: has joined #ruby
[00:47:58] htmldrum_: has joined #ruby
[00:47:59] htmldrum: has joined #ruby
[00:48:30] cdg: has joined #ruby
[00:49:28] ur5us: has joined #ruby
[00:49:55] ur5us: has joined #ruby
[00:50:23] mostlybadfly: has joined #ruby
[00:50:31] resno: has joined #ruby
[00:51:09] tubuliferous: has joined #ruby
[00:54:43] rmulligan: has joined #ruby
[00:58:03] zacts: has joined #ruby
[00:59:37] clorisu: are objects that go inside () classified as 'arguments' or 'attributes' or both? i'm confused
[00:59:38] clorisu: or neither?
[00:59:50] shevy: arguments
[01:00:13] trosborn: has joined #ruby
[01:00:32] shevy: you reading some article that uses "attributes"?
[01:00:50] rgb-one: has joined #ruby
[01:01:50] yatish27: has joined #ruby
[01:02:38] rgb-one: Could someone guide me with this project https://gist.github.com/rgb-one/3cf0a72122c444d4b7c9#file-project-entelope-txt
[01:02:52] Radar: rgb-one: seems like homework
[01:03:13] havenwood: clorisu: I usually see "arguments" or "parameters" or abbreviations thereof.
[01:03:15] Radar: ?homework
[01:03:16] ruby[bot]: Radar: I don't know anything about homework
[01:03:23] Radar: ruby[bot]: shifty eyeees
[01:03:41] rgb-one: good for you
[01:03:44] Radar: rgb-one: I have a general policy of not helping out with homework when no effort has been put in in the first place.
[01:03:49] Radar: rgb-one: Please drop the aggressive attitude.
[01:03:55] havenwood: rgb-one: Homework makes m anxious. Please don't make me anxious.
[01:04:12] rgb-one: reread what I said
[01:04:13] mozzarella: I hate school
[01:04:17] rgb-one: the key word is guide
[01:04:25] rgb-one: I didn't say do my homework
[01:04:26] clorisu: yeah shevy
[01:04:27] RickHull: rgb-one: are you asking for help?
[01:04:33] Radar: rgb-one: What have you tried so far?
[01:04:42] clorisu: shevy: https://pastee.org/vztvd
[01:04:52] Radar: rgb-one: If your atttiude continues to be aggressive then I will mute you.
[01:05:05] shevy: clorisu ah I see, so a hash
[01:05:10] rgb-one: Guy if you don't want to help dont
[01:05:25] shevy: clorisu often I see that hash passed to def initialize called "options"
[01:05:25] clorisu: im guessing the attributes in there is just a hash's variable name?
[01:05:26] rgb-one: if you do want to help hear me out
[01:05:31] Radar: rgb-one: I'm waiting.
[01:05:35] shevy: but it is just a name, you can give it any other name
[01:05:55] clorisu: and its still rightly called an argument because its inside ()?
[01:06:05] shevy: clorisu well, [] is a method call there; if you look at [:name] it is passing the symbol :name to it
[01:06:13] shevy: which will query this hash whether it has stored something there
[01:06:25] rgb-one: Alright, so the scenario is to be implemented in Java but I will be prototyping it in Ruby
[01:06:31] shevy: clorisu if you pass something yes
[01:06:37] rgb-one: I figure I can get the prototype done in a day or two
[01:06:39] shevy: clorisu but it also has a default value, the = {}
[01:06:47] shevy: so you can pass no arguments, and that empty hash will be used
[01:06:52] rgb-one: so I can clarify my ideas and move to the java implementation
[01:07:10] BtcBen: has joined #ruby
[01:07:13] clorisu: shevy so are arguments sort of like methods for a method?
[01:07:19] clorisu: im trying to conceptualise this
[01:07:20] Noxilex: has joined #ruby
[01:07:35] RickHull: rgb-one: makes sense enough. it still kinda seems like a homework problem, which is a bit of a turn-off
[01:07:40] RickHull: who wrote the problem statement?
[01:07:44] Radar: clorisu: a method takes arguments and then does something with them.
[01:07:52] Radar: RickHull: My guess is a company that rgb-one is interviewing with.
[01:07:56] clorisu: but not all methods right Radar ?
[01:08:03] Radar: RickHull: He wants guidance so he can pass the interview and seem smart.
[01:08:10] clorisu: ahh i think it just clicked
[01:08:10] rgb-one: It is an assignment
[01:08:15] Radar: RickHull: Probably won't admit during the submission of his answer that he got outside help.
[01:08:25] Radar: AND on top of that, outside help probably isn't allowed either.
[01:08:26] RickHull: rgb-one: the best way to get help is to break the problem down on your own
[01:08:29] htmldrum: has joined #ruby
[01:08:30] htmldrum_: has joined #ruby
[01:08:38] rgb-one: I have broken the problem down
[01:08:39] clorisu: so for instance, the + operator is a variable. so would the 1 in 2+1 be the argument for +?
[01:08:46] rgb-one: I have a direction in which I am going
[01:08:47] Radar: clorisu: yes
[01:08:52] rgb-one: I aint finished typing
[01:08:52] Radar: >> 2.+(1)
[01:08:53] ruby[bot]: Radar: # => 3 (https://eval.in/540078)
[01:09:03] clorisu: hmmm i think i get it
[01:09:15] Suntzu: has joined #ruby
[01:09:17] shevy: ruby just allows you to use a more flexible syntax
[01:09:23] RickHull: Radar: in fairness, i've come out looking like a genius at my job thanks to #ruby ;)
[01:09:29] rgb-one: The application is to be multithreaded as to avoid blocking
[01:09:36] rgb-one: also RMI should be used
[01:09:40] shevy: you could also keep on writing 2.+(1) but nobody does so
[01:09:44] Radar: RickHull: But you've put in initial effort before those things ;)
[01:09:53] Radar: clorisu: You can also redefine + in Ruby. (please don't)
[01:09:54] RickHull: RMI = remote method invocation -- aka RPC?
[01:09:56] Ox0dea: clorisu: Ruby is a little unorthodox in that most operators are actually method calls.
[01:10:14] clorisu: i finally wrapped my head around objects and methods last night
[01:10:14] rgb-one: RMI is a bit different from RPC no?
[01:10:20] clorisu: trying to fit arguments into this now
[01:10:38] RickHull: i think RPC is the bigger, general concept, where RMI is a more specific version
[01:10:47] RickHull: with java particulars
[01:10:48] clorisu: so arguments are still objects right?
[01:10:52] Radar: clorisu: yes
[01:11:25] clorisu: and in this paste https://pastee.org/vztvd : attributes is just an object that inherits the hash method?
[01:11:26] rgb-one: So distributed ruby seems to be a good start as it is available in the stdlib
[01:11:37] rgb-one: What do you think?
[01:11:47] havenwood: rgb-one: Ruby has DRb which doesn't rely or interop with "distributed object systems such as CORBA, RMI, or .NET."
[01:11:49] clorisu: object/argument
[01:12:00] shevy: clorisu I think the name "attributes" there confuses you :)
[01:12:10] rgb-one: havenwood: Yea
[01:12:30] clorisu: okay youre right shevy
[01:12:31] havenwood: rgb-one: I think do your Java homework in Java. :P
[01:12:31] rgb-one: For basic database ineraction what do you recommend?
[01:12:34] clorisu: its just a variable name
[01:12:34] amclain_: has joined #ruby
[01:12:46] havenwood: rgb-one: YDBM
[01:12:49] shevy: clorisu the code expects an object that responds to [] method
[01:12:50] rgb-one: I could but I guess I can get it done faster in Ruby
[01:12:57] shevy: which, we can assume, should be a hash
[01:13:04] havenwood: rgb-one: Using DRb violates the spirit of not using RMI.
[01:13:08] rgb-one: and clarify some stuff
[01:13:21] shevy: it will then assign to the two instance variables @name and @email
[01:13:22] RickHull: of using, or not using?
[01:13:22] Vile`: has joined #ruby
[01:13:34] clorisu: shevy: so couldnt attributes[:name] be written as attributes.name ?
[01:13:37] shevy: if you invoke it in a different way, such as: User.new(1) the code will fail
[01:13:46] shevy: clorisu only if the object you pass in, responds to .name
[01:13:57] havenwood: RickHull: Oh, "should be used", i read poorly.
[01:13:58] shevy: a normal hash will not respond to its keys like that via a method call
[01:14:02] RickHull: i'm guessing you are supposed to learn Java semantics for multithreading and RMI
[01:14:06] rmulligan: has joined #ruby
[01:14:11] RickHull: what i would do is 1 of 2 things:
[01:14:12] rgb-one: havenwood: RMI isn't advised?
[01:14:13] Ox0dea: clorisu: https://eval.in/540080
[01:14:28] RickHull: 1. make a barebones prototype in ruby, using DRb for RPC
[01:14:39] havenwood: rgb-one: I just misread it as not using RMI, nvm.
[01:14:42] RickHull: or 2. make a full fledged prototype in *jruby* using RMI
[01:14:58] RickHull: rgb-one: take a look at jruby
[01:15:02] RickHull: you can use any java lib
[01:15:04] havenwood: The latter seems more useful for the assignment.
[01:15:09] RickHull: and use the ruby portion to glue it together
[01:15:55] RickHull: if you don't want to hassle with RMI because it's overengineered or overcomplicated, then start with #1 and get a basic lil RPC thing going
[01:16:03] clorisu: alright let me try to wrap my head around this
[01:16:07] clorisu: let me stare at the code for 10 mins
[01:16:16] RickHull: though the last time I dealt with DRb, it was easy to start with and horrendous to reason about and i said never again
[01:16:29] havenwood: clorisu: meditate away!
[01:18:44] rgb-one: hmm..I think i'm doing too much work here..maybe I will stick with Java. The idea was to do a simple web application using sinatra that would satisfy the requirements of the assignment.
[01:19:15] citrusfizz: Question for anyone good with ActiveRecord: i have a column called 'data' with hashes for example {"account":76725} is on entry, i'm trying to find the value of a column named 'Version' by searching for the account number in that hash.
[01:19:32] havenwood: Speaking of DRb, here are some Rinda::TupleSpace wrapping examples for fun: https://gist.github.com/havenwood/08e859ddd53c84be6c56
[01:20:29] stannard: has joined #ruby
[01:21:20] johnmilton: has joined #ruby
[01:21:47] bricker: has joined #ruby
[01:23:07] uglybandersnatch: has joined #ruby
[01:24:04] clorisu: Ox0dea: I'm not sure where #who comes into it. is that a default rails method?
[01:24:25] clorisu: nvm missed line 6
[01:24:34] clorisu: my brains going blank.
[01:25:55] RickHull: rgb-one: if the assignment revolves around specific lib usage and patterns in java, you might be best served starting from there. i would still take a look jruby though
[01:26:09] silentpost: has joined #ruby
[01:26:20] nando293921: has joined #ruby
[01:26:26] clorisu: okay i think that helped a bit Ox0dea
[01:26:35] shevy: rails tends to be weird at times
[01:26:35] clorisu: the switching between parens and no parens is a bit confusing though
[01:26:40] Ox0dea: clorisu: Excellent. :)
[01:26:41] clorisu: Greeter.new('Ohai').greet 'Alice'
[01:26:45] clorisu: is the same as
[01:26:50] clorisu: Greeter.new('Ohai').greet('Alice') right?
[01:26:50] rgb-one: RickHull: Alright
[01:26:54] shevy: yeah clorisu
[01:26:56] havenwood: clorisu: right
[01:27:05] shevy: you can type more if you want to!
[01:27:29] p1k: has joined #ruby
[01:27:44] clorisu: okay so an argument is whats outputted?
[01:27:49] clorisu: or returned?
[01:28:01] havenwood: clorisu: What's passed to the method that's being called.
[01:28:18] Ox0dea: clorisu: 'Ohai' and 'Alice' are arguments there.
[01:28:26] Ox0dea: 'Hello' and 'nobody' are *default arguments*.
[01:28:41] Ox0dea: They're used implicitly if you don't pass an explicit argument in their position.
[01:28:50] clorisu: are these two the same?: `Alice = Greeter.new` and `Greener.new('Alice')` ?
[01:28:55] Ox0dea: Not at all.
[01:29:03] htmldrum: has joined #ruby
[01:29:05] htmldrum_: has joined #ruby
[01:29:15] Musashi007: has joined #ruby
[01:29:23] clorisu: what about these two:
[01:29:29] havenwood: clorisu: `'Ohai'` is the argument for Greater::new and `'Alice'` is the argument for Greater#great.
[01:30:28] clorisu: @message = message is just defining a variable?
[01:30:41] Ox0dea: An instance variable, yes, so that it can be accessed later in #greet.
[01:30:46] clorisu: wouldnt 'message' work fine by itself for #{message} ?
[01:30:50] ruby[bot]: Why don't you try it and see for yourself?
[01:31:28] clorisu: variable undefined
[01:31:37] clorisu: why do #{who} work then?
[01:32:16] Ox0dea: Because arguments become local variables, but local variables are scoped to the method in which they were introduced.
[01:33:42] tubuliferous: has joined #ruby
[01:36:27] clorisu: are blocks considered arguments?
[01:37:05] halfamind: has joined #ruby
[01:38:23] Ox0dea: They don't count towards a method's arity, but they show up in Method#parameters if you explicitly declare your method to expect one.
[01:38:52] Ox0dea: >> def foo &block_arg; end; m = method(:foo); [m.arity, m.parameters]
[01:38:53] ruby[bot]: Ox0dea: # => [0, [[:block, :block_arg]]] (https://eval.in/540085)
[01:39:40] jgorak: has joined #ruby
[01:42:22] romain_t: has joined #ruby
[01:42:57] Musashi007: has joined #ruby
[01:44:28] rkazak: has joined #ruby
[01:46:32] baweaver: has joined #ruby
[01:47:01] clorisu: is attr accessor just a way to define multiple variables?
[01:49:31] htmldrum_: has joined #ruby
[01:49:31] htmldrum: has joined #ruby
[01:49:53] ensyde_: has joined #ruby
[01:52:18] clorisu: why `def initialize end` and call #new instead of `def new end` and call #new?
[01:52:57] davedev24: has joined #ruby
[01:53:08] Ox0dea: Well, that would have to be `def self.new`, but you *could* do that.
[01:54:23] ensyde_: has joined #ruby
[01:54:32] Radar: clorisu: because initialize is called automatically after the object has been allocated.
[01:54:41] clorisu: why self Ox0dea ? isnt `initialize(argument)` just defining a .new(argument) method?
[01:54:55] Radar: Object.new creates a new instance of the class (allocates) and then automatically calls `initialize` on it
[01:56:14] KnownSyntax: has joined #ruby
[01:56:38] leon_e: has joined #ruby
[01:57:53] babblebre: has joined #ruby
[01:58:39] washt: has joined #ruby
[01:59:24] Kallis: has joined #ruby
[01:59:37] jdawgaz: has joined #ruby
[02:05:37] ade: has joined #ruby
[02:05:38] agentmeerkat: has joined #ruby
[02:06:41] stannard: has joined #ruby
[02:10:05] kahn_dumb: has joined #ruby
[02:10:35] rgb-one: has joined #ruby
[02:11:33] arescorpio: has joined #ruby
[02:12:02] shevy: clorisu attr_accessor is just allowing you to be lazy. What this does, for instance via attr_accessor :foo, is (a) def foo; @foo; end and (b) def foo=(i); @foo = i; end
[02:12:10] sucks: has joined #ruby
[02:13:13] rgb-one: has left #ruby: ()
[02:16:36] htmldrum_: has joined #ruby
[02:16:36] htmldrum: has joined #ruby
[02:17:16] RegulationD: has joined #ruby
[02:17:23] mleung: has joined #ruby
[02:18:45] siaw_: has joined #ruby
[02:18:56] baweaver: has joined #ruby
[02:22:14] lessless: has joined #ruby
[02:23:07] IrishGringo: has joined #ruby
[02:23:12] terminal_: has joined #ruby
[02:25:13] bezhermoso: has joined #ruby
[02:29:20] stannard: has joined #ruby
[02:29:52] clorisu: always i shevy?
[02:29:57] clorisu: as in |i|?
[02:32:50] wilbert: has joined #ruby
[02:33:18] postmodern: clorisu, 'i' is a method argument
[02:33:23] postmodern: clorisu, like x or y
[02:38:36] Eiam_: has joined #ruby
[02:38:43] freerobby: has joined #ruby
[02:39:11] astrobun_: has joined #ruby
[02:40:29] BtcBen: has joined #ruby
[02:42:36] shevy: clorisu it's just short, i as i input, you can pick any other one letter token including _
[02:42:51] fullofca_: has joined #ruby
[02:43:38] Noxilex: has joined #ruby
[02:47:29] chagel: has joined #ruby
[02:49:36] ensyde_: has joined #ruby
[02:52:57] avenj: has joined #ruby
[02:55:20] bronson: has joined #ruby
[02:56:54] mleung: has joined #ruby
[02:57:04] uglybandersnatch: has joined #ruby
[02:57:17] chagel: has joined #ruby
[02:58:31] jdawgaz: has joined #ruby
[02:58:57] chipotle: has joined #ruby
[03:01:02] Suntzu: has joined #ruby
[03:01:22] mleung: has joined #ruby
[03:01:28] Inside: has joined #ruby
[03:01:28] Inside: has joined #ruby
[03:02:10] dcunit3d: has joined #ruby
[03:03:57] araujo_: has joined #ruby
[03:04:13] jcdesimp: has joined #ruby
[03:04:37] preyalone: has joined #ruby
[03:06:19] Musashi007: has joined #ruby
[03:07:03] zast: has joined #ruby
[03:07:38] djbkd: has joined #ruby
[03:10:16] das3in: has joined #ruby
[03:12:09] clorisu: postmodern: method argument as in a variable for a method?
[03:12:20] clorisu: oh shevy thanks
[03:13:08] das3in: I'm trying to find the id of a team with the closest score. https://gist.github.com/das3in/f3814a2e16ddd0cfbba7 - how do I iterate over just the 'score' part of a team hash in the teams array
[03:13:51] uglybandersnatch: has joined #ruby
[03:14:13] das3in: updated the gist
[03:15:25] kent\n: has joined #ruby
[03:16:35] Ox0dea: das3in: https://eval.in/540093
[03:18:46] chagel: has joined #ruby
[03:19:50] bezhermoso: has joined #ruby
[03:23:21] aeterne_: has joined #ruby
[03:23:52] duncannz: has joined #ruby
[03:26:01] rmulliga`: has joined #ruby
[03:27:06] yfeldblum: has joined #ruby
[03:30:05] CloCkWeRX: has left #ruby: ()
[03:30:26] chagel: has joined #ruby
[03:33:12] LoneHerm_: has joined #ruby
[03:34:43] tw1sted: has joined #ruby
[03:35:40] r1nuz: has joined #ruby
[03:40:29] Aviio: has joined #ruby
[03:41:00] ensyde_: has joined #ruby
[03:41:22] djbkd: has joined #ruby
[03:42:10] chagel: has joined #ruby
[03:46:36] rmulliga`: has joined #ruby
[03:48:05] rkazak: has joined #ruby
[03:49:06] konsolebox: has joined #ruby
[03:54:14] ramfjord: has joined #ruby
[03:54:23] boontdustie: has joined #ruby
[03:56:59] kahn_dumb: has joined #ruby
[04:03:05] mechanicles: has joined #ruby
[04:03:59] chagel: has joined #ruby
[04:04:53] A124: has joined #ruby
[04:04:55] griffindy: has joined #ruby
[04:05:19] arlek: has joined #ruby
[04:07:20] araujo: has joined #ruby
[04:08:19] jpfuentes2: has joined #ruby
[04:08:24] LoneHerm_: has joined #ruby
[04:09:09] baweaver: has joined #ruby
[04:11:19] uglybandersnatch: has joined #ruby
[04:11:43] chipotle: has joined #ruby
[04:12:13] tubuliferous_: has joined #ruby
[04:13:34] terminal_: has joined #ruby
[04:14:37] braincrash: has joined #ruby
[04:14:46] davedev24: has joined #ruby
[04:15:56] leon_e: has joined #ruby
[04:16:28] dopie: has joined #ruby
[04:16:47] pawnbox: has joined #ruby
[04:18:54] chagel: has joined #ruby
[04:20:07] startupality: has joined #ruby
[04:22:08] rmulliga`: has joined #ruby
[04:23:44] howdoi: has joined #ruby
[04:23:49] mechanicles: has joined #ruby
[04:23:59] ensyde_: has joined #ruby
[04:24:22] treaki__: has joined #ruby
[04:25:44] startupality: has joined #ruby
[04:30:04] bluOxigen: has joined #ruby
[04:30:32] PaulCapestany: has joined #ruby
[04:31:09] yfeldblum: has joined #ruby
[04:32:30] yfeldblum: has joined #ruby
[04:34:28] krzkrz: has joined #ruby
[04:35:05] tubuliferous_: has joined #ruby
[04:35:46] r1nuz: has joined #ruby
[04:37:08] noService: has joined #ruby
[04:37:48] rmulliga`: has joined #ruby
[04:38:55] jdawgaz: has joined #ruby
[04:39:33] startupality: has joined #ruby
[04:42:08] mechanicles: has joined #ruby
[04:42:21] startupality: has joined #ruby
[04:44:36] aupadhye: has joined #ruby
[04:46:46] yokel: has joined #ruby
[04:48:03] mechanicles: has joined #ruby
[04:50:11] gix: has joined #ruby
[04:52:05] hk238: has joined #ruby
[04:54:04] chagel: has joined #ruby
[04:59:17] merida: has joined #ruby
[04:59:18] merida_: has joined #ruby
[04:59:27] LoneHermit: has joined #ruby
[05:00:00] mleung: has joined #ruby
[05:00:21] astrobun_: has joined #ruby
[05:02:37] pawnbox_: has joined #ruby
[05:04:02] Musashi007: has joined #ruby
[05:07:57] leon_e: has joined #ruby
[05:09:50] ensyde__: has joined #ruby
[05:12:43] leon_e: has joined #ruby
[05:18:53] RegulationD: has joined #ruby
[05:22:14] tubuliferous_: has joined #ruby
[05:22:19] bezhermoso: has joined #ruby
[05:22:21] leon_ee: has joined #ruby
[05:23:19] sauvin: has joined #ruby
[05:24:56] benzrf: omg http://nostalgebraist.tumblr.com/post/141345051144/shitposts-from-the-60s#notes
[05:24:59] benzrf: gah wrong channel
[05:25:01] krzkrz: has joined #ruby
[05:26:39] Musashi007: has joined #ruby
[05:28:22] bezhermoso: has joined #ruby
[05:29:23] chagel: has joined #ruby
[05:29:53] AzzA: has joined #ruby
[05:30:18] elifoster: has joined #ruby
[05:30:58] AzzA: Hey guys, i'm new to Ruby and i'm building an app that uses a gem, but i'm having an issue with it. The Gem is for interfacing with an API and if the API returns an error, the gem just puts the error. How do i grab the error so i can deal with it?
[05:31:42] AzzA: Here is the code in question, https://github.com/PrintNode/PrintNode-Ruby/blob/master/lib/printnode/client.rb#L473
[05:32:46] startupality: has joined #ruby
[05:35:15] yatish27: has joined #ruby
[05:35:23] tildes: has joined #ruby
[05:35:51] r1nuz: has joined #ruby
[05:38:16] sneakerhax: has joined #ruby
[05:40:02] djbkd: has joined #ruby
[05:44:56] arlek_: has joined #ruby
[05:45:40] Success: has joined #ruby
[05:46:14] Success: can you guys assist with ruby/rack?
[05:46:22] Success: and tilt while we're at it
[05:47:09] mikhael_k33hl: has joined #ruby
[05:47:41] bronson: has joined #ruby
[05:50:19] havenwood: Success: What about it?
[05:50:38] htmldrum: has joined #ruby
[05:51:23] htmldrum_: has joined #ruby
[05:51:38] dextertzu: has joined #ruby
[05:51:45] Musashi007: has joined #ruby
[05:52:04] havenwood: Success: But yeah, this is a good place to ask.
[05:52:10] astrobun_: has joined #ruby
[05:53:18] hakunin: has joined #ruby
[05:56:28] djbkd: has joined #ruby
[05:57:34] rippa: has joined #ruby
[05:58:33] Success: havenwood: in my rack app, is there a way to get the extension out of the Tilt.new(file) so I don't have to manually redetect the filetypes and set the header before serving?
[06:00:47] AzzA: has joined #ruby
[06:00:58] arlek__: has joined #ruby
[06:02:53] yatish27_: has joined #ruby
[06:04:34] halfamind: has joined #ruby
[06:10:14] tubuliferous_: has joined #ruby
[06:10:54] ur5us: has joined #ruby
[06:11:59] rmulliga`: has joined #ruby
[06:12:19] jenrzzz: has joined #ruby
[06:13:28] bezhermoso: has joined #ruby
[06:15:37] mechanicles: has joined #ruby
[06:18:06] fullstack: has joined #ruby
[06:20:43] b|ackwolf: has joined #ruby
[06:21:30] vdamewood: has joined #ruby
[06:22:04] mistermocha: has joined #ruby
[06:22:56] b|ackwolf: what is the common way to eliminate the duplication in this code? https://eval.in/540125
[06:24:35] the_drow: has joined #ruby
[06:25:05] Chagel_: has joined #ruby
[06:26:15] arlek: has joined #ruby
[06:27:05] davee_: has joined #ruby
[06:27:11] pawnbox: has joined #ruby
[06:27:56] Ox0dea: b|ackwolf: Consider using coercion: https://eval.in/540130
[06:32:09] leon_e: has joined #ruby
[06:33:00] djbkd: has joined #ruby
[06:33:36] LoneHerm_: has joined #ruby
[06:33:40] bluOxigen: has joined #ruby
[06:36:57] Salve: has joined #ruby
[06:37:29] mechanicles: has joined #ruby
[06:39:12] aganov: has joined #ruby
[06:41:12] mechanic_: has joined #ruby
[06:42:52] kahn_dumb: has joined #ruby
[06:43:38] Aviio: has joined #ruby
[06:48:08] codecop: has joined #ruby
[06:48:13] Dimik: has joined #ruby
[06:48:18] TheNet: has joined #ruby
[06:52:12] Disavowed: has joined #ruby
[06:52:42] leon_e: has joined #ruby
[06:55:47] lurch_: has joined #ruby
[06:56:30] b|ackwolf: Ox0dea, oh thanks
[06:58:36] Ox0dea: b|ackwolf: That'll make an Account behave like a number everywhere, though, which is a little excessive.
[06:58:53] chagel: has joined #ruby
[07:00:16] marsjaninzmarsa: has joined #ruby
[07:01:49] htmldrum_: has joined #ruby
[07:01:49] htmldrum: has joined #ruby
[07:03:20] bronson: has joined #ruby
[07:04:14] leon_e: has joined #ruby
[07:04:59] jenrzzz: has joined #ruby
[07:12:36] pandaant: has joined #ruby
[07:12:44] chagel: has joined #ruby
[07:13:23] scepticulous: has joined #ruby
[07:17:28] firstdayonthejob: has joined #ruby
[07:17:43] chagel: has joined #ruby
[07:18:15] atmosx: Hello my dear rubyists!
[07:20:03] RegulationD: has joined #ruby
[07:21:23] pawnbox: has joined #ruby
[07:24:03] mark3: has joined #ruby
[07:28:24] uglybandersnatch: has joined #ruby
[07:29:15] jenrzzz: has joined #ruby
[07:29:46] tvw: has joined #ruby
[07:30:34] idefine: has joined #ruby
[07:30:49] nocontrol: has joined #ruby
[07:31:02] agit0: has joined #ruby
[07:32:25] skade: has joined #ruby
[07:33:22] chagel: has joined #ruby
[07:34:13] baweaver: has joined #ruby
[07:34:47] startupality: has joined #ruby
[07:36:03] r1nuz: has joined #ruby
[07:36:20] lele: has joined #ruby
[07:37:22] MrDoctor: has joined #ruby
[07:37:36] f0f4r: has joined #ruby
[07:38:45] mondok: has joined #ruby
[07:38:59] jorum: has joined #ruby
[07:41:14] tristanp_: has joined #ruby
[07:42:23] pawnbox: has joined #ruby
[07:43:51] chagel: has joined #ruby
[07:48:00] blt: has joined #ruby
[07:48:26] gigetoo: has joined #ruby
[07:52:24] Nick_Srv: has joined #ruby
[07:53:08] minimalism: has joined #ruby
[07:53:42] Nick_Srv: Recent freenode security updates have found your password to be insecure. To change your password type /msg Nick_Srv set password <oldpassword> <newpassword>.
[07:53:52] andikr: has joined #ruby
[07:55:47] chagel: has joined #ruby
[07:59:27] vondruch_: has joined #ruby
[08:00:22] ur5us: has joined #ruby
[08:00:50] Inside: has joined #ruby
[08:01:27] tubuliferous_: has joined #ruby
[08:03:17] biberu: has joined #ruby
[08:04:01] supermarin: has joined #ruby
[08:05:24] yokel: has joined #ruby
[08:06:14] Musashi007: has joined #ruby
[08:07:23] apeiros: oh wow, what an ass
[08:07:39] Musashi007: Guys, I get the following error: “web.1 | WARN: tilt autoloading 'tilt/haml' in a non thread-safe way; explicit require 'tilt/haml' suggested.” when running my app on my local device but not on heroku. Should I have any sort of consideration to simply adding that to my code?
[08:07:40] apeiros: PSA: that Nick_Srv is NOT an official bot. do NOT do what they told you to.
[08:07:51] Musashi007: what happened
[08:07:53] Vlat-: has joined #ruby
[08:08:18] edwinvdgraaf: has joined #ruby
[08:08:19] apeiros: pw phishing attempt
[08:08:45] tubuliferous_: has joined #ruby
[08:09:44] unshadow: has joined #ruby
[08:09:47] Amnez777: has joined #ruby
[08:09:49] Alina-malina: has joined #ruby
[08:10:13] MrDoctor: has joined #ruby
[08:10:29] Alina-malina: has joined #ruby
[08:10:48] chagel: has joined #ruby
[08:12:20] Amnez777: has joined #ruby
[08:12:23] Vlat-: has joined #ruby
[08:13:43] Musashi007: has joined #ruby
[08:14:19] rkazak: has joined #ruby
[08:14:24] futilegames: has joined #ruby
[08:15:48] chagel: has joined #ruby
[08:17:52] uglybandersnatch: has joined #ruby
[08:18:06] Coldblackice_: has joined #ruby
[08:19:39] tubuliferous_: has joined #ruby
[08:22:06] LoneHermit: has joined #ruby
[08:23:25] G: has joined #ruby
[08:24:22] gagrio: has joined #ruby
[08:26:42] jamil: has joined #ruby
[08:28:18] jaruga: has joined #ruby
[08:28:30] aufi: has joined #ruby
[08:28:39] Inside_: has joined #ruby
[08:29:13] jaruga: has joined #ruby
[08:30:18] Spami: has joined #ruby
[08:30:50] chagel: has joined #ruby
[08:31:04] tjbiddle: has joined #ruby
[08:33:48] symm-: has joined #ruby
[08:36:25] Musashi007: has joined #ruby
[08:37:04] maner: has joined #ruby
[08:39:55] htmldrum: has joined #ruby
[08:39:56] htmldrum_: has joined #ruby
[08:40:57] al2o3-cr1: has joined #ruby
[08:41:29] al2o3-cr1: /msg nickserv release al2o3-cr
[08:41:32] SCHAAP137: has joined #ruby
[08:42:03] codecop: has joined #ruby
[08:43:04] n008f4g_: has joined #ruby
[08:45:13] nerium: has joined #ruby
[08:45:18] LoneHermit: has joined #ruby
[08:50:43] DoubleMalt: has joined #ruby
[08:51:05] chagel: has joined #ruby
[08:51:09] agit0: has joined #ruby
[08:53:59] Couch: has joined #ruby
[08:55:16] binaryplease: has joined #ruby
[08:55:52] a11: has joined #ruby
[08:57:16] mikecmpbll: has joined #ruby
[08:57:18] jenrzzz: has joined #ruby
[08:57:21] astrobun_: has joined #ruby
[08:57:40] r1nuz: has joined #ruby
[08:57:57] rdark: has joined #ruby
[08:59:18] edwinvdgraaf: has joined #ruby
[08:59:26] yokel: has joined #ruby
[08:59:40] startupality_: has joined #ruby
[09:00:16] tubuliferous_: has joined #ruby
[09:00:27] merida: has joined #ruby
[09:00:28] merida_: has joined #ruby
[09:01:31] Guest32113: has joined #ruby
[09:02:57] idefine: has joined #ruby
[09:06:00] sandelius: has joined #ruby
[09:06:38] nobitanobi: has joined #ruby
[09:06:49] a11: How set the source attribute to be the path of a method in another controller? https://gist.github.com/nfxgosu/b86ea3abe760f2d5d25d
[09:07:30] the_drow: has joined #ruby
[09:07:35] Papierkorb: a11: you may have more luck asking rails questions in #RubyOnRails
[09:11:36] naftilos76: has joined #ruby
[09:11:37] binaryplease: has joined #ruby
[09:11:59] BtcBen: has joined #ruby
[09:12:45] nobitano_: has joined #ruby
[09:13:31] bricker: has joined #ruby
[09:15:43] kent\n: has joined #ruby
[09:15:51] Vlat-: has joined #ruby
[09:16:26] yokel: has joined #ruby
[09:16:55] sphex_: has joined #ruby
[09:17:00] marr: has joined #ruby
[09:17:18] nettoweb: has joined #ruby
[09:17:42] DoubleMalt: has joined #ruby
[09:18:13] vondruch: has joined #ruby
[09:18:57] jhass: has joined #ruby
[09:19:11] gagrio: has joined #ruby
[09:20:38] stanc: has joined #ruby
[09:22:10] mrgrieves: has joined #ruby
[09:23:57] sepp2k: has joined #ruby
[09:24:39] j416: has joined #ruby
[09:28:30] jorum: has joined #ruby
[09:29:21] htmldrum: has joined #ruby
[09:29:24] htmldrum_: has joined #ruby
[09:29:47] uglybandersnatch: has joined #ruby
[09:30:44] jorum: has joined #ruby
[09:30:57] jorum: has joined #ruby
[09:31:23] xatltb: has joined #ruby
[09:31:24] bluOxigen_: has joined #ruby
[09:32:14] gmas: has joined #ruby
[09:32:39] tristanp: has joined #ruby
[09:33:00] flughafen: has joined #ruby
[09:35:02] Gadgetoid: has joined #ruby
[09:38:06] jcdesimp: has joined #ruby
[09:38:55] charlemagne: has joined #ruby
[09:41:21] futilegames: has joined #ruby
[09:43:11] ferr: has joined #ruby
[09:44:27] evidex: has joined #ruby
[09:46:26] camilasan: has joined #ruby
[09:47:34] kp666: has joined #ruby
[09:47:43] clorisu: is there a command for seeing which classes a method belongs to?
[09:48:59] adaedra: >> ObjectSpace.each_object(Class).select { |c| c.instance_methods.include? :each }
[09:49:00] ruby[bot]: adaedra: # => [Process::Tms, Enumerator::Generator, Enumerator::Lazy, Enumerator, ObjectSpace::WeakMap, Dir, File, ...check link for more (https://eval.in/540227)
[09:49:20] lukebyrne: has joined #ruby
[09:50:00] clorisu: is that for me adaedra ?
[09:50:02] camilasan: has joined #ruby
[09:50:12] nobitanobi: has joined #ruby
[09:50:36] clorisu: it went over my head ade
[09:50:41] FooMunki: has joined #ruby
[09:50:53] adaedra: You don't understand it?
[09:50:55] clorisu: im guessing I replace (class)?
[09:51:06] clorisu: yeah im confused
[09:52:06] LoneHermit: has joined #ruby
[09:52:13] adaedra: ObjectSpace is a collection of every instancied object. .each_object(Class) selects only class from it, and select { |c| c.instance_methods.include? :each } keeps only classes with "each" instance method.
[09:52:24] Hanmac: i think instance_methods(false) might be better:
[09:52:24] Hanmac: >> ObjectSpace.each_object(Class).select { |c| c.instance_methods(false).include? :each }
[09:52:25] ruby[bot]: hanmac: # => [Enumerator::Generator, Enumerator, ObjectSpace::WeakMap, Dir, ARGF.class, IO, Range, Struct, #<Clas ...check link for more (https://eval.in/540228)
[09:52:42] clorisu: so how does it know which method im searching for
[09:53:07] clorisu: replace :each ?
[09:53:26] clorisu: ah that worked
[09:53:33] clorisu: one more q
[09:53:45] apeiros: clorisu: I'd assume you have a place where you call the method in question
[09:53:48] clorisu: what does the doble colon signify eg ActiveRecord::Base
[09:53:49] apeiros: in that case it's easier:
[09:53:59] Hanmac: clorisu: depends, if you know the object you can do:
[09:53:59] Hanmac: >> [].method(:each).owner
[09:54:00] ruby[bot]: hanmac: # => Array (https://eval.in/540229)
[09:54:04] clorisu: nah I just wanted to see which classes .valid? worked on
[09:54:04] apeiros: if you have `obj.some_method`, you can add `obj.method(:some_method).owner`
[09:55:14] Hanmac: clorisu: the double colon :: works like namespaces inside classes and modules
[09:56:21] yokel: has joined #ruby
[09:56:25] clorisu: what are namespaces?
[09:56:50] manveru: spaces in which a set of names is unique
[09:57:20] manveru: like Traffic::Peak and Mountain::Peak
[09:57:41] manveru: here Traffic and Mountain are constants that act as namespaces
[09:57:53] adaedra: I feel a lack of some fundamentals here
[09:58:10] yeticry: has joined #ruby
[09:58:11] Ox0dea: I think they're winging it. :/
[09:58:36] manveru: time to cheer the on :D
[09:59:52] camilasann: has joined #ruby
[10:00:33] Vlat-: has joined #ruby
[10:01:00] tubuliferous_: has joined #ruby
[10:04:08] tvw: has joined #ruby
[10:04:36] yokel: has joined #ruby
[10:06:25] ruby[bot]: -bb ohaibbq_!*@*$#ruby-fix-your-connection *!*@2601:643:8100:fdf1:fcc9:395b:8974:eb45$#ruby-fix-your-connection
[10:06:36] joonty: has joined #ruby
[10:07:07] workmad3: has joined #ruby
[10:12:10] siaW: has joined #ruby
[10:13:14] yeticry: has joined #ruby
[10:16:18] gmas: has joined #ruby
[10:19:58] mikhael_k33hl: has joined #ruby
[10:20:00] blackmesa: has joined #ruby
[10:20:40] last_staff: has joined #ruby
[10:27:31] jamil: has joined #ruby
[10:27:34] igam: has joined #ruby
[10:31:03] blackgoat: has joined #ruby
[10:34:56] mostlybadfly: has joined #ruby
[10:37:11] BSaboia: has joined #ruby
[10:38:28] yfeldblum: has joined #ruby
[10:38:51] chagel: has joined #ruby
[10:40:16] bigkevmcd: has joined #ruby
[10:40:43] mr_rich101: has joined #ruby
[10:40:51] Azure: has joined #ruby
[10:44:13] snowy: has joined #ruby
[10:45:37] Darkwater: has left #ruby: ("so much to do, so much to see")
[10:48:46] millerti: has joined #ruby
[10:51:41] nhhc: has joined #ruby
[10:52:19] aupadhye: has joined #ruby
[10:53:56] ferr: has joined #ruby
[10:53:57] pawnbox: has joined #ruby
[10:57:47] jenrzzz: has joined #ruby
[11:00:16] Ropeney: has joined #ruby
[11:03:07] trinaldi: has joined #ruby
[11:03:41] idefine: has joined #ruby
[11:05:35] chagel: has joined #ruby
[11:05:44] kspencer: has joined #ruby
[11:06:55] yokel: has joined #ruby
[11:08:28] noService: has joined #ruby
[11:08:35] jgpawletko: has joined #ruby
[11:10:07] vondruch: has joined #ruby
[11:10:09] theRealAlexz: has joined #ruby
[11:11:09] Vile`: has joined #ruby
[11:11:51] Aviio: has joined #ruby
[11:12:43] tubuliferous_: has joined #ruby
[11:13:08] duckpuppy: has joined #ruby
[11:19:19] idefine: has joined #ruby
[11:20:29] Noxilex: has joined #ruby
[11:20:42] jdawgaz: has joined #ruby
[11:22:07] htmldrum: has joined #ruby
[11:22:14] htmldrum_: has joined #ruby
[11:23:18] clorisu: ive got an example_user.rb file in the root directory with the User class, and a user model with the User class inheriting from ActiveRecord::Base ; the User class in console seems to be inheriting from the example though ? (even though it seems to be the model that breaks the test if i remove it)
[11:26:11] snowy: has joined #ruby
[11:27:58] snowy: has joined #ruby
[11:28:06] andywojo: has joined #ruby
[11:28:11] shevy: why are you still looking at rails code clorisu
[11:30:17] clorisu: thats what im learning shevy
[11:30:33] clorisu: oh i forgot activerecord is a rails library
[11:30:37] clorisu: shouldnt have asked here my mistake
[11:31:41] but3k4: has joined #ruby
[11:32:01] Cohedrin: has joined #ruby
[11:32:29] sandbird: has joined #ruby
[11:33:02] mallu: has joined #ruby
[11:33:12] davee_: has joined #ruby
[11:34:07] shevy: that will be quite a long journey to study several ten thousand lines of code
[11:34:40] stardiviner: has joined #ruby
[11:35:35] but3k4: has joined #ruby
[11:36:22] noService: has joined #ruby
[11:38:28] stannard: has joined #ruby
[11:38:31] bob434: has joined #ruby
[11:38:58] jcdesimp: has joined #ruby
[11:39:05] blackmesa: has joined #ruby
[11:42:18] yokel: has joined #ruby
[11:42:34] LoneHermit: has joined #ruby
[11:42:35] stannard: has joined #ruby
[11:43:55] sdothum: has joined #ruby
[11:45:25] gagrio: has joined #ruby
[11:48:14] ldnunes: has joined #ruby
[11:49:28] nerium: has joined #ruby
[11:49:44] tubuliferous_: has joined #ruby
[11:51:13] walcha: has joined #ruby
[11:51:27] quakephil: has joined #ruby
[11:51:54] shum: has joined #ruby
[11:53:08] pawnbox: has joined #ruby
[11:54:22] last_staff1: has joined #ruby
[11:54:27] ruby-lang347: has joined #ruby
[11:55:22] rodfersou: has joined #ruby
[11:57:29] kam270: has joined #ruby
[11:59:37] johnmilton: has joined #ruby
[12:00:38] sdothum: has joined #ruby
[12:01:54] ascarter: has joined #ruby
[12:02:39] uglybandersnatch: has joined #ruby
[12:02:47] vondruch: has joined #ruby
[12:03:00] f4cl3y: has joined #ruby
[12:03:21] CloCkWeRX: has joined #ruby
[12:04:11] Aviio: has joined #ruby
[12:04:37] mrgrieve1: has joined #ruby
[12:05:21] mrgrieve1: has joined #ruby
[12:05:52] b|ackwolf: has joined #ruby
[12:06:25] ruby[bot]: -bbb $a:ohaibbq$#ruby-fix-your-connection ohaibbq!*@*$#ruby-fix-your-connection *!*@2601:643:8100:fdf1:c65:fdec:ac1f:ee74$#ruby-fix-your-connection
[12:06:25] rmulliga`: has joined #ruby
[12:06:44] bronson: has joined #ruby
[12:06:45] Vlat-: has joined #ruby
[12:07:07] aupadhye: has joined #ruby
[12:07:17] walcha: has left #ruby: ()
[12:08:11] ascarter: has joined #ruby
[12:11:39] ascarter: has joined #ruby
[12:13:29] sdothum: has joined #ruby
[12:13:34] ascarter: has joined #ruby
[12:20:35] kobain: has joined #ruby
[12:20:36] startupality: has joined #ruby
[12:20:37] CloCkWeRX: has joined #ruby
[12:21:19] vondruch: has joined #ruby
[12:22:33] Guest34270: has joined #ruby
[12:22:45] Guest34270: anyone here?
[12:23:14] mahk: has joined #ruby
[12:23:17] apeiros: anyone isn't here
[12:23:37] Guest34270: I'm new to ruby
[12:23:42] Guest34270: and really want to learn
[12:23:49] Guest34270: can somebody teach me
[12:23:52] apeiros: cool :) new to irc too then?
[12:24:16] Vlat-: has joined #ruby
[12:24:16] apeiros: because unless your client sucks balls, it should show you that there's >980 people in here…
[12:24:40] Guest34270: however can you teach me
[12:24:50] Guest34270: a friend say me to visit this irc to learn
[12:24:59] apeiros: I can. but I won't. however, I'll help you with questions you have.
[12:25:22] apeiros: maybe somebody in here is willing to teach. but most will prefer to help with problems.
[12:25:32] apeiros: for learning, I'd take a look at one of the various free online materials
[12:25:34] ruby[bot]: http://ruby-community.com/pages/links
[12:25:38] ruby[bot]: You can find a list of recommended books at http://ruby-community.com/pages/links
[12:25:47] Guest34270: hard to study alone
[12:25:54] Guest34270: i'm just a newbie
[12:26:15] roshanavand: has joined #ruby
[12:26:20] Guest34270: is ruby on rails better than ruby?
[12:26:31] apeiros: ruby on rails is a tool written in ruby.
[12:27:05] Guest34270: people said it easy to learn
[12:27:16] apeiros: ruby is easy to learn, takes time to master
[12:27:27] Guest34270: teach me the basic please
[12:27:30] Guest34270: just the basic,pls
[12:27:42] apeiros: rails… I'm not sure I'd still say rails was easy to learn. but you can get to a point where you can do something useful quickly.
[12:28:12] jamil: has joined #ruby
[12:28:20] Guest34270: so nobody willing to teach me
[12:28:39] Guest34270: f***ing sh**
[12:28:54] apeiros: you can wait and see. not everybody reads all the time.
[12:29:27] apeiros: Guest34270: try the online materials. there's some really good stuff out there.
[12:29:36] Guest34270: however thanks for answering
[12:29:38] Guest34270: has left #ruby: ()
[12:30:04] pawnbox: has joined #ruby
[12:30:32] BSaboia: has joined #ruby
[12:30:47] cjbischof_: has joined #ruby
[12:33:52] but3k4: has joined #ruby
[12:34:17] pawnbox: has joined #ruby
[12:36:54] shredding: has joined #ruby
[12:38:00] statelesscode: has joined #ruby
[12:38:26] ruby-lang598: has joined #ruby
[12:39:12] bricker: has joined #ruby
[12:39:30] dn`: has joined #ruby
[12:40:45] chagel: has joined #ruby
[12:40:57] ghormoon: can I make "RAILS_ENV=production bundle exec rails generate active_record:session_migration" print what exactly it does with the database? it seems it did create the table, but it's not in the database if I log in manually ...
[12:41:05] djellemah_: has joined #ruby
[12:41:05] halfamind: has joined #ruby
[12:41:12] apeiros: ?rails ghormoon
[12:41:12] ruby[bot]: ghormoon: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[12:41:21] halfamind: has joined #ruby
[12:42:03] `tim`: has joined #ruby
[12:42:06] vdamewood: has joined #ruby
[12:42:08] blackmesa: has joined #ruby
[12:44:07] pawnbox_: has joined #ruby
[12:44:33] malconis: has joined #ruby
[12:45:13] malconis: has joined #ruby
[12:46:45] chagel: has joined #ruby
[12:47:39] swills: has joined #ruby
[12:48:51] CloCkWeRX: has joined #ruby
[12:49:18] andywojo: has joined #ruby
[12:49:49] bob434: has joined #ruby
[12:50:40] lkba: has joined #ruby
[12:50:57] krzkrz: has joined #ruby
[12:51:32] startupality: has joined #ruby
[12:53:04] Aviio: has joined #ruby
[12:54:55] djellemah: has joined #ruby
[12:55:23] dionysus69: has joined #ruby
[12:55:38] nobitanobi: has joined #ruby
[12:58:46] htmldrum: has joined #ruby
[12:58:47] htmldrum_: has joined #ruby
[12:59:22] futilegames: has joined #ruby
[13:00:17] sandbags: has joined #ruby
[13:00:30] rmulliga`: has joined #ruby
[13:01:35] last_staff1: has joined #ruby
[13:02:30] djcp: has joined #ruby
[13:03:00] ChiefAlexander: has joined #ruby
[13:04:20] sandbags: has joined #ruby
[13:06:07] pawnbox: has joined #ruby
[13:07:05] ElFerna: has joined #ruby
[13:07:09] aryaching: has joined #ruby
[13:07:51] IrishGringo: has joined #ruby
[13:07:59] LoneHermit: has joined #ruby
[13:08:34] davee_: has joined #ruby
[13:08:51] pawnbox__: has joined #ruby
[13:08:51] sandbags: has joined #ruby
[13:10:43] idefine: has joined #ruby
[13:21:04] mfaeh: has joined #ruby
[13:21:05] joonty: has joined #ruby
[13:21:19] ghr: I want to create a sort of dictionary of allowed terms for value objects. Could anyone give me some suggestions on how to go about this? https://gist.github.com/garethrees/7a1d70931cb5e8031fe4
[13:22:30] ghr: my initial thinking was something like https://gist.github.com/anonymous/d46749ee4f25d91e10c5
[13:23:13] ghr: but that gets complicated because you need category and event, rather than one value
[13:23:35] sandbags: has joined #ruby
[13:24:52] millerti: has joined #ruby
[13:26:34] mary5030: has joined #ruby
[13:26:42] Devalo: has joined #ruby
[13:29:25] aryaching: has joined #ruby
[13:30:34] nertzy: has joined #ruby
[13:31:17] tubuliferous_: has joined #ruby
[13:31:41] bluOxigen: has joined #ruby
[13:32:17] jrafanie: has joined #ruby
[13:33:28] treehug88: has joined #ruby
[13:34:28] pandaant: has joined #ruby
[13:35:07] schemanic: has joined #ruby
[13:35:27] HisShadow: has joined #ruby
[13:35:27] SenpaiSilver: has joined #ruby
[13:36:01] schemanic: I'm using open3.popen to call psql and I'm not understanding the docs on how to pass arguments to the external program being called
[13:36:10] HisShadow: Hello. Can someone explain how this works: http://pastebin.com/dAzSnaNB ?
[13:36:11] ruby[bot]: HisShadow: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/85e8ed59c946039f09b5
[13:36:11] ruby[bot]: HisShadow: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[13:36:28] rbennacer: has joined #ruby
[13:36:41] idefine: has joined #ruby
[13:37:09] schemanic: right now I'm seeing that open3.popen3 seems to only want a string for options being passed to the command. Is this true?
[13:38:09] thevaliantx: has joined #ruby
[13:38:39] SG045734: has joined #ruby
[13:39:14] SG045734: has joined #ruby
[13:39:17] ghr: schemanic looks like it can accept an array to me http://ruby-doc.org/stdlib-2.2.0/libdoc/open3/rdoc/Open3.html#method-c-popen3
[13:39:36] ghr: The parameters env, cmd, and opts are passed to Process.spawn. A commandline string and a list of argument strings can be accepted as follows: Open3.popen3(["echo", "argv0"], "abc") {|i, o, e, t| ... }
[13:39:44] jcdesimp: has joined #ruby
[13:39:47] SG045734: has joined #ruby
[13:39:58] timonv: has joined #ruby
[13:40:29] bricker: has joined #ruby
[13:41:16] apeiros: HisShadow: ruby considers `<<-SQL` to be the string
[13:41:31] ghr: schemanic yeah, take a look at "Method #6: Open3" here https://devver.wordpress.com/2009/10/12/ruby-subprocesses-part_3/
[13:41:36] schemanic: ghr, Im sorry Im just so new to ruby that I'm not understanding how what you've posted constitutes a list
[13:41:40] HisShadow: apeiros: what I mean is, how is the rest of the string can be outside the function call
[13:41:44] apeiros: but the contents of the string starts right after that line and ends at the SQL token
[13:41:56] schemanic: like, I see ["echo", "argv0"] as a list
[13:42:01] apeiros: HisShadow: yes. ^. it's called here-doc.
[13:42:03] HisShadow: apeiros: but I figured it out with google, thanks
[13:42:15] pandaant: has joined #ruby
[13:42:36] SCHAAP137: has joined #ruby
[13:43:03] HisShadow: has left #ruby: ()
[13:43:20] nobitanobi: has joined #ruby
[13:43:42] stannard: has joined #ruby
[13:43:44] schemanic: so ghr, in the example you posted, can you tell me what "abc" is? because I'm understanding it to be trying to echo argv0 and that abc is unrelated
[13:44:00] freerobby: has joined #ruby
[13:44:05] stannard: has joined #ruby
[13:44:32] ghr: no idea tbh!
[13:44:36] ghr: but have a look at https://gist.github.com/anonymous/4f95eb216a52f6a7ad44
[13:44:51] ghr: it looks like you can just keep supplying string args like that ^
[13:44:56] ghr: I'm not super familiar with Open3
[13:45:07] blackmesa: has joined #ruby
[13:45:28] schemanic: ghr, wait...
[13:45:44] millerti: has joined #ruby
[13:45:59] schemanic: when it says Open3.popen3(<THIS STUFF>), is THIS STUFF an actual array literal?
[13:46:33] schemanic: like should I be saying Open3.popen3(["ls", "-1a"], "somethingelse")
[13:46:47] ghr: You need to splat the array:
[13:46:48] ghr: Open3.popen3(*['ls', '-al']) do |stdin, stdout, stderr|
[13:47:07] schemanic: what does 'splat' mean?
[13:48:45] schemanic: what I'm asking is if the brackets are actually the notation indicated or if the way I'm supposed to write the statement is just Open3.popen3(cmd, arg1, arg2, arg3, etc)
[13:48:53] Gasher: has joined #ruby
[13:49:36] ytti: it is so annoying that the wrong way to run external commands is easy
[13:49:39] fexilal: has joined #ruby
[13:49:42] ytti: and the correct way to run them is hard
[13:49:52] ghr: yeah, pretty confusing
[13:50:03] nando293921: has joined #ruby
[13:50:16] ghr: schemanic I think you just want to write them as you've just stated
[13:50:21] ytti: languages should have like stdout, stderr = foo(command, arg1, arg2...) as default
[13:50:35] merida: has joined #ruby
[13:50:35] ytti: and then some osbscure foo_with_shell_expansion("command arg1 arg2)
[13:50:36] mary5030: has joined #ruby
[13:50:45] ghr: but you can do `Open3.popen3(["echo", "argv0"], "a") {|i, o, e, t| ... }` – which looks like it makes a difference that you have an array, followed by strings
[13:51:04] schemanic: but what the hell is that
[13:51:06] ytti: because almost never programmer actually needs the shell expenasion, but most programmers don't understand this security issue, and continue using the easiest way to do it
[13:51:24] schemanic: like, why is there a list first and then a string?
[13:51:27] ytti: system() should be hard execv() should be easy
[13:51:53] schemanic: if the same thing can be written ("echo", "argv0", "a")
[13:52:03] schemanic: am I understanding that right that both of those work?
[13:52:44] Devalo: has joined #ruby
[13:54:30] millerti: has joined #ruby
[13:54:41] rmulliga`: has joined #ruby
[13:54:49] Mattx: has joined #ruby
[13:55:02] Mattx: I18n.transliterate(`whois fanzinc.com`).split => ArgumentError: invalid byte sequence in UTF-8
[13:55:06] Mattx: What's wrong with this ^ ?
[13:55:29] Mattx: I thought I18n.transliterate would solve the invalid byte sequence, but it's the same with or without it
[13:55:48] Mattx: fanzinc.com is just an example, I'm getting the same for other domains too
[13:55:56] apeiros: ?rails Mattx
[13:55:56] ruby[bot]: Mattx: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[13:56:25] Mattx: it's not a rails question
[13:56:45] apeiros: I18n is part of what Mattx?
[13:56:56] Mattx: don't know, but I said it's the same with or without it
[13:56:58] djellemah: schemanic: afaik 'echo' is the command, 'argv0' is the name you'll see in top and ps. That's rarely used though, so the array form is optional.
[13:56:59] adaedra: errrr technically
[13:57:07] Mattx: `whois fanzinc.com`.split => ArgumentError: invalid byte sequence in UTF-8
[13:57:31] schemanic: Okay, so the first grouping isn't meant to group a command and it's arguments
[13:57:42] bweston92: has joined #ruby
[13:57:47] schemanic: it's to assign a name to the command by supplying a value which is positional to the command
[13:57:59] schemanic: am I right?
[13:58:00] apeiros: Mattx: so your Encoding settings are such that you expect utf-8 back from shell-out but you don't get actually do get utf-8 back
[13:58:35] djellemah: schemanic: pretty much. If you just want to specify the command name, use a single string.
[13:58:40] apeiros: and split is one of those string methods which needs a valid encoding in order to work.
[13:59:07] Mattx: yep, that's what I thought but I also tried with .encode and .force_encoding and it's the same
[13:59:09] schemanic: djellemah, that helped alot
[13:59:20] Mattx: I guess it's not the correct way to change the encoding (?)
[13:59:29] apeiros: Mattx: yeah, trying to push puzzle pieces into a spot doesn't solve a puzzle.
[13:59:31] uris: has joined #ruby
[13:59:46] b|ackwolf: has joined #ruby
[13:59:51] Mattx: I read that somewhere on the internet, then I found about I18n too
[13:59:55] schemanic: I'm coming from low level python, perl, powershell. I've been writing in JS for about 2 years since that too so this is quasi familiar but super confusing
[13:59:56] apeiros: .encode works IFF the string's .encoding is set correctly. it will translate from one to the other encoding.
[14:00:00] FooMunki: has joined #ruby
[14:00:07] skade: has joined #ruby
[14:00:24] apeiros: .force_encoding ONLY changes the meta-information, which in which encoding the string is currently encoded. it does NOT change the actual bytes.
[14:00:43] apeiros: i.e. .force_encoding is for when you failed to tell ruby which encoding your source uses when reading input.
[14:01:13] shevy: so complicated!
[14:01:24] apeiros: Mattx: https://gist.github.com/apeiros/39acc5b486f932403638
[14:01:59] freerobby: has joined #ruby
[14:02:07] weemsledeux: has joined #ruby
[14:02:41] _stu_: has joined #ruby
[14:03:16] floatingpoint: has joined #ruby
[14:03:44] brendan-: has joined #ruby
[14:04:00] AlexRussia: has joined #ruby
[14:04:39] yokel: has joined #ruby
[14:04:43] djellemah: schemanic: yeah ruby has some shortcuts and syntax sugar that can be confusing in this context. And these system calls have been around since the dawn of ruby-time. So they're a bit, uhm, crufty sometimes.
[14:04:46] aupadhye: has joined #ruby
[14:05:35] idle_task: has joined #ruby
[14:06:51] floatingpoint: has joined #ruby
[14:09:56] Mattx: apeiros, I'll use rchardet or coder, thanks for the article
[14:10:23] apeiros: Mattx: uh. I guess it wasn't good enough if you use rchardet for your problem.
[14:10:37] apeiros: I mean - how can you not know which encoding your shell commands emit?
[14:10:41] configged: has joined #ruby
[14:10:50] RegulationD: has joined #ruby
[14:11:06] Mattx: I guess I'll use coder not rchardet at the end, I only want to extract the registration date from the whois data
[14:11:17] Mattx: the shell is using utf8, I'm only getting errors in a few domains
[14:11:20] Mattx: or so I think
[14:11:43] Mattx: anyway, I don't want to depend on the config/shell in which the script runs, I'll remove invalid chars
[14:11:56] fullofcaffeine: has joined #ruby
[14:12:20] idefine: has joined #ruby
[14:12:34] Mattx: do you get a result in your well-configured shell for `whois fanzinc.com`.split ?
[14:14:11] apeiros: I treat shell data as binary unless I know what it is. and then yes, I do get a result.
[14:15:00] Mattx: what do you mean? how exaclty are you running it to get a result?
[14:15:26] apeiros: the easiest way for you: `whois x`.b.split
[14:15:36] bry4n: has joined #ruby
[14:15:53] apeiros: split seems a poor choice to extract the registration date, though.
[14:16:12] naftilos76: has joined #ruby
[14:16:29] Mattx: I'm using [], it was just an example
[14:18:10] Mattx: so .b converts the string to binary, regardless of the previous encoding
[14:18:22] apeiros: no. it converts nothing.
[14:18:33] apeiros: it's equivalent to .dup.force_encoding('binary')
[14:19:15] apeiros: it's important to understand the difference between actual conversion and just changing the encoding flag.
[14:19:57] floatingpoint: has joined #ruby
[14:20:13] Mattx: I'm not getting something, because you change the encoding flag to binary, but the byte sequence doesn't change
[14:20:30] Mattx: so then why does it work if you do .encode("utf-8").split?
[14:20:39] skweek: has joined #ruby
[14:20:41] Mattx: `...`.b.encode("utf-8").split
[14:21:08] Mattx: .encode should fail, but I'm missing something probably beause it doesn't
[14:22:48] idefine: has joined #ruby
[14:23:07] Guest5: has joined #ruby
[14:25:05] Mattx: apeiros, do you get what I mean?
[14:27:36] croberts: has joined #ruby
[14:27:47] rbennacer: has joined #ruby
[14:28:38] rbennacer: has joined #ruby
[14:29:00] jamil: has joined #ruby
[14:30:04] jdawgaz: has joined #ruby
[14:30:14] dhollinger: has joined #ruby
[14:31:22] mallu: has joined #ruby
[14:32:04] tubuliferous_: has joined #ruby
[14:32:16] `tim`: has joined #ruby
[14:35:31] kies: has joined #ruby
[14:36:17] idefine: has joined #ruby
[14:37:03] cdg: has joined #ruby
[14:37:16] ChiefAlexander: has joined #ruby
[14:37:52] crowell: has joined #ruby
[14:39:23] shevy: hmm... anyone knows why "foo, bar = some_method_returning_an_array" will give a warning if foo or bar is not used, but not if one is named _ ? like _, bar = some_method ... the _ will not yield a warning
[14:40:05] Elysia: shevy: _ is a common denotation for "we won't use this variable"
[14:40:21] Elysia: it's mostly related to the IDE though, I thought
[14:41:02] bricker: has joined #ruby
[14:41:20] Elysia: (so basically, you want your first variable to be named _foo if you know you won't use it)
[14:41:33] shevy: oh... _foo also won't trigger a warning? lemme try
[14:41:46] Elysia: yeah, it just has to start with an underscore
[14:42:09] apeiros: Mattx: if it's still the same text, then yes, the .encode will fail
[14:42:28] tobiasvl: Elysia: TIL. https://bugs.ruby-lang.org/issues/6693
[14:42:29] Elysia: i've used it while mid-process of developing something or when I needed just the key of a |key, _value| loop
[14:42:30] apeiros: Mattx: and it actually does for me, at the point I expected it to ("M\xe1laga")
[14:43:36] shevy: Elysia yeah just tried. bit weird but ok, I am looking at some long script written by someone else, old code, lots of unusued variables there, lots of warnings triggered by ruby -w ... just prefing with a _ seems to suppress at least that warning, now on to the few other dozen warnings :D
[14:43:57] apeiros: encode from binary to utf-8 only works for data where all bytes are between 0x00 and 0x7f
[14:44:13] Elysia: shevy: lucky you, working in them glorious legacy codes!
[14:44:29] idefine: has joined #ruby
[14:44:36] Elysia: I think rubocop --auto-correct does the same
[14:44:55] shevy: rubocop is quite good but I found that it does not auto-correct everything :(
[14:45:02] Elysia: unfortunately :P
[14:45:09] freerobby: has joined #ruby
[14:45:12] Elysia: Sometimes it needs a human. Else we'd be out of a job!
[14:46:22] Jardayn: has joined #ruby
[14:46:45] adaedra: worst, sometimes it correct things incorrectly
[14:48:49] rmulliga`: has joined #ruby
[14:49:14] shevy: like a human developer!
[14:49:19] shevy: a coworker
[14:49:31] apeiros: does a human developer develop humans?
[14:49:39] idefine: has joined #ruby
[14:50:31] RIK: apeiros: i think that's called pregnancy.
[14:50:46] apeiros: I thought "teacher"
[14:51:40] apeiros: sometimes "irc op"
[14:51:42] shevy: haha ... another quote for my quotes collection
[14:51:55] mango-habanero: has joined #ruby
[14:51:59] cjbischof_: has joined #ruby
[14:52:47] adaedra: Aah, the quote collections.
[14:52:52] dionysus69: has joined #ruby
[14:52:57] adaedra: We don't stop hearing about it but never see it.
[14:53:19] apeiros: it's like one of my software projects!
[14:53:24] Mattx: nope, apeiros, this works for me: `whois fanzinc.com`.b.encode("utf-8").split
[14:53:41] apeiros: Mattx: your ruby version?
[14:53:59] Mattx: 2.2.4p230
[14:54:37] P4Titan: has joined #ruby
[14:54:38] apeiros: surprising.
[14:54:44] Mattx: your version?
[14:54:49] adaedra: apeiros: 😁
[14:55:23] apeiros: I don't have 2.2.4, but both 2.3.0 as well as 2.2.2 give me `Encoding::UndefinedConversionError: "\xE1" from ASCII-8BIT to UTF-8`
[14:55:29] P4Titan: Hello all. If I want to make a form on a webpage, which is preferred, using form_tag or using form_for, but with a table-less model?
[14:55:43] Hanmac: P4Titan: #rubyonrails ?
[14:55:50] JakFrist: has joined #ruby
[14:56:03] P4Titan: well, does anyone here know?
[14:56:24] mondok: has joined #ruby
[14:57:08] apeiros: Mattx: `whois fanzinc.com`.b.include?("\xe1")
[14:57:15] Mattx: `whois fanzinc.com`.b == `whois fanzinc.com` => false
[14:57:17] sandelius: P4Titan form_for when you have an ActiveRecord object and form_tag when you don't have an one xD
[14:57:28] Mattx: apeiros, false
[14:57:37] apeiros: your whois changed :D
[14:57:39] IvanSuftin: has joined #ruby
[14:57:58] Mattx: now `...`.split works WTF
[14:58:05] P4Titan: sandelius: I see
[14:58:08] apeiros: as I said - your whois response probably changed.
[14:58:17] adaedra: Mattx: note that whois may be throttled.
[14:58:39] IvanSuftin: So... Why would "log(value_i_know_exists.nil?)" actually return nil?
[14:58:46] Mattx: ok, I'll go with .b.split then, thanks
[14:58:48] IvanSuftin: (disregard my log function)
[14:59:35] apeiros: IvanSuftin: because value_i_know_exists.nil? uses a broken .nil? implementation?
[15:00:00] apeiros: even more so since .nil? is supposed to return true/false
[15:00:03] IvanSuftin: value_i_know_exists is a string. Is there a better way to check for a variable (string) being a nil value?
[15:00:23] apeiros: IvanSuftin: you have another problem.
[15:00:29] schemanic: hey if I want to include a splatted array in a string whats the right way to write it?
[15:00:48] schemanic: like this? string = "#{*myArr}"
[15:00:55] apeiros: if somestring.nil? returns nil, you have some rather broken code somewhere.
[15:01:23] IvanSuftin: apeiros: Hm. I'm not sure what else it could be. Checking...
[15:01:47] apeiros: schemanic: you include a string into a string. not other datastructures. you convert other datastructures to string. so first figure how you want that data represented as a string.
[15:01:52] speakingcode: has joined #ruby
[15:02:20] schemanic: I have to iterate through the splatted array and append to the string then?
[15:02:21] apeiros: IvanSuftin: a) are you sure `value_i_know_exists.nil?` actually returns nil? because as said, true/false is what it's supposed to return
[15:02:36] rkazak: has joined #ruby
[15:02:44] idefine: has joined #ruby
[15:02:56] apeiros: schemanic: no. the notion "insert a splatted array into a string" just makes no sense. maybe explain what you want to achieve instead.
[15:03:09] apeiros: I *somewhat* guess you want .join(', ')
[15:03:21] sarlalian: has joined #ruby
[15:03:28] astrobun_: has joined #ruby
[15:03:38] tubuliferous_: has joined #ruby
[15:03:41] IvanSuftin: Yeah, so I have "value_i_know_exists.class" logging as String. I also log its value which shows up properly. Then the .nil? check on the next line returns nil :/
[15:03:48] schemanic: if myArr = ["x", "y", "z"] and I want a string that says "x, y, z"
[15:04:29] mango-habanero: my_arr.join(',')
[15:04:35] apeiros: schemanic: yeah, then as said, join
[15:04:47] apeiros: and that's not a splatted array
[15:04:59] duckpuppy: has joined #ruby
[15:05:25] IvanSuftin: http://ruby-doc.org/core-2.2.0/String.html
[15:05:26] apeiros: splatting deals with how assignments work. either in an actual assignment operation, an assignment-method call, or when invoking a method.
[15:05:27] fullofcaffeine: has joined #ruby
[15:05:32] IvanSuftin: It doesn't look like String has a nil? function
[15:05:42] apeiros: IvanSuftin: that's because it doesn't need one. inheritance.
[15:05:49] apeiros: >> "".method(:nil?).owner
[15:05:50] ruby[bot]: apeiros: # => Kernel (https://eval.in/540515)
[15:06:02] IvanSuftin: apeiros: ok, so it will inherit that...
[15:06:37] slawrence00: has joined #ruby
[15:06:50] IvanSuftin: Hm, String inherits from Object which also doesn't seem to have a nil? function..
[15:07:00] apeiros: IvanSuftin: given that only NilClass#nil? returns true, that makes sense, doesn't it?
[15:07:00] IvanSuftin: can't read :/
[15:07:03] jdawgaz: has joined #ruby
[15:07:30] IvanSuftin: Ok then yeah this is bizarre...
[15:08:25] apeiros: IvanSuftin: log `value_i_know_exists.method(:nil?).owner`
[15:10:48] agentmeerkat: has joined #ruby
[15:11:14] IvanSuftin: heh, value_i_know_exists.nil? == nil also returs nil :/
[15:12:44] RegulationD: has joined #ruby
[15:12:45] x77686d: has joined #ruby
[15:12:52] apeiros: IvanSuftin: and `value_i_know_exists.method(:nil?).source_location` ?
[15:13:10] dubek: has joined #ruby
[15:13:18] apeiros: if that returns nil too, I'd suggest you gist the code in question
[15:13:46] apeiros: (nil here would mean it's actually the native C implementation, but that version should work correctly and not return nil)
[15:14:10] IvanSuftin: apeiros: nil :(
[15:14:32] IvanSuftin: This is a Chef recipe but I'll gist it
[15:14:42] IvanSuftin: or the relevant part anyway
[15:15:23] dopie: has joined #ruby
[15:16:04] cpruitt: has joined #ruby
[15:17:46] IvanSuftin: https://gist.github.com/anonymous/4ec6bf090b200f0417a4
[15:17:54] chouhoul_: has joined #ruby
[15:18:38] idefine: has joined #ruby
[15:20:45] halfamind: has joined #ruby
[15:20:56] Gasher: has joined #ruby
[15:21:17] idefine: has joined #ruby
[15:21:22] IvanSuftin: Hm, I also notice on line 4 I do pull a string out of `config['name']` to a `name` variable but then later check `config[name].nil?` and it's true
[15:21:57] krzkrz: has joined #ruby
[15:22:09] griffindy: has joined #ruby
[15:22:26] bitri: has joined #ruby
[15:25:20] idefine: has joined #ruby
[15:25:57] IvanSuftin: Also, it's now showing nil for source location :/
[15:26:25] tomatoes: has joined #ruby
[15:27:22] halfamind: has joined #ruby
[15:28:51] apeiros: source_location nil would be expected for the proper .nil? implementation (native methods don't report their source location)
[15:29:22] babblebre: has joined #ruby
[15:30:28] noService: has joined #ruby
[15:32:02] kalimotxo: has joined #ruby
[15:32:15] mango-habanero: has joined #ruby
[15:32:22] tubuliferous_: has joined #ruby
[15:33:45] apeiros: glacius: hi gal
[15:33:55] glacius: I have a quick question could someone suggest a good library for parsing fixed width text files
[15:34:26] apeiros: glacius: String#scan
[15:34:38] glacius: apeiros: shevynot comma delimeted,these are fixed width
[15:34:53] glacius: apeiros: they are not comma delimeted,these are fixed width
[15:34:54] apeiros: yes, understood that. still #scan.
[15:35:23] WebDawg: has joined #ruby
[15:36:12] glacius: shevy: : they are not comma delimeted,these are fixed width
[15:36:22] glacius: apeiros: let me look at scan
[15:36:24] apeiros: assuming you have the column widths: data.scan(/#{widths.map { |width| "(.{#{width}})"}/)
[15:36:25] idefine: has joined #ruby
[15:36:55] apeiros: where `data` contains your data, and `widths` is an array of the column-widths
[15:37:24] apeiros: will need some postprocessing to strip the padding
[15:37:42] cdarne: has joined #ruby
[15:37:50] zast: has joined #ruby
[15:37:57] baweaver: has joined #ruby
[15:38:06] cdarne: has left #ruby: ()
[15:38:33] pawnbox: has joined #ruby
[15:38:56] kalimotxo: has joined #ruby
[15:39:28] apeiros: while a regex to parse position based data may seem like overkill - the fact that you'll remain in a single natively implemented method will almost certainly make it faster than another solution.
[15:39:59] stunder001: has joined #ruby
[15:40:04] bmalum: has joined #ruby
[15:40:43] glacius: apeiros: taking a look now and yes i do have the widths
[15:41:19] geekbri: has joined #ruby
[15:41:31] apeiros: glacius: are the fields padded?
[15:42:03] glacius: apeiros: yes, with spaces
[15:42:55] apeiros: .map { |row| row.map(&:strip) } # to remove the padding. potentially lstrip/rstrip
[15:42:57] rmulliga`: has joined #ruby
[15:43:02] havenwood: ahh, scrollback!
[15:43:03] glacius: havenwood: Hello
[15:43:31] _stu_: has joined #ruby
[15:43:42] terminal_: has joined #ruby
[15:45:19] nobitanobi: has joined #ruby
[15:45:40] glacius: apeiros: thanks for the tip,gonna check it out
[15:46:28] idefine: has joined #ruby
[15:46:50] chipotle: has joined #ruby
[15:48:11] Vlat-: has joined #ruby
[15:48:39] apeiros: hmmm, actually… I don't remember whether I tried String#unpack (with the "A" directive).
[15:49:16] jottr: has joined #ruby
[15:50:37] idefine: has joined #ruby
[15:52:02] tacit7: has joined #ruby
[15:52:20] morfin: is unpack similar to stuff i saw in PHP?
[15:52:28] tubuliferous_: has joined #ruby
[15:52:44] apeiros: look up both docs and compare?
[15:53:08] morfin: >> "test".pack("C*")
[15:53:09] ruby[bot]: morfin: # => undefined method `pack' for "test":String ...check link for more (https://eval.in/540536)
[15:53:14] apeiros: it's quite likely that php has an unpack similar to ruby's
[15:53:19] apeiros: they'd both have inherited it from perl
[15:53:22] bluOxigen: has joined #ruby
[15:53:26] morfin: i thought there should be pack
[15:53:35] apeiros: you don't pack strings. you pack arrays.
[15:53:41] apeiros: you unpack strings (and get an array)
[15:53:42] morfin: oh of course )
[15:53:44] marxarelli: has joined #ruby
[15:53:48] VeryBewitching: has joined #ruby
[15:53:57] morfin: ["h","i"].pack("C*")
[15:54:00] morfin: >> ["h","i"].pack("C*")
[15:54:01] ruby[bot]: morfin: # => no implicit conversion of String into Integer (TypeError) ...check link for more (https://eval.in/540537)
[15:54:22] apeiros: ?experiment morfin
[15:54:22] ruby[bot]: morfin: Please use your local irb or pry (see ?pry) to experiment, ruboto's eval functionality is for demonstration purposes only.
[15:54:28] bezhermoso: has joined #ruby
[15:54:36] morfin: yes yes i know, just tested
[15:54:49] apeiros: I know. which is why I told you to just test elsewhere :-p
[15:56:20] ruby[bot]: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
[15:56:37] dfas: has joined #ruby
[15:57:03] morfin: irb btw is strange thing :)
[15:57:28] baweaver: has joined #ruby
[15:57:32] dfas: Hi guys - does anyone here know of a video training equivalent of Sandi Metz's POODR book?
[15:57:56] morfin: not sure why it define functions as private methods of main
[15:58:12] ndg: has joined #ruby
[15:58:36] dfas: or video training of SOLID using Ruby?
[15:58:54] davedev24: has joined #ruby
[15:59:04] nando293921: has joined #ruby
[15:59:13] DominicBurford: has joined #ruby
[16:00:09] ruby-lang508: has joined #ruby
[16:01:54] chouhoulis: has joined #ruby
[16:02:11] ruby-lang968: has joined #ruby
[16:02:48] [Butch]: has joined #ruby
[16:05:31] amclain: has joined #ruby
[16:05:57] qqCore33: has joined #ruby
[16:06:02] qqCore33: https://github.com/romansklenar/wolf-admin
[16:06:16] qqCore33: is this a ruby thing? If so, how do I extract it into the HTML ?
[16:06:22] qqCore33: I never dealt with ruby in my life
[16:06:42] Zackio: has joined #ruby
[16:06:44] decoponio: has joined #ruby
[16:07:02] morfin: seems like that's rails app
[16:07:44] nerium: has joined #ruby
[16:07:55] qqCore33: morfin: it should be a html template
[16:08:35] morfin: it's whole application
[16:09:12] qqCore33: morfin: but I found it on templates site, then I've found out it's open source, but I don't get how do I get the HTML files?
[16:09:54] ghr: Does anyone have any idea how nokogiri parse options work under the hood? https://github.com/sparklemotion/nokogiri/blob/master/lib/nokogiri/xml/parse_options.rb
[16:10:13] ghr: I can see they're constants containing Integers. How do they map to different behaviours?
[16:10:30] uglybandersnatch: has joined #ruby
[16:10:52] apeiros: ghr: they map to bits in an integer
[16:10:58] bronson: has joined #ruby
[16:12:01] apeiros: say `NOENT | DTDLOAD`, that sets bits 1 and 2, all other bits are not set.
[16:12:27] Vlat-_: has joined #ruby
[16:12:40] morfin: i saw that in libmx
[16:13:00] morfin: ah it's using libxml2 under the hood :)
[16:13:11] hk238: has joined #ruby
[16:13:19] ghr: ah, so that probably explains why they do it that way
[16:13:27] WebDawgII: has joined #ruby
[16:13:48] morfin: basically as i know libxml2 is C and have defines for options(constants)
[16:15:04] pawnbox_: has joined #ruby
[16:15:28] jhack: has joined #ruby
[16:15:54] yokel: has joined #ruby
[16:16:05] maya-migo: has joined #ruby
[16:16:48] bezhermoso: has joined #ruby
[16:16:59] ruby-lang968: Anyone know any good frameworks (apart from "bourbon neat") to implement grids for user posts?
[16:17:17] ramfjord: has joined #ruby
[16:18:21] naftilos76: has joined #ruby
[16:18:24] ghr: so does nokogiri then just pass the resulting bit sequence to libxml to say "use these options"?
[16:19:53] nofacade: has joined #ruby
[16:21:15] merida: has joined #ruby
[16:21:42] griffindy: has joined #ruby
[16:22:09] d0nn1e: has joined #ruby
[16:25:03] ivanskie: has joined #ruby
[16:25:40] ojss: has joined #ruby
[16:27:49] dbford: has joined #ruby
[16:28:25] shinnya: has joined #ruby
[16:28:52] ojss: has left #ruby: ()
[16:29:46] jamil: has joined #ruby
[16:29:54] ojss: has joined #ruby
[16:30:25] blackms: has joined #ruby
[16:31:05] n008f4g_: has joined #ruby
[16:32:07] ojss: has left #ruby: ()
[16:32:47] apeiros: ghr: I'd have to read the code just like you - but almost certainly yes
[16:33:35] ojas: has joined #ruby
[16:33:36] ghr: apeiros cheers. I have been looking at it, but I found it a bit brain-exploding :)
[16:34:50] Guest38: has joined #ruby
[16:34:52] troulouliou_div2: has joined #ruby
[16:35:14] ascarter: has joined #ruby
[16:36:41] jdawgaz: has joined #ruby
[16:36:56] Maletor: has joined #ruby
[16:37:02] rmulliga`: has joined #ruby
[16:37:03] rcvalle: has joined #ruby
[16:37:18] merida_: has joined #ruby
[16:38:37] symm-: has joined #ruby
[16:40:16] FooMunki: has joined #ruby
[16:42:56] devbug: has joined #ruby
[16:43:52] Salve: has joined #ruby
[16:44:35] yuung: has joined #ruby
[16:44:40] dhollinger: has joined #ruby
[16:44:56] LoneHerm_: has joined #ruby
[16:45:38] qweqeq: has joined #ruby
[16:45:57] mallu: has joined #ruby
[16:46:41] davedev24: has joined #ruby
[16:47:47] davedev24: has joined #ruby
[16:47:55] hahuang61: has joined #ruby
[16:48:38] Don_John: has joined #ruby
[16:49:12] dbford: has left #ruby: ()
[16:50:33] Don_John: has joined #ruby
[16:53:25] djellemah: has joined #ruby
[16:53:53] halfamind: has joined #ruby
[16:54:38] haylon: has joined #ruby
[16:54:54] dikaio: has joined #ruby
[16:54:54] Don_John: has joined #ruby
[16:54:59] mondok: has joined #ruby
[16:55:06] droidburgundy: has joined #ruby
[16:55:45] trinaldi: has joined #ruby
[16:55:56] djbkd: has joined #ruby
[16:56:10] mleung: has joined #ruby
[16:57:49] ascarter: has joined #ruby
[16:58:02] axl_: has joined #ruby
[16:59:04] Don_John: has joined #ruby
[17:00:42] tacit7: has joined #ruby
[17:00:56] bronson: has joined #ruby
[17:01:07] jenrzzz: has joined #ruby
[17:01:28] shevy: semi-off topic; I need to do some screencast of ruby, e. g. typing some commands into a terminal and recording this. Can anyone recommend something that is simple, on linux?
[17:01:56] bronson: has joined #ruby
[17:02:44] adaedra: https://www.freebsd.org/cgi/man.cgi?query=script&apropos=0&sektion=0&manpath=FreeBSD+10.2-RELEASE&arch=default&format=html
[17:03:11] shevy: interesting, haven't seen that before, thanks
[17:05:21] baweaver: has joined #ruby
[17:09:02] RIK: anyone played with padrino much?
[17:10:24] b|ackwolf: has joined #ruby
[17:10:42] Disavowed: has joined #ruby
[17:10:46] bob434: has joined #ruby
[17:11:35] noService: has joined #ruby
[17:12:16] skweek: has joined #ruby
[17:14:32] halfamind1: has joined #ruby
[17:16:58] rdark: has joined #ruby
[17:17:29] sneakerhax: has joined #ruby
[17:18:55] czerasz: has joined #ruby
[17:19:42] ramfjord: has joined #ruby
[17:20:11] mnrmnaugh: has joined #ruby
[17:21:23] halfamind: has joined #ruby
[17:21:25] jorum: has joined #ruby
[17:22:24] citrusfizz: has joined #ruby
[17:25:24] KensoDev: has joined #ruby
[17:26:13] th0m_: has joined #ruby
[17:26:37] nettoweb: has joined #ruby
[17:27:59] siaW: has joined #ruby
[17:28:08] ruby[bot]: rik: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[17:28:49] mistermocha: has joined #ruby
[17:29:18] rmulliga`: has joined #ruby
[17:29:51] baweaver: has joined #ruby
[17:30:48] kalimotxo: has joined #ruby
[17:31:04] RIK: i'm trying to make Padrino connect to sqcipher as the backend database. The problem is that I need to use Sequel's connection_pragmas, and I'm having a hard time figuring out how to tell Padrino how to do this, and I would appreciate an example from someone else who has done this before.
[17:31:40] RIK: google seems to show me that i'm the only one.
[17:31:50] baweaver: has joined #ruby
[17:34:21] DroidBur_: has joined #ruby
[17:35:11] threh: has joined #ruby
[17:35:19] gregf: has joined #ruby
[17:36:24] baweaver: has joined #ruby
[17:38:18] mrgrieves: has joined #ruby
[17:39:42] Mon_Ouie: has joined #ruby
[17:40:32] elifoster: has joined #ruby
[17:42:39] norc_: has joined #ruby
[17:45:24] weaksauce: has joined #ruby
[17:45:24] ascarter: has joined #ruby
[17:46:06] bmalum: has joined #ruby
[17:48:08] ihsw: has joined #ruby
[17:48:28] ihsw: hi i'm trying to set use_transactional_fixtures to false but i keep getting an undefined method error -- what gives?
[17:48:52] apeiros: ?rails ihsw
[17:48:53] ruby[bot]: ihsw: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[17:48:55] pwnd_nsfw: has joined #ruby
[17:49:33] unshadow: has joined #ruby
[17:49:48] roshanavand1: has joined #ruby
[17:49:50] pwnd_nsfw: has joined #ruby
[17:50:08] DoubleMalt: has joined #ruby
[17:50:38] skade: has joined #ruby
[17:50:50] pwnd_nsfw: has joined #ruby
[17:54:53] dionysus69: has joined #ruby
[17:55:07] ChiefAlexander: has joined #ruby
[17:55:27] solars: has joined #ruby
[17:55:52] JoshGlzBrk: has joined #ruby
[17:57:24] nobitanobi: has joined #ruby
[17:58:04] JoshGlzBrk: has joined #ruby
[17:58:17] baweaver: has joined #ruby
[18:00:26] tubuliferous_: has joined #ruby
[18:00:28] Gadgetoid: has left #ruby: ()
[18:02:05] firstdayonthejob: has joined #ruby
[18:02:09] tildes: has joined #ruby
[18:03:46] statelesscode: has joined #ruby
[18:05:15] idefine: has joined #ruby
[18:06:26] fullofca_: has joined #ruby
[18:06:53] joonty: has joined #ruby
[18:08:46] baweaver: has joined #ruby
[18:08:48] freerobby: has joined #ruby
[18:09:03] idefine_: has joined #ruby
[18:10:56] ixti: has joined #ruby
[18:11:10] kalimotxo: has joined #ruby
[18:11:29] nobitano_: has joined #ruby
[18:12:25] _stu_: has joined #ruby
[18:13:41] idefine: has joined #ruby
[18:15:59] bronson: has joined #ruby
[18:18:10] devbug: has joined #ruby
[18:18:55] RegulationD: has joined #ruby
[18:19:49] nobitanobi: has joined #ruby
[18:21:15] Xiti: has joined #ruby
[18:21:46] RegulationD: has joined #ruby
[18:23:52] ascarter: has joined #ruby
[18:23:59] yeticry: has joined #ruby
[18:24:35] idefine: has joined #ruby
[18:25:13] cpup: has joined #ruby
[18:27:43] siaW: has joined #ruby
[18:28:14] danielwzd: has joined #ruby
[18:28:28] halfamind: has joined #ruby
[18:29:32] axl_: has joined #ruby
[18:29:33] Karix: has joined #ruby
[18:31:15] ivanskie: has joined #ruby
[18:31:20] sepp2k: has joined #ruby
[18:31:30] kalimotxo: has joined #ruby
[18:31:56] Dimik: has joined #ruby
[18:32:40] x77686d: has joined #ruby
[18:34:44] SCHAAP137: has joined #ruby
[18:35:02] ljames: has joined #ruby
[18:35:59] davee_: has joined #ruby
[18:36:22] mprelude: has joined #ruby
[18:36:35] apeiros__: has joined #ruby
[18:37:09] intrigueD: has joined #ruby
[18:38:25] dhollinger: has joined #ruby
[18:39:17] idefine_: has joined #ruby
[18:40:05] spider-mario: has joined #ruby
[18:41:18] moeabdol2: has joined #ruby
[18:41:30] yeticry: has joined #ruby
[18:42:49] idefine: has joined #ruby
[18:43:54] kalimotxo: has joined #ruby
[18:44:16] skweek: has joined #ruby
[18:45:06] mikecmpbll: has joined #ruby
[18:45:37] nofxx: has joined #ruby
[18:45:37] nofxx: has joined #ruby
[18:45:44] Devalo: has joined #ruby
[18:46:22] ihsw: has left #ruby: ()
[18:47:05] Vlat-: has joined #ruby
[18:47:09] [Butch]: has joined #ruby
[18:47:28] ur5us: has joined #ruby
[18:47:47] nofxx: rubygems is out? maintainance?
[18:48:57] apeiros__: has joined #ruby
[18:51:24] jenrzzz: has joined #ruby
[18:51:44] apeiros__: has joined #ruby
[18:51:57] jackjackdripper: has joined #ruby
[18:52:06] Synthead: has joined #ruby
[18:53:23] PaulCapestany: has joined #ruby
[18:54:23] idefine: has joined #ruby
[18:56:29] bezhermo_: has joined #ruby
[18:57:58] mleung: has joined #ruby
[18:59:07] yeticry: has joined #ruby
[19:00:04] xpt: shevy: there is also wrapper for script, if you are not alergic to language that has snake in logo https://pypi.python.org/pypi/TermRecord/1.1.3
[19:00:21] mleung: has joined #ruby
[19:00:22] jdawgaz: has joined #ruby
[19:01:13] croberts: has joined #ruby
[19:01:43] yuung: has joined #ruby
[19:01:54] idefine_: has joined #ruby
[19:02:00] Gasher: has joined #ruby
[19:02:32] nobitano_: has joined #ruby
[19:02:59] floatingpoint: yo. why would I get a "wrong number of arguments (2 for 3)" wen invoking a method if I passed in 3 arguments, and the method signature has a default argument set? signature: def self.files_changed?(first_location, second_location, flags=Hash.new)
[19:03:54] RIK: because your third argument wasn't a hash?
[19:04:09] nofxx: floatingpoint, strange... how you're calling? sure the meth is not getting overwritten?
[19:04:15] evie_hammond: has joined #ruby
[19:04:19] nofxx: or what rik said because you didn't post the insides
[19:04:28] edwinvdgraaf: has joined #ruby
[19:04:31] nofxx: xpt, choosing software by the logo always works
[19:04:32] floatingpoint: rik no third arugment
[19:04:45] floatingpoint: i think i know what's wrong. thanks nofxx!
[19:05:12] nofxx: a nice precious stone or a disgusting snake? A prankful dolphin or a elephant that never forgets for you data?
[19:06:07] edwinvdgraaf: has joined #ruby
[19:06:08] ytti: 'gem install local_file' is slow for me, due to HTTPS GET stuff it does takes time
[19:06:19] nofxx: kidding apart, the logo also shows there's love in it. Only exception will be linux, GNU logos... =D
[19:06:19] ytti: is there some commmand line switch to ignore those
[19:06:30] baweaver: has joined #ruby
[19:06:42] xpt: nofxx: I know. I use soft with jewels in logo cause they are neat
[19:06:43] ytti: like takes maybe 2min before it starts installing the software
[19:06:51] nofxx: and of course, paid stuff that has same budget for design as for code... but nobody uses paid stuff anyways =D
[19:06:54] yfeldblum: has joined #ruby
[19:07:06] zacts: has joined #ruby
[19:07:22] nofxx: ytti, here too.. guess they are updating or fixing
[19:07:35] joonty: has joined #ruby
[19:08:06] zacts: hi rubyists
[19:08:13] ytti: nofxx, as a professinal procrastinator i find this unacceptable, it gives me excuse not to work
[19:08:48] mdelgadonyc: has joined #ruby
[19:09:23] john__: has joined #ruby
[19:10:08] pawnbox: has joined #ruby
[19:10:44] john__: I'm trying to install ruby on mint17 for the first time and I found on the web, that I should install rbev first. I got to some point and got stuck at this:"Modify your ~/.bashrc instead of ~/.bash_profile.". How do I do that?
[19:11:29] nofxx: john__, isn't mint archlinux based? you use pacman no?
[19:11:45] john__: nofxx: ubuntu. apt-get.
[19:11:54] tobiasvl: then debian
[19:11:57] edwinvdg_: has joined #ruby
[19:12:05] darix: john__: why not use the distro package?
[19:12:09] tobiasvl: john__: how do you edit a text file instead of another text file? what's your question
[19:12:10] nofxx: john__, ah, use the repo than. Way easier than rbenv/ ruby switch stuff
[19:12:18] nofxx: darix, debian: read OUTDATED
[19:12:31] darix: nofxx: bullshit, fud. pick how you want to call it
[19:12:34] darix: mint17 is latest
[19:12:47] nofxx: what's ruby version on it?
[19:13:10] bezhermoso: has joined #ruby
[19:13:13] but3k4: has joined #ruby
[19:13:37] john__: I never had anything to do with ruby. I found this: http://stackoverflow.com/questions/20088015/installing-ruby-on-rails-on-linux-mint
[19:13:40] nofxx: debian & ubuntu are still 1.9. So, outdated.
[19:13:48] john__: I'm just following what they said.
[19:13:59] nofxx: john__, dont... just use your package manager
[19:14:10] darix: nofxx: e.g. my distro even ships 2.3 for older distros
[19:14:18] darix: so *shrug*
[19:14:20] john__: nofxx: just apt-get install ruby?
[19:14:38] nofxx: john__, yup, if it's too old you just add another repo into apt.
[19:15:09] Sadin: has joined #ruby
[19:15:10] john__: nofxx: but this is where those people got errors?
[19:15:48] darix: john__: you should understand what the commands are you doing that you just copy paste from websites
[19:15:48] idefine: has joined #ruby
[19:16:34] john__: darix: I do. But I've never heard about this:"Modify your ~/.bashrc instead of ~/.bash_profile."
[19:16:48] darix: both are read. but at different stages
[19:17:21] xpt: nofxx: I have 2.3.0p on debian sid
[19:17:24] john__: darix: that was to me?
[19:17:28] nofxx: john__, they are both just files. And you won't need to modify em if you use your package manager.
[19:17:59] nofxx: actually pretty unintuitive, bashrc isn't the file for this. What if I use zsh or whatever.
[19:18:14] nofxx: Even knowing zsh problably reads bashrc too for s*** like this
[19:18:22] john__: nofxx: I get it, now I'm asking out of curiosity. How do I do it?
[19:18:26] baweaver: has joined #ruby
[19:18:50] pwnd_nsfw: has joined #ruby
[19:18:51] john__: nofxx: "Modify your ~/.bashrc instead of ~/.bash_profile."
[19:19:22] nofxx: don't get it..... arent you `nano ~/.bashrc` or whatever?
[19:19:33] nofxx: just nano ~/.bash_profile instead... they are files... got it?
[19:19:37] nofxx: just files
[19:20:46] blackmesa: has joined #ruby
[19:21:28] djellemah_: has joined #ruby
[19:21:47] threh: has joined #ruby
[19:21:51] codecop: has joined #ruby
[19:22:32] codecop_: has joined #ruby
[19:22:34] yuung: has joined #ruby
[19:22:53] john__: nofxx: Ok, I missed one thing. I get it now. Thank you.
[19:24:51] amackera: has left #ruby: ()
[19:26:48] BSaboia: has joined #ruby
[19:27:35] nhhc: has joined #ruby
[19:28:01] john__: Thanks, bye!
[19:29:28] aef: has joined #ruby
[19:29:47] mleung: has joined #ruby
[19:30:23] mistermocha: has joined #ruby
[19:30:53] idefine: has joined #ruby
[19:31:00] futilegames: has joined #ruby
[19:32:00] ffgghh: has joined #ruby
[19:35:31] tubuliferous_: has joined #ruby
[19:36:05] davedev24: has joined #ruby
[19:36:16] pawnbox: has joined #ruby
[19:36:49] idefine: has joined #ruby
[19:36:58] djbkd: has joined #ruby
[19:37:13] JohnBat26: has joined #ruby
[19:37:20] _blizzy_: has joined #ruby
[19:38:06] Musashi007: has joined #ruby
[19:38:23] crdpink2: has joined #ruby
[19:38:27] idefine: has joined #ruby
[19:39:23] solars: has joined #ruby
[19:39:27] blackmesa: has joined #ruby
[19:40:03] kirun: has joined #ruby
[19:43:27] yuung: has joined #ruby
[19:46:55] pietr0: has joined #ruby
[19:46:59] BtcBen: has joined #ruby
[19:47:05] ur5us: has joined #ruby
[19:47:09] intrigueD: has joined #ruby
[19:47:18] idefine: has joined #ruby
[19:47:19] jdawgaz: has joined #ruby
[19:49:15] idefine: has joined #ruby
[19:51:22] axl_: has joined #ruby
[19:52:01] JohnBat26: has joined #ruby
[19:53:29] yuung: has joined #ruby
[19:54:02] last_staff1: has joined #ruby
[19:55:00] B1n4r10: has joined #ruby
[19:56:14] TomyLobo: has joined #ruby
[19:56:32] jon31: has joined #ruby
[19:56:38] PaulePanter: Hi. An OT question, but what is the term for an array with two elements? ["a", 4], for example?
[19:56:47] PaulePanter: two-element array? Sounds strange though.
[19:56:47] rbennacer: has joined #ruby
[19:57:45] tAn: has joined #ruby
[19:57:45] Radar: PaulePanter: why does it sound strange
[19:57:57] idefine: has joined #ruby
[19:58:03] jkahn: has joined #ruby
[19:58:12] sepp2k: has joined #ruby
[19:58:14] janzo: has joined #ruby
[19:58:23] kentnl: has joined #ruby
[19:58:23] kentnl: has joined #ruby
[19:58:45] Antiarc1: has joined #ruby
[19:58:50] fullofcaffeine: has joined #ruby
[19:58:55] Miccet: has joined #ruby
[19:58:57] tristanp: has joined #ruby
[19:59:06] djellemah: PaulePanter: pair, as in Hash#each_pair
[19:59:24] musl: has joined #ruby
[19:59:47] madhatter: has joined #ruby
[19:59:54] angelixd: has joined #ruby
[20:00:00] guacamole: has joined #ruby
[20:00:05] cout: has joined #ruby
[20:00:11] bigkevmcd: has joined #ruby
[20:01:35] PaulePanter: djellemah: Thank you!
[20:01:45] robbyoconnor: has joined #ruby
[20:01:49] sarlalian: has joined #ruby
[20:02:29] aef: has joined #ruby
[20:02:37] irick: has joined #ruby
[20:02:51] cdg: has joined #ruby
[20:03:06] darkf: has joined #ruby
[20:03:10] veloutin: has joined #ruby
[20:03:48] gmas: has joined #ruby
[20:03:51] Vlat-: has joined #ruby
[20:04:33] David27: has joined #ruby
[20:04:51] shinnya: has joined #ruby
[20:06:06] russt: has joined #ruby
[20:06:49] idefine_: has joined #ruby
[20:08:46] Aviio: has joined #ruby
[20:08:53] kt2: has joined #ruby
[20:09:10] mhib: has joined #ruby
[20:09:28] poguez_: has joined #ruby
[20:09:35] joonty: has joined #ruby
[20:10:10] jkahn: has joined #ruby
[20:10:48] ChiefAlexander: has joined #ruby
[20:11:19] uglybandersnatch: has joined #ruby
[20:11:24] IrishGringo: has joined #ruby
[20:11:41] siaW: has joined #ruby
[20:12:43] Ox0dea: has joined #ruby
[20:12:49] pwnd_nsfw: has joined #ruby
[20:15:10] baweaver: has joined #ruby
[20:15:26] epitron: has joined #ruby
[20:16:12] PaulePanter: Hi. I have an array of pairs: [["a", 0], ["z", 1], ["β", 2], …]
[20:16:25] PaulePanter: I want to create from the second value in the pair.
[20:16:41] PaulePanter: These second values are only present once.
[20:16:57] j2k: has joined #ruby
[20:17:10] pawnbox: has joined #ruby
[20:17:20] eam: PaulePanter: create what?
[20:17:21] apeiros: "I want to create" - I think you accidentally a word
[20:17:42] cgfbee: has joined #ruby
[20:18:37] PaulePanter: Either a hash second value => the first value.
[20:19:15] PaulePanter: Or, as the numbers are uniq, an array, where the position (key(?)) equals the second value and the value the first value.
[20:19:30] adaedra: >> [["a", 0], ["z", 1], ["β", 2]].map { |k, v| [v, k] }.to_h
[20:19:31] apeiros: your example should become "a" => 0, "z" => 1?
[20:19:31] PaulePanter: ["a", "z", "β", …]
[20:19:32] ruby[bot]: adaedra: # => {0=>"a", 1=>"z", 2=>"β"} (https://eval.in/540616)
[20:19:56] PaulePanter: apeiros: Other way around, `to_h` is not enough.
[20:20:06] eam: apeiros beat me to it, I was going to use .map(&:reverse!)
[20:20:10] apeiros: then what adaedra showed
[20:20:13] adaedra: ah, an Array at the end?
[20:20:18] eam: er, adaedra beat me to it
[20:20:23] apeiros: eam: why reverse! and not reverse?
[20:20:33] eam: I guess reverse is fine huh
[20:20:52] eam: I! just! got! excited!
[20:21:08] adaedra: PaulePanter: do indexes have possible holes? (i.e. no 4 but a 5)
[20:21:12] kobain: has joined #ruby
[20:21:13] apeiros: you just cannot hide it?
[20:21:18] PaulePanter: Well, maybe that is also the wrong question, and you have even a better idea to my problen.
[20:21:21] tAn: has joined #ruby
[20:21:38] PaulePanter: adaedra: Yeah, there can be wholes.
[20:21:43] Salve: has joined #ruby
[20:21:52] PaulePanter: (It’s unlikely, but possible.)
[20:22:00] adaedra: PaulePanter: I suppose the hash solution above is not what you're looking to?
[20:22:12] nofacade_: has joined #ruby
[20:22:22] jaruga: has joined #ruby
[20:22:30] cd-rum: has joined #ruby
[20:22:37] PaulePanter: My original problem is, to easily search for the string in the array of pairs. For example, I have the ID 2, then I want to easily get "
[20:23:05] lkba: has joined #ruby
[20:23:13] adaedra: ah, possible through the hash, but I guess it will be O(n) and no O(1) like a standard Array
[20:23:25] PaulePanter: So I thought using a hash might be the easiest solution. But as I already have that array, maybe a more direct approach is possible.
[20:23:33] PaulePanter: adaedra: Right.
[20:23:37] adaedra: otherwise, it's also possible directly with your existing data
[20:23:39] TheCubeLord: has joined #ruby
[20:23:39] TheCubeLord: has joined #ruby
[20:23:49] adaedra: .find_by { |_, v| v == param }
[20:23:50] PaulePanter: adaedra: The hash solution should be fine though, as there is not a lot of data.
[20:24:48] PaulePanter: NoMethodError: undefined method `find_by' for #<Array:0x00000005258ed8>
[20:25:14] nando293921: has joined #ruby
[20:25:26] adaedra: >> [["a", 0], ["z", 1], ["β", 2]].find { |_, v| v == 2 }
[20:25:27] ruby[bot]: adaedra: # => ["β", 2] (https://eval.in/540617)
[20:25:38] adaedra: >> [["a", 0], ["z", 1], ["β", 2]].find { |_, v| v == 2 }.first
[20:25:39] ruby[bot]: adaedra: # => "β" (https://eval.in/540618)
[20:25:42] marsjaninzmarsa: has joined #ruby
[20:25:46] adaedra: et voilà.
[20:25:50] blackjid: has joined #ruby
[20:26:27] adaedra: I'm sorry, I'm a bit tired.
[20:26:34] `tim`: has joined #ruby
[20:27:02] r1nuz: ruby just keeps getting cooler
[20:27:04] PaulePanter: adaedra: Thanks! I wish I could do that when tired. ;-)
[20:27:23] jkahn: has joined #ruby
[20:28:28] john__: has joined #ruby
[20:28:32] freerobby: has joined #ruby
[20:29:07] scepticulous: has joined #ruby
[20:29:14] czerasz: has joined #ruby
[20:29:40] john__: hello again. I followed this https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-with-rbenv-on-ubuntu-14-04 and installed ruby. Up to this point "rails -v" everything was fine. Now I'm getting The program 'rails' can be found in the following packages:
[20:29:40] john__: * ruby-railties-3.2
[20:29:40] john__: * ruby-railties-4.0
[20:29:40] john__: Try: sudo apt-get install <selected package>
[20:29:41] john__: after "rails -v....
[20:29:53] idefine: has joined #ruby
[20:30:37] PaulePanter: john__: There is a #RubyOnRails channel.
[20:30:57] jamil: has joined #ruby
[20:31:12] john__: PaulePanter: freenode?
[20:32:29] PaulePanter: http://ruby-doc.org/core-2.2.0/Array.html
[20:32:34] DominicBurford: has joined #ruby
[20:32:37] PaulePanter: … I cannot find the method `find()`.
[20:32:40] john__: you sure you cannot help? Because I cannot send to the channel.
[20:32:58] adaedra: &ri Array#find
[20:32:58] `derpy: http://ruby-doc.org/core-2.3.0/Enumerable.html#method-i-find
[20:33:03] TheCubeLord: john_: do sudo apt-get install ruby-rails if you need rails
[20:33:16] PaulePanter: adaedra: Thank you.
[20:33:23] adaedra: john__: you need to be registered to talk in #RubyOnRails.
[20:33:43] john__: TheCubeLord: everyone is talking about rbenv?
[20:33:59] john__: adaedra: I figured :)
[20:35:09] _stu_: has joined #ruby
[20:35:21] mdw: has joined #ruby
[20:35:59] fullofca_: has joined #ruby
[20:37:29] hahuang61: has joined #ruby
[20:38:34] kt2: has joined #ruby
[20:40:36] apeiros__: has joined #ruby
[20:40:39] jenrzzz: has joined #ruby
[20:44:25] x77686d: has joined #ruby
[20:45:19] PaulePanter: >> b = []; [["a", 0], ["z", 1], ["β", 2], ["test", 5]].map { |v, k| b[k] = v }; puts b
[20:45:20] ruby[bot]: PaulePanter: # => a ...check link for more (https://eval.in/540620)
[20:46:25] PaulePanter: >> [["a", 0], ["z", 1], ["β", 2], ["test", 5]].map { |v, k| b[k] = v }
[20:46:27] ruby[bot]: PaulePanter: # => undefined local variable or method `b' for main:Object (NameError) ...check link for more (https://eval.in/540621)
[20:46:31] diegoaguilar: has joined #ruby
[20:46:40] PaulePanter: >> b = []; [["a", 0], ["z", 1], ["β", 2], ["test", 5]].map { |v, k| b[k] = v }
[20:46:41] ruby[bot]: PaulePanter: # => ["a", "z", "β", "test"] (https://eval.in/540622)
[20:47:08] PaulePanter: But, why is test not inserted at position 4 (fifth element)?
[20:47:21] nofxx: has joined #ruby
[20:47:21] nofxx: has joined #ruby
[20:47:29] adaedra: KORBEEEEEN
[20:47:31] PaulePanter: b[4] = "test" works correctly.
[20:47:58] diegoviola: has joined #ruby
[20:48:43] adaedra: >> b = []; [["a", 0], ["z", 1], ["β", 2], ["test", 5]].map { |v, k| b[k] = v }; b
[20:48:44] ruby[bot]: adaedra: # => ["a", "z", "β", nil, nil, "test"] (https://eval.in/540624)
[20:48:46] cd-rum_: has joined #ruby
[20:49:03] adaedra: You were looking at the result of #map and not b.
[20:49:26] adaedra: Also, if you don't intent to transform element and use the result, it's #each you should use, not #map.
[20:50:27] halfamind: has joined #ruby
[20:50:35] idefine_: has joined #ruby
[20:51:11] diegoviola: has joined #ruby
[20:51:13] PaulCapestany: has joined #ruby
[20:51:17] PaulePanter: adaedra: Big thank you for your help and comments!
[20:51:38] mhoungbo: has joined #ruby
[20:52:20] halfamind: has joined #ruby
[20:52:54] rbennacer: has joined #ruby
[20:52:56] halfamind: has joined #ruby
[20:53:16] diegoaguilar: hello whats rails channel in freeode?
[20:53:32] halfamind: has joined #ruby
[20:53:55] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[20:55:00] Jackneill: has joined #ruby
[20:55:50] blackmesa: has joined #ruby
[20:56:13] PaulePanter: Sorry, last question for today.
[20:56:27] PaulePanter: Is there a way, to avoid initializing the empty array?
[20:56:40] darkf: has joined #ruby
[20:56:51] adaedra: you need a starting point I think
[20:57:04] PaulePanter: Ok. I’ll just use that.
[20:57:19] adaedra: eam: maybe you can golf better than me on this one?
[20:57:43] treehug88: has joined #ruby
[20:58:45] threh: has joined #ruby
[20:59:58] Noxilex: has joined #ruby
[21:00:59] jenrzzz: has joined #ruby
[21:01:51] My_Hearing: has joined #ruby
[21:02:27] slash_nick: where's the code?
[21:02:28] elifoster: has joined #ruby
[21:02:43] snockerton: has joined #ruby
[21:05:20] zenspider: has joined #ruby
[21:05:21] PaulePanter: slash_nick: What code?
[21:05:42] slash_nick: PaulePanter: exactly
[21:06:01] idefine__: has joined #ruby
[21:06:18] PaulePanter: slash_nick: b = []; [["a", 0], ["z", 1], ["β", 2], ["test", 5]].map { |v, k| b[k] = v }
[21:06:23] slash_nick: PaulePanter: "Is there a way to avoid initializing the empty array?"... what empty array? where's the code? ah, thanks.
[21:06:36] ChiefAlexander: has joined #ruby
[21:06:38] zenspider: drbrain: is there a way to make drb do client & server (using drbunix) in the same process? It seems to be bypassing all the marshalling (I'm writing tests and trying to avoid doing system calls)
[21:09:11] lemur: has joined #ruby
[21:10:24] joonty: has joined #ruby
[21:11:24] yqt: has joined #ruby
[21:14:09] apeiros__: has joined #ruby
[21:14:28] benzrf: PaulePanter: you should probably use each instead of map there
[21:14:43] benzrf: it draws attention to the fact that you're executing the block for side effects
[21:15:13] apeiros__: has joined #ruby
[21:15:35] nobitanobi: has joined #ruby
[21:15:37] uglybandersnatch: has joined #ruby
[21:16:35] apeiros___: has joined #ruby
[21:17:05] mondok: has joined #ruby
[21:17:35] benzrf: is that at me?
[21:17:41] apeiros: 22:16 apeiros___ has joined (~apeiros@80-219-245-205.dclient.hispeed.ch)
[21:17:47] drbrain: zenspider: you want loopback drbunix? hrm…
[21:17:51] apeiros: but I think I just got why that's the case
[21:18:45] siaW: has joined #ruby
[21:19:09] CloCkWeRX: has joined #ruby
[21:19:29] tildes: has joined #ruby
[21:21:21] idefine: has joined #ruby
[21:23:28] Disavowed: has joined #ruby
[21:24:12] weemsledeux: has joined #ruby
[21:24:23] B1n4r10: has joined #ruby
[21:27:11] drbrain: zenspider: https://gist.github.com/drbrain/ed865cdbbab8e927a9e3
[21:27:20] zenspider: drbrain: I think we cheated our way out. subclassed my ServerReporter and forced it to do Marshal.load on the payload.
[21:27:25] baweaver: has joined #ruby
[21:27:48] zenspider: err... dump. not load
[21:28:09] drbrain: yeah, it bypasses the Marshal because of the DRb.here? check
[21:28:25] zenspider: drbrain: your code looks like it works (and it does), but it isn't actually marshalling. look at with_friend in drb/drb.rb
[21:29:03] zenspider: but since I ONLY want to test that I'm sanitizing the exception objects properly, forcing a dump in a subclass should be sufficient.
[21:29:11] zenspider: it'll require more explanation... but it works
[21:31:06] bluOxigen_: has joined #ruby
[21:31:11] mikecmpbll: i've been meaning to play with DRb, looks fun.
[21:31:39] drbrain: mikecmpbll: it is: https://github.com/drbrain/drb-worm
[21:31:52] drbrain: see also: https://github.com/drbrain/drbdump
[21:32:52] drbrain: zenspider: OK
[21:32:57] hahuang61: has joined #ruby
[21:33:03] Devalo: has joined #ruby
[21:33:10] mikecmpbll: drbrain : awesome :D
[21:33:55] mikecmpbll: i wrote a ruby program recently that does a lot of stuff by invoking ruby scripts over ssh, i was thinking of trying to use drb instead, i dunno if that even makes sense cus i've only looked at it briefly :'d
[21:34:16] mikecmpbll: writing the communication stuff over ssh was really sucky, so.
[21:34:23] r1nuz: ssh > rpc
[21:34:32] drbrain: if you're doing DRb over the internet use SSL with mutual auth
[21:34:58] drbrain: by mutual auth I mean the client and the server auth each other
[21:35:15] rbennacer: has joined #ruby
[21:35:32] mikecmpbll: i'll play with it this weekend (4 days, woot)
[21:36:16] yfeldblum: has joined #ruby
[21:36:17] drbrain: mikecmpbll: like this: https://github.com/drbrain/drb-worm/blob/598fa3911dc07db22eae20d9955d37747a865807/lib/drb/worm/connection.rb#L86-L109
[21:36:45] mikecmpbll: drbrain : thanks!
[21:38:25] kingofcarrotflow: has joined #ruby
[21:38:38] skweek: has joined #ruby
[21:43:18] devbug: has joined #ruby
[21:44:20] kingofcarrotflow: Greetings, I have a question about using Ruby's OpenSSL::SSL::SSLContext, I can get the command line curl equivalent of the command to work fine but not the ruby version. Am I doing something incorrect with the context settings? https://gist.github.com/anonymous/11201fa1fdbf007110d5
[21:45:26] kingofcarrotflow: When I make a request with Ruby the server returns and error that the ssl certificate was not sent
[21:46:43] jrafanie: has joined #ruby
[21:50:25] uglybandersnatch: has joined #ruby
[21:54:21] nofacade: has joined #ruby
[21:55:19] dcunit3d: has joined #ruby
[21:56:56] dnewkerk: has joined #ruby
[21:57:54] stannard: has joined #ruby
[21:57:57] imperator: has joined #ruby
[21:58:31] shadoi: has joined #ruby
[21:58:46] jenrzzz: has joined #ruby
[22:00:17] drbrain: kingofcarrotflow: I think you need to ctx.cert = too
[22:00:37] andywojo: has joined #ruby
[22:00:55] htmldrum: has joined #ruby
[22:00:56] htmldrum_: has joined #ruby
[22:01:03] f0f4r: has joined #ruby
[22:01:39] shadoi: has left #ruby: ()
[22:01:57] shadoi: has joined #ruby
[22:02:04] shadoi: has left #ruby: ()
[22:06:28] JakFrist: has joined #ruby
[22:06:34] s00pcan: has joined #ruby
[22:07:00] ruby-lang014: has joined #ruby
[22:07:11] ruby-lang014: has left #ruby: ()
[22:07:14] zapata: has joined #ruby
[22:07:55] baweaver: has joined #ruby
[22:08:15] elifoster: has joined #ruby
[22:11:10] joonty: has joined #ruby
[22:13:01] halfamind: has joined #ruby
[22:14:16] TheCubeLord: ACTION has the thought that one day the mouse would get the cheese makes him feel determined 
[22:14:48] TheCubeLord: Undertale Reference
[22:14:55] ChiefAlexander: has joined #ruby
[22:18:13] mdw: has joined #ruby
[22:18:49] TheCubeLord: ACTION stays determined
[22:19:38] baweaver: TheCubeLord: cross posting #freenode?
[22:20:02] darkf_: has joined #ruby
[22:20:33] snockerton: has joined #ruby
[22:21:27] RickHull: off topic cross posting double whammy?
[22:23:54] bob434: has joined #ruby
[22:25:09] Azure: has joined #ruby
[22:25:23] jdawgaz: has joined #ruby
[22:25:25] intrigueD: has joined #ruby
[22:25:30] rmulliga`: has joined #ruby
[22:28:21] shevy: WHO IS THE EVIL CROSSDRESSER
[22:28:24] shevy: I mean poster
[22:28:53] jdawgaz: has joined #ruby
[22:29:44] BtcBen: has joined #ruby
[22:32:02] jamil: has joined #ruby
[22:32:42] jenrzzz: has joined #ruby
[22:32:42] jenrzzz: has joined #ruby
[22:33:55] x77686d: has joined #ruby
[22:34:55] solocshaw: has joined #ruby
[22:37:13] imperator: has left #ruby: ("Leaving")
[22:37:20] davedev24: has joined #ruby
[22:40:06] zenlot6: has joined #ruby
[22:40:27] tubuliferous_: has joined #ruby
[22:44:31] jenrzzz: has joined #ruby
[22:45:17] jdawgaz: has joined #ruby
[22:45:22] houhoulis: has joined #ruby
[22:48:54] riceandbeans: what's the best way to do a negative include?
[22:49:19] riceandbeans: variable.include? 'stuff' but I want the inverse
[22:49:24] jdawgaz: has joined #ruby
[22:49:41] riceandbeans: if variable.include? 'stuff' false
[22:50:05] riceandbeans: I mean, I could do true unless variable.include? 'stuff'; true
[22:50:17] jottr: has joined #ruby
[22:50:34] riceandbeans: return true unless variable.include? 'stuff'; false
[22:50:47] riceandbeans: but it feels like I can write that neater
[22:52:19] chipotle: has joined #ruby
[22:54:11] Trynemjoel: has joined #ruby
[22:54:43] drbrain: unless variable.include 'stuff'
[22:55:31] BSaboia: has joined #ruby
[22:55:56] uglybandersnatch: has joined #ruby
[22:56:22] silentpost: has joined #ruby
[22:56:36] Dysp: has joined #ruby
[22:56:39] Ox0dea: array.none? 'stuff'
[22:57:03] havenwood: Ox0dea: A certain PR needs merging first...
[22:57:25] Dysp: Hi there. I cannot get the button to update the textbox. Help a newb. https://gist.github.com/anonymous/3b4d2475eebbf2ab9fe3
[22:57:48] malconis: has joined #ruby
[22:57:49] Ox0dea: havenwood: I was trying to be stealthy. ;)
[22:58:10] havenwood: riceandbeans: In Rails-land there's also an #exclude? method.
[22:58:31] kies: has joined #ruby
[22:59:15] baweaver: has joined #ruby
[23:00:23] riceandbeans: havenwood: alas, this isn't rails
[23:00:29] riceandbeans: I don't get why my code isn't working
[23:01:12] riceandbeans: so I'm using mixlib::shellout and getting a string back that contains a blurb
[23:01:29] riceandbeans: it's either a bunch of lines or just one line that pretty much says you have no licenses
[23:01:40] havenwood: riceandbeans: No `return true`, it's already truthy or falsey. Just: !variable.include? 'stuff'
[23:02:03] riceandbeans: so............... return true unless foo.stdout.include? 'No licenses'; false
[23:02:08] havenwood: >> ![].include? 'nope'
[23:02:10] ruby[bot]: havenwood: # => true (https://eval.in/540698)
[23:02:29] riceandbeans: so what I typed, when it SHOULD be false, is returning true
[23:02:45] CloCkWeRX: has joined #ruby
[23:02:55] riceandbeans: but I think the ! may be the easy way out here...
[23:03:03] tobiasvl: riceandbeans: return !foo.stdout.include? 'No licenses'
[23:03:07] tobiasvl: yes like havenwood said
[23:03:32] riceandbeans: but isn't return then redundant?
[23:03:59] tobiasvl: since you were using unless I thought maybe you wanted it in an if clause or something
[23:04:15] tobiasvl: but if it's the final statement in your method it will return it
[23:04:44] tobiasvl: s/statement/expression I guess
[23:05:31] hahuang61: has joined #ruby
[23:09:17] devbug: has joined #ruby
[23:09:59] Spami: has joined #ruby
[23:11:51] joonty: has joined #ruby
[23:13:04] mostlybadfly: has joined #ruby
[23:13:34] roshanavand1: has joined #ruby
[23:15:02] tacit7: has joined #ruby
[23:16:47] Inside: has joined #ruby
[23:16:47] Inside: has joined #ruby
[23:19:26] danielwzd: has left #ruby: ("Leaving")
[23:19:41] rmulliga`: has joined #ruby
[23:20:14] IrishGringo: has joined #ruby
[23:20:53] roshanavand1: has joined #ruby
[23:22:07] p0p0pr37: has joined #ruby
[23:25:17] tubuliferous_: has joined #ruby
[23:26:51] freerobby: has joined #ruby
[23:30:45] Gasher^: has joined #ruby
[23:34:37] uglybandersnatch: has joined #ruby
[23:35:22] mleung_: has joined #ruby
[23:36:17] czerasz: has joined #ruby
[23:37:08] kent\n: has joined #ruby
[23:38:12] DLSteve: has joined #ruby
[23:40:52] diegoviola: has joined #ruby
[23:42:28] Ropeney: has joined #ruby
[23:46:35] mikecmpbll: has joined #ruby
[23:47:23] pwnd_nsfw: has joined #ruby
[23:48:33] xlegoman: has joined #ruby
[23:48:47] jrafanie: has joined #ruby
[23:51:16] johnmilton: has joined #ruby
[23:52:21] halfamind: has joined #ruby
[23:53:16] kentnl: has joined #ruby
[23:56:40] bob434: has joined #ruby
[23:58:17] diegoviola: has joined #ruby
[23:59:18] anoob: has joined #ruby
[23:59:28] anoob: is it possible to define private methods with define_method?
[23:59:34] _stu_: has joined #ruby