« Back to channel list

#ruby - 18 October 2015

« Back 1 day Forward 1 day »
[00:01:33] DoubleMalt: has joined #ruby
[00:02:38] mary5030: has joined #ruby
[00:02:51] firstdayonthejob: has joined #ruby
[00:03:35] Bellthoven: has joined #ruby
[00:04:51] mary5030: has joined #ruby
[00:07:05] nYmo: has joined #ruby
[00:08:32] atomical: has joined #ruby
[00:08:34] lkba: has joined #ruby
[00:11:35] Nightmare: has joined #ruby
[00:13:46] lessless: has joined #ruby
[00:18:05] jun: has joined #ruby
[00:18:23] zenguy_pc: has joined #ruby
[00:20:01] Nightmare: has joined #ruby
[00:20:31] xxneolithicxx: has joined #ruby
[00:21:07] chopin: has joined #ruby
[00:21:08] GriffinHeart: has joined #ruby
[00:21:39] blue_deref: has joined #ruby
[00:25:35] atomical_: has joined #ruby
[00:25:37] alanp: has joined #ruby
[00:26:36] workmad3: has joined #ruby
[00:27:40] nYmo: has joined #ruby
[00:28:41] nYmo: has left #ruby: ()
[00:30:34] TheRokh: has joined #ruby
[00:30:49] pwnd_nfsw: has joined #ruby
[00:34:20] pwnd_nsfw: has joined #ruby
[00:35:12] baweaver: has joined #ruby
[00:37:08] Nightmare: has joined #ruby
[00:40:09] jenrzzz: has joined #ruby
[00:40:11] SylarRuby: has joined #ruby
[00:42:55] devbug: has joined #ruby
[00:43:17] segfalt: has joined #ruby
[00:43:43] davedev24: has joined #ruby
[00:43:48] framlinqp: has joined #ruby
[00:43:48] solocshaw: has joined #ruby
[00:44:11] rkazak: has joined #ruby
[00:46:27] fullofcaffeine: has joined #ruby
[00:48:22] mloy: has joined #ruby
[00:48:23] framling: has joined #ruby
[00:49:20] linduxed: has joined #ruby
[00:50:22] weihan: has joined #ruby
[00:53:13] GnuYawk: has joined #ruby
[00:53:13] GnuYawk: has joined #ruby
[00:53:37] diegoaguilar: has joined #ruby
[00:54:52] stardiviner: has joined #ruby
[00:55:01] Nightmare: has joined #ruby
[00:55:18] weihan: has joined #ruby
[00:56:28] znz_jp: has joined #ruby
[00:57:21] jun: has joined #ruby
[00:58:08] weihan: has joined #ruby
[00:59:22] kayloos: has joined #ruby
[00:59:23] pontiki: has joined #ruby
[01:00:27] skcin7: has joined #ruby
[01:02:26] weihan: has joined #ruby
[01:02:46] sphex: has joined #ruby
[01:03:42] phatypus: has joined #ruby
[01:06:10] jun: has joined #ruby
[01:08:34] atomical: has joined #ruby
[01:12:49] GriffinHeart: has joined #ruby
[01:13:27] devbug_: has joined #ruby
[01:17:31] devbug: has joined #ruby
[01:23:21] workmad3: has joined #ruby
[01:25:39] donkorte: has left #ruby: ()
[01:25:55] devbug_: has joined #ruby
[01:26:15] ruby-lang452: has joined #ruby
[01:26:59] shevy: you people are so sleepy over weekends
[01:27:26] ruby-lang452: Hello all, I have a question regarding this peice of code: http://rubyfiddle.com/riddles/0abbc
[01:28:00] ruby-lang452: In this code, can someone explain to me how this code checks for numbers in teh array that are not directly next to each other?
[01:28:33] ruby-lang452: [1,2,3,4], how does the code check for 1 and 3, and then 4?
[01:28:52] GnuYawk: has joined #ruby
[01:29:24] Kara: has joined #ruby
[01:30:42] karam: has joined #ruby
[01:32:14] stamina: has joined #ruby
[01:32:23] Emmanuel_Chanel: has joined #ruby
[01:35:14] atomical: has joined #ruby
[01:35:29] to_json: has joined #ruby
[01:35:30] to_json: has joined #ruby
[01:35:34] skcin7: has joined #ruby
[01:35:40] bkxd: has joined #ruby
[01:36:18] gaboesqu_: has joined #ruby
[01:38:19] ruby-lang198: has joined #ruby
[01:38:21] ruby-lang452: Anybody can help me with my question?
[01:38:25] devbug: has joined #ruby
[01:40:13] cubicme: has joined #ruby
[01:41:58] arescorpio: has joined #ruby
[01:42:16] devbug_: has joined #ruby
[01:43:15] ruurd: has joined #ruby
[01:44:49] law: has left #ruby: ()
[01:45:40] Uo9er_: has joined #ruby
[01:45:41] wldcordeiro: has joined #ruby
[01:45:47] devbug__: has joined #ruby
[01:50:17] rrichardsr3: has joined #ruby
[01:55:19] devbug: has joined #ruby
[01:55:29] favadi: has joined #ruby
[01:56:01] araujo_: has joined #ruby
[01:57:30] dcarmich: has joined #ruby
[01:57:43] moeabdol: has joined #ruby
[01:58:02] atomical_: has joined #ruby
[01:59:27] devbug_: has joined #ruby
[02:00:18] sugardrunk: ruby-lang452: don't really know what you want (and need some sleep :D) but you are iterating the <nums> and with the first pair in the second while loop it returns the first occurence of result 0... so it finishes there.
[02:00:55] Joufflu: has joined #ruby
[02:01:00] baweaver: has joined #ruby
[02:01:12] sugardrunk: ruby-lang452: it is quite hard to understand your question :) it is saturday an all.... 5am here
[02:02:37] sugardrunk: ruby-lang452: the first while loop takes the number in order :) then compares it to the others... the first occurance it is done :D (I don't know why I am explaining this)
[02:04:22] swgillespie: has joined #ruby
[02:04:30] Pupeno: has joined #ruby
[02:04:51] favadi: has joined #ruby
[02:05:00] sugardrunk: dammn... it is sunday :)
[02:06:17] rrichardsr3: has joined #ruby
[02:08:48] sugardrunk: ruby-lang452: and yes, I was reading the comment on your code... not the question or something...
[02:09:31] vigintas1: has joined #ruby
[02:10:38] moeabdol: has joined #ruby
[02:10:43] vigintas: has joined #ruby
[02:11:52] vigintas: has joined #ruby
[02:12:42] rrichardsr3: has joined #ruby
[02:12:45] ledestin: has joined #ruby
[02:13:09] vigintas1: has joined #ruby
[02:14:20] vigintas: has joined #ruby
[02:15:32] vigintas1: has joined #ruby
[02:16:01] Tariq: has joined #ruby
[02:17:06] Tariq: Hello. I have a class in AR that is supposedly not initialized even though I can access it in the Rails console, I rebooted it and it does not help. The class in question is inheriting from another class that is connected to an external dataset.
[02:18:29] htmldrum: has joined #ruby
[02:18:59] devbug: has joined #ruby
[02:19:12] NeverDie: has joined #ruby
[02:19:31] zenguy_pc: has joined #ruby
[02:19:52] duncannz: has joined #ruby
[02:24:21] atomical: has joined #ruby
[02:26:20] favadi: has joined #ruby
[02:26:30] datanoise: has joined #ruby
[02:27:26] pontiki: Tariq: try #rubyonrails channel
[02:28:13] gexe: has joined #ruby
[02:28:14] shevy: not many here know AR. I for instance do not know AR
[02:28:30] paradisaeidae: has joined #ruby
[02:29:07] datanoise: has left #ruby: ()
[02:29:49] rrichardsr3: has joined #ruby
[02:29:52] mdih: has joined #ruby
[02:30:02] tariqc: has joined #ruby
[02:30:10] tariqc: my internet went down
[02:30:14] tariqc: what did the last person say?
[02:30:19] tariqc: (Or rather, my web browser froze on me)
[02:31:31] rrichardsr3: has joined #ruby
[02:32:21] pontiki: Tariq: try #rubyonrails channel
[02:32:37] tariqc: What is this chat for then?
[02:33:17] rrichardsr3: has joined #ruby
[02:34:53] fullofcaffeine: has joined #ruby
[02:35:13] jellyjellyrobot: has joined #ruby
[02:39:27] shevy: Tariq_ general ruby questions, like why 15/0 leads to an error and how to fix that
[02:40:28] tariqc: Ah, got it
[02:40:34] tariqc: Do you recommend that they use javascript?
[02:40:39] tariqc: (It's a joke.)
[02:43:00] Emmanuel_Chanel: has joined #ruby
[02:43:02] shevy: nah, ruby is superior to javascript
[02:43:20] shevy: javascript has the advantage of having the monopoly on the browsers
[02:43:58] cubicme: has joined #ruby
[02:44:41] tariqc: I was referring to NaN errors
[02:44:44] astrobun_: has joined #ruby
[02:44:51] tariqc: which I think can occur with division by zero?
[02:46:43] jhn: has joined #ruby
[02:46:46] shevy: I don't know how javasript handles it
[02:46:50] shevy: in ruby you would get a ZeroDivisionError: divided by 0
[02:46:51] eam: Tariq_: not a NaN, actually, just an integer divide by zero exception
[02:47:04] nofxx: has joined #ruby
[02:47:04] nofxx: has joined #ruby
[02:47:14] eam: NaN is a floating point value and you *can* divide by 0.0
[02:47:25] symm-: has joined #ruby
[02:47:27] eam: >> 15 / 0.0
[02:47:29] ruboto_: eam # => Infinity (https://eval.in/452855)
[02:47:51] eam: you can get a nan like this:
[02:47:55] eam: >> 0.0 / 0.0
[02:47:56] ruboto_: eam # => NaN (https://eval.in/452856)
[02:48:00] gaboesquivel: has joined #ruby
[02:49:30] tariqc: Ah, got it
[02:49:34] tariqc: Thanks for telling me
[02:49:39] shevy: do you know the wats-talk Tariq_?
[02:50:04] shevy: Tariq_ - https://www.youtube.com/watch?v=FqhZZNUyVFM it's hilarious, takes only about 4 minutes
[02:51:42] bkxd: has joined #ruby
[02:52:38] devbug_: has joined #ruby
[02:53:04] Feyn: has joined #ruby
[02:54:09] Suzeanne: has joined #ruby
[02:54:22] Emmanuel_Chanel: has joined #ruby
[02:54:28] above: know this is the wrong place to ask, but im in search of a vps to further my server side needs. i'm a student trying to eventually accomplish back and front end. im well aqquainted with linux and server installation and configuration. i'd like to host my apps remoteley. is there anyway anyone can help me find or maybe even sponser a bare bones one?
[02:56:06] tariqc: Thanks shevy
[02:56:32] above: found solution thanks
[02:56:35] above: amazon to the rescue
[02:56:46] tariqc: I cannot really register onto NickServ
[02:56:47] eam: above: yeah amazon is really cheap
[02:56:53] tariqc: so I cannot ask a question onto RubyOnRails
[02:57:19] cubicme`: has joined #ruby
[02:58:33] tariqc: So what should I try to do then?
[02:58:36] tariqc: To get help?
[02:58:56] lkba: has joined #ruby
[02:59:05] eam: Tariq_: join #freenode and work out how to register your nick so you can participate in #rubyonrails
[03:01:37] mrtomme_: has joined #ruby
[03:02:29] gener1c: has joined #ruby
[03:02:45] jenrzzz: has joined #ruby
[03:02:50] konopka: has joined #ruby
[03:02:56] gaboesquivel: has left #ruby: ()
[03:03:12] xxx: has joined #ruby
[03:03:49] U7se6: has joined #ruby
[03:06:03] darkf: has joined #ruby
[03:06:47] keen____: has joined #ruby
[03:06:56] chrisarcand: has joined #ruby
[03:06:59] JoshL: has joined #ruby
[03:07:05] gf3: has joined #ruby
[03:08:02] Sthebig: has joined #ruby
[03:08:02] Sthebig: has joined #ruby
[03:08:05] davidcelis: has joined #ruby
[03:08:05] davidcelis: has joined #ruby
[03:09:31] bigmac_: has joined #ruby
[03:11:07] braincrash: has joined #ruby
[03:11:28] workmad3: has joined #ruby
[03:11:51] bnizzle: has joined #ruby
[03:12:11] bigmac_: BigDecimal.new(100).sqrt(10)
[03:12:23] bigmac_: should this show 10 * 10 is sqrt of 100?>
[03:12:42] BSaboia: has joined #ruby
[03:13:31] bigmac_: i guess that is 10
[03:13:56] bigmac_: puts "%d" % BigDecimal.new(100).sqrt(10)
[03:14:03] bigmac_: >>puts "%d" % BigDecimal.new(100).sqrt(10)
[03:14:04] ruboto_: bigmac_ # => uninitialized constant BigDecimal (NameError) ...check link for more (https://eval.in/452857)
[03:14:16] phatypus: has joined #ruby
[03:19:26] yfeldblum: has joined #ruby
[03:19:57] Uo9er_: has joined #ruby
[03:21:28] jenrzzz: has joined #ruby
[03:22:53] bkxd: has joined #ruby
[03:28:07] shevy: https://github.com/ruby/ruby/blob/trunk/ChangeLog#L22
[03:28:10] shevy: may it rest in peace
[03:30:33] `tim`: has joined #ruby
[03:31:12] favadi: has joined #ruby
[03:32:42] bnizzle: has joined #ruby
[03:35:05] arup_r: has joined #ruby
[03:35:49] astrobun_: has joined #ruby
[03:36:53] bkxd: has joined #ruby
[03:38:50] fullofcaffeine: has joined #ruby
[03:39:28] gix: has joined #ruby
[03:40:58] Polysics: has joined #ruby
[03:42:54] baweaver: has joined #ruby
[03:43:01] moeabdol: has joined #ruby
[03:44:09] wildlander: has joined #ruby
[03:44:21] bigmac_: has joined #ruby
[03:45:56] U7se6: has joined #ruby
[03:46:52] Emmanuel_Chanel: has joined #ruby
[03:47:36] saddad: has joined #ruby
[03:49:30] fullofcaffeine: has joined #ruby
[03:50:32] moeabdol: has joined #ruby
[03:51:23] mary5030: has joined #ruby
[03:53:35] mary5030: has joined #ruby
[03:53:54] Guest65: has joined #ruby
[03:55:45] Gnomethrower: has joined #ruby
[03:56:25] weihan: has joined #ruby
[03:56:54] rkazak: has joined #ruby
[03:58:12] beauby: has joined #ruby
[03:58:35] Kanibal: has joined #ruby
[03:59:33] Kanibal: Hey! Is it possible in Ruby, to get a block from a member function? I know I can "bind" a "normal" function with the ampersand operator like this: &:foobar, but is it possible for member functions of a class?
[04:03:15] ruby-lang199: has joined #ruby
[04:04:27] Pupeno: has joined #ruby
[04:05:59] shevy: what is a member function
[04:06:42] ruby-lang199: is there anyone free that I could ask about hashes and array?
[04:07:04] craysiii: has joined #ruby
[04:07:10] Kanibal: shevy: class Foo def bar end end
[04:07:21] Kanibal: Foo.bar is the member function
[04:07:56] Kanibal: class Foo begin def bar begin end end
[04:08:47] shevy: the above code is not valid
[04:08:59] ruby-lang199: how would I code this in ruby to get this kind of hash? { 'main_key' : { 'second_key' => [child1,child2] } }
[04:09:18] Guest67642: has joined #ruby
[04:09:18] Kanibal: shevy: class Foo; def bar; end; end
[04:09:34] shevy: if you want to define class methods on a class, you can do so via def self. as in: class Foo; def self.bar; puts 'hi from bar()'; end; end; Foo.bar
[04:09:36] Kanibal: Method name is "bar;"
[04:10:35] shevy: you can tap into a block via the keyword yield, and you can check if a block was given to your method at hand via if block_given?
[04:11:17] SylarRuby: has joined #ruby
[04:11:37] Kanibal: shevy: ok, but how can I use this member function as a block?
[04:11:45] shevy: what the heck is a member function
[04:12:01] shevy: that is a class method
[04:12:02] mary5030: has joined #ruby
[04:12:15] shevy: and blocks given to them work the same as blocks given to regular methods
[04:12:32] shevy: if you wish to pass blocks around, have a look at https://railskey.wordpress.com/2013/02/11/passing-blocks-in-ruby/ explains .to_proc
[04:12:34] Kanibal: Seems I was mistaking the terminology. Sorry.
[04:12:47] bigmac_: can i use gpu processing powers with ruby?
[04:12:53] Kanibal: OK, so??? &self.to_proc?
[04:13:41] mleung: has joined #ruby
[04:15:19] shevy: please Kanibal you are not using ruby
[04:16:00] Kanibal: shevy: The problem is: I want to use the method of another class, that expects a block as a parameter
[04:16:58] Kanibal: Could you elaborate a little bit more????
[04:17:02] bkxd: has joined #ruby
[04:17:09] shevy: an advanced problem while being unable to properly write the simplest ruby code
[04:17:13] shevy: conclusio: fake
[04:17:45] Kanibal: OK, I really don't want to drop the f-bomb here now, but you are not helping.
[04:17:56] shevy: ohhh let me ask you
[04:17:59] shevy: can you show the code?
[04:18:31] Kanibal: https://github.com/northernlight/sparks/blob/master/app/src/User.rb#L76
[04:18:47] Kanibal: But I guess that Python or some other stuff, according to you?
[04:19:42] zenguy_pc: has joined #ruby
[04:20:01] bigmac_: has any one tried cuda gpu scripting with ruby
[04:20:44] bigmac_: i would like to try and speed up some BigMath using cuda/gpu processing
[04:20:55] bigmac_: i have found speedgo computing lib
[04:21:17] sotojuan: has joined #ruby
[04:24:01] shevy: Kanibal which one is the method of the other class that expects a block as a parameter? Aren't blocks optional anyway even in the &foo notation?
[04:25:37] sotojuan: has left #ruby: ()
[04:25:40] Kanibal: shevy: @socket is a WebSocket object, this is the method on_message: https://github.com/celluloid/reel/blob/master/lib/reel/websocket.rb#L31
[04:25:49] Kanibal: def on_message(&block)
[04:26:07] Kanibal: And I'd like to use the on_message method of my User instance instead
[04:27:47] fullofcaffeine: has joined #ruby
[04:28:04] rkazak_: has joined #ruby
[04:28:18] shevy: that is the first time I am seeing something like this: block.(message.data)
[04:28:48] Kanibal: same for me
[04:29:08] Suzeanne: has joined #ruby
[04:30:21] Kanibal: From what I remember, it's just a alias for .call
[04:30:35] Kanibal: So, block.call(message.data)
[04:34:09] shevy: I find that rather complex :\
[04:35:57] Kanibal: The current solution works
[04:36:11] Kanibal: I just wonder, if I could omit the additional block
[04:36:42] bkxd: has joined #ruby
[04:37:05] rickmasta: has joined #ruby
[04:38:53] bitsapien: has joined #ruby
[04:39:36] rickruby: has joined #ruby
[04:41:37] ramfjord: has joined #ruby
[04:41:38] Kanibal: shevy: anyway, sorry for the confusion about the member functions - I'm usually coding in C++, there the instance methods are called member functions.
[04:41:51] golgaroth: has joined #ruby
[04:42:01] shevy: your ruby code is advanced too, you use lots of lambdas
[04:42:28] Kanibal: I tried to design the server code as asynchron as possible
[04:42:38] Kanibal: The server is based on Reel aka. EventMachine
[04:42:54] Kanibal: und should hopefully perform well enough :X
[04:44:36] fullofcaffeine: has joined #ruby
[04:45:47] nemo_: has joined #ruby
[04:46:17] brotatos: has joined #ruby
[04:46:19] krz: has joined #ruby
[04:47:33] brotatos: Hi all, I'm having the following issues with a gem pristine --all command: http://sprunge.us/DKMg
[04:47:41] brotatos: Anyone know how to fix this?
[04:48:00] mary5030: has joined #ruby
[04:48:28] SylarRuby: has joined #ruby
[04:48:52] Kanibal: brotatos: You cannot write to /System (I assume you are using OSX?)
[04:49:08] brotatos: Kanibal: yup. Do I just chmod /System then?
[04:49:16] Kanibal: Hell, no :D
[04:49:42] Kanibal: I would install ruby in the userspace
[04:49:49] mary5030: has joined #ruby
[04:50:01] Kanibal: Then you even have the freedom to use a more recent version e.g. 2.2.3
[04:50:13] Kanibal: I use rbenv for this
[04:50:13] Radar: brotatos: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
[04:50:19] Radar: brotatos: Follow this handy guide I wrote :)
[04:50:44] jun: has joined #ruby
[04:50:45] Kanibal: This guide also looks promising.
[04:51:04] baweaver: it's something to keep on your radar
[04:51:53] brotatos: Maybe I should go back to python. Virtualenv is so easy to work with. :P
[04:51:59] moeabdol: has joined #ruby
[04:52:33] baweaver: good luck have fun
[04:53:51] SylarRuby: has joined #ruby
[04:54:32] Keltia_: has joined #ruby
[04:54:37] Motoservo_: has joined #ruby
[04:54:38] pipecloud: has joined #ruby
[04:54:43] User4587_: has joined #ruby
[04:54:50] Radar: brotatos: chruby+ruby-install are just as easy imo
[04:54:59] mistym-: has joined #ruby
[04:55:02] brotatos_: has joined #ruby
[04:55:07] `derpy: has joined #ruby
[04:55:09] Rutix`away: has joined #ruby
[04:55:09] Rutix`away: has joined #ruby
[04:55:19] Radar: It'd be much nicer if the default install of Ruby on OS X wasn't locked down like that.
[04:55:20] Marsjan: has joined #ruby
[04:55:21] jun__: has joined #ruby
[04:55:30] bafbomb_: has joined #ruby
[04:55:44] `scootaloo: has joined #ruby
[04:56:03] baweaver: El Capitan starts locking things down even further apparently.
[04:56:14] baweaver: to the point that even sudo does you no good
[04:56:17] Kanibal: yup. Even root cannot write to /System anymore
[04:56:30] Asher: has joined #ruby
[04:56:46] Radar: only the NSA can do that now
[04:57:08] Kanibal: I assume not even they can do it that easily.
[04:57:27] ex0ns_: has joined #ruby
[04:57:33] Kanibal: tbh, I like this feature
[04:57:40] verdoc_: has joined #ruby
[04:57:41] kramsee: has joined #ruby
[04:57:45] awk_: has joined #ruby
[04:57:47] Killerkeksdose_: has joined #ruby
[04:57:50] TheRealPygo: has joined #ruby
[04:57:51] Kanibal: It encourages you to keep your system clean and use it in a proper manner :D
[04:57:52] boshhead_: has joined #ruby
[04:57:53] devn_: has joined #ruby
[04:57:53] TvL: has joined #ruby
[04:58:03] yeticry_: has joined #ruby
[04:58:04] eregon_: has joined #ruby
[04:58:07] ammar_: has joined #ruby
[04:58:16] kiki_lam1: has joined #ruby
[04:58:19] daed_: has joined #ruby
[04:58:24] tinyhipp1: has joined #ruby
[04:58:24] ltd_: has joined #ruby
[04:58:27] eternal1: has joined #ruby
[04:58:55] Gnubie__: has joined #ruby
[04:59:02] prosodyvVC_: has joined #ruby
[04:59:36] workmad3: has joined #ruby
[04:59:42] hostess_: has joined #ruby
[05:00:44] FastJack_: has joined #ruby
[05:01:35] skakri`: has joined #ruby
[05:01:47] bf4_: has joined #ruby
[05:02:01] znz_jp0: has joined #ruby
[05:02:18] george2_: has joined #ruby
[05:02:21] hfp__work: has joined #ruby
[05:02:27] hollywood: has joined #ruby
[05:02:35] M-Kodo1: has joined #ruby
[05:02:39] sjumsa: has joined #ruby
[05:02:43] jhass|off: has joined #ruby
[05:02:47] michael_imac: has joined #ruby
[05:03:10] korolyov_: has joined #ruby
[05:03:10] C0deMaver1ck: has joined #ruby
[05:03:10] bartj3: has joined #ruby
[05:03:12] spacemud: has joined #ruby
[05:03:22] z3uS: has joined #ruby
[05:03:24] Miron: has joined #ruby
[05:03:45] Liothen: has joined #ruby
[05:03:45] Liothen: has joined #ruby
[05:03:52] Nightmare: has joined #ruby
[05:04:00] bmn: has joined #ruby
[05:04:11] golgaroth: so glad to check out freenode after like a year hiatus from logging in.. good to see it's still alive and kicking :D
[05:04:15] Bugboy1028: has joined #ruby
[05:04:21] drbrain: has joined #ruby
[05:04:36] harryk: has joined #ruby
[05:04:36] universa1: has joined #ruby
[05:05:25] kalzz: has joined #ruby
[05:05:46] LBRapid: has joined #ruby
[05:06:09] DarkBushido: has joined #ruby
[05:06:32] Billias: has joined #ruby
[05:07:19] Tempesta: has joined #ruby
[05:08:15] tejasmanohar: has joined #ruby
[05:08:17] rcs: has joined #ruby
[05:08:22] SuzieQueue: has joined #ruby
[05:08:36] araujo: has joined #ruby
[05:08:37] araujo: has joined #ruby
[05:09:00] moeabdol: has joined #ruby
[05:09:08] worstcase: has joined #ruby
[05:09:17] cschneid: has joined #ruby
[05:09:18] BTRE: has joined #ruby
[05:09:21] hectortrope: has joined #ruby
[05:09:33] bascht: has joined #ruby
[05:09:43] xybre: has joined #ruby
[05:09:49] cball: has joined #ruby
[05:10:02] nik0: has joined #ruby
[05:10:32] Voxxit: has joined #ruby
[05:10:55] linduxed: has joined #ruby
[05:10:56] ZYPP: has joined #ruby
[05:11:13] jpinnix______: has joined #ruby
[05:11:39] zipkid: has joined #ruby
[05:11:59] catbusters: has joined #ruby
[05:12:11] zacts: has joined #ruby
[05:12:14] manveru: has joined #ruby
[05:12:18] pdoherty: has joined #ruby
[05:12:34] charles81: has joined #ruby
[05:12:37] cstrahan: has joined #ruby
[05:12:49] jimeh: has joined #ruby
[05:13:02] n1ftyn8_: has joined #ruby
[05:13:15] apipkin: has joined #ruby
[05:13:33] teotwaki: has joined #ruby
[05:14:03] cek: has joined #ruby
[05:14:20] andersh: has joined #ruby
[05:14:33] benlakey: has joined #ruby
[05:14:38] Guest85414______: has joined #ruby
[05:14:46] rflot: has joined #ruby
[05:14:46] brotatos_: has joined #ruby
[05:14:46] troter____: has joined #ruby
[05:14:50] daxroc: has joined #ruby
[05:15:14] dEPy: has joined #ruby
[05:15:37] zemmihates: has joined #ruby
[05:16:06] lokulin: has joined #ruby
[05:18:18] astrobun_: has joined #ruby
[05:19:09] preyalone: has joined #ruby
[05:21:09] finisherr: has joined #ruby
[05:22:32] houhoulis: has joined #ruby
[05:23:21] Asher: has joined #ruby
[05:24:04] fullofcaffeine: has joined #ruby
[05:26:46] mary5030: has joined #ruby
[05:28:47] lkba: has joined #ruby
[05:31:26] karapetyan: has joined #ruby
[05:32:31] devbug: has joined #ruby
[05:33:24] yardenbar: has joined #ruby
[05:36:40] sivsushruth: has joined #ruby
[05:37:45] ndrei: has joined #ruby
[05:38:00] yosiat: has joined #ruby
[05:38:25] rkazak_: has joined #ruby
[05:39:14] Klumben: has joined #ruby
[05:40:11] GnuYawk: has joined #ruby
[05:40:15] futilegames: has joined #ruby
[05:41:11] tpendragon: has joined #ruby
[05:42:45] GriffinHeart: has joined #ruby
[05:45:59] Uo9er_: has joined #ruby
[05:46:03] moeabdol: has joined #ruby
[05:46:08] znz_jp: has joined #ruby
[05:46:11] Chaoborid: has joined #ruby
[05:47:06] yfeldblum: has joined #ruby
[05:49:50] cubicme`: has joined #ruby
[05:50:18] bitsapien: has joined #ruby
[05:52:27] tmtwd: has left #ruby: ("Leaving")
[05:53:08] tmtwd: has joined #ruby
[05:54:50] snapcase: has joined #ruby
[05:58:21] arup_r: has joined #ruby
[05:59:56] bitsapien: has joined #ruby
[06:00:07] lxsameer: has joined #ruby
[06:00:07] lxsameer: has joined #ruby
[06:04:44] jaygen_: has joined #ruby
[06:10:20] jenrzzz: has joined #ruby
[06:12:16] Peteykun: has joined #ruby
[06:15:36] baweaver: has joined #ruby
[06:18:02] acke: has joined #ruby
[06:18:24] _blizzy_: has joined #ruby
[06:19:00] bigmac_: has joined #ruby
[06:19:05] InemesitAffia: has joined #ruby
[06:20:29] _tpavel: has joined #ruby
[06:20:43] zenguy_pc: has joined #ruby
[06:23:36] InemesitAffia: http://stackoverflow.com/questions/33062271/rvm-install-fails-when-using-proxy http://stackoverflow.com/questions/33150001/how-do-i-install-rails-using-rvm-step-by-step hi there, im having problems installing rails using rvm because of intermittent connctivity issues, how can i do it bit by bit so I can avoid starting over(ive been trying to do this for a week)
[06:26:00] htmldrum: has joined #ruby
[06:26:40] _blizzy_: has joined #ruby
[06:27:53] InemesitAffia_: has joined #ruby
[06:28:49] InemesitAffia_: im back, in case you have answers
[06:29:12] BSaboia: has joined #ruby
[06:30:47] lessless: has joined #ruby
[06:36:22] baweaver: best shot is downloading each gem one by one
[06:37:16] baweaver: either that or see if you can hotwise mosh (https://mosh.mit.edu/) to act as a tunnel for inconsistent connections
[06:37:19] lewis1711: has joined #ruby
[06:37:28] baweaver: though the obvious answer is get a better connection if possible.
[06:37:33] mary5030: has joined #ruby
[06:39:44] bitsapien: has joined #ruby
[06:39:47] lewis1711: d = Dir("/d"). let's say I know the name of a file inside d. can I get it from the dir object?
[06:41:23] baweaver: what have you tried?
[06:41:38] lewis1711: reading the docs. using [], which the docs seemed to suggest
[06:42:29] baweaver: Look into methods you can use on that
[06:42:50] baweaver: there's one that starts with an e
[06:43:14] mloy: has joined #ruby
[06:43:28] baweaver: and with that method you happen to get all of the Enumerable methods as well, as noted in the includes section of the docs.
[06:43:34] baweaver: (which is very much worth a read)
[06:43:53] rippa: has joined #ruby
[06:44:36] sivsushruth: has joined #ruby
[06:45:01] lewis1711: my eyes glanced over each. it's annoying named
[06:45:28] lewis1711: unless there's some overloaded .each for Array etc now, that returns an enumerator.
[06:45:42] lewis1711: huh, learned something new
[06:46:02] baweaver: get real familiar with Enumerable
[06:46:28] lewis1711: I mean I was aware of "each" that iterates over things and returns nil
[06:46:29] baweaver: for it you have to define an each method
[06:46:51] baweaver: it also has things like to_a, find, select, and reject
[06:47:12] baweaver: become familiar with those as well as map and reduce.
[06:47:36] workmad3: has joined #ruby
[06:48:05] lewis1711: yeah those are all familiar to me. the .each thing return an enumerator was new
[06:48:28] baweaver: <=> returns comparators for most sorting methods
[06:48:32] baweaver: also handy to remember
[06:48:48] baweaver: I think it was Comparable
[06:51:21] cubicme``: has joined #ruby
[06:52:06] GriffinHeart: has joined #ruby
[06:52:33] pontiki: has joined #ruby
[06:54:37] bruno-: has joined #ruby
[06:55:06] stardiviner: has joined #ruby
[06:58:00] p1k: has joined #ruby
[06:59:38] subscope: has joined #ruby
[07:00:43] InemesitAffia: has joined #ruby
[07:02:50] xet7: has joined #ruby
[07:04:36] roxtrongo: has joined #ruby
[07:04:42] Soda: has joined #ruby
[07:04:55] lxsameer: has joined #ruby
[07:05:46] last_staff: has joined #ruby
[07:05:49] wallerdev: has joined #ruby
[07:08:33] varunwachaspati: has joined #ruby
[07:08:59] jun: has joined #ruby
[07:09:22] subscope: has joined #ruby
[07:11:03] wallerdev: has joined #ruby
[07:12:55] fullofcaffeine: has joined #ruby
[07:12:57] lewis1711: baweaver, .each in a Dir just gives the string names, not files. so it's not possible. I'll just use strings rather than trying to do things with Dir
[07:13:24] Chaoborid: has joined #ruby
[07:13:46] kies^: has joined #ruby
[07:14:06] dikaio: has joined #ruby
[07:18:26] subscope: has joined #ruby
[07:20:55] Chaoborid: has joined #ruby
[07:25:22] zotherstupidguy: has joined #ruby
[07:28:48] ayonkhan: has joined #ruby
[07:29:12] tredstone: has joined #ruby
[07:29:54] jsuth: has joined #ruby
[07:30:31] wallerdev: has joined #ruby
[07:30:54] kingplusplus: has joined #ruby
[07:31:09] patdohere: has joined #ruby
[07:33:59] SCHAAP137: has joined #ruby
[07:33:59] SCHAAP137: has joined #ruby
[07:33:59] kingplusplus: has left #ruby: ()
[07:38:52] trollga: has joined #ruby
[07:40:09] freezevee: has joined #ruby
[07:40:17] rkazak_: has joined #ruby
[07:42:05] Chaoborid: has joined #ruby
[07:45:04] Peteykun: has joined #ruby
[07:46:08] cubicme``: has joined #ruby
[07:47:01] jenrzzz: has joined #ruby
[07:48:08] U7se6: has joined #ruby
[07:48:20] zebulon_pike: has joined #ruby
[07:52:50] zebulon_pike: hi. is there any way I can get the curses gem to display unicode correctly without having to recompile anything? (I've got ruby 2.2.2p95 and curses 1.0.1 on an ubuntu 14 vagrant box inside a hideously old version of os x. unicode works fine in irb.)
[07:54:52] thinkswan: has joined #ruby
[07:56:35] devbug: has joined #ruby
[07:56:36] zebulon_pike: or: are there any better alternatives to curses?
[07:57:51] gexe: has joined #ruby
[07:58:22] workmad3: has joined #ruby
[08:00:27] glennt: has joined #ruby
[08:00:57] gambl0re: has joined #ruby
[08:02:00] Mon_Ouie: has joined #ruby
[08:06:00] firstdayonthejob: has joined #ruby
[08:06:12] stardiviner: has joined #ruby
[08:06:41] Blaguvest: has joined #ruby
[08:17:05] Jackneill: has joined #ruby
[08:19:50] nofxx: has joined #ruby
[08:19:50] nofxx: has joined #ruby
[08:19:50] DEA7TH: has joined #ruby
[08:20:52] zenguy_pc: has joined #ruby
[08:21:41] lewis1711: has left #ruby: ("Ex-Chat")
[08:22:05] gambl0re: has joined #ruby
[08:23:53] stardiviner: has joined #ruby
[08:24:53] akkad: has joined #ruby
[08:26:26] thinkswan: has joined #ruby
[08:26:53] Polysics: has joined #ruby
[08:27:37] cubicme: has joined #ruby
[08:41:07] marr: has joined #ruby
[08:43:16] Spami: has joined #ruby
[08:44:47] craysiii: has joined #ruby
[08:56:39] sivsushruth: has joined #ruby
[08:58:11] bkxd: has joined #ruby
[09:00:51] zebulon_pike: aha, ruby curses *does* work with unicode -- I just have to feed it the utf-8 encoding directly
[09:01:33] zebulon_pike: ??? = e2 94 90 = 226.chr + 148.chr + 144.chr
[09:02:35] solars: has joined #ruby
[09:03:40] GriffinHeart: has joined #ruby
[09:06:08] last_staff: has joined #ruby
[09:09:34] skcin7: has joined #ruby
[09:11:37] straycat: has left #ruby: ()
[09:11:40] sphex: has joined #ruby
[09:13:15] cornerma1: has joined #ruby
[09:13:56] max77f: has joined #ruby
[09:14:07] Soda: has joined #ruby
[09:14:21] max77f: has joined #ruby
[09:14:30] workmad3: has joined #ruby
[09:14:46] max77f: has joined #ruby
[09:14:55] sivsushruth: has joined #ruby
[09:15:06] cubicme`: has joined #ruby
[09:15:09] max77f: has joined #ruby
[09:15:35] max77f: has joined #ruby
[09:15:42] zebulon_pike: patching a self.bytes.map(&:chr).inject(:+) method into String so curses can deal with unicode easily. that solves that, I hope.
[09:16:00] max77f: has joined #ruby
[09:19:19] scouts-of-adana0: has joined #ruby
[09:19:25] majid: has joined #ruby
[09:19:50] majid: has joined #ruby
[09:20:15] majid: has joined #ruby
[09:20:43] majid: has joined #ruby
[09:21:15] majid: has joined #ruby
[09:21:40] majid: has joined #ruby
[09:21:46] Mon_Ouie: Is dup.force_encoding("binary") what you're trying to achieve?
[09:24:24] jenrzzz: has joined #ruby
[09:27:12] yfeldblum: has joined #ruby
[09:27:19] workmad3: has joined #ruby
[09:32:12] futilegames: has joined #ruby
[09:36:09] Uo9er_: has joined #ruby
[09:36:35] roxtrongo: has joined #ruby
[09:37:30] XxionxX: has joined #ruby
[09:40:18] dmolina: has joined #ruby
[09:45:16] BSaboia: has joined #ruby
[09:46:10] U7se6: has joined #ruby
[09:52:56] jenrzzz: has joined #ruby
[09:57:17] michael_mbp: has joined #ruby
[10:03:38] Mon_Ouie: has joined #ruby
[10:04:05] jgt: has joined #ruby
[10:04:50] GriffinHeart: has joined #ruby
[10:07:28] acke: has joined #ruby
[10:11:47] workmad3: has joined #ruby
[10:13:47] Pupeno: has joined #ruby
[10:13:55] scouts-of-adana0: has left #ruby: ()
[10:14:52] mloy: has joined #ruby
[10:16:16] p1k: has joined #ruby
[10:18:06] mdih: has joined #ruby
[10:18:44] Us54er: has joined #ruby
[10:21:05] DoubleMalt: has joined #ruby
[10:21:18] zenguy_pc: has joined #ruby
[10:24:21] cwong_on_irc: has joined #ruby
[10:24:43] User458764: has joined #ruby
[10:27:45] trollga: has joined #ruby
[10:29:04] stardiviner: has joined #ruby
[10:30:19] SylarRuby: has joined #ruby
[10:37:09] voker57: has joined #ruby
[10:38:50] doublemalt_: has joined #ruby
[10:45:57] stamina: has joined #ruby
[10:46:05] kidoz: has joined #ruby
[10:50:16] fullofcaffeine: has joined #ruby
[10:57:45] karapetyan: has joined #ruby
[10:58:57] atomical: has joined #ruby
[11:02:22] jenrzzz: has joined #ruby
[11:03:14] karapetyan: hello, folks! )
[11:03:52] karapetyan: is my code ok ? https://gist.github.com/karapetyan/f1c8e9f219c0d70e38b0
[11:04:46] saffron: has joined #ruby
[11:05:57] pathrocle: has joined #ruby
[11:06:23] workmad3: has joined #ruby
[11:07:14] jhass: karapetyan: looks okay, you could just join the both conditions in can_explode? with ||
[11:10:23] karapetyan: jhass: done, thanks. jhass as you recommend i stop euler and start ruby warrior. Now i finish ruby warrior. What i should do next?
[11:10:47] jhass: exercism and/or codewars
[11:11:24] jhass: or find some task you do regularly and (partly) automate it using ruby
[11:12:02] blackmesa: has joined #ruby
[11:13:22] saffron: has left #ruby: ()
[11:15:20] CloCkWeRX: has joined #ruby
[11:15:39] sivsushruth: has joined #ruby
[11:15:46] cball: has joined #ruby
[11:19:25] prestorium: has joined #ruby
[11:29:01] unshadow: has joined #ruby
[11:29:24] pepperbreath: has joined #ruby
[11:29:58] ochkoffein: has joined #ruby
[11:31:11] acke_: has joined #ruby
[11:37:36] symm-: has joined #ruby
[11:37:44] roxtrongo: has joined #ruby
[11:39:35] sdothum: has joined #ruby
[11:39:45] blackmesa: has joined #ruby
[11:41:40] solocshaw: has joined #ruby
[11:47:34] Uo9er_: has joined #ruby
[11:54:53] freerobby: has joined #ruby
[11:54:54] porfa: has joined #ruby
[11:55:12] spider-mario: has joined #ruby
[11:55:19] doublemalt_: has joined #ruby
[11:55:21] DoubleMalt: has joined #ruby
[12:00:48] atomical: has joined #ruby
[12:06:51] jgt: has joined #ruby
[12:08:02] HammyJammy: has joined #ruby
[12:10:21] atomical: has joined #ruby
[12:13:35] karapetyan: has joined #ruby
[12:17:00] darkf_: has joined #ruby
[12:19:53] moeabdol: has joined #ruby
[12:20:13] QORRiE: has joined #ruby
[12:22:00] zenguy_pc: has joined #ruby
[12:28:40] ramfjord: has joined #ruby
[12:33:02] BSaboia: has joined #ruby
[12:34:44] Galas: has joined #ruby
[12:35:18] jgt: has joined #ruby
[12:38:39] fullofcaffeine: has joined #ruby
[12:39:02] freerobby: has joined #ruby
[12:40:30] mhib: has joined #ruby
[12:41:24] Peteykun: has joined #ruby
[12:41:32] stardiviner: has joined #ruby
[12:43:47] leafybasil: has joined #ruby
[12:45:25] above: has joined #ruby
[12:45:35] ta: has joined #ruby
[12:46:10] User458764: has joined #ruby
[12:53:04] atomical: has joined #ruby
[12:54:33] workmad3: has joined #ruby
[13:01:13] unshadow: Is there a way to get the Hex value of a Thread ? (for example a = <Thread:0x00000000fbfc70> ; puts a.id output: 0x00000000fbfc70)
[13:02:19] kalusn: has joined #ruby
[13:03:31] Mon_Ouie: The value that Ruby shows you is based on (but not equal to) the object_id
[13:04:04] workmad3: has joined #ruby
[13:06:25] jhass: the question is rather, why would you care
[13:07:58] shevy: >> 0x00000000fbfc70.to_s(16)
[13:07:59] ruboto_: shevy # => "fbfc70" (https://eval.in/452906)
[13:08:26] Yzguy: has joined #ruby
[13:08:27] howdoi: has joined #ruby
[13:09:18] dorei: has joined #ruby
[13:10:41] Peteykun: has joined #ruby
[13:11:13] jgt: has joined #ruby
[13:11:22] symm-_: has joined #ruby
[13:11:34] unshadow: jhass: I want to generate something out of those values
[13:11:42] jhass: what? why?
[13:11:58] The_Phoenix: has joined #ruby
[13:12:21] Yzguy: has joined #ruby
[13:12:46] bruno-: has joined #ruby
[13:13:08] shevy: curiosity killed the cat!
[13:14:25] sepp2k: has joined #ruby
[13:14:57] apeiros: >> x = Object.new; [x.inspect, (x.object_id<<1).to_s(16)]
[13:14:58] ruboto_: apeiros # => ["#<Object:0x406c939c>", "406c939c"] (https://eval.in/452907)
[13:15:11] apeiros: I'd join jhass' question, though: why?
[13:15:27] unshadow: jhass: well... I want to create a uniqie ID out of the currently running Threads, then, I will check the IDs in a loop and make sure all running threads are the same ones form before, no new ones got created and no old ones died
[13:15:27] jhass: ACTION bets on reimplementing Object#hash
[13:15:51] jhass: Object#== should be just fine
[13:16:04] unshadow: jhass: is it unique ?
[13:16:09] jhass: old_threads = threads; things; threads == old_threads
[13:16:16] apeiros: unshadow: and what do you need that unique id for?
[13:18:22] firoxer_: has left #ruby: ()
[13:18:24] unshadow: For example: ids = []; 50.times do ids << Thread.new do puts "a"; loop do sleep 5; check if ids are the same ones for currently running Threads
[13:18:29] unshadow: (super psudo code)
[13:18:32] yeticry: has joined #ruby
[13:18:33] unshadow: hope it makes sense
[13:18:56] jhass: threads.all?(&:alive?) ?
[13:19:31] unshadow: jhass: no, not alive or dead, but are they the same threads that I started with
[13:20:17] apeiros: unshadow: just reference the threads
[13:20:19] blackmesa: has joined #ruby
[13:20:43] jhass: ^, this sounds very much like alive or dead
[13:20:46] unshadow: lets say I have a pool of Threads, 10 threads of example, now, I want to run on that pool, and make sure that the IDs I gathered before are the same ones that the currently runing threads have
[13:21:19] ruboto_: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[13:21:21] apeiros: a) why would they change? b) why test against ids instead of the threads themselves?
[13:21:58] unshadow: apeiros: I may test against threads themselves, this could work for my case.
[13:22:30] unshadow: jhass: .... well, it's part of a security design I can't give too much detail about ... sorry
[13:22:57] jhass: then let me try to remember on what product to not give too much about ...
[13:22:58] apeiros: ah well, common answer to "can't give you the details" is: go hire a consultant then.
[13:23:33] eam: sounds like a bad idea though, given that all these identifiers and so on are easiliy manipulatable
[13:23:36] tvw: has joined #ruby
[13:23:49] unshadow: eam: can they ? are they not unique ?
[13:24:02] eam: unshadow: it's just a ruby object
[13:24:17] unshadow: can I create a Thread with the same ID as another running Thread ?
[13:24:32] eam: if you can mess with a thread inside a process, certainly you can arbitrarily mess with any ruby object in said process as well
[13:24:32] adaedra: Also, unique means that if an object disappears, a new one can pick up the old ID, theorically.
[13:24:49] leafybasil: has joined #ruby
[13:24:50] unshadow: hm.... good points
[13:25:02] unshadow: I guess back to the drawing board XD
[13:25:11] bmalum: has joined #ruby
[13:25:21] jhass: unshadow: I think you're seeking for the tid if anything, that's not related to the ruby object's memory address in any way
[13:25:57] jhass: and not a portable property afaik, that is it may not even exist
[13:26:05] unshadow: jhass: apeiros: the Idea is to have somekind of a checksum for the currently running Threads, so those cannot be changed or messed with by external manipulation
[13:26:24] eam: not really possible
[13:26:27] apeiros: unshadow: maybe I was unclear before: I'm utterly uninterested in helping with non-public problems.
[13:26:44] unshadow: apeiros: Ok, NP.
[13:26:52] Bellthoven: has joined #ruby
[13:28:08] unshadow: I gueese I wasn't aware this was a "GPL Ruby" group and not a "All are welcome to ask questions" Ruby group
[13:28:24] unshadow: anyway Thanks guys, I guess I'll go do more reading
[13:28:27] apeiros: unshadow: careful
[13:29:12] apeiros: I did not forbid you to ask the question, what you just did is tempting me to actually kick you.
[13:29:58] apeiros: you're not entitled to my help. you equating me telling you that *I* don't want to help you with *this group not welcoming you* is a dick move.
[13:30:31] stenofilen: has joined #ruby
[13:32:21] unshadow: apeiros: Dude... take it easy, I asked a question, you answered and I accepted your answer, you then asked *why*, I told you that I cannot give too much info and you got mad. I'm sorry if I got over the line, anyway, I dont want to make this a big issue. I like this group you are doing a good job here, if you dont want to help it's your right of curse. Have a good day :)
[13:32:24] shevy: hmm you people asked him why he wanted to know
[13:33:07] apeiros: unshadow: "you got mad" no. I reiterated that I'm not interested. I got mad at your dick move. and still am.
[13:33:23] jhass: mmh, I just can't think of any reasonable security property to come out of such a check. especially in ruby done in process
[13:33:48] atomical: has joined #ruby
[13:33:53] unshadow: apeiros: Again... sorry, lets end this now, it's a dumb argument.
[13:34:02] jhass: apeiros: go work on ruboto :P
[13:34:09] ruboto_: here's your cookie: ????
[13:34:21] shevy: cookie time for #ruby
[13:35:10] adaedra: That's a nice underscore you have here, ruboto_
[13:36:16] unshadow: jhass: well, Lets say you have a root control over a Linux machine running a program using ruby. I want to do a check every few secound to make sure non of my Threads (Ruby Threads) havn't been tampared with
[13:36:52] jhass: how could I tamper with them?
[13:37:26] adaedra: I guess that if "something" can tamper with your threads, it can tamper with your whole process, including your security check.
[13:37:26] michael_mbp: has joined #ruby
[13:37:38] unshadow: You could initiate the program again with different parameters, you can change the config file and re-run the program , etc ...
[13:38:00] eam: unshadow: you could attach with a debugger and redefine whatever methods you have in place to return "everything's ok"
[13:38:31] roxtrongo: has joined #ruby
[13:38:34] adaedra: That may not be the best place to place mitigations processes.
[13:39:10] eam: a general rule of unix security is: if you're running with the same permission as another process you have full control over the behavior and data inside that process
[13:39:31] fastAndSlow: has joined #ruby
[13:41:10] unshadow: So there isn't a way to do a validety check without the "checker" being also susceptible to compromise , right ?
[13:41:13] adaedra: If one thread of your program get compromised, all of the process is
[13:41:51] eam: unshadow: correct. Additionally, no validity check is going to be meaningful since the thread's state will change significantly over time
[13:43:18] unshadow: eam: hhm..... What if .... the checker is on another machine ? using DRB or some other technology ?
[13:43:38] eam: unshadow: what exactly are you going to check that's meaningful, though?
[13:44:20] jhass: unshadow: what prevents me from monkey patching DRb
[13:44:20] eam: if you have that kind of separation, why not rely on it?
[13:44:46] unshadow: I wanted to make sure the same Threads that were created on startup (3 threads) are the same ones (they should stay alive untill the program is shutdown) when the program is running
[13:45:21] eam: here's the thing: The thread ID is one of the less interesting attributes involved here -- checking it is a smell
[13:45:32] unshadow: So I know they started clean, and if they are tampered with (as in the program restarted, the code changed , etc..) I can kill the process
[13:45:34] eam: it says "I don't really trust my abstractions and security boundaries"
[13:46:28] eam: and if you can't trust those, it's game over anyway
[13:46:29] U7se6: has joined #ruby
[13:46:39] adaedra: Code tempering would mean you have remote code execution
[13:46:39] unshadow: I'm basing my "solution" on the thought that the machine I'm running on has being compromised
[13:46:52] adaedra: If you detect that code has been tempered, it's already too late, imo
[13:47:10] unshadow: adaedra: Not if I can detect it live
[13:47:29] unshadow: Then I can kill the connection, or at lest alert someone (or something)
[13:47:38] adaedra: you were saying "every n seconds", earlier.
[13:47:41] SCHAAP137: has joined #ruby
[13:47:59] unshadow: adaedra: Yeha, maybe 1 sec, or 0.5 , etc ...
[13:48:21] unshadow: adaedra: not live , you are right, but close to it
[13:49:04] unshadow: So the question is, what a unique value could I check that cannot be duplicate while the Thread is running
[13:49:27] eam: no, the question is "why do you think this check is relevant" in the event of a compromise?
[13:49:32] adaedra: That would tell you nothing useful
[13:51:13] unshadow: eam: the machine which will be compromised is a EXT machine, compromising it will get you nothing (in my usecase) the only thing that will get you something, is manipulating the code mid-run
[13:51:34] unshadow: EXT = External (as in resides in an isolated DMZ)
[13:51:48] adaedra: If you have a remote execution problem, it can act without changing your thread objects.
[13:52:35] unshadow: adaedra: Take it a step forward, no need for a remote code exec, the idea is the machine started with a root user access for the attacker
[13:52:46] shevy: all power to the superusers!
[13:53:08] adaedra: unshadow: and you think your attacker would care for your ruby program with root access?
[13:54:01] unshadow: adaedra: Yes, becuase the access give him nothing, to get into anything valuble he will have to manipulate the software (which is a GateWay to the internal network)
[13:55:04] adaedra: A root access on a machine, not valuable?
[13:56:04] unshadow: adaedra: Yes, becuase the machine is isolated and have nothing of importance on it, it can be changed and restarted in a matter of sec , So my only "achilles heel" is the program.
[13:56:50] adaedra: I still think you're taking the problem from the wrong angle, but have fun anyway.
[13:57:09] iateadonut: has joined #ruby
[13:57:43] daffy_duck: has joined #ruby
[13:57:46] unshadow: adaedra: Yeha, I guess :) thanks though for helping me with the thinking process
[13:58:18] Ebok: Hmmm. is there an easy way to look through an array and move all instances of one result into another array? In one step I mean.
[13:58:55] Coraline: Ebok: select
[13:58:57] adaedra: &ri Array#partition
[13:58:57] `derpy: http://www.rubydoc.info/stdlib/core/Enumerable#partition-instance_method
[13:59:09] Coraline: Oh move yes
[13:59:25] Ebok: select grabs them but doesnt necessarily remove them. But I'll read up on partition now
[14:00:53] rippa: has joined #ruby
[14:02:30] Ebok: Sweet that is exactly what I wanted. ^_^
[14:03:17] sankaber: has joined #ruby
[14:05:16] davedev24: has joined #ruby
[14:05:55] bruno-: has joined #ruby
[14:08:00] monq: has joined #ruby
[14:08:39] diegoaguilar: has joined #ruby
[14:08:49] n008f4g_: has joined #ruby
[14:09:24] rismoney1_: has joined #ruby
[14:12:59] Bellthoven: has joined #ruby
[14:14:01] gregoriokusowski: has joined #ruby
[14:15:39] zapata: has joined #ruby
[14:18:22] moeabdol: has joined #ruby
[14:19:06] stannard: has joined #ruby
[14:19:19] hmsimha: has joined #ruby
[14:21:01] marahin: has left #ruby: ("Leaving...")
[14:22:55] lessless: has joined #ruby
[14:22:58] Akagi201: has joined #ruby
[14:23:00] zenguy_pc: has joined #ruby
[14:25:51] leafybasil: has joined #ruby
[14:25:55] kristian_on_linu: has joined #ruby
[14:28:22] leafybasil: has joined #ruby
[14:28:57] atomical: has joined #ruby
[14:28:58] nemo_: has joined #ruby
[14:29:59] veduardo: has joined #ruby
[14:30:02] demonlove: has joined #ruby
[14:30:58] patdohere: has joined #ruby
[14:31:31] stannard: hello, I made a function that generates a class based on a file path.
[14:31:36] stannard: http://kwstannard.blogspot.com/2015/10/dry-up-your-rails-class-definitions.html
[14:32:35] stannard: I have been debating it with my coworkers and haven't heard a really compelling argument as to why not
[14:33:37] jhass: Dryer = Struct.new(...) please
[14:33:50] jhass: no need for an anonymous class in the chain
[14:34:01] sankaber: has joined #ruby
[14:35:18] stannard: idk, I think struct is a matter of preference, but it is also not the main point of what I did.
[14:35:41] jhass: it is, but class Foo < Struct.new is an anti-pattern
[14:35:56] stannard: or argument?
[14:36:10] jhass: already gave above, but code demonstrates better I guess
[14:36:11] Alina-malina: has joined #ruby
[14:36:20] jhass: >> class Foo < Struct.new(:foo); end; Foo.ancestors
[14:36:21] ruboto: jhass # => [Foo, #<Class:0x40e12158>, Struct, Enumerable, Object, Kernel, BasicObject] (https://eval.in/452919)
[14:36:25] stannard: oh, I see what you are saying
[14:36:28] bluish: has joined #ruby
[14:36:32] jhass: >> Foo = Struct.new(:foo); Foo.ancestors
[14:36:33] ruboto: jhass # => [Foo, Struct, Enumerable, Object, Kernel, BasicObject] (https://eval.in/452920)
[14:38:18] jenrzzz: has joined #ruby
[14:38:50] stannard: okay, changed
[14:38:53] jhass: my counter arguments would be: not always wanted so you get fragmented codebase, harder to understand for people new to the codebase, more verbose and not being able to use constants is a major drawback, using a constant for a constant value carries a lot of useful intent
[14:39:17] sankaber: has joined #ruby
[14:39:23] ericjphillips: has joined #ruby
[14:39:41] Ebok: Wait... isnt it? Foo = Struct.new(:ancestors); Foo.ancestors
[14:39:57] jhass: Ebok: no, you're thinking of Foo.new.foo
[14:40:03] Ebok: ah right
[14:40:07] jhass: Struct.new returns an instance of Class
[14:40:49] Ebok: Yeah, I just thought that the paranthesis in the Struct creation was used as shorthand for the attr_accessor
[14:40:58] GriffinHeart: has joined #ruby
[14:41:10] jhass: they are (though not only)
[14:41:18] sdothum: has joined #ruby
[14:42:03] Ebok: I'm very green when it comes to class interaction still. I just started branching into that myself
[14:42:10] NeverDie: has joined #ruby
[14:43:32] workmad3: has joined #ruby
[14:43:42] adaedra: Supergreen!
[14:43:55] Bellthoven: has joined #ruby
[14:45:00] aryaching: has joined #ruby
[14:46:26] Uo9er_: has joined #ruby
[14:46:44] karapetyan: has joined #ruby
[14:47:27] karapetyan: jhass: can i help you with automation some of your tasks in ruby?
[14:47:29] atomical_: has joined #ruby
[14:47:49] jhass: nothing pending
[14:47:55] sankaber: has joined #ruby
[14:50:04] nemo_: has joined #ruby
[14:51:19] bmalum: has joined #ruby
[14:51:45] codecop: has joined #ruby
[14:54:17] beauby: has joined #ruby
[14:56:01] stannard: jhass: Good points. I would counter that the added flexibility to change is more than worth the verbosity. You can still use constants, you just need to define and call them in a more verbose manner.
[14:56:04] DoubleMalt: has joined #ruby
[14:56:09] doublemalt_: has joined #ruby
[14:56:19] mart1wtf: has joined #ruby
[14:56:44] jhass: well, I guess the thing is that the thing it wants to solve was never even a slight pain point for me
[14:56:56] jhass: ymmv of course
[14:57:22] kobain: has joined #ruby
[14:57:27] mart1wtf: has left #ruby: ()
[14:57:27] sdothum: has joined #ruby
[14:58:01] nemo_: has joined #ruby
[14:58:03] Rollabunna: has joined #ruby
[14:58:12] stannard: jhass, do you use an IDE?
[14:58:20] jhass: no, just sublime
[14:58:37] ndrei: has joined #ruby
[14:59:07] favadi: has joined #ruby
[14:59:24] stannard: you are just really good at remembering to change the file name and class name at the same time?
[14:59:36] jhass: I guess so
[14:59:46] kobain: has joined #ruby
[14:59:54] stannard: maybe I rename clases a lot
[14:59:55] jhass: but I'm also not constantly renaming things, rather take some more time when creating stuff I guess
[15:00:30] Ebok: If I want a single variable within a class to be a constant... only within that class... what symbol do I use again?
[15:00:36] atomical: has joined #ruby
[15:00:49] Ebok: Was it the $
[15:01:02] stannard: $ is global
[15:01:10] jhass: local_or_method, @instance_variable, @@class_variable, $global, Constant
[15:01:30] kristian_on_linu: ACTION apologies for saying "hi" twice
[15:01:34] jhass: you basically never want to use $global or @@class_variable
[15:02:17] kristian_on_linu: what install method do you recommend? I need to update a gem from Github, and I'm getting dependency issues. RVM seems relatively easy?
[15:02:33] khebbie: has joined #ruby
[15:02:41] Ebok: I'm surrently using the @ but it has occurred to me that this particular variable never changes between instances of the class, and its somewhat lenghty. So I just wanted to have one singular global for the class, so it doesnt get replicated.
[15:02:49] acke: has joined #ruby
[15:02:54] jhass: if you keep mind to always use the same user account for everything related to it (and not root for anything), yes
[15:03:02] eam: Ebok: why don't you want it to be replicated?
[15:03:15] jhass: kristian_on_linu: ^
[15:03:23] Ebok: Because its an array with like 120 variables that dont ever change >_>
[15:03:37] kristian_on_linu: jhass: I'd prefer that
[15:03:38] Ebok: Its not large enough to matter, but it bugged me
[15:03:54] eam: Ebok: if you've profiled your program and the optimization makes sense, do it. But premature optimization tends to create more problems than it corrects
[15:04:04] Ebok: Fairenough
[15:04:17] canton7: if it's never changed, wouldn't a CONSTANT make most sense?
[15:04:46] eam: Ebok: keep in mind, if you have two instances referencing the same array they won't copy any data anyway
[15:05:16] eam: >> a = [1,2,3]; b = a; [a.object_id, b.object_id]
[15:05:17] ruboto: eam # => [545443930, 545443930] (https://eval.in/452922)
[15:05:30] Peteykun: has joined #ruby
[15:05:36] Ebok: That I didnt know.
[15:05:46] Ebok: That removes any need to do it another way
[15:06:25] eam: but if you really do have some super huge global read-only dataset -- that is one of the few legit uses of a class or global variable
[15:06:32] nemo_: has joined #ruby
[15:06:41] Ebok: Alright.
[15:06:47] eam: "120 variables" doesn't sound that big though
[15:06:53] Ebok: Its not.
[15:07:47] jhass: I don't follow why a global is superior to say a constant inside your libraries namespace there
[15:08:28] eam: it's not necessarily, but a constant is just a global anyway
[15:08:52] sdothum: has joined #ruby
[15:09:11] jhass: yes, but I can namespace it, I don't have to contend another global namespace besides Object
[15:09:17] favadi: has joined #ruby
[15:11:02] stannard: what about `@@CONSTANT = "a string"`? That way it looks like a constant, but is not globally visible.
[15:11:08] Us54er: has joined #ruby
[15:11:46] shevy: I like the explanation ... "Thaty way it looks like a constant" :)
[15:11:46] jhass: you'd get a strange look from me
[15:12:09] eam: to be fair, the only properties constants have in ruby is that they look like one (but never are)
[15:12:23] jhass: well, you get warnings, if you want :P
[15:12:41] shevy: in ruby constants are not constant
[15:13:31] eam: a constant source of irritation
[15:13:50] shevy: don't let apeiros find out that we spoke about non-constant constants!
[15:14:19] shevy: dynamic constants
[15:15:49] nateberkopec: has joined #ruby
[15:15:50] mary5030: has joined #ruby
[15:15:54] idefine: has joined #ruby
[15:16:15] BrunoSaboia: has joined #ruby
[15:16:40] shinnya: has joined #ruby
[15:16:46] hectortrope: hi shevy jhass
[15:17:59] mary5030: has joined #ruby
[15:18:03] BSab: has joined #ruby
[15:18:07] shevy: hi tropical hector
[15:18:30] gexe: has joined #ruby
[15:20:50] mleung: has joined #ruby
[15:20:55] fullofcaffeine: has joined #ruby
[15:21:52] mary5030: has joined #ruby
[15:23:54] BSaboia: has joined #ruby
[15:24:13] User458764: has joined #ruby
[15:24:42] BrunoSaboia: has joined #ruby
[15:24:48] notmorpheus: has joined #ruby
[15:25:07] chopin: has joined #ruby
[15:25:11] karapetyan: has joined #ruby
[15:25:27] notmorpheus: https://github.com/postmodern/chruby#requirements has an install section but then it says two sections down that you can run setup.sh to install it
[15:25:39] iateadonut: has joined #ruby
[15:25:42] notmorpheus: Can someone clarify what that is about? I am supposed to run setup.sh?
[15:25:52] notmorpheus: After doing the wget install section?
[15:27:02] jhass: https://github.com/postmodern/chruby/blob/master/scripts/setup.sh#L43-L62 not too hard to just look at the script
[15:27:18] notmorpheus: I did look at it.
[15:27:55] jhass: and didn't notice it includes the commands from the manual install section?
[15:27:56] notmorpheus: I'm asking for an explanation of what it does vs. the wget global install
[15:27:57] diegoaguilar: has joined #ruby
[15:28:54] pepperbreath1: has joined #ruby
[15:29:02] notmorpheus: It appears to do some extra things as well (sourcing some other sh files)
[15:29:05] ruby-lang628: has joined #ruby
[15:29:16] rkazak: has joined #ruby
[15:29:21] notmorpheus: I am wondering if it's doing something to enable local environment
[15:29:37] jhass: which is just loading chruby into the current shell so you don't have to relogin/restart it
[15:30:05] jhass: actually it's not even sourcing them yet
[15:30:17] jhass: the source lines are inside a string
[15:31:38] noethics: has joined #ruby
[15:31:43] notmorpheus: it looks like i do need to run that then to get that file in /etc/profile.d no?
[15:32:10] karapetyan: has joined #ruby
[15:32:16] jhass: it's https://github.com/postmodern/chruby#system-wide
[15:32:19] notmorpheus: that part doesn't happen from the sudo make install above
[15:32:30] ericjphillips: has joined #ruby
[15:33:24] blackmesa: has joined #ruby
[15:34:16] notmorpheus: the chruby install from the first part was system wide too
[15:34:29] notmorpheus: hence sudo make install and i think this from looking at the Makefile
[15:34:49] arturmartins: has joined #ruby
[15:34:57] notmorpheus: wonder why this setup.sh just wasn't part of that
[15:36:50] notmorpheus: rather, why have people run "sudo make install" in that first install section vs. just "sudo scripts/setup.sh"
[15:37:26] kraljev11: has joined #ruby
[15:37:27] Asher: has joined #ruby
[15:39:18] roxtrongo: has joined #ruby
[15:39:21] atomical: has joined #ruby
[15:40:33] notmorpheus: never mind, i get what you meant by system wide now
[15:41:38] dragon_inspactor: has joined #ruby
[15:42:00] Rollabun_: has joined #ruby
[15:46:10] saddad: has joined #ruby
[15:46:33] Uo9er_: has joined #ruby
[15:50:23] jgt: has joined #ruby
[15:52:21] rickmasta: has joined #ruby
[15:52:42] aryaching: has joined #ruby
[15:53:21] nemo_: has joined #ruby
[15:54:21] bluish: has joined #ruby
[15:54:39] GnuYawk: has joined #ruby
[15:56:33] karapetyan: has joined #ruby
[15:56:45] govt_official: has joined #ruby
[15:57:45] DEA7TH: has joined #ruby
[15:57:53] govt_official: whats the best way to accomplish a sparse n-dimensional array? I need to be able to do something like m[z][y][x][a][b][c], but potentially way deeper than that
[15:58:51] jhass: static sizes?
[16:02:49] Akagi201: has joined #ruby
[16:02:56] govt_official: I want to have a maximum size that I might know beforehand, but I don't know how large. I'm working with extremely large datasets of NL, and I'm writing markov chains
[16:03:13] govt_official: I thought about just dumping it all into redis and doing it that way
[16:04:03] jhass: might not be a bad approach actually
[16:04:14] nemo_: has joined #ruby
[16:04:28] jhass: and with size I meant the maxima for a, b, c, x, y, z
[16:04:51] karapetyan: has joined #ruby
[16:06:48] govt_official: I mean it would be like, words["I"]["mean"]["it"]["would"]... etc
[16:06:59] sankaber: has joined #ruby
[16:07:03] govt_official: so thousands or maybe more than that
[16:07:18] jhass: so it's not actually an array but a map or tree
[16:07:36] Coraline: A tree would be a great way to structure that.
[16:07:45] Coraline: Or a graph database with weights attached to associations.
[16:08:05] Coraline: I would probably use Neo4j rather than Redis or a traditional RDBMS
[16:08:25] govt_official: I thought about a graph, but I am going to have really intense weights
[16:08:28] Coraline: I mean why write all that code yourself?
[16:08:35] jhass: yeah, representing it in Ruby will probably kill for the overhead of each object
[16:09:56] govt_official: I'm writing a utility for doing bayesian poisoning, I have a baseline for how the weights need to be and I think I can defeat really powerful filters like Akismet, Gmail etc
[16:10:04] blue_deref: has joined #ruby
[16:10:12] govt_official: but in order to do it, I need to weigh the generated content with a huge amount of legitimate text
[16:10:24] Coraline: That sounds nefarious and spammy
[16:10:41] Coraline: What's your intent?
[16:10:57] govt_official: I also have a solution for when my spam blots out the sun, a more intelligent filter
[16:12:57] acke: has joined #ruby
[16:14:57] fullofcaffeine: has joined #ruby
[16:15:52] idefine: has joined #ruby
[16:16:43] andersoldahl: has joined #ruby
[16:19:08] acke: has joined #ruby
[16:22:30] Azure: has joined #ruby
[16:22:32] symm-: has joined #ruby
[16:23:26] zenguy_pc: has joined #ruby
[16:25:48] pwnd_nfsw: has joined #ruby
[16:27:18] bruno-: has joined #ruby
[16:27:45] tmtwd: has joined #ruby
[16:28:05] gexe: has joined #ruby
[16:31:41] workmad3: has joined #ruby
[16:32:32] mary5030: has joined #ruby
[16:32:56] skcin7: has joined #ruby
[16:33:02] to_json: has joined #ruby
[16:33:02] to_json: has joined #ruby
[16:34:54] blackmesa: has joined #ruby
[16:36:05] minibar: has joined #ruby
[16:36:41] minibar: hello I'm new to ruby, what should I use simmilar to python virtualenv?
[16:36:55] minibar: to install gems locally and so on
[16:36:56] David27: has joined #ruby
[16:37:09] adaedra: bundler can do that
[16:37:55] adaedra: (If I understand correctly your need, as I don't know virtualenv)
[16:39:02] ixti: has joined #ruby
[16:39:09] minibar: what about sanbox/rvm
[16:39:32] buharin: has joined #ruby
[16:39:40] buharin: is it better to use ruby for android
[16:39:52] buharin: mean android sdk
[16:39:59] pathrocle: has joined #ruby
[16:40:07] adaedra: better is subjective.
[16:40:49] havenwood: minibar: Install Rubies with ruby-install, switch between them with chruby, and use RubyGems itself or Bundler for managing gem dependencies.
[16:41:01] havenwood: minibar: https://github.com/postmodern/ruby-install#readme
[16:41:01] jhass: minibar: bundler ensures only specific versions of specific gems can be loaded. Additionally it can install those to local site dir if desired. RVM, rbenv and chruby are only primarily useful to install, manage and activate a specific ruby version/implementation these days
[16:41:11] havenwood: minibar: https://github.com/postmodern/chruby#readme
[16:41:50] Silox|: has joined #ruby
[16:42:22] balazs_: has joined #ruby
[16:42:24] minibar: so how do I install gems locally isntead of globabally?
[16:42:39] jhass: with bundler or gem install --user-install ?
[16:42:46] jhass: er, s/?//
[16:43:00] minibar: where does bundler install to?
[16:43:13] `tim`: has joined #ruby
[16:43:19] havenwood: minibar: $GEM_HOME
[16:43:23] havenwood: minibar: Bundler is a gem.
[16:43:44] jhass: but it takes the --path option which lets you choose an arbitrary one
[16:44:24] havenwood: minibar: See: gem help install
[16:44:46] n008f4g_: has joined #ruby
[16:45:09] havenwood: minibar: $GEM_HOME is the default repository location for gem installation.
[16:45:35] minibar: havenwood what if gem_home is not defined?
[16:45:38] hectortrope: has joined #ruby
[16:48:35] havenwood: minibar: Gem.default_dir
[16:48:47] Thomas-0725: has joined #ruby
[16:49:16] chouhoul_: has joined #ruby
[16:50:10] havenwood: minibar: https://github.com/rubygems/rubygems/blob/master/lib/rubygems/defaults.rb#L25-L52
[16:50:11] SCHAAP137: has joined #ruby
[16:50:11] SCHAAP137: has joined #ruby
[16:50:58] gizmore: has joined #ruby
[16:52:36] jun: has joined #ruby
[16:53:56] havenwood: minibar: ENV['GEM_HOME'] || Gem.default_dir
[16:55:38] karapetyan: has joined #ruby
[16:57:48] idefine: has joined #ruby
[17:04:53] ostepopmannen: has joined #ruby
[17:05:31] ostepopmannen: has left #ruby: ()
[17:06:03] yosiat: has joined #ruby
[17:06:11] jsuth: has joined #ruby
[17:07:33] DoubleMalt: has joined #ruby
[17:08:37] doublemalt_: has joined #ruby
[17:09:00] andersoldahl: has joined #ruby
[17:10:37] workmad3: has joined #ruby
[17:11:34] jgt: has joined #ruby
[17:11:36] felltir: has joined #ruby
[17:11:43] symm-: has joined #ruby
[17:12:03] kraljev11: has joined #ruby
[17:12:18] Akagi201: has joined #ruby
[17:12:21] step1step2: has joined #ruby
[17:12:39] hyperdrive: has joined #ruby
[17:13:54] sankaber: has joined #ruby
[17:14:48] sankaber: has joined #ruby
[17:17:28] roxtrongo: has joined #ruby
[17:17:56] Yzguy: has joined #ruby
[17:18:36] idefine: has joined #ruby
[17:20:32] govt_official: has left #ruby: ()
[17:20:43] govt_official: has joined #ruby
[17:20:47] saddad: has joined #ruby
[17:20:47] govt_official: has left #ruby: ()
[17:25:16] stannard: has joined #ruby
[17:26:28] cr3: has joined #ruby
[17:28:52] bmalum: has joined #ruby
[17:33:15] bluish: has joined #ruby
[17:34:10] Yzguy: has joined #ruby
[17:34:18] gregf: has joined #ruby
[17:35:54] dorei: has joined #ruby
[17:36:44] baweaver: has joined #ruby
[17:37:50] kraljev11: has joined #ruby
[17:39:15] stamina: has joined #ruby
[17:39:46] sankaber: has joined #ruby
[17:39:59] Yzguy: has joined #ruby
[17:40:39] aclearman037: has joined #ruby
[17:40:45] Yzguy: anyone have a moment to give some advice?: https://gist.github.com/yzguy/6ca0b5e2a8492eca1faf
[17:40:52] beast_: has joined #ruby
[17:40:53] Yzguy: not sure how to handle missing arguments
[17:41:11] Yzguy: I was kind of expecting it to be like python's argparse, it spits out usage when its missing
[17:41:49] Yzguy: ln 29, 30 doesn't seem like the best way to handle it
[17:43:09] canton7: trollop and slop might be more what you're looking for?
[17:43:39] sankaber: has joined #ruby
[17:44:28] aryaching: has joined #ruby
[17:44:33] Yzguy: slop looks nice.
[17:45:02] Yzguy: just curious how you more experienced ruby guys would handle missing arguments in that little snippet
[17:45:06] adaedra: I'd have used Hash#key? to check for a parameter.
[17:45:38] bryanray: has joined #ruby
[17:46:15] shevy: But you are french.
[17:46:27] daed: do french people write weird ruby code?
[17:46:31] fullofcaffeine: has joined #ruby
[17:46:42] U7se6: has joined #ruby
[17:46:49] shevy: Look at their comments!!!
[17:47:04] Coldblackice: has joined #ruby
[17:47:10] adaedra: shevy: and this information was important to tell because...?
[17:47:18] shevy: Allow me to quote from adaedra
[17:47:24] shevy: <adaedra> I prefer cursing in French.
[17:47:25] shevy: <adaedra> It's like wiping your ass with silk.
[17:47:31] daed: matrix quote
[17:47:37] shevy: adaedra everyone is important, especially cookies for ruboto
[17:47:44] ruboto: here's your cookie: ????
[17:47:52] adaedra: Let me ask again
[17:47:59] adaedra: It was important because ?
[17:48:54] User458764: has joined #ruby
[17:50:02] daed: i like cookies
[17:50:43] finisherr: has joined #ruby
[17:52:05] Yzguy: has joined #ruby
[17:53:37] fullofcaffeine: has joined #ruby
[17:53:39] marsjaninzmarsa: has joined #ruby
[17:54:49] houhoulis: has joined #ruby
[17:55:16] BSaboia: has joined #ruby
[17:56:56] acke: has joined #ruby
[17:57:02] symm-: has joined #ruby
[17:58:09] Emmanuel_Chanel: has joined #ruby
[17:58:54] bruno-: has joined #ruby
[18:00:17] idefine: has joined #ruby
[18:01:51] totimkopf: has joined #ruby
[18:07:27] dagda1_: has joined #ruby
[18:07:51] grekkos: has joined #ruby
[18:07:51] Pupeno: has joined #ruby
[18:07:51] Pupeno: has joined #ruby
[18:09:18] jsuth: has joined #ruby
[18:09:22] kirun: has joined #ruby
[18:10:06] Channel6: has joined #ruby
[18:10:22] cr3: has left #ruby: ()
[18:10:35] jgt: has joined #ruby
[18:12:53] kies^: has joined #ruby
[18:13:14] ElFerna: has joined #ruby
[18:13:19] iamjarvo_: has joined #ruby
[18:13:35] fullofcaffeine: has joined #ruby
[18:13:50] bryanray: has joined #ruby
[18:14:18] Akagi201: has joined #ruby
[18:17:26] arup_r: has joined #ruby
[18:19:35] purplexed^: has joined #ruby
[18:21:08] idefine: has joined #ruby
[18:21:15] QORRiE: has joined #ruby
[18:21:15] QORRiE: has joined #ruby
[18:21:16] ramfjord: has joined #ruby
[18:23:36] nickjj: has joined #ruby
[18:23:40] workmad3: has joined #ruby
[18:24:07] ndrei: has joined #ruby
[18:24:18] yosiat: has joined #ruby
[18:24:24] stannard: has joined #ruby
[18:24:39] zenguy_pc: has joined #ruby
[18:26:53] Emmanuel_Chanel: has joined #ruby
[18:27:25] `tim`: has joined #ruby
[18:27:51] bryanray: has joined #ruby
[18:27:58] spuk: has joined #ruby
[18:28:59] platzhirsch: has joined #ruby
[18:30:36] acke: has joined #ruby
[18:31:36] `tim`: has joined #ruby
[18:34:01] trollga: has joined #ruby
[18:36:09] _tpavel: has joined #ruby
[18:39:35] grekkos: has joined #ruby
[18:41:48] framling: has joined #ruby
[18:42:10] tynamite: has joined #ruby
[18:42:58] tynamite: Hi I'm using an old version of ruby and when I try to insert the % symbol into my database, I get an exception with a stack trace and the page fails to load. How do I know whether it's ruby causing it or my web framework??
[18:43:02] nickjj: has joined #ruby
[18:43:35] canton7: that would depend massively on what the exception says and what's in the stack trace
[18:43:58] canton7: "my car doesn't work. is it the fuel pump, turbo, steering system, or coolant that's broken"
[18:44:05] tynamite: Here's the stack trace. https://gist.github.com/desbest/9a6c24b7e03cf8d50e44
[18:44:50] atomical: has joined #ruby
[18:44:55] canton7: .. and the exception message?
[18:45:15] blackmes1: has joined #ruby
[18:45:33] tynamite: ArgumentError: invalid %-encoding
[18:46:34] canton7: so.. you're sending a get request with a % in it?
[18:47:22] jhass: using your browser or...?
[18:47:31] canton7: with application/x-www-form-urlencoded encoding? (the default if you're using a browser)
[18:47:50] tynamite: My website is using utf-8 encoding and I'm typing in the % symbol using my keyboard.
[18:48:11] canton7: you're sending a post request, promising that the data in it is urlencoded. however the data you're sending is not urlencoded
[18:48:28] tynamite: I'm not using application/x-www-form-urlencoded in the <form> tag as I've never heard of that attribute in my life
[18:48:40] canton7: so you are using a browser?
[18:48:51] tynamite: yes google chrome
[18:49:34] canton7: what's in makenew.rb at lines 506 and 508?
[18:49:59] beauby: has joined #ruby
[18:50:29] jhass: maybe it tries to double decode
[18:51:16] leafybas_: has joined #ruby
[18:51:27] canton7: it's looking like it
[18:51:31] jhass: it's not touching the DB at all, so mentioning it is kinda misleading btw
[18:51:41] symm-_: has joined #ruby
[18:51:43] tynamite: the error occures before the save
[18:52:00] ruboto: We can't help you without your code, please post it to https://gist.github.com
[18:52:16] canton7: something caused by line 506/508 or makenew.rb is causing another decode of the data, and that's erroring out because at that point the data isn't encoded
[18:52:47] tynamite: I changed my makenew.rb file so it's actually lines 296 and 298 causing the error.
[18:53:08] tynamite: 296 is Raven.capture do 298 is data = request.subset(:content, :post_id)
[18:53:23] tynamite: Raven is a ruby gem for logging errors in ruby code and sending it to my email.
[18:55:52] Galas: has joined #ruby
[18:59:00] stannard: has joined #ruby
[19:02:52] idefine: has joined #ruby
[19:03:17] ndrei: has joined #ruby
[19:04:36] avahey: has joined #ruby
[19:04:42] tynamite: Here's my ruby code for makenew.rb Lines 2 and 4 are referenced in the stack trace.
[19:06:07] platzhirsch: has joined #ruby
[19:08:13] Cyther: has joined #ruby
[19:08:33] swgillespie: has joined #ruby
[19:09:34] fullofcaffeine: has joined #ruby
[19:09:51] pwnd_nfsw: has joined #ruby
[19:14:40] bmalum: has joined #ruby
[19:15:18] roxtrongo: has joined #ruby
[19:15:28] Akagi201: has joined #ruby
[19:16:31] ElFerna: has joined #ruby
[19:20:38] hakunin_: has joined #ruby
[19:21:05] futilegames: has joined #ruby
[19:21:14] leafybasil: has joined #ruby
[19:21:32] ochkoffein: has joined #ruby
[19:22:00] michaeldeol: has joined #ruby
[19:25:16] aryaching: has joined #ruby
[19:25:24] _wldcordeiro: has joined #ruby
[19:26:06] Rollabunna: has joined #ruby
[19:29:23] opensource_ninja: has joined #ruby
[19:30:05] hackeron: hey, anyone familiar with public/private key encryption? - I need to generate a 256 byte public key to activate an IP camera. The example the manufacturer gives is this: "6537560e0ecb7e1663fa8ee924589c1b07874010366aada057396f32369253da3af14c273276fc975d6bc64ba0da48f63e5345ff77fbb8472c619ffba2a5dd1e1797a7e86eb12ed440e7d6a2af37532dda72600335aa2daed31381e877532a30176973ffbac0dc46485fa75d15620d7bc19786b0a3b959f
[19:30:11] hackeron: fc7de9dc36e80da5f" -- How would you ...
[19:30:14] hackeron: ... generate a public key like this? - Everything I get with openssl or ssh-keygen looks different
[19:30:31] gregoriokusowski: has joined #ruby
[19:30:38] MyMind: has joined #ruby
[19:31:11] jhass: hackeron: link to the exact wording?
[19:31:54] hackeron: jhass: https://www.dropbox.com/s/cz71t47vtkyn34q/Activatiton%20Guide.pdf?dl=0
[19:32:01] michaeldeol: has joined #ruby
[19:32:34] adaedra: jhass: there's an openssl binding in ruby, for what it's worth
[19:32:40] adaedra: hackeron ^
[19:33:04] jhass: "encryption with base64" sigh
[19:34:17] karapetyan: has joined #ruby
[19:35:11] hackeron: jhass: I think encoding the public key with base64 - when I do base64 decode, I get that string above
[19:35:29] mois3x: has joined #ruby
[19:35:37] hackeron: jhass: but the question is, what is the public/private key generated by?
[19:35:43] jhass: gosh, the way that stuff is written makes me not trust it for a second
[19:35:51] gambl0re: has joined #ruby
[19:35:56] jhass: well, they expect an RSA key
[19:36:09] jhass: didn't figure the keysize yet
[19:37:33] ochkoffein: has joined #ruby
[19:37:40] hackeron: jhass: yeh, but any RSA key with various sizes I generate wither with openssl genrsa or with ssh-keygen -t rsa seems to look different and not accepted by the caemra - just returns an Invalid XML Content
[19:39:51] jhass: I don't even manage to copy the example out of the PDF
[19:40:08] hackeron: jhass: NjUzNzU2MGUwZWNiN2UxNjYzZmE4ZWU5MjQ1ODljMWIwNzg3NDAxMDM2NmFhZGEwNTczOTZmMzIzNjkyNTNkYTNhZjE0YzI3MzI3NmZjOTc1ZDZiYzY0YmEwZGE0OGY2M2U1MzQ1ZmY3N2ZiYjg0NzJjNjE5ZmZiYTJhNWRkMWUxNzk3YTdlODZlYjEyZWQ0NDBlN2Q2YTJhZjM3NTMyZGRhNzI2MDAzMzVhYTJkYWVkMzEzODFlODc3NTMyYTMwMTc2OTczZmZiYWMwZGM0NjQ4NWZhNzVkMTU2MjBkN2JjMTk3ODZiMGEzYjk1OWZmYzdkZTlkYzM2ZTgwZGE1Zg==
[19:40:19] hackeron: jhass: with base64 -D it shows: 6537560e0ecb7e1663fa8ee924589c1b07874010366aada057396f32369253da3af14c273276fc975d6bc64ba0da48f63e5345ff77fbb8472c619ffba2a5dd1e1797a7e86eb12ed440e7d6a2af37532dda72600335aa2daed31381e877532a30176973ffbac0dc46485fa75d15620d7bc19786b0a3b959ffc7de9dc36e80da5f
[19:41:25] jhass: let's see
[19:42:09] hackeron: jhass: thank you for looking at this :)
[19:43:02] karapetyan: has joined #ruby
[19:43:16] shinnya: has joined #ruby
[19:44:12] idefine: has joined #ruby
[19:44:26] bruno-: has joined #ruby
[19:44:41] jhass: I think the example is just garbage
[19:44:50] user083: has joined #ruby
[19:45:05] hackeron: jhass: it's not, when I POST the example - the camera responds with a challenge
[19:45:15] hackeron: jhass: when I post anything I generated with openssl or ssh-genkey, it says invalid XML
[19:46:03] hackeron: jhass: so the question is, what is this and how do you generate your own, heh
[19:46:21] Galas: has joined #ruby
[19:46:29] Uo9er_: has joined #ruby
[19:49:51] michaeldeol: has joined #ruby
[19:50:30] gambl0re: has joined #ruby
[19:50:59] jhass: hackeron: no reference implementation by any chance?
[19:51:17] hackeron: jhass: nope, just that document - they have not provided anything else at all :/
[19:52:07] QORRiE: has joined #ruby
[19:53:36] ndrei: has joined #ruby
[19:54:28] gambl0re: has joined #ruby
[19:54:35] bove: has joined #ruby
[19:54:48] bruno-: has joined #ruby
[19:54:53] blackmes1: has joined #ruby
[19:55:21] michaeldeol: has joined #ruby
[19:55:47] michael_mbp: has joined #ruby
[19:57:27] jun: has joined #ruby
[19:58:34] GriffinHeart: has joined #ruby
[19:58:34] ochkoffein: has joined #ruby
[20:01:05] ndrei: has joined #ruby
[20:02:23] hackeron: jhass: any wild guesses, heh?
[20:02:32] ramfjord: has joined #ruby
[20:02:54] jhass: not really yet
[20:03:15] michaeldeol: has joined #ruby
[20:03:41] jhass: it's interesting that the hexstring is indeed 256 characters
[20:03:45] jhass: which makes no sense at all
[20:03:52] ruurd: has joined #ruby
[20:05:17] ElFerna: has joined #ruby
[20:05:33] ochkoffein: has joined #ruby
[20:05:55] hackeron: jhass: yeh :/ - I know they are a windows shop, they are a fan of SOAP and what not, maybe this is how C# generated public keys look like or something? - whatever they use doesn't appear to be something standard
[20:06:08] hackeron: which is why I guess they have (or at least used to have) a terrible reputation for security
[20:06:34] jgt: has joined #ruby
[20:06:45] jhass: it's custom, likely wrong implementation
[20:07:07] jhass: it makes no sense to reinvent the keyformat
[20:07:18] jhass: C# might be bad, but not that bad
[20:08:47] blackmes1: has joined #ruby
[20:09:01] Musashi007: has joined #ruby
[20:09:05] hackeron: jhass: hmm, very peculiar - but they mention RSA and they mention AES128 there - so how are they taking that and generating a 256byte public key, hmmmm
[20:10:41] jhass: well, it's not a 2048 bit key, even 256 bytes are 2048 bits, if they limit the possible bytes to ASCII 0 to ASCCI f ...
[20:11:46] workmad3: has joined #ruby
[20:12:25] jhass: mmh, say they have a static e ... oh god it might really just be the N
[20:12:55] fullofca_: has joined #ruby
[20:13:05] Vile`: has joined #ruby
[20:13:45] hackeron: jhass: haha, I like your thinking - but it sounds pretty retarded on their part :/ - why would anyone do this
[20:14:02] ElFerna: has joined #ruby
[20:14:23] eam: most people don't know how things work, should work, or why they work that way
[20:15:08] moeabdol: has joined #ruby
[20:16:45] hackeron: jhass: just a thought, maybe they are using some javascript library since this key is POSTed to the camera web interface?
[20:17:40] hackeron: when I look at the html source I see .script("../script/encryption.js").wait()
[20:17:41] hackeron: .script("../script/AES.js").wait()
[20:17:41] hackeron: .script("../script/cryptico.min.js").wait()
[20:18:13] jun: has joined #ruby
[20:18:38] jhass: that might be ...
[20:18:41] Akagi201: has joined #ruby
[20:19:19] jhass: https://github.com/wwwtyro/cryptico
[20:20:14] hackeron: jhass: cryptico.publicKeyString(rsakey) - Returns the public key portion of an RSAKey object in ascii-armored string form
[20:20:26] hackeron: jhass: bingo?
[20:20:44] Blufilz: has joined #ruby
[20:20:52] adaedra: ???ascii-armored???
[20:21:33] jhass: "with 3 as a hard-coded public exponent."
[20:24:02] zenguy_pc: has joined #ruby
[20:25:51] idefine: has joined #ruby
[20:26:25] michaeldeol: has joined #ruby
[20:27:32] ochkoffein: has joined #ruby
[20:27:57] Blufilz: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[20:28:00] AccordLTN: has joined #ruby
[20:29:07] nateberkopec: has joined #ruby
[20:31:59] ElFerna: has joined #ruby
[20:32:09] arturmartins: has joined #ruby
[20:32:54] jhass: looks like it's PKCS#1
[20:34:17] hackeron: jhass: found this in the javascript source: http://pastie.org/10491503
[20:35:05] symm-: has joined #ruby
[20:35:33] hackeron: jhass: any way to replicate that in Ruby?
[20:35:53] jhass: currently toying with https://github.com/bendiken/rsa
[20:37:24] yardenbar: has joined #ruby
[20:37:33] jhass: well, given we don't have the private key in the examples can't really
[20:38:21] tubuliferous: has joined #ruby
[20:38:32] hackeron: jhass: we do - essentially it does cryptico.generateRSAKey(new Date + '', 1024) - then sends the ascii-armored version as a POST request
[20:39:57] adaedra: Tell me doing `+ ''` is not a good way of casting into a string in JS.
[20:40:11] firstdayonthejob: has joined #ruby
[20:40:14] hackeron: adaedra: haha, I don't know, but that's what hikvision do
[20:40:57] fullofcaffeine: has joined #ruby
[20:41:23] buharin: hey I run ruby throw ruby the hard way
[20:41:27] buharin: and I really enjoy it :D
[20:41:34] buharin: whats next?
[20:42:06] workmad3: has joined #ruby
[20:42:59] Xiti: has joined #ruby
[20:43:25] jhass: buharin: read some styleguides, ruby koans, ruby warrior, exercism, codewars, (partly) automate some task you do regularly
[20:43:56] buharin: jhass, espacially I hate Java
[20:44:05] buharin: so I find that ruby got good framework
[20:44:11] buharin: for android and iOS
[20:44:13] buharin: developing
[20:44:18] buharin: and I decided to learn it
[20:44:21] ochkoffein: has joined #ruby
[20:44:31] buharin: cause I know already Python and it looks both greate languages
[20:45:05] shevy: buharin do you already use modules?
[20:45:07] mbeasley: has joined #ruby
[20:45:21] buharin: nop ;d I create my own
[20:45:33] jhass: hackeron: so with above lib I'd try Base64.encode64(RSA::KeyPair.generate(1024, 3).public.modulus.to_s(16))
[20:45:35] hinbody: has joined #ruby
[20:46:52] PDI: has joined #ruby
[20:47:10] ukd1: has joined #ruby
[20:48:02] ochkoffein: has joined #ruby
[20:49:01] hackeron: jhass: small change: Base64.encode64(RSA::KeyPair.generate(1024, 3).public.modulus.to_s(16)).gsub("\n", '')
[20:49:15] hackeron: jhass: getting a challenge response from the camera :D
[20:49:45] blackmes1: has joined #ruby
[20:51:39] snath: has joined #ruby
[20:53:22] jhass: hackeron: delete.("\n") btw
[20:53:33] jhass: eh, sans misplaced dot
[20:54:06] hackeron: jhass: so now the camera responds with a challenge 17c68103d1310baca6b65c1702d9510f39314d5e4740c3768d24290ee9f641dd6d07c22f2c219e90ac6d8a2050b2cf893a6b304aef53ee0c7673f1f28d6f02dbfb7142f79f27a130aa78524ec9729380bdbfb8845370cec01038f132f155898f0704ad2be165340e0bc980be57116cdfa951e4f7db4578be3bf711b2916b9600 - how do I now go backwards to decode it, heh?
[20:54:11] hackeron: jhass: ah, yes, good point!
[20:54:39] bryanray: has joined #ruby
[20:54:40] jhass: http://rsa.rubyforge.org/RSA/KeyPair.html#decrypt-instance_method I hope
[20:55:09] drPoggs: has joined #ruby
[20:55:27] hackeron: jhass: rsa_key.decrypt(val)
[20:55:28] hackeron: ArgumentError: ciphertext representative out of range
[20:55:44] hackeron: jhass: I think I need to convert this ascii stuff to a valid ciphertext?
[20:55:50] davedev24: has joined #ruby
[20:55:54] ochkoffein: has joined #ruby
[20:56:00] jhass: try feeding it the base64
[20:56:22] grekkos: has joined #ruby
[20:56:35] hackeron: rsa_key.decrypt('MTdjNjgxMDNkMTMxMGJhY2E2YjY1YzE3MDJkOTUxMGYzOTMxNGQ1ZTQ3NDBjMzc2OGQyNDI5MGVlOWY2NDFkZDZkMDdjMjJmMmMyMTllOTBhYzZkOGEyMDUwYjJjZjg5M2E2YjMwNGFlZjUzZWUwYzc2NzNmMWYyOGQ2ZjAyZGJmYjcxNDJmNzlmMjdhMTMwYWE3ODUyNGVjOTcyOTM4MGJkYmZiODg0NTM3MGNlYzAxMDM4ZjEzMmYxNTU4OThmMDcwNGFkMmJlMTY1MzQwZTBiYzk4MGJlNTcxMTZjZGZhOTUxZTRmN2RiNDU3OGJlM2JmNzExYjI5MTZiOTYwMA==')
[20:56:40] hackeron: ArgumentError: ciphertext representative out of range
[20:56:49] dagda1: has joined #ruby
[20:57:33] jhass: [Base64.decode64(response)].pack("H*") or Base64.encode64(_)?
[20:58:47] ochkoffein: has joined #ruby
[20:59:56] GriffinHeart: has joined #ruby
[20:59:56] hackeron: hmm: rsa_key.decrypt([Base64.decode64(response)].pack("H*"))
[20:59:57] hackeron: => "n\xFD\xC8\xD0\x89\xF6\x8Eiq\xE3_B\xC6\xC0\xFA\xF5-\f[\xFDl`cN\"\xDC\xA6\n\x97\x1D\xF7\xDD\xB8gD\xD4\x9F\x98\xDC\x98\x91\f\xA4\xFF\x0F\xDF\xBE\xA7\x8B\x05\xD69\\\x10\x13Z\x12\xAA\xEF\xE5h\x1D\xE1\\\x1Eqz\xA3m\xD8^\x97\x94\x1F\\\xBE0\xFAY*\x04\xE0\x97#=@h9)\xC4\xC5syXI\x1Dd*\xD5+\xDF\xE1\x1C>;\x9F\x13j)\xDF\xA9\xED@7\x8E\xE1\x01\x91\xE9r\xDD\xAF\x1F\xA9\x0E\xDDda"
[20:59:59] snath: has left #ruby: ("Leaving")
[21:00:10] agent_white: has joined #ruby
[21:00:19] jhass: so now that's supposed to be your AES key
[21:00:31] malcolmva: has joined #ruby
[21:02:27] romero_: has joined #ruby
[21:02:37] tynamite_: has joined #ruby
[21:03:11] Soda: has joined #ruby
[21:03:33] idefine: has joined #ruby
[21:04:07] levifig: has joined #ruby
[21:05:03] romero: has joined #ruby
[21:05:28] dagda1: has joined #ruby
[21:05:46] platzhirsch: has joined #ruby
[21:05:55] doublemalt_: has joined #ruby
[21:05:57] DoubleMalt: has joined #ruby
[21:06:01] htmldrum: has joined #ruby
[21:07:30] doublemalt_: has joined #ruby
[21:08:38] DoubleMalt: has joined #ruby
[21:10:16] ndrei: has joined #ruby
[21:10:17] fullofcaffeine: has joined #ruby
[21:12:00] giuseppesolinas: has joined #ruby
[21:12:03] giuseppesolinas_: has joined #ruby
[21:12:19] DoubleMalt: has joined #ruby
[21:12:50] hackeron: jhass: struggling with the last step, I'm doing this: http://pastie.org/10491570 -- does that look right?
[21:13:05] Thomas-0725: has joined #ruby
[21:13:21] hackeron: jhass: getting an invalid XML content from the camera :(
[21:13:31] fullofca_: has joined #ruby
[21:13:36] DoubleMalt: has joined #ruby
[21:13:54] jhass: no idea, never done it
[21:14:08] jhass: sure you should md5 the key?
[21:14:13] zapata: has joined #ruby
[21:15:29] hackeron: jhass: no, but I tried both with an without, hmmm
[21:15:57] yfeldblum: has joined #ruby
[21:16:59] ReK2: has joined #ruby
[21:17:00] ReK2: has joined #ruby
[21:17:20] fullofcaffeine: has joined #ruby
[21:17:24] Spami: has joined #ruby
[21:17:35] ochkoffein: has joined #ruby
[21:20:32] loocash: has joined #ruby
[21:21:33] Igorshp: has joined #ruby
[21:21:36] Akagi201: has joined #ruby
[21:23:27] ruurd: has joined #ruby
[21:24:06] n_blownapart: has joined #ruby
[21:24:24] idefine: has joined #ruby
[21:24:28] devbug: has joined #ruby
[21:25:24] symm-: has joined #ruby
[21:25:32] willharrison: has joined #ruby
[21:25:38] kalusn: has joined #ruby
[21:25:57] fedexo: has joined #ruby
[21:26:20] rdavila: has joined #ruby
[21:26:48] Rollabunna: has joined #ruby
[21:28:46] BrunoSaboia: has joined #ruby
[21:30:11] fullofcaffeine: has joined #ruby
[21:33:39] moeabdol: has joined #ruby
[21:34:00] karapetyan: has joined #ruby
[21:35:05] sepp2k1: has joined #ruby
[21:38:04] workmad3: has joined #ruby
[21:38:29] adaedra: I thought `def` (without explicit `object.`) was defining instance methods, seems not in all cases https://gist.github.com/adaedra/5854e1ec31b4794dbfd1
[21:39:18] JDiPierro: has joined #ruby
[21:39:20] adaedra: (Not sure to understand why)
[21:40:50] jhass: instance_exec doesn't change the definee
[21:42:19] adaedra: didn't get you
[21:43:09] jhass: try module/class_exec
[21:43:57] adaedra: that's weird
[21:46:19] zeroDivisible: has joined #ruby
[21:46:51] U7se6: has joined #ruby
[21:47:40] hackeron: jhass: just diggin in the javascript, it's doing this: Base64.encode(aes_encrypt(response_copy.substring(0, 16), response, !0) + aes_encrypt(password, response, !0)) -- wtf?
[21:48:02] jhass: I don't want to know either
[21:49:39] ruboto: shevy # => false (https://eval.in/452982)
[21:49:53] jhass: in JS it's true
[21:50:01] shevy: hmmmmmmmm
[21:51:02] bryanray: has joined #ruby
[21:53:52] ruboto: ruurd # => true (https://eval.in/452983)
[21:53:59] ruboto: ruurd # => 0 (https://eval.in/452984)
[21:54:15] helpa: has joined #ruby
[21:54:28] xxneolithicxx: has joined #ruby
[21:54:35] ruurd: O-face...
[21:54:56] ruboto: ruurd # => true (https://eval.in/452985)
[21:56:16] VeryBewitching: has joined #ruby
[21:56:22] ruurd: Ehm would it be possible to have a ruboto in bash btw?
[21:56:24] xxneolithicxx: has joined #ruby
[21:57:03] VeryBewitching: You mean a bot to process ad-hoc bash commands?
[21:57:05] adaedra: You mean the eval function?
[21:57:34] VeryBewitching: Or enclose the code in a function and call it.
[21:57:42] darix: ruurd: if you have a sandbox function for your bash. sure.
[21:57:47] hackeron: it seems the !0 is to indicate that the key is in ascii and not in hex, hmmm
[21:57:50] minibar: has left #ruby: ("minibar is closed")
[21:58:53] jhass: ruurd: or are you just looking for irb/pry?
[21:58:57] bluefalconpunch: has joined #ruby
[21:59:06] bluefalconpunch: has left #ruby: ()
[21:59:31] ruurd: a bot to process ad hoc ruby
[22:00:29] shevy: ruboto in your browser!
[22:00:55] minimalism: has joined #ruby
[22:01:11] adaedra: That's eval.in :??
[22:01:55] j5s7: has joined #ruby
[22:02:09] Channel6: has joined #ruby
[22:02:53] symm-: has joined #ruby
[22:04:20] niftylettuce: has joined #ruby
[22:05:58] blackmes1: has joined #ruby
[22:06:31] jhass: ruurd: still not sure what you want exactly
[22:08:04] ElFerna: has joined #ruby
[22:08:13] lkba_: has joined #ruby
[22:08:32] ruurd: like here instead on the command line in bash...
[22:08:39] Jayno: has joined #ruby
[22:08:43] jhass: alias reval="ruby -e" ?
[22:08:48] ruurd: if you do >> here and some ruby you get a result.
[22:09:16] ruurd: now the same but in bash. with something else than >> obviously
[22:09:24] jhass: function reval() { ruby -e "p ${@}" }
[22:10:54] Jayno: hi all. I???m having trouble installing the ruby gem ???sass??? on my mac. ??? The error text is here: http://dpaste.com/2JX5G2X It appears to be a problem with openSSL and libSSL ??? might anyone have had a similar error using ruby or have any recommendations? THank you.
[22:11:39] ochkoffein: has joined #ruby
[22:12:45] ruurd: jhass you found that out earlier didn't you?
[22:13:03] hays: has joined #ruby
[22:13:08] jhass: what? that ruby takes the -e flag? yeah
[22:13:38] ruurd: No I knew that. The reval function
[22:13:47] ruurd: Why not call it ruboto
[22:13:56] jhass: I just wrote it, call it whatever you want
[22:14:21] purplexed^: has joined #ruby
[22:14:21] ruurd: brilliant
[22:14:57] ramfjord: has joined #ruby
[22:15:41] havenwood: Jayno: rvm help reinstall
[22:16:15] Jayno: havenwood thank you. I just found a similar step on Stackoveflow.. http://stackoverflow.com/a/27822543
[22:16:30] havenwood: rvm reinstall ruby-2.0.0-p353
[22:16:36] Jayno: ???rvm reinstall ruby??? was what they recommended
[22:16:43] riotjones: has joined #ruby
[22:16:47] havenwood: Jayno: (To relink against OpenSSL.)
[22:17:07] Jayno: I see. I didn???t specify the version. i???ll give that a try if this doesn???t work.
[22:17:11] ruurd: Could a brew install openssl help perhaps?
[22:17:11] havenwood: Jayno: Go ahead and run: rvm requirements ruby-2.0.0-p353
[22:17:45] havenwood: Jayno: But do update to 2.0.0-p647, or better yet 2.1.7 or 2.2.3! :)
[22:17:58] Jayno: k thanks again
[22:18:11] Jayno: waiting for this generic install to finish
[22:18:13] havenwood: ruurd: Aye, betcha it got uninstalled.
[22:18:46] mary5030: has joined #ruby
[22:19:06] havenwood: Jayno: Installing requirements and rebuilding lets it freshly establish dynamic links to OpenSSL et al.
[22:19:23] Jayno: havenwood: i see
[22:20:16] diegoviola: has joined #ruby
[22:20:26] Jayno: ruurd: yes I think that brew has something to do with it. ??? the approved Stackoverflow answer outlined uninstalling and reinstalling openssl before reinstalling ruby
[22:21:41] ruurd: Hmmm. Crude but effective.
[22:22:29] havenwood: Jayno: You can manually run `rvm requirements` or set autolibs as you prefer: https://rvm.io/rvm/autolibs
[22:23:20] havenwood: But if you remove a package that was dynamically linked to it'll break the link.
[22:23:46] Jayno: i see. I hope all it takes is reinstalling ruby
[22:24:16] havenwood: Jayno: You can probably even grab a prebuilt binary.
[22:24:35] havenwood: (Which will statically link against openssl.)
[22:24:39] Akagi201: has joined #ruby
[22:24:48] havenwood: Jayno: rvm get master
[22:25:00] postmodern: has joined #ruby
[22:25:05] havenwood: Jayno: Then uninstall and reinstall Ruby 2.0.
[22:25:17] diegoaguilar: has joined #ruby
[22:25:18] zenguy_pc: has joined #ruby
[22:25:57] havenwood: Ack, reminds me need to update binaries for El Capitan.
[22:26:32] diegoaguilar: has joined #ruby
[22:27:07] ruurd: https://coderwall.com/p/bek4rq/ruboto
[22:27:14] deric_skibotn: has joined #ruby
[22:27:22] skcin7: has joined #ruby
[22:27:54] deric_skibotn: How do I use Net::SSH with a public key?
[22:28:04] bmalum: has joined #ruby
[22:28:33] srpski: has joined #ruby
[22:29:13] srpski: check that website
[22:29:16] srpski: www.piksir.com
[22:29:21] srpski: i made it with ror
[22:29:27] srpski: how can i improve it?
[22:29:33] ruboto: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[22:29:52] srpski: i couldn't message there
[22:30:01] srpski: can you check it
[22:30:09] srpski: yes it's based on ruby on rails
[22:30:16] XxionxX: has joined #ruby
[22:31:20] devbug_: has joined #ruby
[22:31:47] fullofcaffeine: has joined #ruby
[22:34:16] srpski: has left #ruby: ()
[22:37:05] adaedra: ????-time!
[22:38:38] bryanray: has joined #ruby
[22:38:51] Musashi007: has joined #ruby
[22:39:19] giuseppesolinas_: has joined #ruby
[22:39:23] giuseppesolinas: has joined #ruby
[22:39:48] Ropeney: has joined #ruby
[22:40:39] beauby_: has joined #ruby
[22:43:26] devbug: has joined #ruby
[22:44:30] Igorshp: has joined #ruby
[22:45:15] amclain: has joined #ruby
[22:49:53] devbug_: has joined #ruby
[22:52:21] blackmesa: has joined #ruby
[22:52:45] diegoaguilar: has joined #ruby
[22:55:52] chopin: has joined #ruby
[22:56:10] swgillespie: has joined #ruby
[22:58:29] dikaio: has joined #ruby
[23:01:54] ngscheurich: has joined #ruby
[23:02:49] vF3hNGxc47h8: has joined #ruby
[23:05:26] finisherr: has joined #ruby
[23:05:49] shmilan: has joined #ruby
[23:11:07] ngscheurich: has joined #ruby
[23:11:20] bonhoeffer_: has joined #ruby
[23:12:37] nertzy: has joined #ruby
[23:14:09] apfeluser: has joined #ruby
[23:14:59] Guest67642: has joined #ruby
[23:16:00] andersoldahl: has joined #ruby
[23:16:09] chale: has joined #ruby
[23:17:08] chale: has left #ruby: ()
[23:18:05] jsuth: has joined #ruby
[23:18:35] hackeron: jhass: still can't get this to work :( - quick question though, when you said to do challenge.pack("H*") how do you know it's not "h*" or something else?
[23:21:38] moeabdol: has joined #ruby
[23:21:51] jhass: I don't, but usually it's H*
[23:22:57] j4cknewt: has joined #ruby
[23:23:43] hackeron: jhass: hmm, going to try emailing the manufacturer - their activation API manual is just pointless :/
[23:24:03] CloCkWeRX: has joined #ruby
[23:24:42] lessless: has joined #ruby
[23:25:07] agent_white: What's that good alternative to rvm to checkout? Is it rbenv? Superior supposedly?
[23:25:41] jhass: I find rbenv inferior. I'm on chruby myself
[23:26:09] workmad3: has joined #ruby
[23:27:03] agent_white: Ah okey doke! Thank you.
[23:27:28] hackeron: jhass: thank you very much for all your help and getting this far, heh :)
[23:27:39] Akagi201: has joined #ruby
[23:27:42] Rollabunna: has joined #ruby
[23:29:07] esauOp: has joined #ruby
[23:32:12] nateberkopec: has joined #ruby
[23:32:14] WillAmes: has joined #ruby
[23:32:43] hackeron: jhass: this is what I have so far btw: http://pastie.org/10491795
[23:33:08] nateberkope: has joined #ruby
[23:36:23] nizmow: has joined #ruby
[23:36:33] grekkos: has joined #ruby
[23:38:46] rdavila: has joined #ruby
[23:40:50] andersoldahl: has joined #ruby
[23:42:58] rdavila: has joined #ruby
[23:43:51] salug: has joined #ruby
[23:44:25] mloy: has joined #ruby
[23:45:28] mois3x: has joined #ruby
[23:46:28] bryanray: has joined #ruby
[23:47:18] solocshaw: has joined #ruby
[23:50:17] shmilan: has joined #ruby
[23:55:05] blackmesa: has joined #ruby
[23:56:10] Vile`: has joined #ruby
[23:58:36] dfinninger: has joined #ruby
[23:58:58] havenwood: agent_white: +1 chruby
[23:59:10] willharrison: has joined #ruby
[23:59:53] agent_white: havenwood: Good deal :) I personally use rvm at the moment, haven't bothered to change since I began using it, but I'm tinkering with a couple servers and figured I should checkout some alternatives. I'll definitely look into chruby :D
[23:59:59] framlinqp: has joined #ruby