« Back to channel list

#ruby - 26 March 2017

« Back 1 day Forward 1 day »
[00:00:06] ddffg: has joined #ruby
[00:03:20] RenatoSilva: has joined #ruby
[00:09:24] charliesome: has joined #ruby
[00:12:53] actionh4nk: has joined #ruby
[00:18:37] Rodya_: has joined #ruby
[00:19:06] Qommand0r: has joined #ruby
[00:20:06] despai: has joined #ruby
[00:20:33] hutch34_: has joined #ruby
[00:21:36] muelleme_: has joined #ruby
[00:22:02] milardovich: has joined #ruby
[00:23:03] SCHAAP137: has joined #ruby
[00:27:05] Rodya__: has joined #ruby
[00:28:45] whiteline: has joined #ruby
[00:38:18] agent_white: has joined #ruby
[00:42:12] ddffg: has left #ruby: ()
[00:42:20] ddfgg: has joined #ruby
[00:42:26] muelleme_: has joined #ruby
[00:42:31] ddfgg: has left #ruby: ()
[00:43:58] charliesome: has joined #ruby
[00:44:48] cyphase: has joined #ruby
[00:46:26] ruby[bot]: -qq ddffg!*@* *!*@86.57.137.73
[00:48:04] Cohedrin: has joined #ruby
[00:50:40] govg: has joined #ruby
[00:52:09] Jameser: has joined #ruby
[00:52:52] duckpupp1: has joined #ruby
[00:58:55] davorb: has joined #ruby
[00:59:45] blackmesa: has joined #ruby
[01:00:34] lightheaded: has joined #ruby
[01:03:55] muelleme_: has joined #ruby
[01:04:19] skweek: has joined #ruby
[01:06:51] whiteline: has joined #ruby
[01:06:53] d^sh: has joined #ruby
[01:07:37] patarr: has joined #ruby
[01:07:43] Jameser: has joined #ruby
[01:11:59] Xiti: has joined #ruby
[01:13:32] actionh4nk: has joined #ruby
[01:19:59] minimalism: has joined #ruby
[01:21:18] hutch34_: has joined #ruby
[01:22:02] Jameser: has joined #ruby
[01:24:37] esObe_: has joined #ruby
[01:25:23] muelleme_: has joined #ruby
[01:32:01] gdonald: has joined #ruby
[01:34:28] CloCkWeRX: has joined #ruby
[01:40:36] bronson: has joined #ruby
[01:45:37] arescorpio: has joined #ruby
[01:47:15] muelleme_: has joined #ruby
[01:47:24] Rodya_: has joined #ruby
[01:47:41] araujo: has joined #ruby
[01:47:42] araujo: has joined #ruby
[01:47:56] Pumukel: has joined #ruby
[01:56:23] CloCkWeRX: has joined #ruby
[02:00:41] Limix: has joined #ruby
[02:01:18] lightheaded: has joined #ruby
[02:05:06] Verity: msg.each_byte do |fb|
[02:05:06] Verity: fb = something
[02:05:14] Verity: how can I have this modify msg
[02:06:24] dviola: has joined #ruby
[02:08:06] muelleme_: has joined #ruby
[02:10:00] olivier__: has joined #ruby
[02:10:20] olivier__: has joined #ruby
[02:11:20] deviation: has joined #ruby
[02:12:26] carbonage: has joined #ruby
[02:14:01] charliesome: has joined #ruby
[02:14:40] actionh4nk: has joined #ruby
[02:17:09] brent__: has joined #ruby
[02:22:25] hutch34_: has joined #ruby
[02:24:29] CloCkWeRX: has joined #ruby
[02:29:29] muelleme_: has joined #ruby
[02:30:00] shinnya: has joined #ruby
[02:31:21] houhoulis: has joined #ruby
[02:32:26] olivier__: has joined #ruby
[02:35:18] despai: has joined #ruby
[02:50:51] muelleme_: has joined #ruby
[02:56:45] djbkd: has joined #ruby
[02:57:29] pwnd_nsfw`: has joined #ruby
[03:02:15] lightheaded: has joined #ruby
[03:08:32] patarr: has joined #ruby
[03:09:44] __Yiota: has joined #ruby
[03:10:29] xenops: has joined #ruby
[03:12:17] muelleme_: has joined #ruby
[03:12:53] agent_white: Verity: map or map!
[03:13:46] thadtheman: has joined #ruby
[03:18:38] gix: has joined #ruby
[03:19:09] actionh4nk: has joined #ruby
[03:20:03] __Yiota: has joined #ruby
[03:20:15] SteenJobs: has joined #ruby
[03:22:51] hutch34_: has joined #ruby
[03:23:37] hvn0413: has joined #ruby
[03:23:46] hvn0413: has left #ruby: ()
[03:29:07] gusrub: has joined #ruby
[03:30:21] ThatsNotJack: has joined #ruby
[03:33:43] muelleme_: has joined #ruby
[03:41:20] cyphase: has joined #ruby
[03:41:46] Verity: ty agent_white
[03:43:55] Tau: has joined #ruby
[03:48:24] agent_white: Verity: Yupyup! Also look into collect and select... enumberable/enumerator docs well worth peeking over. Lots of goodies.
[03:55:10] muelleme_: has joined #ruby
[03:55:26] Verity: msg.bytes.map! { |b| dostufftobbutitdoesntworkandwhy? } , agent_white
[03:56:15] kegster: has joined #ruby
[03:58:00] Verity: msg.bytes.map! { |b| b = 42 }
[03:58:02] Verity: the bytes are unchanged
[03:58:33] Verity: >>msg = "hello"; msg.bytes.map! { |b| b = 42 };
[03:58:34] ruby[bot]: Verity: # => [42, 42, 42, 42, 42] (https://eval.in/761391)
[03:58:48] Verity: hmm.. thats not my result
[03:59:30] Trynemjoel: has joined #ruby
[04:00:48] Verity: >>msg = "phrase"; msg.bytes.map! {|b| b^42}
[04:00:49] ruby[bot]: Verity: # => [90, 66, 88, 75, 89, 79] (https://eval.in/761394)
[04:01:41] Verity: >> msg = "phrase"; print msg.bytes.to_s; msg.bytes.map! {|b| b^42}
[04:01:42] ruby[bot]: Verity: # => [112, 104, 114, 97, 115, 101][90, 66, 88, 75, 89, 79] (https://eval.in/761395)
[04:02:51] lightheaded: has joined #ruby
[04:03:55] Verity: >>byteArr = [90, 66, 88, 75, 89, 79]; byteArr.map! {|b| b^42}
[04:03:56] ruby[bot]: Verity: # => [112, 104, 114, 97, 115, 101] (https://eval.in/761396)
[04:05:09] kegster: has joined #ruby
[04:08:19] gdonald: has joined #ruby
[04:08:32] Verity: >> msg = "hello"; msg.bytes.map! { |b| b = 42 }; puts msg.bytes.to_s;
[04:08:33] ruby[bot]: Verity: # => [104, 101, 108, 108, 111] ...check link for more (https://eval.in/761397)
[04:09:25] Verity: >> msg = "hello"; msg.bytes.map! { |b| b = 42 }; puts msg
[04:09:26] ruby[bot]: Verity: # => hello ...check link for more (https://eval.in/761398)
[04:11:05] Verity: >> msg = "hello"; msg.bytes.map! { |b| b = 42 }
[04:11:06] ruby[bot]: Verity: # => [42, 42, 42, 42, 42] (https://eval.in/761399)
[04:11:12] Verity: >> msg = "hello"; msg.bytes.map! { |b| b = 42 }; puts msg
[04:11:13] xenops: has joined #ruby
[04:11:13] ruby[bot]: Verity: # => hello ...check link for more (https://eval.in/761400)
[04:11:32] Verity: agent_white, whats happening?
[04:16:27] muelleme_: has joined #ruby
[04:17:20] deviation: has joined #ruby
[04:20:07] actionh4nk: has joined #ruby
[04:23:37] hutch34_: has joined #ruby
[04:27:56] baweaver: Verity: What do you think is happening?
[04:29:09] baweaver: Also, use `irb` in your terminal
[04:31:00] charliesome: has joined #ruby
[04:32:47] roamingdog: has joined #ruby
[04:32:55] SteenJobs: has joined #ruby
[04:37:49] muelleme_: has joined #ruby
[04:43:02] Channel6: has joined #ruby
[04:54:12] _whitelogger: has joined #ruby
[04:56:25] roamingdog: has joined #ruby
[04:56:44] Pumukel: has joined #ruby
[04:57:10] roamingdog: has joined #ruby
[04:58:00] roamingdog: has joined #ruby
[04:58:49] roamingdog: has joined #ruby
[04:59:13] muelleme_: has joined #ruby
[04:59:27] deviation: has joined #ruby
[04:59:34] roamingdog: has joined #ruby
[05:00:24] roamingdog: has joined #ruby
[05:03:41] lightheaded: has joined #ruby
[05:07:32] electrostat: has joined #ruby
[05:09:15] patarr: has joined #ruby
[05:11:56] xenops: has joined #ruby
[05:15:02] spicerack: has joined #ruby
[05:17:34] deviation: has joined #ruby
[05:20:32] muelleme_: has joined #ruby
[05:21:07] actionh4nk: has joined #ruby
[05:21:30] Robtop__: has joined #ruby
[05:24:42] hutch34_: has joined #ruby
[05:27:50] Autolycus: has joined #ruby
[05:29:22] araujo: has joined #ruby
[05:38:07] araujo: has joined #ruby
[05:39:07] Limix: has joined #ruby
[05:39:17] bkxd: has joined #ruby
[05:41:56] muelleme_: has joined #ruby
[05:45:32] enterprisey: has joined #ruby
[05:48:21] thadtheman: has joined #ruby
[06:03:22] muelleme_: has joined #ruby
[06:04:39] lightheaded: has joined #ruby
[06:11:50] SteenJobs: has joined #ruby
[06:14:56] moei: has joined #ruby
[06:20:01] mjolnird: has joined #ruby
[06:21:55] renchan: has joined #ruby
[06:22:22] actionh4nk: has joined #ruby
[06:24:45] muelleme_: has joined #ruby
[06:25:28] hutch34_: has joined #ruby
[06:35:48] hahuang65: has joined #ruby
[06:37:08] thadtheman: has joined #ruby
[06:40:31] marcdel: has joined #ruby
[06:40:51] rippa: has joined #ruby
[06:41:34] pulkit4tech: has joined #ruby
[06:46:03] muelleme_: has joined #ruby
[06:48:45] Jameser: has joined #ruby
[06:50:21] marcdel: has joined #ruby
[06:57:10] _whitelogger: has joined #ruby
[07:01:42] roamingdog: has joined #ruby
[07:03:25] bento: has joined #ruby
[07:05:23] lightheaded: has joined #ruby
[07:05:48] pwnd_nsfw`: has joined #ruby
[07:06:24] priyanka: has joined #ruby
[07:07:33] muelleme_: has joined #ruby
[07:10:09] patarr: has joined #ruby
[07:10:38] jgnagy: has joined #ruby
[07:10:43] Jameser: has joined #ruby
[07:13:08] marcdel_: has joined #ruby
[07:17:21] mdqtpt: has joined #ruby
[07:19:56] bronson: has joined #ruby
[07:20:58] SteenJobs: has joined #ruby
[07:23:11] actionh4nk: has joined #ruby
[07:26:15] hutch34_: has joined #ruby
[07:26:38] cfec0b8d: has joined #ruby
[07:28:35] vuoto: has joined #ruby
[07:28:55] muelleme_: has joined #ruby
[07:29:23] brent__: has joined #ruby
[07:33:40] thadtheman: has joined #ruby
[07:35:54] unshadow: has joined #ruby
[07:44:30] xenops: has joined #ruby
[07:47:06] nofxxx: has joined #ruby
[07:47:45] CloCkWeRX: has joined #ruby
[07:50:22] muelleme_: has joined #ruby
[07:51:31] Jameser: has joined #ruby
[07:52:52] lightheaded: has joined #ruby
[07:55:13] Qchmqs: has joined #ruby
[07:59:05] Pumukel: has joined #ruby
[08:01:56] VladGh_: has joined #ruby
[08:03:36] gdonald: has joined #ruby
[08:08:33] patarr: has joined #ruby
[08:09:02] Jameser: has joined #ruby
[08:10:04] mbertul: has joined #ruby
[08:11:05] jamesaxl: has joined #ruby
[08:11:47] muelleme_: has joined #ruby
[08:15:23] robnester: has joined #ruby
[08:26:04] nobitanobi: has joined #ruby
[08:26:12] thadtheman: has joined #ruby
[08:27:01] hutch34_: has joined #ruby
[08:33:05] muelleme_: has joined #ruby
[08:36:40] charliesome: has joined #ruby
[08:53:55] nofxxxx: has joined #ruby
[08:54:25] igniting: has joined #ruby
[09:00:17] bkxd: has joined #ruby
[09:00:30] charliesome: has joined #ruby
[09:00:33] Pumukel: has joined #ruby
[09:01:27] rhyselsmore: has joined #ruby
[09:02:25] bkxd_: has joined #ruby
[09:05:01] pandaant: has joined #ruby
[09:14:10] bungoman: has joined #ruby
[09:14:54] blackwind_123: has joined #ruby
[09:14:58] charliesome: has joined #ruby
[09:19:34] dionysus69: has joined #ruby
[09:21:54] Zarthus: has joined #ruby
[09:22:00] spicerack: has joined #ruby
[09:22:04] bronson: has joined #ruby
[09:22:45] spicerack: has joined #ruby
[09:23:37] spicerack: has joined #ruby
[09:24:22] spicerack: has joined #ruby
[09:25:12] spicerack: has joined #ruby
[09:27:51] heyimwill: has joined #ruby
[09:28:08] hutch34_: has joined #ruby
[09:28:55] Elysia: has joined #ruby
[09:33:03] EugenMayer: has joined #ruby
[09:33:32] EugenMayer: is there yet any way / workarround to let a thor command to return the proper exit code? yet it always returns 0, no matter what happened
[09:34:28] olivier__: has joined #ruby
[09:34:42] bkxd: has joined #ruby
[09:37:15] Jameser: has joined #ruby
[09:38:31] pulkit4tech: has joined #ruby
[09:44:22] krasnus: has joined #ruby
[09:45:12] brent__: has joined #ruby
[09:51:56] antgel: has joined #ruby
[09:52:45] Berith: has joined #ruby
[09:57:12] blackmesa: has joined #ruby
[10:05:26] jgnagy: has joined #ruby
[10:10:34] vuoto: has joined #ruby
[10:14:18] banisterfiend: has joined #ruby
[10:16:42] CloCkWeRX: has left #ruby: ()
[10:17:38] charliesome_: has joined #ruby
[10:19:05] doublemalt_: has joined #ruby
[10:21:17] nobitanobi: has joined #ruby
[10:21:21] despai: has joined #ruby
[10:23:22] nobitanobi: has joined #ruby
[10:26:07] bkxd: has joined #ruby
[10:28:29] xenops: has joined #ruby
[10:28:38] hutch34_: has joined #ruby
[10:34:34] blackmesa: has joined #ruby
[10:35:09] EugenMayer: has left #ruby: ()
[10:39:53] flying: has joined #ruby
[10:42:55] tomphp: has joined #ruby
[10:47:07] foxxx0: has joined #ruby
[10:49:00] User458764: has joined #ruby
[10:50:01] thadtheman: has joined #ruby
[10:59:25] davorb: has joined #ruby
[11:01:39] Pumukel: has joined #ruby
[11:02:27] James123: has joined #ruby
[11:04:10] Mon_Ouie: has joined #ruby
[11:04:12] James123: I have a hash of the form: { "foo" => 1, "bar" => [2, 3], "baz" => [4,5] }. Any ideas how to get all combinations of foo, bar, baz i.e. foo=1, bar=2, baz=4 | foo=1, bar=2, baz=5 etc.?
[11:05:48] blackmesa: has joined #ruby
[11:07:44] j416: >> Hash[{ "foo" => [1], "bar" => [2, 3], "baz" => [4,5] }.map { |k, v| [k, v.count] }]
[11:07:45] ruby[bot]: j416: # => {"foo"=>1, "bar"=>2, "baz"=>2} (https://eval.in/761454)
[11:08:09] j416: unless I misunderstood what you meant
[11:08:49] j416: ..which in hindsight I probably did.
[11:09:01] despai: has joined #ruby
[11:10:04] thadtheman: has joined #ruby
[11:11:31] mikecmpbll: has joined #ruby
[11:13:00] Jameser: has joined #ruby
[11:22:55] bronson: has joined #ruby
[11:25:39] Verity: has joined #ruby
[11:26:00] Verity: baweaver, I did that for a couple hours before asking here :)
[11:26:20] Verity: trying again now, new day fresh perspective
[11:26:52] araujo: has joined #ruby
[11:26:52] araujo: has joined #ruby
[11:27:38] gloscombe: has joined #ruby
[11:29:45] hutch34_: has joined #ruby
[11:31:27] Verity: this keeps happening
[11:31:40] Verity: key.each_byte do |kb|
[11:31:40] Verity: msg.bytes.map! { |b| b = 42 }
[11:31:48] Verity: I had that on one line, not sure why it put it back into 3
[11:31:49] Verity: regardless
[11:32:04] Verity: I'll stare at it for hours more, not sure why it doesnt work
[11:32:12] j416: "doesn't work"?
[11:32:18] Verity: nothing happens at all
[11:32:23] Verity: to anything involved
[11:32:36] Verity: msg unchanged
[11:32:50] j416: I don't know what msg is
[11:33:00] muelleme_: has joined #ruby
[11:33:07] elomatreb: Ah, yes, that's intended. #bytes creates a new array from a String, it doesn't do anything if you modify it
[11:33:09] Verity: in this case, perhaps "hello"
[11:33:15] j416: so a string
[11:33:20] Verity: how can I modify the string bytes in place
[11:33:29] Verity: j416, yes
[11:33:50] elomatreb: You could join the resulting array back to a new string, I don't know if there is a way to do it in-place
[11:34:18] elomatreb: >> "test".bytes.map { 42 }.join
[11:34:19] ruby[bot]: elomatreb: # => "42424242" (https://eval.in/761459)
[11:34:20] j416: >> foo = "foo"; foo[0] = "b"; foo
[11:34:21] ruby[bot]: j416: # => "boo" (https://eval.in/761460)
[11:34:33] Tau: has joined #ruby
[11:34:42] Verity: looks like I might need pack/unpack
[11:36:18] elomatreb: >> "test".map {|b| (b + 1).chr }.join
[11:36:19] ruby[bot]: elomatreb: # => undefined method `map' for "test":String ...check link for more (https://eval.in/761461)
[11:36:26] elomatreb: >> "test".bytes.map {|b| (b + 1).chr }.join
[11:36:27] ruby[bot]: elomatreb: # => "uftu" (https://eval.in/761462)
[11:36:56] elomatreb: Verity: ^, Integer#chr may be useful too
[11:36:58] j416: Verity: you seem rather stressed and confused. Perhaps take a step back and think about what you want your program to do; perhaps even write a short test for it. That way it'll be easier to reason about it, because you'll be able to say "I have this code, and I expect exactly this output".
[11:38:13] Jackneill: has joined #ruby
[11:39:30] Verity: j416, I keep running into things not working as I'd expect
[11:41:00] j416: it's hard for us to know what you expect without a concrete example of what you have and what output you desire
[11:41:01] elomatreb: You're doing something that's rather uncommon, treating strings as arrays of bytes is one of the things Ruby abstracts away normally
[11:42:19] Verity: I';m working on a new program now
[11:42:22] Verity: just for fun
[11:42:28] Verity: I put my other one aside last night for a bit
[11:42:36] Verity: it was too frsutrating
[11:42:36] psychicist__: has joined #ruby
[11:42:57] j416: Verity: instead of wrestling with Ruby as a language, try to think about your problem -- ask rather "How do I reverse a string in Ruby?" than "How can I make sure that one byte comes after another if I am modifying an array of bytes in-place?" -- XY issues.
[11:43:05] __Yiota: has joined #ruby
[11:43:32] Verity: >> msg = "hello; byteArr = msg.unpack('C')
[11:43:34] ruby[bot]: Verity: # => /tmp/execpad-219a7c889505/source-219a7c889505:6:in `raise': exception object expected (TypeError) ...check link for more (https://eval.in/761466)
[11:43:46] Verity: thats odd
[11:43:53] j416: and I apologise if I sound condescending; I am trying to offer advice on getting efficient assistance.
[11:44:10] Verity: I need to get good at working byte level in ruby
[11:44:25] Verity: I know its an odd choice for that
[11:44:35] Verity: but it seems to provide everything I need once I get it figured out
[11:45:18] j416: well it's surely usable.
[11:46:01] Verity: I need to get better at slowing odwn
[11:46:09] brent__: has joined #ruby
[11:46:41] Verity: I often will get frustrated and go to read doc and gain nothing from it, only to go back and realize thats because I skipped a whole paragraph during my exasperation
[11:46:52] Verity: making progress now with this unpack doc
[11:47:31] Verity: >> str = "hello"; byte_array = str.unpack(C*);
[11:47:32] ruby[bot]: Verity: # => /tmp/execpad-6c41b26b65dd/source-6c41b26b65dd:2: syntax error, unexpected ')' ...check link for more (https://eval.in/761467)
[11:48:29] j416: realise that you cannot run fast until you learn to crawl and walk. :)
[11:48:32] j416: things take time.
[11:48:35] Verity: str = "hello"; byte_array = str.unpack('C*');
[11:48:40] Verity: you're right =D
[11:48:41] olivier__: has joined #ruby
[11:48:49] Verity: >> str = "hello"; byte_array = str.unpack('C*'); #got it
[11:48:50] ruby[bot]: Verity: # => [104, 101, 108, 108, 111] (https://eval.in/761468)
[11:49:02] olivier__: has joined #ruby
[11:49:37] gloscombe: has joined #ruby
[11:53:24] bkxd: has joined #ruby
[11:53:37] Verity: I'm back to loving ruby again,. yay
[12:00:07] thadtheman: has joined #ruby
[12:00:15] blackmesa: has joined #ruby
[12:00:26] despai: has joined #ruby
[12:03:17] Pumukel: has joined #ruby
[12:04:07] j416: let me guess, you hate it again
[12:05:00] olivier__: has joined #ruby
[12:05:44] sepp2k: has joined #ruby
[12:05:47] bkxd: has joined #ruby
[12:06:00] ixti: has joined #ruby
[12:07:06] blackmesa: has joined #ruby
[12:07:14] Verity: j416, yes
[12:07:30] Verity: if I open my file in w+ mode, just reading it is somehow erasing it and reading no data
[12:07:39] Verity: but opening it without that flag, it all works great (except I cant modify the original file)
[12:08:03] j416: Verity: did you read the docs?
[12:08:33] j416: probably not, so here is what the docs say about w+: "truncates existing file to zero length"
[12:09:00] j416: try reading it in mode "r" instead.
[12:09:29] j416: or "r+" if you need to write to it at the same time
[12:09:46] j416: (or "a+", not sure what you are doing with the file)
[12:11:22] ruby-lang436: has joined #ruby
[12:11:45] banisterfiend: has joined #ruby
[12:13:47] j416: hint: read the docs
[12:14:37] A124: has joined #ruby
[12:14:44] roamingdog: has joined #ruby
[12:14:49] Verity: I thought w+ was readwrite for some reason
[12:14:55] Verity: I probably read se instead of the doc
[12:16:38] Verity: if I have fp = File.open(FILE_NAME, "r+") do |file| #read file byte by byte until file.eof end end
[12:16:45] Verity: fp is now gone after that completes?
[12:16:55] Verity: after it exits that block
[12:16:58] Verity: fp seems to be destroyed
[12:17:07] Verity: perhaps $fp will fix
[12:17:51] Verity: File object will automatically be closed when the block terminates
[12:17:52] gloscombe: has joined #ruby
[12:17:53] Verity: the doc =D
[12:18:13] Verity: it doesnt seemt to mention if that can be avoided, though
[12:18:47] muelleme_: has joined #ruby
[12:24:13] nobitanobi: has joined #ruby
[12:24:43] ferr1: has joined #ruby
[12:30:27] hutch34_: has joined #ruby
[12:30:59] Verity: if mode == DECODE {key.reverse!}
[12:31:20] Verity: at least I'm making progress
[12:31:23] A124: has joined #ruby
[12:31:39] Jameser: has joined #ruby
[12:33:48] Verity: could someone please tell me why
[12:33:58] Verity: if mode == DECODE {key.reverse!} end cant be on one line?
[12:34:11] Verity: it only worked when I put it as a block with indented code
[12:34:16] Verity: I thought that was python
[12:34:59] Lord_of_Life: has joined #ruby
[12:35:40] Verity: I did it!
[12:35:42] Verity: minus that problem
[12:36:06] Verity: vscode is pretyty great, gotta say
[12:36:19] Verity: file browser, console, and plugins for ruby syntax + debugger
[12:36:24] Verity: all in one small lightweight window
[12:39:35] Arpanet69: has joined #ruby
[12:39:59] A124: has joined #ruby
[12:42:33] leito: has joined #ruby
[12:45:11] dionysus69: has joined #ruby
[12:45:39] plantfood: has joined #ruby
[12:46:57] Verity: it breaks files
[12:47:02] Verity: but works with text files
[12:49:03] doublemalt_: has joined #ruby
[12:50:23] Verity: the problem must be how I pack the file back up
[12:53:35] Verity: 2 extra bytes got added... hmm
[12:54:24] Verity: yes, a mistake somewhere
[12:54:27] Verity: 2 bytes added
[12:55:29] Lord_of_Life: has joined #ruby
[12:56:58] JeanCarloMachado: has joined #ruby
[13:00:01] davorb: has joined #ruby
[13:03:02] Xiti: has joined #ruby
[13:04:25] Verity: does anyone know why pack/unpack or file ops would add extra 2 bytes to a file, perhaps matthewd is around?
[13:11:09] krasnus: has joined #ruby
[13:11:47] thadtheman: has joined #ruby
[13:15:08] User458764: has joined #ruby
[13:15:49] roamingdog: has joined #ruby
[13:16:40] heyimwill: has joined #ruby
[13:22:07] olivier__: has joined #ruby
[13:22:50] Verity: >> str = "message"; byteArr = str.bytes.to_a.permutation.to_a; byteArr.each { |ba| puts ba.pack('C*') };
[13:22:51] ruby[bot]: Verity: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
[13:23:07] olivier__: has joined #ruby
[13:23:33] sepp2k: has joined #ruby
[13:24:09] bronson: has joined #ruby
[13:24:31] Verity: >> str = "message"; byteArr = str.bytes.to_a.permutation.to_a; byteArr.each { |ba| puts ba.pack('C*') }
[13:24:31] ruby[bot]: Verity: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
[13:24:52] Verity: what happen
[13:26:11] Verity: >> str = "hey"; byteArr = str.bytes.to_a.permutation.to_a; byteArr.each { |ba| puts ba.pack('C*') }
[13:26:12] ruby[bot]: Verity: # => hey ...check link for more (https://eval.in/761479)
[13:26:59] Verity: my scrabble solver is half done --- jk =P
[13:27:19] Verity: although with a dictionary gem that wouldnt take long
[13:29:04] pulkit4tech: has joined #ruby
[13:29:48] Verity: seems like there must be abetter way
[13:29:51] Verity: and google says there is
[13:30:01] Verity: %w[h e y].permutation.map &:join
[13:30:02] ruby[bot]: Verity: # => nil (https://eval.in/761483)
[13:30:54] Verity: best solution >> "abc".chars.permutation.map &:join
[13:31:03] Verity: >> "hey".chars.permutation.map &:join
[13:31:04] ruby[bot]: Verity: # => ["hey", "hye", "ehy", "eyh", "yhe", "yeh"] (https://eval.in/761485)
[13:31:12] hutch34_: has joined #ruby
[13:31:12] esObe_: has joined #ruby
[13:31:36] Verity: only really confusing part is the &:join
[13:32:10] Verity: >> "yhe".chars.permutation.map &:join
[13:32:11] ruby[bot]: Verity: # => ["yhe", "yeh", "hye", "hey", "eyh", "ehy"] (https://eval.in/761488)
[13:37:27] renchan: has joined #ruby
[13:38:03] nofxx: has joined #ruby
[13:39:18] plantfood: you could make it complete a whole scrabble game from beginning to end. or perhaps more curious would be to play it against other peoples' scrabble solvers, like 100 times each
[13:41:16] bkxd: has joined #ruby
[13:42:27] Verity: good idea =)
[13:43:52] A124: has joined #ruby
[13:45:21] Pumukel: has joined #ruby
[13:46:31] esObe__: has joined #ruby
[13:48:30] Fernando-Basso: has joined #ruby
[13:49:29] psychicist__: has joined #ruby
[13:51:19] deviation: has joined #ruby
[13:52:28] muelleme_: has joined #ruby
[13:53:19] hfp_work: has joined #ruby
[13:54:37] nofxxx: has joined #ruby
[13:54:43] DaveTaboola: has joined #ruby
[13:58:26] pilne: has joined #ruby
[13:59:51] blackmesa: has joined #ruby
[14:00:38] flegent: has joined #ruby
[14:01:29] Verity: >>add = lambda {|a,b| a+b} add.(22, 22); add.(22.8, 19.2); add.("hello,", " world!");
[14:01:29] ruby[bot]: Verity: # => /tmp/execpad-5fb728fe3851/source-5fb728fe3851:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/761498)
[14:01:56] brent__: has joined #ruby
[14:03:18] Verity: how do I get that to run on one line -\
[14:03:36] gdonald: has joined #ruby
[14:05:36] Verity: Does anyone know why packing/unpacking might be adding 2 bytes to my file
[14:05:54] Verity: it seems to work ok for text files, but with binaries they become corrupted and the size increases by 2 bytes per operation
[14:06:33] thadtheman: has joined #ruby
[14:07:04] jgnagy: has joined #ruby
[14:09:23] esObe_: has joined #ruby
[14:11:21] esObe__: has joined #ruby
[14:13:19] __Yiota: has joined #ruby
[14:14:33] Mon_Ouie: has joined #ruby
[14:14:55] mooser: has joined #ruby
[14:15:05] DLSteve: has joined #ruby
[14:16:11] mooser_: has joined #ruby
[14:17:31] mooser: has joined #ruby
[14:17:35] Verity: ACTION rages
[14:17:43] Winter[m]: has joined #ruby
[14:18:46] mooser: has left #ruby: ()
[14:18:48] Tagami: has joined #ruby
[14:18:53] maloik: has joined #ruby
[14:19:58] nadir: has joined #ruby
[14:20:23] mooser: has joined #ruby
[14:25:14] jhack: has joined #ruby
[14:25:14] jhack: has joined #ruby
[14:28:31] houhoulis: has joined #ruby
[14:30:00] brent__: has joined #ruby
[14:30:44] zeddan: has joined #ruby
[14:32:04] hutch34_: has joined #ruby
[14:32:18] yeticry_: has joined #ruby
[14:33:38] blackmesa: has joined #ruby
[14:35:38] grillon: has joined #ruby
[14:36:42] Verity: welcome to ruby
[14:36:58] grillon: thank you Verity
[14:36:58] j416: Verity: lol
[14:37:23] j416: Verity: I can't help but think you are being so ironic and mad when you say that
[14:37:45] Verity: not this time =P
[14:38:18] grillon: does anyone use nix to install ruby?
[14:38:53] grillon: j416: it's a package manager
[14:39:03] j416: aha. Never tried it.
[14:39:17] grillon: http://nixos.org/nix/
[14:39:41] j416: haskel-y linux eh
[14:39:49] j416: haskell-y*
[14:39:52] j416: haskelly?
[14:39:55] grillon: seems nice to make your environment reproductible
[14:40:18] j416: interesting concept.
[14:42:02] bkxd: has joined #ruby
[14:42:31] mbertul: has joined #ruby
[14:42:41] grillon: j416: sure, I'm just starting to use it and I have problems with gems.
[14:44:07] kernelPaniq: has joined #ruby
[14:44:30] grillon: but don't mind I'll search a solution later. I was just searching a way to evite...hmmm to search :)
[14:45:49] robnester: has joined #ruby
[14:45:52] j416: grillon: since each proper project will declare what gems and what gem versions it depends on, my guess is it's better to leave the gem stuff to ruby and not try to shoehorn that into something else
[14:46:44] pankaj: has joined #ruby
[14:46:45] grillon: j416: I think you're right
[14:47:08] Verity: scrabble solver only took 15 mins or so =P
[14:47:17] Verity: its nothing special, but it was fun
[14:47:25] Verity: I submit it to the community now for audit
[14:47:33] grillon: Verity: :)
[14:47:42] j416: free audits for everyone --
[14:47:57] Verity: because my goal is to improve my ruby, here it is: https://gist.github.com/anonymous/aa89b24e1688ef455abd2ec4e90a20b2
[14:48:16] Verity: https://users.cs.duke.edu/~ola/ap/linuxwords
[14:48:21] Verity: youll need a wordlist like that if you want to try it
[14:48:36] Verity: I was going to query online dict but not worth the trouble
[14:49:12] j416: the next version of your program might load that into a map to speed up search.
[14:49:35] Verity: it also doesnt find words using less than the exact amount of letters xD that would be a major improvement
[14:49:38] j416: doing a full scan of the entire list of words for each permutation of the input word seems rather slow
[14:49:39] Verity: I'll look into converting to map as well
[14:49:48] Verity: good point
[14:50:38] tomphp: has joined #ruby
[14:50:59] Verity: its got lots of bugs actually! but I'm just learning the syntax here mostly
[14:55:40] grillon: Verity: the word is found two times :o
[14:56:00] Verity: I noticed that =\ working on a fix
[14:56:21] govg: has joined #ruby
[14:56:41] grillon: there are many people here. every one is doing ruby code?
[14:57:30] grillon: good surprise
[15:00:18] grillon: I'm not writing ruby code actually. I did few throwable scripts and I would love do more but only java count in this world :)
[15:00:37] jgnagy: has joined #ruby
[15:04:57] __Yiota: has joined #ruby
[15:12:02] segy: has joined #ruby
[15:12:14] marcdel: has joined #ruby
[15:12:29] WhitePride: has joined #ruby
[15:12:29] ChanServ: +b WHITEPRIDE!*@*
[15:12:29] ChanServ: ChanServ kicked WhitePride: Unacceptable nick - http://ruby-community.com/pages/user_rules#rule_2_10
[15:12:30] ruby[bot]: -b+b WHITEPRIDE!*@* WHITEPRIDE!*@*$#ruby-banned
[15:12:53] olivier__: has joined #ruby
[15:13:27] Verity: why is that unacceptable nick
[15:13:29] br0d1n: has joined #ruby
[15:13:35] Verity: gay pride or black pride are ok
[15:13:46] Verity: not saying I support the nick personally, but its a valid point
[15:14:08] zeddan: has joined #ruby
[15:15:23] tomphp: has joined #ruby
[15:17:50] Verity: hide extensions for known file types --- most obnoxious default setting in windows history
[15:18:56] enterprisey: has joined #ruby
[15:19:58] kobain: has joined #ruby
[15:21:40] bmurt: has joined #ruby
[15:22:03] dionysus69: has joined #ruby
[15:22:52] balazs_: has joined #ruby
[15:23:05] marcdel: has joined #ruby
[15:24:44] bronson: has joined #ruby
[15:27:13] Verity: matthewd, please PM me if you are available
[15:32:52] hutch34_: has joined #ruby
[15:33:18] yqt: has joined #ruby
[15:34:59] olivier__: has joined #ruby
[15:37:55] renchan: has joined #ruby
[15:38:12] flegent: has joined #ruby
[15:40:39] duckpupp1: has joined #ruby
[15:42:32] Verity: is it slower to file << read(5) until EOF
[15:42:37] Verity: than to read the whole file in
[15:44:05] Verity: seems to take a long ass time to load a 10mb file
[15:44:21] Verity: 34mB actually
[15:46:28] enterprisey: has joined #ruby
[15:48:02] Verity: damn I really need to solve this
[15:50:59] milardovich: has joined #ruby
[15:51:53] mikecmpbll: has joined #ruby
[15:53:20] deviation: has joined #ruby
[15:54:48] mooser: has joined #ruby
[15:55:00] eam: Verity: if you're reading non-binary data, yes, much slower
[15:55:47] eam: many string opts you'd assume are O(1) are actually O(n) if your data is unicode
[15:56:02] eam: I haven't looked at << but I'd assume it's running into this - [] will
[15:57:07] Verity: I'm reading it into a string
[15:57:17] Verity: and I'm also corrupting the file
[15:57:20] Verity: maybe I should post my full code
[15:57:23] Verity: I didnt want to break my security
[15:57:29] Verity: but its a weak algorithm anyway, here it is
[15:57:56] Verity: eam, https://gist.github.com/anonymous/799dd1d98d328bceb21ce975515dc2e3
[15:57:58] sepp2k: has joined #ruby
[15:58:30] Verity: two problems, 1. it takes forever to read in large files. 2. it adds two bytes to the file for each op. Encreypt = +2 bytes Decrypt = +2 bytes
[15:58:35] Verity: this is corrupting the file
[15:58:47] Verity: it looks like it works ok for text files, but when I tried a program binary it broke
[15:59:34] eam: instead of File.open(file_name, "r"), try File.open(file_name, "rb")
[15:59:46] eam: same for writing
[16:00:04] eam: this tells ruby to treat the data as binary data, not encoded text
[16:00:11] Verity: I'll give this a try :)
[16:00:21] eam: that's the first super easy thing to try, without looking further at what's going on
[16:01:45] Verity: wow that fixed it
[16:01:47] Verity: thank you eam
[16:01:49] eam: you got it
[16:01:51] Verity: its 1000x faster and works now
[16:02:38] eam: without telling ruby the data is binary, it will try to use characters as the index unit instead of bytes
[16:03:01] eam: if using bytes, foo[5] is "the start of foo plus 5 bytes" and so is O(1)
[16:03:26] eam: but if using characters, foo[5] is "the start of foo, then count each character in the string until we find 5 -- because characters can be of different lengths"
[16:03:45] eam: for short strings this doesn't matter, but when you get megabyte sized it becomes prohibitively expensive
[16:04:16] Verity: aha, I see. that explains why this is so much faster now
[16:04:36] Verity: but the extra bytes and the file corruption... what was causing that?
[16:04:48] Pumukel: has joined #ruby
[16:04:49] Verity: reading it as chars instead of bytes, I assume but not sure the details of why
[16:04:55] eam: not sure, I didn't really read the rest of yoru code - it looked like you were encrypting a file using crypt(3)?
[16:05:06] eam: why not use openssl?
[16:05:30] eam: generally it's not a good idea to roll your own encryption methods
[16:05:38] Verity: it was a manual algorithm yerah
[16:05:57] eam: I'd recommend something like this instead: https://gist.github.com/byu/99651
[16:06:04] Verity: I was ORing each keybyte with every msgbyte
[16:06:41] eam: two big reasons: 1) it's proven to work and is a known quantity in terms of strength and 2) if performance is a concern, AES/openssl has hardware acceleration on modern intel chips and will be hundreds of times faster
[16:07:11] eam: openssl will generally use this when available: https://en.wikipedia.org/wiki/AES_instruction_set
[16:07:23] eam: think of it like a GPU for crypto
[16:07:29] deviation: has joined #ruby
[16:07:34] Verity: ah yes I was reading about this
[16:07:37] Verity: the special instructions for creypto
[16:07:54] Verity: I'll read over thjat example you sent
[16:08:34] eam: these cpu extensions are essentially the reason large internet providers were able to offer ssl everywhere -- previously it was much, much more expensive
[16:09:57] Verity: very cool =D, I didn't realize that
[16:11:18] DARPA: has joined #ruby
[16:13:36] dionysus69: has joined #ruby
[16:15:33] muelleme_: has joined #ruby
[16:16:07] thadtheman: has joined #ruby
[16:18:03] nertzy: has joined #ruby
[16:19:11] _joes_: has joined #ruby
[16:22:56] jhack: has joined #ruby
[16:23:19] shinnya: has joined #ruby
[16:24:24] SteenJobs: has joined #ruby
[16:31:30] roamingdog: has joined #ruby
[16:33:19] JeanCarloMachado: has joined #ruby
[16:33:34] hutch34_: has joined #ruby
[16:37:27] Arpanet69: has joined #ruby
[16:38:34] blackmesa: has joined #ruby
[16:41:16] nobitanobi: has joined #ruby
[16:42:45] bkxd: has joined #ruby
[16:43:57] tenderlove: has joined #ruby
[16:43:59] _sfiguser: has joined #ruby
[16:47:59] olivier__: has joined #ruby
[17:04:18] User458764: has joined #ruby
[17:06:42] Pumukel: has joined #ruby
[17:08:40] pankaj: has joined #ruby
[17:09:04] SteenJobs: has joined #ruby
[17:09:19] thadtheman: has joined #ruby
[17:11:21] ace05: has joined #ruby
[17:12:46] Verity: hey ace05 , welcome to ruby
[17:12:54] ace05: hi Verity
[17:13:23] ace05: have a quick question to ask and see if anyone can shed some light on it
[17:13:30] Verity: sure, go right ahead.
[17:13:59] ace05: i've got a ror application that calls a rails api when requesting data
[17:14:16] Cohedrin: has joined #ruby
[17:14:48] ace05: when you run the api on a terminal and you effectively request something that return s a status 204 error for no content
[17:15:26] ace05: however when you look at the page of the ror app using developer tools for a chrome browser, you see a status 200
[17:15:31] ace05: how is that so?
[17:16:13] ace05: i would have expected to see a 204 status error for no content from the api and a 204 status also shown when loading the page
[17:17:49] ace05: i written an error handling helper to specifically catch 204 errors and when i check the logs to see what gets printed, i can see it is a 204 error
[17:18:22] ace05: so is it between controller and view that somehow it is converted to a 200 ?
[17:18:38] Channel6: has joined #ruby
[17:19:00] Verity: I've never used rails, and it may even have its own channel, but hopefully someone will chime in
[17:19:13] Fernando-Basso: has joined #ruby
[17:19:21] Verity: ace05, #rails
[17:25:30] skweek: has joined #ruby
[17:25:39] bronson: has joined #ruby
[17:26:35] Verity: >> [42,74,85,23,83].map { |n| n + 1 }
[17:26:36] ruby[bot]: Verity: # => [43, 75, 86, 24, 84] (https://eval.in/761516)
[17:26:40] Verity: is that a lambda
[17:28:40] matthewd: Technically no; it's a block. A lambda is an objectified block.
[17:30:45] SteenJobs: has joined #ruby
[17:31:02] aglorei: has joined #ruby
[17:31:37] Verity: matthewd, how would that differ from what I wrote
[17:33:18] matthewd: >> l = lambda { |n| n + 1 }; l.(41)
[17:33:19] ruby[bot]: matthewd: # => 42 (https://eval.in/761517)
[17:33:43] matthewd: There 'l' is a lambda
[17:34:17] hutch34_: has joined #ruby
[17:40:10] ujjain: has joined #ruby
[17:40:10] ujjain: has joined #ruby
[17:41:49] aglorei: has joined #ruby
[17:42:17] marcdel: has joined #ruby
[17:43:18] ace05: has joined #ruby
[17:44:53] Verity: ty, I see now
[17:47:30] Verity: matthewd, one last question. "hey".chars.permutation.map &:join could you explain how thats working? .chars is the characters of the string, .permutation is all permutations of those chars, but what happens when map and &:join start getting involved
[17:47:37] Verity: I'm trying to figure out this syntax so I can use it myself
[17:47:40] Verity: in the future
[17:47:59] Verity: the result, of course
[17:48:00] Verity: >>"hey".chars.permutation.map &:join
[17:48:01] ruby[bot]: Verity: # => ["hey", "hye", "ehy", "eyh", "yhe", "yeh"] (https://eval.in/761525)
[17:48:12] matthewd: You know what map does
[17:48:19] matthewd: >> "hey".chars.permutation
[17:48:20] ruby[bot]: matthewd: # => #<Enumerator: ["h", "e", "y"]:permutation> (https://eval.in/761526)
[17:48:25] matthewd: >> "hey".chars.permutation.to_a
[17:48:26] ruby[bot]: matthewd: # => [["h", "e", "y"], ["h", "y", "e"], ["e", "h", "y"], ["e", "y", "h"], ["y", "h", "e"], ["y", "e", "h" ...check link for more (https://eval.in/761527)
[17:49:05] Verity: its an array of arrays of chars
[17:49:12] matthewd: `.map &:join` is a special shorter spelling of `.map {|x| x.join }`
[17:49:21] Verity: that then gets assembled by map and &:join into a final array of strings
[17:49:42] Verity: ok, I think I see now
[17:49:47] Verity: I'll play around with it in irb
[17:52:45] lxsameer: has joined #ruby
[17:53:48] ace05: has joined #ruby
[17:54:07] Verity: my ruby is up to 4GB ram trying to process "the quick brown fox jumps over the lazy dog"
[17:54:10] Verity: have to be careful with this
[17:54:37] Verity: I suppose with each additional character the amount of permutations increases by...
[17:54:39] Verity: ACTION thinks this over
[17:55:32] Verity: 6.2GB ram no output yet
[17:55:44] Verity: if I log off something went really wrong
[17:56:03] cseder: has joined #ruby
[17:56:08] Verity: ruby[bot] will crash without protection from this
[17:56:21] Verity: >>"the quick brown fox jumps over the lazy dog".chars.permutation.map &:join
[17:56:23] ruby[bot]: Verity: # => (https://eval.in/761528)
[17:57:47] Verity: if I put in "abcdefghijklmnopqrstuvwxyz" and processed for each group of 1, 2, 3, 4..etc letters, I would get every word in existence?
[17:58:11] aglorei: has joined #ruby
[17:58:13] matthewd: 43! is 60415263063373835637355132068513997507264512000000000, so... yeah, that's gonna take a while.
[17:59:16] matthewd: Verity: No.
[17:59:50] Verity: I would need a loop that calculates all permutations of the string and then deletes the last character of the string and does it again until string empty
[17:59:51] matthewd: Verity: You'd need repeated_permutation for that
[18:00:12] User458764: has joined #ruby
[18:00:34] Verity: ACTION googles
[18:01:00] Verity: wait that wouldnt work either
[18:01:02] Verity: you['re right =D
[18:01:07] Verity: took me a moment of thinking and then it clicked
[18:03:01] olivier__: has joined #ruby
[18:03:57] Verity: this is all for fun right now anyway, time for some lunch and I'll take a look at repeated_permutation after
[18:07:27] Rodya_: has joined #ruby
[18:09:47] noob: has joined #ruby
[18:10:10] ujjain: has joined #ruby
[18:10:11] ujjain: has joined #ruby
[18:10:39] Verity: hopefully when I come back its done
[18:12:09] d3d1rty: has joined #ruby
[18:13:56] dannyh: has joined #ruby
[18:15:47] despai: has joined #ruby
[18:22:56] kirun: has joined #ruby
[18:23:17] warrshrike: has joined #ruby
[18:23:45] warrshrike: whats the slickest one liner to do this in ruby?
[18:23:53] warrshrike: Given an array of integers, return indices of the two which add to a target
[18:24:38] Nilium: Too early for goldf
[18:24:45] Nilium: Wow keyboard thanks ruin my joke
[18:25:39] Rodya_: has joined #ruby
[18:26:06] warrshrike: Nilium: the jokes ruined...maybe you can tellme how now lol
[18:26:28] Nilium: Still too early for golf.
[18:28:14] Nilium: Anyway, since you have an array, I'd just sort it, walk it, and look for Y (assuming you want Y out of X + Y = Z)
[18:28:55] elomatreb: Array#combination is another way
[18:29:06] Nilium: Sort it specifically so you can just do a binary search on it for Y
[18:29:45] warrshrike: Nilium: would that be nlogn?
[18:29:57] Nilium: Some log-ish
[18:30:12] Nilium: I haven't had near enough coffee to analyze the words I type
[18:30:39] warrshrike: yeah im looking for a slick looking one liner actually....
[18:30:40] ujjain: has joined #ruby
[18:30:41] ujjain: has joined #ruby
[18:30:47] Nilium: You could do that in one line.
[18:31:07] warrshrike: yeah youre right i guess
[18:31:11] Nilium: Though that's true of anything in ruby
[18:31:24] psychicist__: has joined #ruby
[18:32:32] warrshrike: has left #ruby: ()
[18:33:55] thadtheman: has joined #ruby
[18:35:03] deviation: has joined #ruby
[18:35:14] havenwood: >> [*1..100].combination(2).select { |combo| combo.sum == 42 }
[18:35:15] ruby[bot]: havenwood: # => undefined method `sum' for [1, 2]:Array (NoMethodError) ...check link for more (https://eval.in/761537)
[18:35:26] havenwood: Ruby 2.4 ftw!
[18:35:46] havenwood: >> [*1..100].combination(2).select { |a, b| a + b == 42 }
[18:35:47] ruby[bot]: havenwood: # => [[1, 41], [2, 40], [3, 39], [4, 38], [5, 37], [6, 36], [7, 35], [8, 34], [9, 33], [10, 32], [11, 31] ...check link for more (https://eval.in/761538)
[18:36:44] hutch34_: has joined #ruby
[18:38:44] psychicist__: has joined #ruby
[18:40:21] Rodya_: has joined #ruby
[18:43:17] tomphp: has joined #ruby
[18:43:32] bkxd: has joined #ruby
[18:44:09] ixti: has joined #ruby
[18:44:31] despai: has joined #ruby
[18:45:32] mooser: has joined #ruby
[18:47:01] aglorei: has joined #ruby
[18:47:10] goldpank: has joined #ruby
[18:49:53] montanonic: has joined #ruby
[18:52:52] User458764: has joined #ruby
[18:55:14] nadir: has joined #ruby
[18:57:51] flegent: has joined #ruby
[19:00:33] davorb: has joined #ruby
[19:00:55] tomphp: has joined #ruby
[19:04:08] milardovich: has joined #ruby
[19:05:51] mooser: has joined #ruby
[19:07:54] milardovich: has joined #ruby
[19:08:40] Jackneill: has joined #ruby
[19:10:07] Pumukel: has joined #ruby
[19:14:29] zeddan: has joined #ruby
[19:21:45] SteenJobs: has joined #ruby
[19:26:35] bronson: has joined #ruby
[19:28:48] Tempesta: has joined #ruby
[19:29:23] vali: has joined #ruby
[19:30:49] Tempesta: has joined #ruby
[19:31:03] vuoto: has joined #ruby
[19:37:47] psychicist__: has joined #ruby
[19:38:56] am55: has joined #ruby
[19:42:40] pankaj: has joined #ruby
[19:43:38] thadtheman: has joined #ruby
[19:47:14] roamingdog: has joined #ruby
[19:47:35] houhoulis: has joined #ruby
[19:50:09] cb: has joined #ruby
[19:50:38] houhoulis: has joined #ruby
[19:51:20] Disavowed: has left #ruby: ()
[19:51:35] chouhoulis: has joined #ruby
[19:51:53] Disavowed: has joined #ruby
[19:52:13] am55: has joined #ruby
[19:54:11] psychicist__: has joined #ruby
[19:55:02] Rodya_: has joined #ruby
[19:58:43] var_somebody: has joined #ruby
[20:02:11] pankaj: has joined #ruby
[20:03:55] tomphp: has joined #ruby
[20:03:57] var_somebody: has joined #ruby
[20:08:24] futilegames: has joined #ruby
[20:09:58] nowhere_man: has joined #ruby
[20:12:26] ruby[bot]: -bbb $a:irc2000$#ruby-banned irc3k!*@*$#ruby-banned irc2000!*@*$#ruby-banned
[20:15:57] despai: has joined #ruby
[20:19:19] eclm: has joined #ruby
[20:20:31] psychicist__: has joined #ruby
[20:20:55] salih: has joined #ruby
[20:21:16] salih: hi guys why ruby havent handbook in text ? just like python ?
[20:21:32] salih: or i cant found it
[20:26:25] armyriad: has joined #ruby
[20:28:25] sneakerhax: has joined #ruby
[20:29:40] psychicist__: has joined #ruby
[20:29:52] eclm: has joined #ruby
[20:31:07] salih: has left #ruby: ("ERC (IRC client for Emacs 25.1.1)")
[20:34:08] zeddan: has joined #ruby
[20:36:16] psychicist__: has joined #ruby
[20:40:36] armando: has joined #ruby
[20:42:47] pwnd_nsfw: has joined #ruby
[20:43:17] zeddan: has joined #ruby
[20:43:49] bkxd: has joined #ruby
[20:45:33] Danishman: has joined #ruby
[20:45:50] CloCkWeRX: has joined #ruby
[20:49:18] bkxd: has joined #ruby
[20:52:12] psychicist__: has joined #ruby
[20:52:20] olivier__: has joined #ruby
[20:53:01] blackmesa: has joined #ruby
[20:54:58] ejnahc_: has joined #ruby
[20:55:07] esObe_: has joined #ruby
[20:55:15] raddazong: has joined #ruby
[20:55:33] silverdust: has joined #ruby
[20:55:34] kobain: has joined #ruby
[20:55:35] Olipro_: has joined #ruby
[20:55:51] kobain: has joined #ruby
[20:56:06] Garo_: has joined #ruby
[20:56:08] Danishman: has joined #ruby
[20:56:21] kobain: has joined #ruby
[20:57:59] pagios: has joined #ruby
[20:58:36] milardovich: has joined #ruby
[20:59:17] rhyselsmore: has joined #ruby
[21:00:06] davorb: has joined #ruby
[21:00:12] whiteline: has joined #ruby
[21:00:13] whiteline_: has joined #ruby
[21:01:14] spectra: has joined #ruby
[21:01:17] whiteline_: has joined #ruby
[21:03:02] Channel6: has joined #ruby
[21:04:27] _sfiguser: has joined #ruby
[21:04:36] SteenJobs: has joined #ruby
[21:06:23] thadtheman: has joined #ruby
[21:07:14] bronson: has joined #ruby
[21:07:42] whiteline: has joined #ruby
[21:10:24] salih`: has joined #ruby
[21:10:40] salih`: sorry i cant found text format yet
[21:11:20] skweek: has joined #ruby
[21:11:40] pankaj: has joined #ruby
[21:12:49] whiteline: has joined #ruby
[21:12:59] milardovich: has joined #ruby
[21:13:13] milardovich: has joined #ruby
[21:14:27] Pumukel: has joined #ruby
[21:14:33] matthewd: salih`: What are you looking for?
[21:15:17] salih`: ruby txt files
[21:15:26] hostess: has joined #ruby
[21:16:06] inkshark: has joined #ruby
[21:16:55] matthewd: I don't know what you mean
[21:17:07] salih`: handbook text file
[21:17:59] matthewd: Saying the same thing again isn't going to help me understand
[21:20:13] armando: has joined #ruby
[21:20:43] matthewd: You said "like python" earlier. Can you show me the python equivalent of what you want?
[21:21:12] whiteline: has joined #ruby
[21:22:31] salih`: python-2.7.13-docs-text.tar.bz2 matthewd
[21:23:40] hostess: has joined #ruby
[21:24:06] muelleme_: has joined #ruby
[21:24:14] tAn: has joined #ruby
[21:26:20] salih`: matthewd: i saw rdoc , alot of file in doc folder
[21:26:46] Xiti: has joined #ruby
[21:28:29] inkshark: has joined #ruby
[21:29:08] thadtheman: has joined #ruby
[21:29:20] milardovich: has joined #ruby
[21:29:39] matthewd: salih`: I'm still not sure what you want, but the `ri` tool might help?
[21:29:59] salih`: i am checking
[21:30:28] salih`: yes matthewd
[21:30:50] milardovich: has joined #ruby
[21:30:53] salih`: matthewd: dir(
[21:31:07] salih`: dir() working in ruby ? matthewd
[21:31:47] matthewd: That's a python function, so.. no.
[21:33:25] whiteline: has joined #ruby
[21:33:58] inkshark: has joined #ruby
[21:36:04] Disavowed: salih`: I've been using <your_object>.methods which is similar to dir()
[21:36:15] Disavowed: Although I'm sure there's a better way
[21:36:53] Disavowed: Urgh, seems like every month I have to fix some readline dependency if I want to use a repl. I have no idea how I manage to mess it up so frequently
[21:39:41] bronson: has joined #ruby
[21:40:27] User458764: has joined #ruby
[21:45:16] br0d1n: has joined #ruby
[21:45:44] armando: has joined #ruby
[21:50:47] salih`: Disavowed: i am new at ruby , i am looking how works etc..
[21:51:41] salih`: i did try Math.methods working well but require 'openssl' not works
[21:52:15] salih`: :: could be different
[21:52:36] salih`: i am not writing any program i am looking how works etc..
[21:53:22] salih`: working now
[21:53:59] salih`: matthewd: thanks for ir etc.. i am looking
[21:58:57] SteenJobs: has joined #ruby
[21:59:51] volty: has joined #ruby
[22:02:18] salih`: have a good day
[22:02:35] cseder: wtf was that?
[22:02:56] PaulCapestany: has joined #ruby
[22:03:01] Radar: "Have a nice day is a commonly spoken expression used to conclude a conversation"
[22:03:04] Radar: https://en.wikipedia.org/wiki/Have_a_nice_day
[22:03:26] mooser: has joined #ruby
[22:05:06] cseder: Disavowed you said you had trouble with repl? what os?
[22:06:04] olivier__: has joined #ruby
[22:06:52] ineb: has joined #ruby
[22:07:42] cseder: oh, it's idiot's night tonight
[22:08:25] dasher00: has joined #ruby
[22:08:51] matthewd: !rude cseder
[22:08:52] ruby[bot]: +qqq $a:cseder cseder!*@* *!*@189.99.9.46.customer.cdi.no
[22:10:04] agent_white: has joined #ruby
[22:11:27] zeddan: has joined #ruby
[22:13:37] enterprisey: has joined #ruby
[22:13:38] t-recx: has joined #ruby
[22:14:12] cseder: has left #ruby: ()
[22:14:27] cseder: has joined #ruby
[22:17:42] Ebok: has joined #ruby
[22:23:39] armando: has joined #ruby
[22:25:45] Radar: Thanks matthewd.
[22:27:48] dviola: has joined #ruby
[22:29:08] Disavowed: I don't mind being an idiot - I've a long way to go with Ruby!
[22:31:44] ace05: has joined #ruby
[22:33:30] inkshark: has joined #ruby
[22:33:58] ace05: has joined #ruby
[22:38:11] ragesoss: has joined #ruby
[22:39:39] haylon: has joined #ruby
[22:40:56] matcouto: has joined #ruby
[22:41:26] bronson: has joined #ruby
[22:44:06] JeanCarloMachado: has joined #ruby
[22:45:14] blackmesa: has joined #ruby
[22:49:25] armando: has joined #ruby
[22:49:54] jottr: has joined #ruby
[22:57:33] arescorpio: has joined #ruby
[23:00:15] fmartingr: has joined #ruby
[23:00:39] davorb: has joined #ruby
[23:05:23] agent_white: has joined #ruby
[23:09:27] ruby[bot]: -qqq $a:cseder cseder!*@* *!*@189.99.9.46.customer.cdi.no
[23:11:34] User458764: has joined #ruby
[23:13:29] aglorei: has joined #ruby
[23:15:14] thadtheman: has joined #ruby
[23:18:42] roamingdog: has joined #ruby
[23:24:09] montanonic: has joined #ruby
[23:29:33] minimalism: has joined #ruby
[23:31:49] User458764: has joined #ruby
[23:34:00] charliesome: has joined #ruby
[23:37:10] Kallis: has joined #ruby
[23:42:12] bronson: has joined #ruby
[23:44:01] duckpupp1: has joined #ruby
[23:46:07] johnzorn: has joined #ruby
[23:46:39] milardovich: has joined #ruby
[23:48:20] _sfiguser: has joined #ruby
[23:48:52] ace05: has joined #ruby
[23:53:24] Rodya_: has joined #ruby
[23:54:06] hogetaro: has joined #ruby