« Back to channel list

#ruby - 30 July 2016

« Back 1 day Forward 1 day »
[00:03:12] macsteps: has joined #ruby
[00:04:30] snowy: has joined #ruby
[00:12:32] devoid: has joined #ruby
[00:12:38] flashpoint9: has joined #ruby
[00:17:33] knrz: has joined #ruby
[00:17:45] daffy_duck: has joined #ruby
[00:18:39] AnoHito: has joined #ruby
[00:19:43] pawnbox: has joined #ruby
[00:20:19] ecnalyr: has joined #ruby
[00:21:05] al2o3-cr: has joined #ruby
[00:21:44] Salve: has joined #ruby
[00:29:14] Pupeno: has joined #ruby
[00:29:14] Pupeno: has joined #ruby
[00:32:18] yardenbar: has joined #ruby
[00:35:42] roamingdog: has joined #ruby
[00:37:21] byteflame: has joined #ruby
[00:39:19] soLucien: has joined #ruby
[00:39:51] soLucien: what's the synthax for "iterate through array if array not empty"
[00:40:09] Zarthus: the same as iterating through an array if it weren't
[00:40:26] Zarthus: looping over an empty array just means there will be zero iterations
[00:40:49] Zarthus: regardless, Array#empty? and Array#length or Array#size may help out here.
[00:42:18] juju_: has joined #ruby
[00:42:37] soLucien: [1].any? do |val|
[00:43:04] Zarthus: that's not iterating through an array in particular
[00:43:10] Zarthus: that's just getting an item
[00:43:27] soLucien: the array is [1] in this case
[00:43:29] Zarthus: (and that assumes #any? exists, which presumably returns a boolean)
[00:43:32] Zarthus: You want #each
[00:43:36] soLucien: it may be [1,2]
[00:43:37] vimou: has joined #ruby
[00:44:01] soLucien: Zarthus i want to do something if the array is not empty , then iterate
[00:44:14] nankyokusei: has joined #ruby
[00:44:33] Zarthus: Well, which parts of my comment(s) did you not understand?
[00:44:33] soLucien: as in : if array is not empty , write ## BEGIN ARRAY
[00:44:40] soLucien: then write the values in the array
[00:44:46] soLucien: otherwise, don't write anything
[00:45:08] soLucien: should i simply add that in an if clause?
[00:45:18] Zarthus: I don't see why Array#length can't help you here
[00:45:40] postmodern: is there a way to test sidekiq using something like mock_redis? i want to simulate jobs staying in the queue
[00:45:46] ekinmur: has joined #ruby
[00:45:51] soLucien: ok .. so if array.length > 0
[00:45:52] chouhoulis: has joined #ruby
[00:46:05] soLucien: array.each |val|
[00:46:17] Zarthus: no, you don't need to do that
[00:46:57] Zarthus: >> s=""; [1,2,3].each { |v| s << v; }; s
[00:46:58] ruby[bot]: Zarthus: # => "\u0001\u0002\u0003" (https://eval.in/614162)
[00:47:25] Zarthus: if there's nothing in your array, it will iterate zero times.
[00:48:07] soLucien: but what i need is if length >0 s="we have an array"
[00:48:17] soLucien: that is the initial string
[00:48:25] soLucien: before doing the iteration
[00:48:36] Zarthus: don't need an if check for that
[00:49:08] soLucien: ok .. what do i need ?
[00:50:21] chouhoul_: has joined #ruby
[00:50:43] Zarthus: https://ideone.com/qGHZyc
[00:51:34] soLucien: cool .. that's what i thaught as well
[00:52:01] soLucien: will ? convert something to a boolean ?
[00:52:25] ekinmur: has joined #ruby
[00:52:50] Zarthus: yes and no, it's easier if you assume methods ending in ? will return a boolean
[00:56:02] pawnbox: has joined #ruby
[00:57:34] cyphase: has joined #ruby
[01:00:25] roamingdog: has joined #ruby
[01:01:18] Spami: has joined #ruby
[01:02:04] LoneHermit: has joined #ruby
[01:02:51] LoneHermit: has joined #ruby
[01:03:11] flashpoint9: has joined #ruby
[01:03:25] rubie_: has joined #ruby
[01:04:41] jenrzzz: has joined #ruby
[01:04:45] al2o3-cr: nobody can comprehend ruby until dominos
[01:08:40] Azure: has joined #ruby
[01:10:39] JesseH: has joined #ruby
[01:11:42] hwcomcn: has joined #ruby
[01:13:12] Mattx: has joined #ruby
[01:13:26] matcouto: has joined #ruby
[01:14:18] Mattx: How do I run jruby once it's installed through rvm if I don't want to make it the default ruby interpreter? I just want to execute a file every now and then
[01:14:58] Mattx: I can do "rvm jruby" and then "ruby file.rb". but then I have to always run "rvm use ruby"
[01:15:34] Mattx: and actually, I need to use both at the same time sometimes
[01:16:09] giz|work: has joined #ruby
[01:16:36] SilverKey: has joined #ruby
[01:16:44] pawnbox: has joined #ruby
[01:17:29] flashpoint9: has joined #ruby
[01:19:47] flashpoint9: has joined #ruby
[01:20:41] Silthias: has joined #ruby
[01:21:03] flashpoint9: has joined #ruby
[01:28:39] hannelita: has joined #ruby
[01:32:12] byteflame: has joined #ruby
[01:32:13] Rodya_: has joined #ruby
[01:33:07] al2o3-cr: tune: https://www.youtube.com/watch?v=0-7IHOXkiV8
[01:33:29] xall: has joined #ruby
[01:33:42] braincra-: has joined #ruby
[01:36:30] workmad3: has joined #ruby
[01:39:11] al2o3-cr: fucking brilliaant
[01:40:25] bmurt: has joined #ruby
[01:41:03] Rubie: has joined #ruby
[01:42:13] tomchapin: has joined #ruby
[01:43:50] xall: has joined #ruby
[01:43:53] Guest57195: has joined #ruby
[01:44:28] al2o3-cr: should've never of merged
[01:45:29] giz|work: has joined #ruby
[01:47:28] tristanp: has joined #ruby
[01:48:50] nando293921: has joined #ruby
[01:51:15] sucks: has joined #ruby
[01:51:27] maloik: has joined #ruby
[01:52:27] pawnbox: has joined #ruby
[01:53:20] dmmoody: has joined #ruby
[01:53:25] brianpWins: has joined #ruby
[01:58:05] Devalo: has joined #ruby
[01:58:46] RegulationD: has joined #ruby
[02:02:25] tomchapin: has joined #ruby
[02:03:18] hahuang61: has joined #ruby
[02:06:11] ElFerna: has joined #ruby
[02:10:55] tomchapin: has joined #ruby
[02:11:09] xall: has joined #ruby
[02:13:41] KCmetro: has joined #ruby
[02:15:38] ensyde: has joined #ruby
[02:16:19] der-landgraf: has joined #ruby
[02:19:56] EDT: has joined #ruby
[02:24:09] cyphase: has joined #ruby
[02:25:00] Niham: has joined #ruby
[02:26:07] nettoweb: has joined #ruby
[02:28:14] xall: has joined #ruby
[02:32:03] giz|work: has joined #ruby
[02:36:13] kreantos: has joined #ruby
[02:36:31] flashpoint9: has joined #ruby
[02:44:58] nankyokusei: has joined #ruby
[02:59:05] xall: has joined #ruby
[02:59:26] arlek: has joined #ruby
[02:59:29] RegulationD: has joined #ruby
[02:59:39] symm-: has joined #ruby
[03:00:00] Rubie: has joined #ruby
[03:00:01] jaguarmagenta: has joined #ruby
[03:01:41] cyphase: has joined #ruby
[03:02:41] arlek_: has joined #ruby
[03:02:42] tomchapin: has joined #ruby
[03:04:55] swills: has joined #ruby
[03:05:42] ur5us: has joined #ruby
[03:06:18] pawnbox: has joined #ruby
[03:06:56] ur5us_: has joined #ruby
[03:08:36] gix: has joined #ruby
[03:09:02] matcouto: has joined #ruby
[03:12:39] arlek: has joined #ruby
[03:15:47] braincrash: has joined #ruby
[03:19:39] xall: has joined #ruby
[03:20:35] Rodya_: has joined #ruby
[03:20:44] k3rn31: has joined #ruby
[03:26:01] Dimik: has joined #ruby
[03:26:09] rickmasta: has joined #ruby
[03:27:24] tomchapin: has joined #ruby
[03:28:14] A5101_: has joined #ruby
[03:36:25] hk238: has joined #ruby
[03:40:38] arescorpio: has joined #ruby
[03:41:47] nettoweb: has joined #ruby
[03:50:06] djbkd: has joined #ruby
[03:51:14] benlieb: has joined #ruby
[03:51:54] JimK12: has joined #ruby
[03:54:16] SilverKey: has joined #ruby
[03:56:24] Rubie: has joined #ruby
[03:59:07] Silthias: has joined #ruby
[03:59:17] JimK12: has left #ruby: ("WeeChat 1.5")
[04:00:05] benlieb: has joined #ruby
[04:00:14] pawnbox: has joined #ruby
[04:00:29] qguv: has joined #ruby
[04:03:08] rickmasta: has joined #ruby
[04:03:29] jaguarmagenta: has joined #ruby
[04:03:55] hahuang61: has joined #ruby
[04:04:40] Derperperd: has joined #ruby
[04:05:39] gix: has joined #ruby
[04:08:21] Sid12305: has joined #ruby
[04:09:45] matp: has joined #ruby
[04:15:14] The_Phoenix: has joined #ruby
[04:16:23] M4dH4TT3r: has joined #ruby
[04:16:35] yeticry: has joined #ruby
[04:21:34] ensyde: has joined #ruby
[04:22:59] Rodya_: has joined #ruby
[04:29:23] al2o3-cr: morning stars
[04:33:20] sdwrage: has joined #ruby
[04:35:55] jetpack_joe: has joined #ruby
[04:38:44] flashpoint9: has joined #ruby
[04:39:07] mostlybadfly: has joined #ruby
[04:41:41] sucks: has joined #ruby
[04:45:51] nankyokusei: has joined #ruby
[04:51:47] djbkd: has joined #ruby
[04:53:38] pawnbox: has joined #ruby
[04:54:40] creaked: has joined #ruby
[05:00:20] RegulationD: has joined #ruby
[05:04:32] chouhoulis: has joined #ruby
[05:04:37] hahuang61: has joined #ruby
[05:06:25] chouhoulis: has joined #ruby
[05:06:48] cibs: has joined #ruby
[05:09:24] ecnalyr: has joined #ruby
[05:09:58] dmmoody: has joined #ruby
[05:12:05] Derperperd: has joined #ruby
[05:13:56] Devalo: has joined #ruby
[05:16:12] Hyuk: has joined #ruby
[05:17:02] Silthias: has joined #ruby
[05:17:32] aupadhye: has joined #ruby
[05:20:52] giz|work: has joined #ruby
[05:21:58] djbkd: has joined #ruby
[05:24:35] jackjackdripper: has joined #ruby
[05:29:38] pawnbox: has joined #ruby
[05:31:08] dionysus69: has joined #ruby
[05:38:54] der-landgraf: has joined #ruby
[05:38:54] der-landgraf: has joined #ruby
[05:40:15] flashpoint9: has joined #ruby
[05:40:37] OKpuppet: has joined #ruby
[05:41:02] skade: has joined #ruby
[05:41:41] nofxx: has joined #ruby
[05:41:41] nofxx: has joined #ruby
[05:45:24] chosen1x: has joined #ruby
[05:45:29] araujo_: has joined #ruby
[05:47:34] bluOxigen: has joined #ruby
[05:47:42] ruby[bot]: -b flicflac!*@*$#ruby-banned
[05:53:03] VA3VNA: has joined #ruby
[05:59:54] Puppet: has joined #ruby
[06:05:23] hahuang61: has joined #ruby
[06:07:29] cyphase: has joined #ruby
[06:14:24] chosen1_: has joined #ruby
[06:14:24] lucas_ai: has joined #ruby
[06:16:39] lxsameer: has joined #ruby
[06:17:07] Silthias: has joined #ruby
[06:17:57] Guest34914: has joined #ruby
[06:18:55] yardenbar: has joined #ruby
[06:18:57] ec0: has joined #ruby
[06:19:20] spider-mario: has joined #ruby
[06:19:24] harfangk: has joined #ruby
[06:20:05] valkyr1e: has joined #ruby
[06:20:35] pawnbox: has joined #ruby
[06:21:08] benlieb: has joined #ruby
[06:21:35] chosen1x: has joined #ruby
[06:21:59] byteflame: has joined #ruby
[06:27:24] lucas_ai: has joined #ruby
[06:28:55] shynoob: has joined #ruby
[06:35:10] killerkamel: has joined #ruby
[06:36:57] c0mrad3: has joined #ruby
[06:39:28] Guest34914: has joined #ruby
[06:42:16] rippa: has joined #ruby
[06:46:40] nankyokusei: has joined #ruby
[06:49:57] jaguarmagenta: has joined #ruby
[06:51:18] yfeldblum: has joined #ruby
[06:51:49] sleepee: has joined #ruby
[06:52:22] Silthias: has joined #ruby
[06:52:23] Ishido: has joined #ruby
[06:52:42] yfeldblum: has joined #ruby
[06:54:40] syndikate: has joined #ruby
[06:55:30] dionysus69: has joined #ruby
[06:56:03] ryan: has joined #ruby
[06:56:57] syndikate: Can somebody please help me understand this enemurable method chunk and the usage of p in it? http://ruby-doc.org/core-2.3.1/Enumerable.html#method-i-chunk
[06:58:40] mertbulan: has joined #ruby
[06:59:51] mertbulan: has left #ruby: ()
[07:01:20] RegulationD: has joined #ruby
[07:02:45] hk238: has joined #ruby
[07:03:20] shinnya: has joined #ruby
[07:03:37] MarkBilk: has joined #ruby
[07:05:09] tmtwd: has joined #ruby
[07:05:47] hk238: has joined #ruby
[07:06:07] hahuang61: has joined #ruby
[07:08:11] yeticry: has joined #ruby
[07:09:01] daffy_duck_2: has joined #ruby
[07:10:31] dmmoody: has joined #ruby
[07:12:31] pawnbox: has joined #ruby
[07:14:44] latemus: has joined #ruby
[07:14:59] Devalo: has joined #ruby
[07:15:01] creaked: has joined #ruby
[07:16:25] zapata: has joined #ruby
[07:28:33] jenrzzz: has joined #ruby
[07:31:42] firstdayonthejob: has joined #ruby
[07:39:21] binaryplease1: has joined #ruby
[07:40:48] ec0: has joined #ruby
[07:41:57] flashpoint9: has joined #ruby
[07:45:36] killerkamel: has joined #ruby
[07:47:24] benlieb: has joined #ruby
[07:48:09] benlieb: has joined #ruby
[07:49:18] benlieb: has joined #ruby
[07:50:06] skweek: has joined #ruby
[07:52:31] Silthias: has joined #ruby
[07:55:56] tubuliferous: has joined #ruby
[07:57:10] Pumukel: has joined #ruby
[07:57:24] pawnbox: has joined #ruby
[07:58:04] marr: has joined #ruby
[08:01:08] benlieb: has joined #ruby
[08:01:55] hipertracker: has joined #ruby
[08:06:52] hahuang61: has joined #ruby
[08:07:45] Silthias1: has joined #ruby
[08:07:46] Xeago: has joined #ruby
[08:11:01] p0p0pr37: has joined #ruby
[08:14:21] jenrzzz: has joined #ruby
[08:17:34] snowy: has joined #ruby
[08:28:12] kent\n: has joined #ruby
[08:30:25] jetpack_joe: has joined #ruby
[08:38:39] jenrzzz: has joined #ruby
[08:38:54] jenrzzz: has joined #ruby
[08:41:18] bkxd: has joined #ruby
[08:43:08] sepp2k: has joined #ruby
[08:44:16] snowy: has joined #ruby
[08:45:46] ecnalyr: has joined #ruby
[08:47:14] killerkamel: has joined #ruby
[08:47:34] nankyokusei: has joined #ruby
[08:48:52] pawnbox: has joined #ruby
[08:48:58] pawnbox: has joined #ruby
[08:50:50] duncannz: has joined #ruby
[08:51:49] jaguarmagenta: has joined #ruby
[08:55:41] Mon_Ouie: p obj is a shortcut for puts obj.inspect
[08:55:51] LoneHerm_: has joined #ruby
[08:56:55] Mon_Ouie: Enumerable#chunk groups into an array consecutive items for which the block you passed to it return the same value
[08:57:29] miqlas-H: has joined #ruby
[08:58:46] jenrzzz: has joined #ruby
[08:59:55] hipertracker: has joined #ruby
[09:01:33] benlieb: has joined #ruby
[09:02:03] RegulationD: has joined #ruby
[09:04:34] benlieb: has joined #ruby
[09:05:36] dennisvennink: has joined #ruby
[09:07:37] hahuang61: has joined #ruby
[09:08:14] Cohedrin: has joined #ruby
[09:11:24] dmmoody: has joined #ruby
[09:12:06] Contigi: has joined #ruby
[09:12:38] nso95: has joined #ruby
[09:20:00] tubuliferous: has joined #ruby
[09:22:51] nso95: has left #ruby: ("Leaving")
[09:30:26] symm-: has joined #ruby
[09:31:09] Devalo: has joined #ruby
[09:31:34] pandaant: has joined #ruby
[09:32:59] dhollinger: has joined #ruby
[09:34:31] jenrzzz: has joined #ruby
[09:35:35] howdoi: has joined #ruby
[09:40:41] lele: has joined #ruby
[09:40:43] Guest34914: has joined #ruby
[09:43:11] yfeldblum: has joined #ruby
[09:43:29] flashpoint9: has joined #ruby
[09:47:28] jenrzzz: has joined #ruby
[09:47:28] jenrzzz: has joined #ruby
[09:50:27] toretore: has joined #ruby
[09:52:26] karapetyan: has joined #ruby
[09:55:40] pickandmix: has joined #ruby
[09:56:36] Xentil: has joined #ruby
[09:59:10] SCHAAP137_: has joined #ruby
[09:59:15] killerkamel: has joined #ruby
[10:01:02] Guest34914: has joined #ruby
[10:02:42] pawnbox: has joined #ruby
[10:07:01] Silthias: has joined #ruby
[10:08:22] hahuang61: has joined #ruby
[10:09:40] latemus: has left #ruby: ()
[10:09:49] der-land1: has joined #ruby
[10:11:28] karapetyan: has joined #ruby
[10:13:52] jenrzzz: has joined #ruby
[10:19:11] Silthias1: has joined #ruby
[10:20:42] millerti: has joined #ruby
[10:24:59] vindur: has joined #ruby
[10:25:23] griffindy: has joined #ruby
[10:27:20] kirun: has joined #ruby
[10:28:49] Pupeno: has joined #ruby
[10:35:49] karapetyan: has joined #ruby
[10:41:55] Mia: has joined #ruby
[10:44:55] flashpoint9: has joined #ruby
[10:46:31] Jackneill_: has joined #ruby
[10:47:40] nettoweb: has joined #ruby
[10:48:38] nankyokusei: has joined #ruby
[10:52:36] jaguarmagenta: has joined #ruby
[10:53:37] bioz: has joined #ruby
[10:57:17] rippa: has joined #ruby
[10:59:06] benlieb: has joined #ruby
[11:02:10] karapetyan: has joined #ruby
[11:02:58] RegulationD: has joined #ruby
[11:03:21] kith: has joined #ruby
[11:09:09] hahuang61: has joined #ruby
[11:13:52] ur5us: has joined #ruby
[11:15:03] spectrum: has joined #ruby
[11:16:51] sdothum: has joined #ruby
[11:17:35] Cork: has joined #ruby
[11:20:01] c355E3B: has joined #ruby
[11:22:27] aleskandro: has joined #ruby
[11:23:10] aleskandro: Hi all, i developed a recursive function def recursive_search(some_args, hash_arg)
[11:24:01] aleskandro: when I recall the recursive_search inside it and edit the hash_arg it comes edited also in the caller function, as if the hash_arg is passed by reference
[11:24:11] aleskandro: hash_arg is a hash
[11:24:13] tubuliferous: has joined #ruby
[11:24:21] aleskandro: how can I solve this?
[11:27:01] SCHAAP137: has joined #ruby
[11:27:23] SCHAAP137: has joined #ruby
[11:27:30] ec0: has joined #ruby
[11:29:53] aleskandro: http://pastebin.com/8hkis1Js
[11:29:54] ruby[bot]: aleskandro: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/1a2b16cf1149bfaadb9b0a202e71b9a6
[11:29:55] ruby[bot]: aleskandro: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[11:34:04] last_staff: has joined #ruby
[11:35:43] lxsameer: has joined #ruby
[11:38:20] Hanmac: has joined #ruby
[11:40:22] Silthias: has joined #ruby
[11:40:48] pawnbox: has joined #ruby
[11:41:14] Rubie: has joined #ruby
[11:48:13] nanoz: has joined #ruby
[11:56:28] Emmanuel_Chanel: has joined #ruby
[12:09:54] hahuang61: has joined #ruby
[12:14:56] leitz: has joined #ruby
[12:17:55] ule: Hi there
[12:18:09] ule: I need to order a hash according with an another hash
[12:18:15] ule: for example:
[12:18:34] ule: correct_order = [a, b, c, d]
[12:18:40] ule: and my hash I have some like this:
[12:19:36] ule: my_hash = {foo=>bar, size=>{c=>1, d=>6, a=>4, b=>8 } }
[12:22:00] ecnalyr: has joined #ruby
[12:22:40] Chair: has joined #ruby
[12:24:59] tubuliferous: has joined #ruby
[12:27:10] Asher: has joined #ruby
[12:30:11] Mon_Ouie: aleskandro: Yes, you always pass a reference to objects in Ruby. You can Copy the hash before you pass it by calling #dup. You can also copy it inside the method right before you modify it (tj = start_tj.dup).
[12:30:50] benlieb: has joined #ruby
[12:31:02] Mon_Ouie: ule: Hashes preserve insertion order, so you could rebuild the hash by iterating over correct_order and inserting key/value pairs into a new hash.
[12:31:42] codeandcoffee_: has joined #ruby
[12:31:56] ule: Mon_Ouie: that's what I'm doing here.. I'm almost finishing and then I'll paste the code here so you guys can give me some tips if it's possible to improve the code
[12:38:40] araujo: has joined #ruby
[12:38:54] araujo: has joined #ruby
[12:44:39] Cork: has joined #ruby
[12:46:22] flashpoint9: has joined #ruby
[12:47:20] LoneHermit: has joined #ruby
[12:49:17] nankyokusei: has joined #ruby
[12:52:30] leitz: Design question. The program loads Module M and makes an Object of Class O. Program then loads one of Modules 1, 2, or 3 to do stuff to Object. Modules 1, 2, and 3 have similar Methods but use different Module attributes internally.
[12:52:54] leitz: Is there a better way to write 1, 2, and 3 than to duplicate method code manually?
[12:53:17] jaguarmagenta: has joined #ruby
[12:55:40] tk_: has joined #ruby
[12:56:05] face: has joined #ruby
[13:03:13] nofxx: has joined #ruby
[13:03:28] GabeTomaz: has joined #ruby
[13:03:49] RegulationD: has joined #ruby
[13:03:59] Papierkorb: leitz: You mean a ruby Module, right?
[13:04:48] g6egh8hjh: has joined #ruby
[13:07:10] hipertracker: has joined #ruby
[13:07:20] toretore: leitz: it's much easier to help if you can show some actual code
[13:07:51] leitz: Papierkorb, sort of. Module M loads one of Module 1, 2, or 3. The main method, "run_career" is currently in 1, 2, and 3. It calls specific methods in those modules, but putting "run_career" in Module M seems to be very tight coupling.
[13:08:25] leitz: These two modules should be mostly the same in "run_career". https://github.com/LeamHall/CT_Character_Generator/blob/master/lib/Noble.rb
[13:09:02] Papierkorb: leitz: You can totally share code between models too by having another module with that code, and then include that other module in the 'interested' modules
[13:10:12] leitz: https://github.com/LeamHall/CT_Character_Generator/blob/master/lib/Citizen.rb
[13:10:39] hahuang61: has joined #ruby
[13:11:14] leitz: the program Chargen.rb requires module CharacterTools.rb, which requires either Noble.rb, Citizen.rb, or Other.rb.
[13:11:28] Papierkorb: Doesn't really look OOP-y
[13:11:49] leitz: I'm using it to learn OOP-y stuff. Still learning. :)
[13:12:10] Papierkorb: leitz: Citizen looks like it could be a usual class
[13:12:42] bmurt: has joined #ruby
[13:12:54] Papierkorb: leitz: Storing everything into an 'external' object, in this case even a Hash, for this is not needed. Are you coming from a imperative language?
[13:12:57] dmmoody: has joined #ruby
[13:13:24] leitz: Papierkorb, I do mostly bash and have done some C. So yeah, my OOP-fu is weak.
[13:13:51] Papierkorb: So yes, imperative. No problem.
[13:14:08] Papierkorb: Huh, your README talks about it using Ruby 1.8 - Is this true?
[13:14:19] leitz: I'm trying to keep things simple so I don't get too confused.
[13:14:33] leitz: On Ruby 1.8, yes. I work on servers, and that's what they have.
[13:14:44] Papierkorb: Oh my god, that's way beyond end of life
[13:14:46] Papierkorb: Please don'T
[13:15:14] Papierkorb: Also on servers, you can easily install a recent ruby for a single user without any root permissions required
[13:15:16] leitz: Can't add a newer Ruby, and that's why I minimize my code to use Built in classes and modules.
[13:15:41] leitz: Then whatever I write won't work on the other servers.
[13:15:53] Papierkorb: leitz: You're making things for yourself much much harder. "Keeping it simple to not get confused" is the polar opposite
[13:16:11] Papierkorb: What are those 'other servers'?
[13:16:21] leitz: All Ruby 1.8.
[13:16:50] Papierkorb: Ruby 1.8 is not only ultra slow, but also has tons of known issues which are unpatched.
[13:17:01] Papierkorb: It's like you're using Windows 98 for a new deployment
[13:17:10] leitz: Understood, but not something i can change.
[13:17:36] leitz: Rather, I'm willing to live with the old version instead of having to maintain a new version everywhere.
[13:18:00] Papierkorb: You know bash, right? Script it.
[13:19:39] hammond: has joined #ruby
[13:20:09] leitz: And sit though days of coding to script and weeks of meetings to talk management into a new version of ruby just so I can have new featuers I'm not going to use?
[13:20:24] hammond: in a case statement when I'm catching string commands with when how do I catch a string that's included in the general string
[13:20:40] Papierkorb: > not going to use
[13:20:42] hammond: like "This is a string" when "string"
[13:20:48] hammond: or something
[13:21:04] Papierkorb: hammond: use regexps: when /something/
[13:22:24] Papierkorb: leitz: Also have a base-class for 'people'. if a noble is a citizen, make Noble inherit from Citizen. If not, have a base-class like `Person` and make classes inherit from that. In ruby, we use snake_case.rb file names, NotThis.rb
[13:23:58] Papierkorb: leitz: And "not going to use". Good one. I don't get it, why do people make it so much harder for them under the guise of 'making it easier'? Gems will want to use "that new stuff", people helping expect you use a recent ruby version which is not EOL'd.
[13:24:42] Papierkorb: ruby-install isn't hard, perfectly scriptable (using bash, there are pre-made ansible plays for it, or with other provision tools)
[13:25:23] Papierkorb: And if your app gets crashed or otherwise owned by an attacker through a known issue, what's going "management" think about you then?
[13:27:48] leitz: Papierkorb, I understand that "real" Ruby programmers need and use the newer features and efficiencies. I'm trying to learn and show the local folks that Ruby is a viable alternative to Python or Perl. If we have to install new versions of Ruby outside of vendor provided code, and if we have to run regression tests because new gems break old code, Ruby loses a chance to be used.
[13:28:24] leitz: I can use the Ruby on the system and do simple stuff.
[13:28:48] leitz: I can play with Ruby at home and learn more so I can take it to work and do more stuff.
[13:29:30] leitz: I've gone from https://github.com/LeamHall/CT_Character_Generator/blob/oldstable/lib/character.rb
[13:29:48] leitz: https://github.com/LeamHall/CT_Character_Generator/blob/master/lib/Character.rb
[13:30:35] leitz: I expect to get better as I go.
[13:31:20] hammond: idk i think ruby is good for tech-savvy people. like coders.
[13:31:21] Papierkorb: 1) small char file name 2) If your method does not expect arguments, you can leave out the "()" completely 3) Please don't use String.new, simply do ""
[13:32:47] bmurt: has joined #ruby
[13:33:54] Papierkorb: leitz: The ruby community has a somewhat common ground on what ruby code should look like. You don't have to follow everyone in the end, but for the start, it could be a good idea. You can use `rubocop` ($ gem install rubocop) as code linter. Your code editor may already come with rubocop integration. Rubocop would tell you the same I told you
[13:33:57] leitz: hammond, I find Ruby fun to code in.
[13:34:54] hammond: true. distributing ruby code to normal users seems hard. but probably possible.
[13:36:33] leitz: Papierkorb, Papierkorb, rubocop only supports MRI 2+
[13:36:50] Papierkorb: Which is reasonable.
[13:37:25] Papierkorb: I'm not going to recommend using software which is EOL'd and has security issues.
[13:37:48] thinkvantage: has joined #ruby
[13:41:21] The_Phoenix: has joined #ruby
[13:41:41] hipertracker: has joined #ruby
[13:46:28] minotep: has joined #ruby
[13:49:31] Guest34914: has joined #ruby
[13:50:44] DoubleMalt: has joined #ruby
[13:51:39] agit0: has joined #ruby
[13:53:46] giz|work: has joined #ruby
[13:54:29] leitz: Papieroorb, understood.
[13:54:53] leitz: Sorry, didn't mean to misspell Papierkorb. Just got back from breakfast.
[13:57:25] ellisTAA: has joined #ruby
[14:01:03] shinnya: has joined #ruby
[14:07:41] johnmilton: has joined #ruby
[14:11:23] hahuang61: has joined #ruby
[14:12:45] jenrzzz: has joined #ruby
[14:13:04] tubuliferous: has joined #ruby
[14:16:30] hakunin: has joined #ruby
[14:17:26] minimalism: has joined #ruby
[14:17:29] Spami: has joined #ruby
[14:19:12] qbantek: has joined #ruby
[14:19:22] jenrzzz: has joined #ruby
[14:19:22] jenrzzz: has joined #ruby
[14:19:26] Devalo: has joined #ruby
[14:24:21] johnmilton: has joined #ruby
[14:25:25] qbantek: has joined #ruby
[14:26:23] ElFerna: has joined #ruby
[14:27:15] l4v2: has joined #ruby
[14:31:04] ruby[bot]: has joined #ruby
[14:31:04] ChanServ: +o ruby[bot]
[14:31:32] hakunin: has joined #ruby
[14:32:16] Yacker: has joined #ruby
[14:36:51] ellisTAA: has joined #ruby
[14:37:14] nankyokusei: has joined #ruby
[14:38:07] kobain: has joined #ruby
[14:40:47] tvw: has joined #ruby
[14:41:05] framling: has joined #ruby
[14:41:45] ellisTAA: has joined #ruby
[14:41:53] qbantek: has joined #ruby
[14:41:56] Rodya_: has joined #ruby
[14:46:29] MarkBilk: has joined #ruby
[14:47:48] flashpoint9: has joined #ruby
[14:49:43] RegulationD: has joined #ruby
[14:50:23] sdwrage: has joined #ruby
[14:51:00] Devalo: has joined #ruby
[14:53:14] aryaching: has joined #ruby
[14:54:06] jaguarmagenta: has joined #ruby
[14:55:00] djbkd: has joined #ruby
[14:55:01] spudowiar: has joined #ruby
[14:57:52] st0mar: has joined #ruby
[15:00:07] flashpoint9: has joined #ruby
[15:01:53] ellisTAA: functional programming is not by any means concurrent right? id have to write functional code that is also concurrent if i wanted both?
[15:02:01] ellisTAA: oops wrong channel
[15:02:49] SilverKey: has joined #ruby
[15:03:19] hipertracker: has joined #ruby
[15:08:41] elomatreb: has joined #ruby
[15:09:07] ekinmur: has joined #ruby
[15:10:29] ahuman: has joined #ruby
[15:12:09] hahuang61: has joined #ruby
[15:12:25] dmmoody: has joined #ruby
[15:12:37] bmurt: has joined #ruby
[15:13:49] tubuliferous: has joined #ruby
[15:16:03] Rubie: has joined #ruby
[15:17:10] Es0teric: has joined #ruby
[15:17:48] craigp: has joined #ruby
[15:19:29] bmurt: has joined #ruby
[15:20:02] Devalo: has joined #ruby
[15:21:28] Rubie: has joined #ruby
[15:24:33] SilverKey: has joined #ruby
[15:29:38] jud^: has joined #ruby
[15:33:21] hakunin_: has joined #ruby
[15:34:28] nischay1989: has joined #ruby
[15:35:33] hakunin: has joined #ruby
[15:36:11] hakunin__: has joined #ruby
[15:38:08] diegoviola: has joined #ruby
[15:39:29] seap: has joined #ruby
[15:41:42] ellisTAA: has joined #ruby
[15:41:43] sleepee: has joined #ruby
[15:45:16] ellisTAA: has joined #ruby
[15:49:27] nickjj_: has joined #ruby
[15:49:40] jhack: has joined #ruby
[15:50:48] ellisTAA: has joined #ruby
[15:51:40] joonty: has joined #ruby
[15:52:57] nettoweb: has joined #ruby
[15:53:24] Rubie: has joined #ruby
[15:54:34] Rubie: has joined #ruby
[15:56:29] rubie_: has joined #ruby
[15:57:53] swills: has joined #ruby
[15:58:27] ecnalyr: has joined #ruby
[15:58:27] joonty: has joined #ruby
[16:02:19] chouhoulis: has joined #ruby
[16:02:25] ElFerna: has joined #ruby
[16:04:01] ellisTAA: has joined #ruby
[16:04:53] kavanagh: has joined #ruby
[16:08:53] nettoweb: has joined #ruby
[16:11:10] joonty: has joined #ruby
[16:12:31] karapetyan: has joined #ruby
[16:12:54] hahuang61: has joined #ruby
[16:15:21] AndyBotwin: has joined #ruby
[16:15:48] tubuliferous: has joined #ruby
[16:15:49] Devalo: has joined #ruby
[16:16:23] fmcgeough: has joined #ruby
[16:17:55] pawnbox: has joined #ruby
[16:19:19] krobzaur: has joined #ruby
[16:20:18] hakunin: has joined #ruby
[16:20:30] Hyuk: has joined #ruby
[16:21:25] nankyokusei: has joined #ruby
[16:22:35] kavanagh: has joined #ruby
[16:23:47] pawnbox: has joined #ruby
[16:24:37] karapetyan: has joined #ruby
[16:25:00] dennisvennink: has joined #ruby
[16:25:37] Rubie: has joined #ruby
[16:28:01] joonty: has joined #ruby
[16:29:56] sepp2k: has joined #ruby
[16:34:37] karapetyan: has joined #ruby
[16:38:43] arulmagi: has joined #ruby
[16:39:12] ellisTAA: has joined #ruby
[16:39:20] ule: how can I check if a hash key exist and its not empty?
[16:44:28] Cohedrin: has joined #ruby
[16:44:42] hakunin: has joined #ruby
[16:46:38] bmurt: has joined #ruby
[16:48:22] Papierkorb: ule: what shall not be 'empty'?
[16:48:59] Tempesta: has joined #ruby
[16:49:18] Papierkorb: ule: The hash, or the value you get out of the hash?
[16:50:39] RegulationD: has joined #ruby
[16:51:42] statelesscode_: has joined #ruby
[16:51:44] harfangk: has joined #ruby
[16:51:50] flashpoint9: has joined #ruby
[16:54:50] jaguarmagenta: has joined #ruby
[16:58:01] shinnya: has joined #ruby
[16:59:40] DoubleMalt: has joined #ruby
[17:00:38] Yacker: has joined #ruby
[17:02:11] ule: Papierkorb: it was just curiosity..
[17:02:31] ule: I think just using .key? will help me here
[17:02:41] Papierkorb: ule: No problem, just need some clarification so I can give you a proper answer :)
[17:02:57] ule: https://raw.githubusercontent.com/rodolfobandeira/ruby-studies/master/sorting_hash_group/sort_hash_group.rb
[17:02:58] Papierkorb: ule: Yes, or include?
[17:03:01] Rubie: has joined #ruby
[17:03:05] ule: I was playing with this test here
[17:03:24] Papierkorb: ule: Please post the non-raw version
[17:03:24] nando293921: has joined #ruby
[17:03:30] ule: oh sorry
[17:03:42] ule: https://github.com/rodolfobandeira/ruby-studies/blob/master/sorting_hash_group/sort_hash_group.rb
[17:04:26] ule: If you guys want to give me some suggestions.. Always when I post some code here.. someone give me the same code with 1 line lol
[17:05:16] Papierkorb: ule: Ah, you're looking for a way to order the keys of the hash so they match the 'correct_size_order', correct?
[17:05:27] ule: Mon_Ouie: ^^
[17:05:42] ule: Papierkorb: exactly
[17:06:24] ule: this code is working well.. I just want to know if I could improve something according with someone with more experience than me
[17:06:34] ule: apeiros: ^^
[17:06:39] Papierkorb: ule: There are actually multiple 1-line versions ;)
[17:07:02] ule: my goal is become this kind of ruby dev
[17:07:11] ule: writing cool stuffs with just one line
[17:07:15] Papierkorb: >> a = {"L"=>5, "M"=>10, "S"=>9, "EXTRA"=>88, "XL"=>1, "XS"=>4}; b = %w(XS S M L XL); b.zip(a.values_at(*b)).to_h
[17:07:17] ruby[bot]: Papierkorb: # => {"XS"=>4, "S"=>9, "M"=>10, "L"=>5, "XL"=>1} (https://eval.in/614340)
[17:07:37] ule: Papierkorb: how about extra? it should go the the end
[17:07:57] ule: Papierkorb: OMG this is so coool
[17:08:09] Papierkorb: However, if one size is not given, this will include stuff like `"M" => nil`. To remedy this, you append ...to_h.reject{|_, v| v.nil?}
[17:08:33] Papierkorb: If you're working with Rails, or have ActiveSupport loaded, you can just use `compact` instead of the `reject`. It does the same
[17:08:52] flashpoint9: has joined #ruby
[17:08:53] ule: Papierkorb: I'm writing down your tips here.. I'm gonna read the docs for each function to understand well
[17:08:55] rails: i should go
[17:08:56] rails: has left #ruby: ("I thought what I'd do was, I'd pretend I was one of those deaf-mutes.")
[17:09:30] Papierkorb: ule: If you want to add 'EXTRA', just append it to the sorted array. Or any other position you want it to show up
[17:11:03] Papierkorb: >> a = {"L"=>5, "M"=>10, "S"=>9, "EXTRA"=>88, "XL"=>1, "XS"=>4}; b = %w(XS S M L XL); b.each_with_object({}){|key, hsh| hsh[key] = a[key]}
[17:11:04] ruby[bot]: Papierkorb: # => {"XS"=>4, "S"=>9, "M"=>10, "L"=>5, "XL"=>1} (https://eval.in/614341)
[17:11:22] Papierkorb: ule: Another solution above. Same `reject` stuff applies to this one.
[17:11:49] ule: Papierkorb: thank you so much!!
[17:12:15] ellisTAA: has joined #ruby
[17:12:15] ule: Papierkorb: how long have you been working with ruby?
[17:12:17] Papierkorb: ule: There is a third 1-line way I can think of right now using Enumerable#map. Try coming up with it yourself, if you're having trouble, ask here
[17:12:23] Papierkorb: ule: A year or something?
[17:12:44] ule: Papierkorb: really cool! thanks a lot!
[17:13:39] hahuang61: has joined #ruby
[17:15:24] eljimbo: has joined #ruby
[17:15:24] ule: in order to append I would need to execute some kind of diff
[17:15:48] ule: to extract examples like the EXTRA there..
[17:15:53] giz|work: has joined #ruby
[17:16:07] ule: not sure if I can do .diff on hash or I'll need to convert it to array
[17:16:40] Papierkorb: Append? Diff? Can't follow right now
[17:17:21] ule: so.. after ordering like you did above, I would need to create a diff from the original hash and the final hash
[17:17:40] ule: this will give the elements that is differing right.. something like a.diff(b)
[17:17:54] ule: and then append it to the sorted hash
[17:17:57] ule: lemme try here
[17:19:40] yorickpeterse: has joined #ruby
[17:19:45] hipertracker: has joined #ruby
[17:20:07] evie_hammond: has joined #ruby
[17:23:47] jackjackdripper: has joined #ruby
[17:24:16] al2o3-cr: anyone got any ideas on how to set STDIN.readline to non-blocking because i've tried everything
[17:26:31] Ishido: has joined #ruby
[17:27:27] wpaulson: has joined #ruby
[17:28:07] wpaulson: has joined #ruby
[17:29:03] Azure: has joined #ruby
[17:29:03] jackjackdripper1: has joined #ruby
[17:30:11] firstdayonthejob: has joined #ruby
[17:33:37] elifoster: has joined #ruby
[17:36:13] jhack: has joined #ruby
[17:36:37] toretore: al2o3-cr: what do you mean exactly?
[17:37:43] al2o3-cr: toretore: i've set non blocking with require 'fcntl'; STDIN.fcntl Fcntl::F_SETFL, Fcntl::O_NONBLOCK
[17:38:01] al2o3-cr: but it still blocks when call STDIN.readline
[17:39:08] yqt: has joined #ruby
[17:41:25] al2o3-cr: >> require 'fcntl'; STDIN.fcntl Fcntl::F_SETFL, Fcntl::O_NONBLOCK
[17:41:26] ruby[bot]: al2o3-cr: # => 0 (https://eval.in/614392)
[17:41:29] toretore: i think you're going to have to use read_nonblock
[17:41:41] al2o3-cr: it sets it but totally disregards it
[17:42:04] al2o3-cr: tried doesn't work with read_nonblock
[17:42:10] matthewd: has joined #ruby
[17:42:15] Papierkorb: al2o3-cr: Tried simply STDIN.sync = false ?
[17:42:30] al2o3-cr: Papierkorb: ah, no, let me try
[17:43:10] Papierkorb: I guess it only works with read_nonblock or readpartial
[17:43:42] al2o3-cr: yep, no luck :(
[17:44:00] al2o3-cr: guess it can't be done
[17:44:02] Papierkorb: what do you want to do?
[17:44:30] toretore: how does read_nonblock not work?
[17:46:07] al2o3-cr: how would i use read_nonblock to read newline terminated strings
[17:47:01] al2o3-cr: and i don't know the strings beforehand
[17:47:02] lkb: has joined #ruby
[17:47:18] Velizar: has joined #ruby
[17:47:28] toretore: use a buffer
[17:47:56] eljimbo: has joined #ruby
[17:48:00] Velizar: Is there a better way to write lines 4-6? https://gist.github.com/VelizarHristov/2785c4e15c11db1dcd0a4f0a4b95a4ee
[17:48:11] Velizar: I feel like there might be a method which does that for me
[17:48:16] QORRiE: has joined #ruby
[17:48:33] al2o3-cr: Velizar: raise "fooo", if ...
[17:48:39] toretore: Velizar: the code is fine
[17:48:54] Velizar: like assert(), but assert is not for production really
[17:49:12] Es0teric: has joined #ruby
[17:49:16] al2o3-cr: I'm gonna try something
[17:49:17] Cohedrin: has joined #ruby
[17:49:45] skweek: has joined #ruby
[17:50:54] flashpoint9: has joined #ruby
[17:54:40] ineb: just me, or is youtube down? https://www.youtube.com/watch?v=Hp0wqq0EKJg
[17:54:53] ineb: kind of down.
[17:55:01] ineb: no videos working here
[17:55:14] drbrain: works fine from SEA
[17:55:14] ineb: awww wrong channel. sorry
[17:55:32] drbrain: all 7 minutes downloaded instantly
[17:55:39] ineb: thanks nevertheless
[17:56:21] SCHAAP137: has joined #ruby
[17:58:58] ruby[bot]: -b BobsBurger!*@*$#ruby-banned
[18:05:42] bkxd: has joined #ruby
[18:06:16] Alina-malina: has joined #ruby
[18:07:01] matp: has joined #ruby
[18:08:18] Velizar: has left #ruby: ()
[18:09:16] Alina-malina_: has joined #ruby
[18:09:20] soLucien: has joined #ruby
[18:09:23] Guest34914: has joined #ruby
[18:09:32] soLucien: hi guys ! What is the meaning of ||= ?
[18:09:37] nettoweb: has joined #ruby
[18:10:04] soLucien: def self.source_root
[18:10:04] soLucien: @source_root ||= Pathname.new(File.expand_path("../../", __FILE__))
[18:10:20] adam12: It's an or-equals
[18:10:38] adam12: Basically, if @source_root is not nil, return it. If not, use the value from the Pathname call and then assign it to @source_root
[18:10:49] adam12: (which then gets returned obviously)
[18:11:03] adam12: It can also be referred to as memoization.
[18:12:45] soLucien: it's like the null coalescing operation in c#
[18:13:11] soLucien: possiblyNullValue ?? valueIfNull
[18:13:40] hahuang61: has joined #ruby
[18:14:34] cdg: has joined #ruby
[18:15:58] myndzi: has joined #ruby
[18:19:58] ruby[bot]: -b mikeockisitchy!*@*$#ruby-banned
[18:20:00] havenwood: soLucien: possibly or possibly = value
[18:21:28] RegulationD: has joined #ruby
[18:21:32] Alina-malina_: has joined #ruby
[18:22:17] nankyokusei: has joined #ruby
[18:27:58] Hobogrammer: has joined #ruby
[18:30:41] Dimik: has joined #ruby
[18:31:08] jenrzzz: has joined #ruby
[18:31:25] banisterfiend: has joined #ruby
[18:32:45] ruby-lang388: has joined #ruby
[18:34:39] Cohedrin: has joined #ruby
[18:44:38] ruby-lang388: using elasticsearch module, I want to find out and create an array of all nodes that are masters. So that I can compare all nodes with this array later in my script and print something only if they are not masters.
[18:44:57] ruby-lang388: can any one suggest how to be able to do this?
[18:45:58] ruby[bot]: -b Dreamer4!*@*$#ruby-banned
[18:45:59] toretore: what is "elasticsearch module"?
[18:46:36] chihhsin: has joined #ruby
[18:46:58] ruby-lang388: first question in any of the IRCs ever. ( and I did read the link about how to ask question ). But if I miss some details. Sorry about that..
[18:47:04] ruby-lang388: I mean this: https://github.com/elastic/elasticsearch-ruby
[18:47:25] soLucien: description <<-DESC
[18:47:29] soLucien: what's this ?
[18:48:11] nettoweb: has joined #ruby
[18:48:13] toretore: soLucien: stop pasting so many lines
[18:48:16] hogetaro: has joined #ruby
[18:48:18] toretore: DESC is a herecod
[18:48:43] soLucien: ok, i'll google that.. thanks
[18:49:33] soLucien: and sorry about pasting so much, didn't account for the newlines
[18:49:48] toretore: ?gist for future reference
[18:49:48] ruby[bot]: toretore: I don't see no for, whom should I tell about gist?
[18:50:03] ruby[bot]: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[18:50:03] aries_liuxueyang: has joined #ruby
[18:50:04] soLucien: i know, i use it
[18:50:04] headius: Mattx: rvm jruby do ruby ....
[18:50:20] soLucien: but this was supposed to be a one-line
[18:50:24] headius: I have ruby23 aliased to "rvm ruby-2.3.0 do ruby"
[18:50:35] ellisTAA: has joined #ruby
[18:52:22] soLucien: heredocs : what is the purpose of naming them ? As i can see, it's a syntactic sugar that allows for multi-line strings
[18:52:34] soLucien: why call them DESC FOO BAR HEREDOC ?
[18:53:36] toretore: so that you can choose the delimiter to not conflict with your content
[18:54:01] soLucien: i understand .. didn't consider that edge case
[18:55:36] jaguarmagenta: has joined #ruby
[18:57:19] Spami: has joined #ruby
[19:00:30] PressReader: has joined #ruby
[19:02:57] Rubie: has joined #ruby
[19:04:01] gregf: has joined #ruby
[19:05:28] yfeldblum: has joined #ruby
[19:07:02] SilverKey: has joined #ruby
[19:07:40] jetpack_joe: has joined #ruby
[19:14:04] Devalo: has joined #ruby
[19:19:13] Synthead: has joined #ruby
[19:19:24] ellisTAA: has joined #ruby
[19:20:16] hipertracker: has joined #ruby
[19:21:20] Devalo: has joined #ruby
[19:21:59] flashpoint9: has joined #ruby
[19:22:53] giz|work: has joined #ruby
[19:24:49] karapetyan: has joined #ruby
[19:24:59] kavanagh: has joined #ruby
[19:25:03] Rubie: has joined #ruby
[19:25:10] nhhc: has joined #ruby
[19:29:52] flashpoint9: has joined #ruby
[19:32:36] jenrzzz: has joined #ruby
[19:32:36] jenrzzz: has joined #ruby
[19:34:50] ecnalyr: has joined #ruby
[19:37:08] QORRiE: has joined #ruby
[19:37:22] RegulationD: has joined #ruby
[19:37:36] enilsen16: has joined #ruby
[19:39:01] Synthead: has joined #ruby
[19:39:45] agit0: has joined #ruby
[19:50:14] gregf: has joined #ruby
[19:53:13] benlieb: has joined #ruby
[19:53:39] k3rn31: has joined #ruby
[19:54:16] yqt: has joined #ruby
[19:56:54] kobain: has joined #ruby
[19:57:05] joonty: has joined #ruby
[19:57:42] maarhart: has joined #ruby
[19:57:55] der-landgraf: has joined #ruby
[19:57:55] der-landgraf: has joined #ruby
[19:58:17] ec0: has joined #ruby
[19:58:36] symm-: has joined #ruby
[20:07:05] Rubie: has joined #ruby
[20:08:28] Rodya_: has joined #ruby
[20:09:03] Rodya_: has joined #ruby
[20:09:32] soLucien: why would one use the ! in the method_name! synthax?
[20:10:06] maarhart: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[20:10:16] rails: has joined #ruby
[20:17:09] Hobogrammer: has joined #ruby
[20:17:18] Gabriel: has joined #ruby
[20:18:30] tAn: has joined #ruby
[20:22:15] pawnbox: has joined #ruby
[20:22:58] nankyokusei: has joined #ruby
[20:23:51] Papierkorb: soLucien: As visual indicator that this method does something destructive, something maybe 'unexpected' or could also be used to identify a method with 'interesting' side effects
[20:24:30] aeterne: has joined #ruby
[20:25:10] Papierkorb: soLucien: For example, String has gsub and gsub!. The first one returns the new, gsubbed string. The second one modifies the string itself (= it is destructive), which can lead to side-effects outside the callers domain if one is not careful.
[20:27:36] soLucien: alright .. so ! is part of the function name
[20:27:43] soLucien: and it does not imply anything to the lnguage
[20:27:47] soLucien: just like ? is
[20:27:59] soLucien: a visual indicator that the function returns boolean
[20:28:23] allcentury: has joined #ruby
[20:28:30] kavanagh: has joined #ruby
[20:32:18] Evesy_: has joined #ruby
[20:34:32] Evesy_: Hey there, I had a quick question re some erb syntax.. I've got the below in a template and I don't want it to include a newline (i.e. having -%>) if nothing is to be outputted, but if it is I do want the newline to exist:
[20:34:34] Evesy_: <%= "Address: #{@event['client']['address']}" unless @event['client']['address'] == "unknown" %>
[20:34:51] Evesy_: Apart from splitting the code onto multiple lines, is there a way to achieve this?
[20:35:26] matthewd: Evesy_: Put the newline in the string
[20:35:42] cyphase: has joined #ruby
[20:36:39] Evesy_: Of course, thanks a lot Matthew!
[20:36:43] minotep: has joined #ruby
[20:36:44] Evesy_: I'll go hang my head in shame :P
[20:38:36] devoid: has joined #ruby
[20:39:09] gabriel1: has joined #ruby
[20:42:57] nando293921: has joined #ruby
[20:43:13] cdg: has joined #ruby
[20:45:45] kavanagh: has joined #ruby
[20:48:47] hfp: has joined #ruby
[20:49:18] hfp_work: has joined #ruby
[20:50:44] benlieb: has joined #ruby
[20:55:06] dionysus69: has joined #ruby
[20:59:30] kavanagh: has joined #ruby
[21:01:55] vuoto: has joined #ruby
[21:03:07] al2o3-cr: has joined #ruby
[21:05:16] Alex_openfire: has joined #ruby
[21:12:47] byteflame: has joined #ruby
[21:13:56] shinnya: has joined #ruby
[21:14:56] Davedev28: has joined #ruby
[21:15:53] xall: has joined #ruby
[21:17:56] LoneHerm_: has joined #ruby
[21:18:25] Synthead: has joined #ruby
[21:18:45] kavanagh: has joined #ruby
[21:20:03] marr: has joined #ruby
[21:23:05] Gasher: has joined #ruby
[21:23:42] ekinmur: has joined #ruby
[21:25:57] tristanp: has joined #ruby
[21:26:56] d5sx43: has joined #ruby
[21:27:01] ellisTAA: has joined #ruby
[21:27:01] dhodgkin: has joined #ruby
[21:28:00] kavanagh: has joined #ruby
[21:30:16] spudowiar: has joined #ruby
[21:31:14] zarubin: has joined #ruby
[21:32:22] Devalo: has joined #ruby
[21:33:37] jenrzzz: has joined #ruby
[21:33:37] jenrzzz: has joined #ruby
[21:37:28] ur5us: has joined #ruby
[21:38:15] RegulationD: has joined #ruby
[21:38:23] tAn: has joined #ruby
[21:39:42] Madplatypus: has joined #ruby
[21:42:47] d5sx43: has joined #ruby
[21:44:03] ellisTAA: has joined #ruby
[21:44:23] EXCHGR: has joined #ruby
[21:47:46] kavanagh: has joined #ruby
[21:47:47] fmcgeough: has joined #ruby
[21:49:58] antgel: has joined #ruby
[21:52:00] nando293921: has joined #ruby
[21:52:23] nando293921: has joined #ruby
[21:53:11] Rodya_: has joined #ruby
[21:53:36] evilNirvana: has joined #ruby
[21:54:00] rails: has joined #ruby
[21:55:15] nettoweb: has joined #ruby
[21:59:00] ellisTAA: has joined #ruby
[21:59:44] kavanagh: has joined #ruby
[22:00:42] flashpoint9: has joined #ruby
[22:02:14] enilsen16: has joined #ruby
[22:04:41] allcentury: has joined #ruby
[22:06:46] zacts: has joined #ruby
[22:08:39] Synthead: has joined #ruby
[22:09:48] xall: has joined #ruby
[22:11:47] v0n: has joined #ruby
[22:12:52] kavanagh: has joined #ruby
[22:14:51] Spami: has joined #ruby
[22:15:39] mloy_: has joined #ruby
[22:16:02] Rodya_: has joined #ruby
[22:17:51] ledestin: has joined #ruby
[22:18:26] zarubin: has joined #ruby
[22:19:22] SilverKey: has joined #ruby
[22:20:47] hipertracker: has joined #ruby
[22:24:00] nankyokusei: has joined #ruby
[22:24:23] hipertracker: has joined #ruby
[22:25:00] nando293921: has joined #ruby
[22:26:21] Rubie: has joined #ruby
[22:32:32] Alina-malina: has joined #ruby
[22:35:07] jenrzzz: has joined #ruby
[22:35:07] jenrzzz: has joined #ruby
[22:40:24] tAn: has joined #ruby
[22:41:44] yfeldblum: has joined #ruby
[22:43:21] kavanagh: has joined #ruby
[22:44:29] ellisTAA: has joined #ruby
[22:47:26] Es0teric: has joined #ruby
[22:48:59] hipertracker: has joined #ruby
[22:52:09] macsteps: has joined #ruby
[22:55:47] rawillia: has joined #ruby
[22:56:03] kavanagh: has joined #ruby
[23:00:27] rawillia: I've a quick question regarding FactoryGirl: I'm attempting to use it with Cucumber for easy models, but I'm getting uninitialized constant when I try to call my model. http://pastebin.com/s1sRwBua
[23:00:29] ruby[bot]: rawillia: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/7f9d59f1e9e3ea3f5e1f6adcbc1c0c1b
[23:00:29] ruby[bot]: rawillia: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[23:02:07] flashpoint9: has joined #ruby
[23:02:23] dpk_: has joined #ruby
[23:04:17] l4v2: has joined #ruby
[23:04:24] underplank: has joined #ruby
[23:08:42] kavanagh: has joined #ruby
[23:09:54] dpkezio: has joined #ruby
[23:11:28] ecnalyr: has joined #ruby
[23:13:34] Synthead: has joined #ruby
[23:16:03] ellisTAA: has joined #ruby
[23:16:26] gdonald: has joined #ruby
[23:16:37] abshake: has joined #ruby
[23:19:07] abshake: anybody there?
[23:19:15] LoneHerm_: has joined #ruby
[23:20:45] havenwood: abshake: hi
[23:21:52] kavanagh: has joined #ruby
[23:25:58] hipertracker: has joined #ruby
[23:28:11] zacts: hi rubyists
[23:31:29] duncannz: has joined #ruby
[23:35:40] Spami: has joined #ruby
[23:39:04] RegulationD: has joined #ruby
[23:39:29] xxneolithicxx: has joined #ruby
[23:41:20] Evan: has joined #ruby
[23:41:21] AphelionZ: might somebody be able to help me debug an issue im having with Sinatra and paperclip?
[23:42:01] AphelionZ: I'm hosting with Heroku and I'm at a point now where the upload is silently failing with a 500 error and I'm not even sure how / where to debug
[23:48:28] ellisTAA: has joined #ruby
[23:49:14] spookyghost: has joined #ruby
[23:49:49] jenrzzz: has joined #ruby
[23:50:43] framling: has joined #ruby
[23:52:01] cdg: has joined #ruby
[23:52:18] jottr: has joined #ruby
[23:53:09] Rubie: has joined #ruby
[23:53:37] l4v2: has joined #ruby
[23:56:43] nikitasius: has joined #ruby
[23:56:47] nikitasius: has left #ruby: ("WeeChat 1.0.1")
[23:57:53] T2ya: has joined #ruby
[23:58:29] Guest59843: has joined #ruby
[23:59:12] Guest59843: debating on if i should learn ruby like when will i use it