« Back to channel list

#ruby - 22 November 2015

« Back 1 day Forward 1 day »
[00:00:17] Yzguy: has joined #ruby
[00:01:14] Yzguy: has joined #ruby
[00:05:55] trosborn: has joined #ruby
[00:07:23] cyb3rspy: has joined #ruby
[00:10:39] maloik: has joined #ruby
[00:11:39] yoongkang: has joined #ruby
[00:13:46] houhoulis: has joined #ruby
[00:15:19] zomgbie: has joined #ruby
[00:16:04] ellisTAA: has joined #ruby
[00:17:19] htmldrum: has joined #ruby
[00:18:34] EminenceHC: has joined #ruby
[00:20:28] Elysia: has joined #ruby
[00:21:21] Elysia: has joined #ruby
[00:21:23] Axsuul: has joined #ruby
[00:22:56] cyb3rspy: has joined #ruby
[00:22:57] Elysia: has joined #ruby
[00:23:08] Xeago: has joined #ruby
[00:26:53] cyb3rspy: has joined #ruby
[00:27:22] SCHAAP137: has joined #ruby
[00:27:31] ta: has joined #ruby
[00:28:01] cyb3rspy: has joined #ruby
[00:29:38] pawnbox: has joined #ruby
[00:30:54] maloik: has joined #ruby
[00:32:52] skweek: has joined #ruby
[00:33:23] cyb3rspy: has joined #ruby
[00:35:32] cdg: has joined #ruby
[00:37:02] Bellthoven: has joined #ruby
[00:37:31] jud: has joined #ruby
[00:37:39] Scripore: has joined #ruby
[00:39:50] cyb3rspy: has joined #ruby
[00:40:57] ellisTAA: i???m trying to decompress files that i compressed using Zlib.deflate, and i keep getting this error ???`inflate': incorrect header check (Zlib::DataError)??? ??? anyone see anything obvious with my code that would prevent me from decrompressing .gz files? https://github.com/ellismarte/neatfreak/blob/master/neatfreak.rb#L36
[00:43:24] gusTester: has joined #ruby
[00:44:59] antoniobeyah: has joined #ruby
[00:46:32] maloik: has joined #ruby
[00:46:35] rgrmatt: has joined #ruby
[00:47:09] eni_: has joined #ruby
[00:48:38] Ox0dea: EllisTAA: Zlib.inflate expects compressed data; you're giving it a path.
[00:48:45] eni_: hello. I tried to install jekyll and it asked me for ruby v. 2.0.0 which I got like this : curl -L https://get.rvm.io | bash -s stable --ruby=2.0.0 (cv. https://www.digitalocean.com/community/tutorials/how-to-get-started-with-jekyll-on-an-ubuntu-vps ). But when i run the gem install jekyll it still asks for ruby 2.0.0, apparently i have to use rvm to switch ruby versions .. (is this correct?), but it doesn't seem like rvm is installed neit
[00:48:45] eni_: her. do you have any hint? thanks.
[00:49:25] ellisTAA: Ox0dea: so should i pass in this as the argument Zlib::GzipReader.open(path)
[00:49:33] boxofrox: has joined #ruby
[00:50:03] eni_: edit: ok i have it installed. I just had to run : source /usr/local/rvm/scripts/rvm
[00:50:04] ellisTAA: Ox0dea: https://github.com/ellismarte/neatfreak/blob/master/neatfreak.rb#L36
[00:50:06] Ox0dea: EllisTAA: Yes, but that'll give you an IO, not the decompressed data.
[00:50:21] ellisTAA: Ox0dea: do u know what i???d want to use?
[00:50:28] Ox0dea: EllisTAA: Yes.
[00:50:30] patrick3: has joined #ruby
[00:50:37] ellisTAA: Ox0dea: what should i use?
[00:50:52] Ox0dea: EllisTAA: If you want all the data at once, read the IO like you would any other.
[00:50:55] fedexo: has joined #ruby
[00:51:03] eni_: edit2: got it working. thanks.
[00:51:11] gusTester: has left #ruby: ()
[00:51:53] ellisTAA: Ox0dea: what if i do this: http://ruby-doc.org/stdlib-2.1.1/libdoc/zlib/rdoc/Zlib/Inflate.html#method-c-inflate would buf be the decompressed data?
[00:52:00] ellisTAA: and i???d just pass buf in as the argumetn?
[00:52:56] Ox0dea: EllisTAA: No. Really, take a moment to appreciate the difference between a filename and its contents.
[00:53:49] EminenceHC: has joined #ruby
[00:54:09] xxneolithicxx: has joined #ruby
[00:55:19] xxneolithicxx: has joined #ruby
[00:57:26] diegoaguilar: has joined #ruby
[00:57:37] davedev24: has joined #ruby
[00:57:58] xxneolithicxx: has joined #ruby
[01:00:35] rgtk: has joined #ruby
[01:01:22] Axsuul: has joined #ruby
[01:02:25] rgtk: has joined #ruby
[01:03:01] ellisTAA: Ox0dea: so i want to open up the file, grab all the data, then call File.write on that data in order to inflate a compressed file?
[01:03:21] Ox0dea: EllisTAA: Why would you need to write to read?
[01:04:10] ellisTAA: Ox0dea: i have a file hello.txt.gz in my directory, i want it to become hello.txt
[01:04:43] rgtk: has joined #ruby
[01:04:46] Ox0dea: EllisTAA: Oh, I see. Are you rewriting gunzip as a learning exercise?
[01:04:54] iko1: has joined #ruby
[01:05:06] ellisTAA: Ox0dea: idk what gunzip is
[01:05:10] Ox0dea: http://i.imgur.com/Ufbr5ej.gif
[01:05:28] Yzguy: ^^ lmfao, dying laughing over here
[01:06:15] rgtk: has joined #ruby
[01:08:09] Ox0dea: EllisTAA: Zlib::GzipReader.open('foo.gz') { |gz| File.write 'foo', gz.read }
[01:08:25] Ox0dea: That's the simplest approach, and it should suffice unless your deflated files are pretty massive.
[01:08:27] rgtk: has joined #ruby
[01:09:08] Ox0dea: In case you were being honest, `gunzip` just decompresses a compressed file "in-place".
[01:09:59] baweaver: has joined #ruby
[01:10:24] rgtk: has joined #ruby
[01:10:30] ellisTAA: Ox0dea: why are you calling read at the end of the block?
[01:11:28] ellisTAA: oh, bc that gets the data from gz?
[01:12:14] rgtk: has joined #ruby
[01:12:30] Axsuul: has joined #ruby
[01:12:57] antoniobeyah: has joined #ruby
[01:13:49] rgtk: has joined #ruby
[01:14:34] poguez_: has joined #ruby
[01:14:49] Ox0dea: EllisTAA: Yeah.
[01:15:45] rgtk: has joined #ruby
[01:17:36] rgtk: has joined #ruby
[01:19:32] rgtk: has joined #ruby
[01:21:24] rgtk: has joined #ruby
[01:21:27] ellisTAA: Ox0dea: thanks for the halp
[01:23:21] rgtk: has joined #ruby
[01:25:36] rgtk: has joined #ruby
[01:27:06] rgtk: has joined #ruby
[01:28:28] lemur: has joined #ruby
[01:28:59] rgtk: has joined #ruby
[01:29:41] apeiros: +b rgtk!*@*$#ruby-fix-your-connection
[01:29:43] apeiros: -o apeiros
[01:29:53] build22: has joined #ruby
[01:29:56] ta: has joined #ruby
[01:31:02] Melpaws: has joined #ruby
[01:32:20] ellisTAA: damn. getting an error: ???not in gzip format (zlib::gzipfile::error) ??? https://github.com/ellismarte/neatfreak/blob/master/neatfreak.rb#L37
[01:32:49] rgtk_: has joined #ruby
[01:34:18] baweaver: has joined #ruby
[01:36:36] rgtk_: has joined #ruby
[01:40:03] maloik: has joined #ruby
[01:40:32] juddey: has joined #ruby
[01:43:18] lemondom: has joined #ruby
[01:44:13] Spami: has joined #ruby
[01:44:13] rgtk_: has joined #ruby
[01:44:22] rgrmatt: has joined #ruby
[01:45:24] zfez_: has joined #ruby
[01:46:45] blubjr: wow ruby doesnt do tco ?
[01:48:16] Ox0dea: blubjr: Consider lurking harder.
[01:49:20] al2o3-cr: yeah look at RubyVM :)
[01:51:44] Ox0dea: It's difficult to bump into the realization that Ruby doesn't do TCO without quickly finding that it can be finagled into doing so. I suspect blubjr is Blubbing.
[01:52:39] havenwood: blubjr: CRuby has TCO. It's just disabled by default in favor of backtrace info.
[01:52:58] blubjr: i just had a recursive function blow up and i was surprised thats all..
[01:53:33] havenwood: blubjr: The patch is just changing a 1 to a 0 and a 0 to a 1: https://gist.github.com/havenwood/d958268d0ab896373af6
[01:54:35] havenwood: blubjr: Backtrace off and tailcall on.
[01:55:14] wldcordeiro: has joined #ruby
[01:55:19] maloik: has joined #ruby
[01:55:51] blubjr: thank you
[01:56:16] htmldrum: has joined #ruby
[01:56:32] Ox0dea: blubjr: Gonna recompile your local interpreter, then?
[01:57:58] blubjr: not for this, but its good to be aware of ?
[01:58:08] ledestin: has joined #ruby
[02:00:10] NeverDie: has joined #ruby
[02:00:16] Axsuul: has joined #ruby
[02:03:10] alphaatom: has joined #ruby
[02:04:03] Ox0dea: blubjr: eval.in didn't handle it very well, but here's why al2o3-cr mentioned RubyVM: https://eval.in/473726
[02:05:23] EminenceHC: has joined #ruby
[02:08:52] urbann: has joined #ruby
[02:09:08] al2o3-cr: http://carc.in/#/r/mq3
[02:09:20] maloik: has joined #ruby
[02:10:16] shevy: are you people trying to break ruby again
[02:10:25] shevy: "Error output: That didn't go well."
[02:11:16] segy_: has joined #ruby
[02:11:25] Ox0dea: al2o3-cr: Nifty. Can it please run trunk?
[02:11:41] al2o3-cr: Ox0dea: you'll have to ask jhass
[02:12:03] al2o3-cr: he created it :)
[02:12:24] havenwood: https://github.com/jhass/carc.in
[02:12:42] Ox0dea: Oh, right. I forgot he hosted both a pastebin and an evaluator.
[02:13:46] segy-: has joined #ruby
[02:13:47] ur5us: has joined #ruby
[02:14:07] baweaver: has joined #ruby
[02:16:34] oli: has joined #ruby
[02:18:00] rgrmatt: has joined #ruby
[02:19:12] shevy: he became crystalss
[02:24:31] minimalism: has joined #ruby
[02:24:54] maloik: has joined #ruby
[02:25:45] afschw: I want crystals.
[02:28:26] shevy: we got all the precious
[02:28:31] shevy: the perls the rubies the crystals
[02:28:38] shevy: unsure which other mineral we have on top of that
[02:29:45] Ox0dea: Opal, Topaz.
[02:30:38] terminalrecluse: has joined #ruby
[02:30:45] build22: has joined #ruby
[02:31:14] lemondom_: has joined #ruby
[02:31:25] shevy: https://github.com/topazproject/topaz
[02:32:22] davedev24: has joined #ruby
[02:35:08] bkxd: has joined #ruby
[02:36:01] _stu_: has joined #ruby
[02:36:21] ta: has joined #ruby
[02:37:58] JammyHammy: has joined #ruby
[02:38:18] ellisTAA: has joined #ruby
[02:40:42] ellisTAA: anyone know why this line is giving me the following error ???Zlib::GzipFile::Error message is not in gzip format .. https://github.com/ellismarte/neatfreak/blob/master/neatfreak.rb#L37 is that saying gz.read is not in gzip format or the path isn???t in gzip format?
[02:41:43] Ox0dea: > I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
[02:45:07] maloik: has joined #ruby
[02:46:25] ellisTAA: it is the latter
[02:46:49] Ox0dea: EllisTAA: Again, a path is not a file.
[02:47:22] jschmid: has joined #ruby
[02:48:15] alphaatom: has joined #ruby
[02:48:18] shevy: http://ruby-doc.org/stdlib-2.2.3/libdoc/zlib/rdoc/Zlib/GzipReader.html
[02:48:49] shevy: what is path there exactly
[02:49:05] ellisTAA: shevy: a string / path to the file
[02:49:21] ellisTAA: see in the docs it says ???Zlib::GzipReader.open('hoge.gz') {|gz| print gz.read}??? and that???s what i???m doing
[02:49:34] shevy: no I mean
[02:49:35] shevy: literally
[02:49:38] shevy: what is it; output it
[02:50:37] Ox0dea: EllisTAA: Why did you do this? https://github.com/ellismarte/neatfreak/commit/6a67
[02:51:23] ellisTAA: Ox0dea: line 37?
[02:51:31] Ox0dea: EllisTAA: That commit.
[02:51:34] ellisTAA: shevy: what do u mean output it? its a string
[02:51:46] UtkarshRay: has joined #ruby
[02:51:49] maloik: has joined #ruby
[02:51:56] ellisTAA: Ox0dea: since i compressed everything i can???t open sublime so i???m having to edit on github and pull down
[02:52:12] shevy: puts path
[02:53:12] Ox0dea: EllisTAA: You... compressed every directory to which you have read and write access?
[02:53:19] ellisTAA: Ox0dea: yep
[02:53:25] Ox0dea: What a fucking idi^W awesome idea.
[02:53:30] ellisTAA: Ox0dea: that haven???t been accessed in 2 weeks
[02:53:39] Ox0dea: I'm gonna do the same.
[02:53:39] JazzyVariable227: has joined #ruby
[02:54:09] saddad: has joined #ruby
[02:54:44] ellisTAA: this is path https://gist.github.com/ellismarte/bfe317bae425c3c53d80#file-output-txt-L1
[02:56:11] Ox0dea: EllisTAA: You are trying to decompress a filename, which is indeed not (and should never be) in gzip format.
[02:56:31] exadeci: has joined #ruby
[02:56:46] ellisTAA: Ox0dea: k so i want to grab the file using maybe file.open and pass that in as the argument right?
[02:56:50] shevy: http://stackoverflow.com/a/8684145/722915
[02:57:47] Ox0dea: EllisTAA: No, the code you had before that commit was fine.
[02:58:24] m0nge: has joined #ruby
[02:59:22] Ox0dea: I suspect you've got some files with a .gz extension that aren't actually gzipped data.
[03:00:05] ellisTAA: Ox0dea: damn how did u know.
[03:00:43] Ox0dea: > Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth.
[03:01:25] lkba_: has joined #ruby
[03:02:55] JazzyVariable227: has joined #ruby
[03:02:56] bkxd: has joined #ruby
[03:05:05] rjn2: has joined #ruby
[03:06:42] PaulCapestany: has joined #ruby
[03:07:11] jessemcgilallen: has joined #ruby
[03:07:22] maloik: has joined #ruby
[03:08:02] CloCkWeRX: has joined #ruby
[03:09:50] rgtk_: has joined #ruby
[03:12:31] shevy: we gotta make ruby more kickass
[03:15:47] tulak: has joined #ruby
[03:18:15] shevy: the documentation is not too great
[03:19:28] ellisTAA: so i???m getting an error saying file is not in gzip format. if this code is valid then that must mean some file with a .gz extension but that isn???t a compressed file is causing the problem. is this code correct? https://github.com/ellismarte/neatfreak/blob/master/neatfreak.rb#L39-L42
[03:20:48] pawnbox: has joined #ruby
[03:22:17] amclain: has joined #ruby
[03:24:26] Ox0dea: EllisTAA: Uncomment Line 37 and delete Lines 39-43.
[03:24:59] Ox0dea: And change "data" to "path"; how did it even become "data"?
[03:25:00] pwnd_nsfw: has joined #ruby
[03:25:13] Ox0dea: Programming is not a guessing game.
[03:25:23] Oog: has joined #ruby
[03:25:54] ellisTAA: Ox0dea: data was refering to open(path)
[03:26:09] ellisTAA: Ox0dea: well the docs suck so i had to guess
[03:26:16] Ox0dea: EllisTAA: I gave you that code.
[03:26:20] Ox0dea: It works.
[03:26:48] Ox0dea: Your problem is coming from another castle, namely the directory in which you have .gz files that aren't what they say they aare
[03:27:12] Oog: has joined #ruby
[03:27:53] mooe: has joined #ruby
[03:28:05] ellisTAA: Ox0dea: word
[03:28:31] maloik: has joined #ruby
[03:31:42] terminalrecluse: has joined #ruby
[03:32:48] plumbus: has joined #ruby
[03:33:21] build22: has joined #ruby
[03:35:07] ja: has joined #ruby
[03:35:21] RobertBirnie: has joined #ruby
[03:35:29] RandyT_: has joined #ruby
[03:35:30] NeverTired: has joined #ruby
[03:35:43] helpa: has joined #ruby
[03:35:47] davedev24: has joined #ruby
[03:35:53] blubjr`: has joined #ruby
[03:36:04] dravine_: has joined #ruby
[03:36:05] PaulCape_: has joined #ruby
[03:36:49] sarkis_: has joined #ruby
[03:37:03] mg^^: has joined #ruby
[03:37:34] Ox0dea: EllisTAA: Here's my take on it: https://eval.in/473728
[03:37:36] M-Kodo1: has joined #ruby
[03:37:39] Ox0dea: The symmetry means it's working.
[03:37:43] danzilio: has joined #ruby
[03:37:47] blackjid: has joined #ruby
[03:37:48] `derpy: has joined #ruby
[03:38:02] xxneolithicxx: has joined #ruby
[03:38:16] bkxd: has joined #ruby
[03:38:17] Eminence_: has joined #ruby
[03:38:21] graffix_: has joined #ruby
[03:38:22] radgeRayden_: has joined #ruby
[03:38:27] eregon_: has joined #ruby
[03:38:28] valeri_uF0: has joined #ruby
[03:38:31] ascarter: has joined #ruby
[03:38:41] ellisTAA: Ox0dea: pretty
[03:38:46] bb010g: has joined #ruby
[03:38:48] perrier_: has joined #ruby
[03:39:07] jsaak_: has joined #ruby
[03:39:10] ohaibbq_: has joined #ruby
[03:39:20] Ox0dea: It's easier to read without having to wade through unhelpful comments and massive variable names.
[03:39:28] Ox0dea: (In my opinion or whatever. :P)
[03:39:33] kramsee_: has joined #ruby
[03:39:34] yaewa: has joined #ruby
[03:39:42] amirpro_: has joined #ruby
[03:39:46] minimali1m: has joined #ruby
[03:39:56] madhatter: has joined #ruby
[03:39:57] ricer2_slTT: has joined #ruby
[03:40:00] gz0: has joined #ruby
[03:40:07] diprotic: has joined #ruby
[03:40:08] diprotic: has joined #ruby
[03:40:15] mic_e: has joined #ruby
[03:40:21] TheSpectre: has joined #ruby
[03:40:31] bradland_: has joined #ruby
[03:40:31] stephenh_: has joined #ruby
[03:40:34] whiteline_: has joined #ruby
[03:40:35] jericon: has joined #ruby
[03:40:52] afschw: has joined #ruby
[03:40:55] yoongkang: has joined #ruby
[03:40:57] sumark: has joined #ruby
[03:40:59] hinbody: has joined #ruby
[03:41:02] xxneolithicxx: has joined #ruby
[03:41:02] Kero: has joined #ruby
[03:41:05] kent\n: has joined #ruby
[03:41:07] kaspergrubbe: has joined #ruby
[03:41:10] joevandy1: has joined #ruby
[03:41:16] _main_: has joined #ruby
[03:41:29] ellisTAA: those comments were helpful lol
[03:41:33] Pro|: has joined #ruby
[03:41:33] havenn: has joined #ruby
[03:41:33] havenn: has joined #ruby
[03:41:34] DEac-_: has joined #ruby
[03:41:44] Drakevr: has joined #ruby
[03:41:54] raenk_: has joined #ruby
[03:42:06] hostess_: has joined #ruby
[03:42:14] ozzloy_: has joined #ruby
[03:42:18] golgaroth_: has joined #ruby
[03:42:18] avdi_: has joined #ruby
[03:42:20] _ko10: has joined #ruby
[03:42:21] IcyDragon: has joined #ruby
[03:42:22] Ox0dea: They're almost all noise.
[03:42:29] wlanboy: has joined #ruby
[03:42:44] Ox0dea: You shouldn't patronize the reader by "explaining" what `Dir.chdir` does.
[03:42:50] mroth_: has joined #ruby
[03:42:51] C0deMaver1ck_: has joined #ruby
[03:43:06] ellisTAA: but my friends are noobs so they would probably just look that up
[03:43:28] freeze: has joined #ruby
[03:43:29] Karunamon|2: has joined #ruby
[03:43:45] xnr_: has joined #ruby
[03:43:51] RedDwarf: has joined #ruby
[03:43:52] woodruff-: has joined #ruby
[03:43:56] Olipro_: has joined #ruby
[03:44:01] maloik: has joined #ruby
[03:44:06] M-prosodyContext: has joined #ruby
[03:44:13] martinbjeldbak: has joined #ruby
[03:44:24] ekleog_: has joined #ruby
[03:44:26] zrl_: has joined #ruby
[03:44:55] matti: has joined #ruby
[03:44:55] matti: has joined #ruby
[03:45:01] rcs: has joined #ruby
[03:45:09] DarkBushido_: has joined #ruby
[03:45:17] segy: has joined #ruby
[03:45:29] nullwarp_: has joined #ruby
[03:45:31] jsrn: has joined #ruby
[03:45:34] svkurowski: has joined #ruby
[03:45:40] jinie_: has joined #ruby
[03:45:43] teotwaki: has joined #ruby
[03:45:47] RobertBirnie: has joined #ruby
[03:45:47] Affix-Phobos: has joined #ruby
[03:46:10] linc01n: has joined #ruby
[03:46:10] cschneid: has joined #ruby
[03:46:14] noodle: has joined #ruby
[03:46:36] ellisTAA: omg it doesn???t unzip the files ><
[03:46:45] gambl0re: has joined #ruby
[03:47:20] armyriad: has joined #ruby
[03:47:36] Nilium: has joined #ruby
[03:47:51] gregf: has joined #ruby
[03:48:18] zfez_: has joined #ruby
[03:48:44] Ox0dea: What doesn't?
[03:48:48] splargle: has joined #ruby
[03:48:59] michael_mbp: has joined #ruby
[03:49:05] granatense: has joined #ruby
[03:49:10] M-Technic: has joined #ruby
[03:49:15] edwardly: has joined #ruby
[03:49:15] edwardly: has joined #ruby
[03:49:36] ellisTAA: Ox0dea: when i run the program it isn???t uncompressing the files
[03:49:38] tatertot: has joined #ruby
[03:50:12] NET||abuse: has joined #ruby
[03:50:16] ascarter_: has joined #ruby
[03:50:22] postmodern: has joined #ruby
[03:50:26] err_ok: has joined #ruby
[03:50:37] MyMind: has joined #ruby
[03:50:56] bascht: has joined #ruby
[03:51:29] Ox0dea: Which program?
[03:51:35] jessemcgilallen: has joined #ruby
[03:51:42] Rollabunna: has joined #ruby
[03:51:47] arooni: has joined #ruby
[03:51:51] ellisTAA: Ox0dea: find_all_files??? https://github.com/ellismarte/neatfreak/blob/master/neatfreak.rb#L25
[03:52:20] mozzarella: has joined #ruby
[03:52:27] segmond: has joined #ruby
[03:52:30] ellisTAA: wait a second, i never called .inflate ...
[03:52:31] m4rCsi_: has joined #ruby
[03:52:43] alakra: has joined #ruby
[03:52:50] Encapsulation: has joined #ruby
[03:52:53] oddalot: has joined #ruby
[03:52:57] Davey: has joined #ruby
[03:52:57] Davey: has joined #ruby
[03:53:14] whippythellama: has joined #ruby
[03:53:27] Ox0dea: You're also using an absolute path in `Dir.[]`.
[03:53:41] BTRE: has joined #ruby
[03:53:52] infernix: has joined #ruby
[03:54:07] hplar: has joined #ruby
[03:54:27] cbetta: has joined #ruby
[03:54:29] AustinMatherne: has joined #ruby
[03:54:32] mostlybadfly: has joined #ruby
[03:54:41] zfez_: has joined #ruby
[03:54:41] ajaiswal: has joined #ruby
[03:54:50] diesel: has joined #ruby
[03:54:53] freerobby: has joined #ruby
[03:54:57] plumbus: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[03:55:03] speakingcode: has joined #ruby
[03:55:12] s00pcan: has joined #ruby
[03:55:13] avelldiroll: has joined #ruby
[03:55:25] ZYPP: has joined #ruby
[03:55:38] funnel: has joined #ruby
[03:56:01] Kabaka: has joined #ruby
[03:56:01] v0n: has joined #ruby
[03:56:01] Meeh_: has joined #ruby
[03:56:01] TheRealPygo: has joined #ruby
[03:56:01] saltsa: has joined #ruby
[03:56:01] chihhsin_: has joined #ruby
[03:56:01] Axy: has joined #ruby
[03:56:01] ItSAN____: has joined #ruby
[03:56:01] zomgbie: has joined #ruby
[03:56:01] maikowblue: has joined #ruby
[03:56:01] kadoppe: has joined #ruby
[03:56:02] dtordable: has joined #ruby
[03:56:02] agit0: has joined #ruby
[03:56:02] zenguy_pc: has joined #ruby
[03:56:02] tercenya: has joined #ruby
[03:56:02] hackeron: has joined #ruby
[03:56:02] arcanez: has joined #ruby
[03:56:02] chouhoulis: has joined #ruby
[03:56:02] gizmore: has joined #ruby
[03:56:02] unsymbol: has joined #ruby
[03:56:02] olblak: has joined #ruby
[03:56:02] ankhers: has joined #ruby
[03:56:02] ByronJohnson: has joined #ruby
[03:56:02] j416: has joined #ruby
[03:56:02] Zarthus: has joined #ruby
[03:56:02] Prira: has joined #ruby
[03:56:02] tubbo: has joined #ruby
[03:56:02] miah: has joined #ruby
[03:56:02] hfp_work: has joined #ruby
[03:56:02] monsieurp: has joined #ruby
[03:56:02] pl1ght: has joined #ruby
[03:56:03] setient: has joined #ruby
[03:56:03] queequeg1: has joined #ruby
[03:56:03] Rutix: has joined #ruby
[03:56:03] crankharder: has joined #ruby
[03:56:03] niko: has joined #ruby
[03:56:03] nug: has joined #ruby
[03:56:03] JoshL: has joined #ruby
[03:56:03] aep: has joined #ruby
[03:56:03] levifig: has joined #ruby
[03:56:03] javawizard: has joined #ruby
[03:56:03] scpike_: has joined #ruby
[03:56:03] ahuman: has joined #ruby
[03:56:03] wnd: has joined #ruby
[03:56:03] nickjj: has joined #ruby
[03:56:03] j2k_: has joined #ruby
[03:56:03] galeido: has joined #ruby
[03:56:03] cajone: has joined #ruby
[03:56:03] bluntman: has joined #ruby
[03:56:03] Raboo: has joined #ruby
[03:56:03] mighty_gorilla: has joined #ruby
[03:56:03] parus: has joined #ruby
[03:56:03] ejnahc_: has joined #ruby
[03:56:03] nibbo: has joined #ruby
[03:56:04] Guest34193: has joined #ruby
[03:56:04] nwhirschfeld: has joined #ruby
[03:56:04] dreinull75: has joined #ruby
[03:56:04] sevin: has joined #ruby
[03:56:05] unclouded: has joined #ruby
[03:56:05] cibs: has joined #ruby
[03:56:05] Aria: has joined #ruby
[03:56:05] eshy: has joined #ruby
[03:56:05] Voxxit: has joined #ruby
[03:56:05] nfsnobody: has joined #ruby
[03:56:05] fulgore_: has joined #ruby
[03:56:06] timmow: has joined #ruby
[03:56:06] closer: has joined #ruby
[03:56:16] isene: has joined #ruby
[03:56:16] suffice: has joined #ruby
[03:56:16] pabs: has joined #ruby
[03:56:16] flori_: has joined #ruby
[03:56:16] pwned_: has joined #ruby
[03:56:16] sugardrunk: has joined #ruby
[03:56:16] Gnubie_: has joined #ruby
[03:56:16] nofxx1: has joined #ruby
[03:56:16] wldcordeiro: has joined #ruby
[03:56:16] skweek: has joined #ruby
[03:56:16] IrishGringo: has joined #ruby
[03:56:16] Sp4rKy: has joined #ruby
[03:56:16] kobain: has joined #ruby
[03:56:16] dkphenom: has joined #ruby
[03:56:16] sunya7a: has joined #ruby
[03:56:16] Mon_Ouie: has joined #ruby
[03:56:16] atomical: has joined #ruby
[03:56:16] psye: has joined #ruby
[03:56:16] axl_: has joined #ruby
[03:56:16] braincrash: has joined #ruby
[03:56:16] euoia_: has joined #ruby
[03:56:16] beatboxchad: has joined #ruby
[03:56:16] Kruppe: has joined #ruby
[03:56:17] cgfbee: has joined #ruby
[03:56:17] bmn: has joined #ruby
[03:56:17] Luming: has joined #ruby
[03:56:17] sross_work|2: has joined #ruby
[03:56:17] ereslibre: has joined #ruby
[03:56:17] Morrolan: has joined #ruby
[03:56:17] deavid: has joined #ruby
[03:56:17] kstuart: has joined #ruby
[03:56:17] sekrit: has joined #ruby
[03:56:17] Guest79906: has joined #ruby
[03:56:17] RTG`: has joined #ruby
[03:56:17] bakedb_: has joined #ruby
[03:56:17] AnoHito_: has joined #ruby
[03:56:17] passcod: has joined #ruby
[03:56:17] csmb_: has joined #ruby
[03:56:17] genpaku_: has joined #ruby
[03:56:17] \13k_: has joined #ruby
[03:56:17] frog0909: has joined #ruby
[03:56:17] ghormoon: has joined #ruby
[03:56:17] SebastianThorn: has joined #ruby
[03:56:17] eboaz: has joined #ruby
[03:56:17] Eising: has joined #ruby
[03:56:17] Coraline: has joined #ruby
[03:56:17] tuor: has joined #ruby
[03:56:17] lianj: has joined #ruby
[03:56:17] nlsun: has joined #ruby
[03:56:18] bewie: has joined #ruby
[03:56:18] izzol: has joined #ruby
[03:56:18] NightMonkey: has joined #ruby
[03:56:18] gavit: has joined #ruby
[03:56:18] Sigma00: has joined #ruby
[03:56:18] sonne_: has joined #ruby
[03:56:18] irk: has joined #ruby
[03:56:18] imajes: has joined #ruby
[03:56:18] headius: has joined #ruby
[03:56:18] Urocyon: has joined #ruby
[03:56:18] bhaak: has joined #ruby
[03:56:18] jayne: has joined #ruby
[03:56:18] brainslug: has joined #ruby
[03:56:18] xsdg: has joined #ruby
[03:56:19] oz: has joined #ruby
[03:56:19] pwnd_nsfw: has joined #ruby
[03:56:49] Bugboy1028: has joined #ruby
[03:56:53] dikaio: has joined #ruby
[03:57:02] Kabaka: has joined #ruby
[03:57:23] braincrash: has joined #ruby
[03:57:26] L1nuX: has joined #ruby
[03:57:38] Qantourisc: has joined #ruby
[03:57:43] bafbomb: has joined #ruby
[03:58:01] Ox0dea: EllisTAA: `Zlib.{de,in}flate` are for when you have standalone strings; you don't have those, you have files. Use the right interface.
[03:58:03] VeryBewitching: has joined #ruby
[03:58:12] Affix: has joined #ruby
[03:58:15] CustosLimen: has joined #ruby
[03:58:20] tekk: has joined #ruby
[03:58:27] samuelkadolph: has joined #ruby
[03:58:33] varesa_: has joined #ruby
[03:58:51] thesheff17: has joined #ruby
[03:59:00] joaomdmoura_: has joined #ruby
[03:59:11] ellisTAA: yeah so i was thinking i???d pass in the string like this https://github.com/ellismarte/neatfreak/blob/master/neatfreak.rb#L31
[03:59:31] wlanboy: has joined #ruby
[03:59:36] ellisTAA: that didn???t work
[04:00:07] skullcrasher: has joined #ruby
[04:00:08] pawnbox: has joined #ruby
[04:00:08] cliffstah: has joined #ruby
[04:00:10] theRoUS: has joined #ruby
[04:00:34] Tref: has joined #ruby
[04:00:48] ellisTAA: bah dinner time
[04:01:23] linduxed: has joined #ruby
[04:01:40] n1ftyn8_: has joined #ruby
[04:02:14] TheMoonMaster: has joined #ruby
[04:03:42] bove: has joined #ruby
[04:04:33] lokulin: has joined #ruby
[04:05:12] htmldrum: has joined #ruby
[04:05:31] iamvery: has joined #ruby
[04:05:44] majjoha: has joined #ruby
[04:05:49] EminenceHC: has joined #ruby
[04:05:55] dlitvak: has joined #ruby
[04:05:59] evandrojr: has joined #ruby
[04:05:59] techietrash: has joined #ruby
[04:06:00] Rovanion_: has joined #ruby
[04:06:08] AlexRussia: has joined #ruby
[04:06:12] kiez0rd: has joined #ruby
[04:06:23] mbeasley: has joined #ruby
[04:06:53] darkf: has joined #ruby
[04:07:08] maloik: has joined #ruby
[04:07:36] AndChat479316: has joined #ruby
[04:09:19] minimalism: has joined #ruby
[04:09:24] cgfbee: has joined #ruby
[04:09:52] techietrash: has joined #ruby
[04:09:52] techietrash: has joined #ruby
[04:10:48] braincrash: has joined #ruby
[04:11:01] xxneolithicxx: has joined #ruby
[04:11:12] solenoids: has joined #ruby
[04:11:26] zfez_1: has joined #ruby
[04:11:33] zfez_1: has left #ruby: ()
[04:18:05] zfez_2: has joined #ruby
[04:19:33] zfez_2: has left #ruby: ()
[04:22:04] finisherr: has left #ruby: ()
[04:22:24] zfez_: has left #ruby: ()
[04:23:06] aeontech: has joined #ruby
[04:23:28] zfez: has joined #ruby
[04:24:28] zfez: has left #ruby: ()
[04:24:46] alem0lars: has joined #ruby
[04:27:03] baweaver: has joined #ruby
[04:29:50] iateadonut: has joined #ruby
[04:31:27] tjbiddle: has joined #ruby
[04:33:15] s2013: has joined #ruby
[04:34:11] build22: has joined #ruby
[04:35:39] Tempesta: has joined #ruby
[04:38:16] snapcase: has joined #ruby
[04:40:10] zfez_: has joined #ruby
[04:40:12] bkxd: has joined #ruby
[04:41:24] Tref: has joined #ruby
[04:41:25] malconis: has joined #ruby
[04:44:32] ozzloy: has joined #ruby
[04:47:14] kp666: has joined #ruby
[04:49:19] Rodya_: has joined #ruby
[04:54:08] varunwachaspati_: has joined #ruby
[04:55:24] gix: has joined #ruby
[04:56:13] gregf: has joined #ruby
[04:56:13] willardg: has joined #ruby
[04:56:46] stannard: has joined #ruby
[04:57:06] null__: has joined #ruby
[04:57:06] null__: has joined #ruby
[04:58:10] Outlastsheep: has joined #ruby
[04:58:38] cookiez: has joined #ruby
[04:59:39] asas: has joined #ruby
[05:05:05] JazzyVariable227: has joined #ruby
[05:05:50] ta: has joined #ruby
[05:08:28] willardg: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[05:09:28] moei: has joined #ruby
[05:12:16] rakm: has joined #ruby
[05:15:25] tmtwd: has joined #ruby
[05:16:23] tulak: has joined #ruby
[05:16:36] tjbiddle: has joined #ruby
[05:17:49] yfeldblum: has joined #ruby
[05:22:27] trosborn: has joined #ruby
[05:22:33] tjbiddle: has joined #ruby
[05:25:15] tjbiddle_: has joined #ruby
[05:27:06] Outlastsheep: has joined #ruby
[05:28:10] baweaver: has joined #ruby
[05:33:41] RobertBirnie: has joined #ruby
[05:34:59] build22: has joined #ruby
[05:42:09] trosborn: has joined #ruby
[05:51:27] yoongkang: has joined #ruby
[05:52:51] kriskropd: has joined #ruby
[06:00:35] s2013: has joined #ruby
[06:01:08] lxsameer: has joined #ruby
[06:01:08] lxsameer: has joined #ruby
[06:03:29] pawnbox: has joined #ruby
[06:05:51] houhoulis: has joined #ruby
[06:07:27] ta: has joined #ruby
[06:11:32] JazzyVariable227: has joined #ruby
[06:14:43] EminenceHC: has joined #ruby
[06:14:57] ta: has joined #ruby
[06:19:24] RANG3R: has joined #ruby
[06:19:48] RANG3R: has left #ruby: ()
[06:26:47] yoongkang: has joined #ruby
[06:28:52] baweaver: has joined #ruby
[06:29:11] jailbot: has joined #ruby
[06:31:30] pawnbox: has joined #ruby
[06:34:18] pepperbreath: has joined #ruby
[06:35:42] build22: has joined #ruby
[06:36:18] timonv: has joined #ruby
[06:38:57] lessless: has joined #ruby
[06:39:17] antoniobeyah: has joined #ruby
[06:39:33] dionysus69: has joined #ruby
[06:40:35] tenderlo_: has joined #ruby
[06:44:05] devbug_: has joined #ruby
[06:46:02] rippa: has joined #ruby
[06:46:35] howdoicomputer: has joined #ruby
[06:48:20] baweaver: has joined #ruby
[06:48:45] dlitvak: has joined #ruby
[06:50:00] ellisTAA: has joined #ruby
[06:50:05] dionysus69: has joined #ruby
[06:52:33] arup_r: has joined #ruby
[07:07:03] ellisTAA: has joined #ruby
[07:09:44] nertzy: has joined #ruby
[07:10:44] yardenbar: has joined #ruby
[07:12:06] mooe: has joined #ruby
[07:17:14] tulak: has joined #ruby
[07:17:46] chihhsin: has joined #ruby
[07:19:11] neanderslob: has joined #ruby
[07:21:05] Paradox: has joined #ruby
[07:23:20] Scripore: has joined #ruby
[07:25:58] JazzyVariable227: has joined #ruby
[07:28:21] A124: has joined #ruby
[07:36:20] The_Phoenix: has joined #ruby
[07:36:30] build22: has joined #ruby
[07:38:37] benhuda: has joined #ruby
[07:39:43] nofxx: has joined #ruby
[07:41:04] johnny56: has joined #ruby
[07:43:02] dlitvak: has joined #ruby
[07:50:40] diegoviola: has joined #ruby
[07:51:37] makenoise: has joined #ruby
[07:51:38] arup_r: has joined #ruby
[07:56:07] trosborn: has joined #ruby
[07:59:00] tubuliferous_: has joined #ruby
[08:01:02] driftig: has joined #ruby
[08:02:30] nso95: has joined #ruby
[08:04:16] Gustavo: has joined #ruby
[08:09:52] dionysus69: has joined #ruby
[08:12:38] driftig: has joined #ruby
[08:14:24] Pupp3tm4st3r: has joined #ruby
[08:14:27] myztic: has joined #ruby
[08:21:10] Mnemonic: has joined #ruby
[08:23:29] trosborn: has joined #ruby
[08:27:05] Pupp3tm4st3r: has joined #ruby
[08:30:30] User458764: has joined #ruby
[08:30:41] SCHAAP137: has joined #ruby
[08:32:58] Spami: has joined #ruby
[08:33:18] diegoviola: has joined #ruby
[08:35:58] tildes: has joined #ruby
[08:36:22] Jackneill: has joined #ruby
[08:37:13] build22_: has joined #ruby
[08:39:30] Sam0163141155: has joined #ruby
[08:40:23] nofxx: has joined #ruby
[08:40:58] Xeago: has joined #ruby
[08:42:11] lokulin: has joined #ruby
[08:43:40] bkxd: has joined #ruby
[08:44:58] Sam0163141155: This is from ruby monk's section on inheritance. They're trying to establish how many instance methods float has that aren't inherited. I don't understand why they also subtract Object's instance methods. Aren't all of Object's methods inherited by Numeric? I see the same result in the REPL when I leave out the Object line. Is this a version thing, or am I missing something? http://codepad.org/v5ro1Lsn
[08:47:07] moeabdol: has joined #ruby
[08:49:19] Pupp3tm4st3r: has joined #ruby
[08:54:33] apeiros: Sam0163141155: yeah, that's rather pointless
[08:56:06] trosborn: has joined #ruby
[08:56:11] apeiros: and I wonder what codepad is smoking that it says "undefined method `count' for #<Array:0xf7580564> (NoMethodError)"
[08:56:20] apeiros: afair that's been around for quite a while
[08:56:36] apeiros: (even though it's the wrong method if you don't use it with an arg - use length/size instead)
[08:59:22] Sam0163141155: apeiros: tbh, I rarely look at what codepad spits out as output. I use it as a glorified clipboard. But I see what you're saying, count should take a condition as a filter of sorts? Anyway, the example had me scratching my head, as it's in a section on inheritance. Just wanted to be sure I hadn't missed something.
[09:02:23] apeiros: Sam0163141155: yes, count takes either a block as predicate or a value to count
[09:04:05] Sam0163141155: apeiros: Thanks!
[09:05:58] tildes: has joined #ruby
[09:08:21] apeiros: Sam0163141155: btw., the correct way doesn't use -, because even Klass.instance_methods - Klass.superclass.instance_methods can leave some inherited methods (namely ones inherited through modules included directly into Klass)
[09:08:31] apeiros: the correct way would be Klass.instance_methods(false)
[09:09:22] Sam0163141155: apeiros: btw: http://codepad.org/oRyeL7lg
[09:09:56] Sam0163141155: hmm, interesting
[09:10:50] Sam0163141155: apeiros: I didn't realize it took an argument. Thanks. I should have read the documentation
[09:11:09] tulak: has joined #ruby
[09:12:21] Ox0dea: has joined #ruby
[09:12:34] karapetyan: has joined #ruby
[09:15:32] myztic: has joined #ruby
[09:23:43] pontiki: lovely time of the morning
[09:23:48] pontiki: the quiet is amazing
[09:24:38] Ox0dea: The world is quiet here.
[09:24:56] driftig: Everyone is writing code, sleeping, or having sex.
[09:25:44] shevy: I am coding
[09:25:50] shevy: actually almost finished a rewrite!
[09:25:54] driftig: shevy: Livecoding.tv it!
[09:26:04] pontiki: i will probably be writing code or adding more stuff to the art blog
[09:27:41] JazzyVariable227: has joined #ruby
[09:27:50] Ox0dea: I'd watch shevy code.
[09:27:52] apeiros: Sam0163141155: use eval.in. no zombie ruby versions.
[09:28:09] apeiros: moin pontiki
[09:28:20] driftig: I'm mildly curious about the Ruby 3.x development.
[09:28:33] cwong_on_irc: has joined #ruby
[09:29:00] cwong_on_irc: has joined #ruby
[09:29:07] driftig: shevy: There you have it. www.livecoding.tv, we'd all love to see you write programs.
[09:29:09] pontiki: what will be breaking
[09:29:17] Ox0dea: Sasada-san (perhaps inadvertently) let slip that 2.4 is the next milestone.
[09:29:20] driftig: pontiki: Rails, hopefully.
[09:29:43] pontiki: without rails, ruby will drift off into even more obsurity
[09:30:07] driftig: pontiki: There's always metasploit. :)
[09:31:37] Ox0dea: pontiki: Ruby is obscure...?
[09:33:22] pontiki: sitting in the midst of it, it won't seem so, but from a larger view of industry, yes
[09:33:40] skade: has joined #ruby
[09:33:49] shevy: driftig hah nah I can't concentrate with distractions like that
[09:37:55] build22_: has joined #ruby
[09:39:57] joonty: has joined #ruby
[09:42:38] nofxx: has joined #ruby
[09:47:55] last_staff: has joined #ruby
[09:48:08] stannard: has joined #ruby
[09:52:04] Tref: has joined #ruby
[09:54:48] k3asd`: has joined #ruby
[09:55:32] zenguy_pc: has joined #ruby
[09:57:49] skcin7: has joined #ruby
[09:57:54] marr: has joined #ruby
[09:58:43] dionysus69: has joined #ruby
[09:59:41] Guest77804: has joined #ruby
[10:00:40] ziyadb: has joined #ruby
[10:02:42] ss_much: has joined #ruby
[10:05:46] User458764: has joined #ruby
[10:06:58] Tref: has joined #ruby
[10:12:51] Ox0dea: shevy: http://i.imgur.com/Y6FnFVn.png
[10:13:14] Ox0dea: That's a solid example of the kind of wackiness I'm talking about when I speak of "Japanese Ruby".
[10:14:05] Ox0dea: There are five "abnormalities" on that second line.
[10:17:06] naftilos76: has joined #ruby
[10:17:25] user: has joined #ruby
[10:18:51] yfeldblum: has joined #ruby
[10:24:15] shevy: I don't like that it is indented to the rightwards
[10:24:56] Ox0dea: shevy: It was centered; I clipped it because reasons. Please pay attention to the code.
[10:25:20] shevy: but the formatting! and the BRIGHT PINK COLOURS!!!
[10:25:23] yoongkang: has joined #ruby
[10:25:32] shevy: I did not know that you can do p:hi
[10:25:32] Ox0dea: Matsuda-san likes angry fruit salads.
[10:25:35] ruboto: shevy # => :hi ...check link for more (https://eval.in/473814)
[10:25:45] ruboto: shevy # => "hi" ...check link for more (https://eval.in/473815)
[10:25:47] shevy: that is actually cool
[10:25:53] shevy: if I ever write it in my own code
[10:25:55] shevy: someone please shoot me
[10:26:03] stamina: has joined #ruby
[10:26:05] Ox0dea: >> nil::TRUE
[10:26:06] ruboto: Ox0dea # => true (https://eval.in/473816)
[10:26:18] shevy: what is this
[10:26:31] shevy: >> nil::FALSE
[10:26:31] ruboto: shevy # => false (https://eval.in/473817)
[10:26:45] shevy: >> Object::TRUE
[10:26:46] ruboto: shevy # => true (https://eval.in/473818)
[10:26:51] avdi: has joined #ruby
[10:27:53] Ox0dea: `nil::FOO == ::FOO` is the bug on display here.
[10:29:29] JazzyVariable227: has joined #ruby
[10:29:39] malcolmva: has joined #ruby
[10:32:25] Tref: has joined #ruby
[10:32:52] Jammyham: has joined #ruby
[10:36:53] Xeago: has joined #ruby
[10:37:23] Gustavo: has joined #ruby
[10:37:56] ponga: has joined #ruby
[10:38:48] build22_: has joined #ruby
[10:40:18] aryaching: has joined #ruby
[10:40:30] slick: has joined #ruby
[10:41:28] nolic: has joined #ruby
[10:41:41] Oejet: has joined #ruby
[10:43:01] Oejet: has left #ruby: ()
[10:44:43] karapetyan: has joined #ruby
[10:46:12] joonty: has joined #ruby
[10:47:22] alimiracle: has joined #ruby
[10:47:35] alimiracle: hi ruby users
[10:47:41] alimiracle: I nede remove digits from int value
[10:48:12] dionysus69: has joined #ruby
[10:48:14] Ox0dea: alimiracle: Please clarify.
[10:48:16] TTilus: alimiracle: could you give some background and an example
[10:48:50] alimiracle: 12345 I rm 3 =1245
[10:49:02] Ox0dea: alimiracle: You always want to remove the middle digit, then?
[10:49:02] build22_: has joined #ruby
[10:49:21] TTilus: alimiracle: ok, now you _really_ need to give some background
[10:49:38] Ox0dea: We've already hit the language barrier. :<
[10:49:52] TTilus: alimiracle: what's the problem you are solving by removing middle digit?
[10:51:37] apeiros: >> x = 12345; y = x.to_s; y[2,1] = ''; y.to_i
[10:51:38] ruboto: apeiros # => 1245 (https://eval.in/473824)
[10:51:51] apeiros: alimiracle: ^, if that's not what you need, clarify your question.
[10:51:57] nolic: has joined #ruby
[10:52:00] Ox0dea: >> n = 12345; n / 1000 * 100 + n % 100
[10:52:01] ruboto: Ox0dea # => 1245 (https://eval.in/473825)
[10:52:10] Ox0dea: Yay, math!
[10:53:03] TTilus: i've got that "alimiracle is doing it wrong" tingle in my wrists...
[10:53:14] dlitvak: has joined #ruby
[10:53:15] Ox0dea: It's probably for some kata-like?
[10:53:33] TTilus: dunno, my chrystall ball is hazy today
[10:54:29] apeiros: TTilus: same tingle. but I stopped bothering for many cases.
[10:55:37] kies: has joined #ruby
[10:56:17] yoongkang: has joined #ruby
[10:56:45] alimiracle: Can you explain how I do not want code
[10:56:58] Ox0dea: alimiracle: Wrong channel.
[10:57:11] unshadow: has joined #ruby
[10:58:13] unshadow: When you create a new socket, non_blocking or blocking. ASAIK this is only efective to the Ruby socket and not the kernel\OS socket which behaves differently as dictated by the OS itself right ?
[10:58:26] unshadow: *ASAIK = AFAIK
[10:59:43] aryaching: has joined #ruby
[11:00:18] trosborn: has joined #ruby
[11:05:39] yardenbar: Hi all, I'm trying to install ruby 2.2.3 on SL6.1(carbon), getting permission denied when the install process tried to create minitest directory: "/usr/local/rvm/src/ruby-2.2.3/lib/fileutils.rb:252:in `mkdir': Permission denied @ dir_s_mkdir - /usr/local/rvm/gems/ruby-2.0.0-p645/gems/minitest-5.4.3 (Errno::EACCES)", any ideas?
[11:06:45] Ox0dea: yardenbar: It seems RVM wants you to be root.
[11:07:59] yardenbar: Ox0dea, of course i understand that, but is it a regular thing that rvm installs ruby as root?
[11:08:21] Ox0dea: yardenbar: I'm afraid I have no idea.
[11:08:31] Ox0dea: Are you committed to RVM?
[11:08:36] yardenbar: Ok, thank you :)
[11:08:50] Ox0dea: Godspeed.
[11:09:46] dlitvak: has joined #ruby
[11:11:45] episage: has joined #ruby
[11:11:45] AndChat|479316: has joined #ruby
[11:12:06] akem: has joined #ruby
[11:14:19] nofxx: has joined #ruby
[11:15:36] Tref: has joined #ruby
[11:17:48] symm-: has joined #ruby
[11:17:48] Helheim: has joined #ruby
[11:17:48] bhorn1: has joined #ruby
[11:17:48] jatb: has joined #ruby
[11:17:48] sshuff|gone: has joined #ruby
[11:17:48] hays: has joined #ruby
[11:18:43] benhuda: has joined #ruby
[11:18:59] pestle: has joined #ruby
[11:19:11] bodie_: has joined #ruby
[11:19:44] Scripore: has joined #ruby
[11:21:06] nso95__: has joined #ruby
[11:27:13] skade: has joined #ruby
[11:29:01] lipoqil: has joined #ruby
[11:30:59] diegoviola: has joined #ruby
[11:31:47] trosborn: has joined #ruby
[11:32:45] myztic: has joined #ruby
[11:33:38] ruid: has joined #ruby
[11:36:27] User458764: has joined #ruby
[11:39:55] nso95__: has joined #ruby
[11:43:27] dlitvak: has joined #ruby
[11:45:28] tater: has joined #ruby
[11:46:09] tater: has joined #ruby
[11:46:10] tater: has joined #ruby
[11:47:54] tater: has joined #ruby
[11:49:17] cschneid: has joined #ruby
[11:49:36] tater: has joined #ruby
[11:50:58] tater: has joined #ruby
[11:51:22] linc01n: has joined #ruby
[11:53:03] linc01n: has joined #ruby
[11:54:31] joonty: has joined #ruby
[11:55:36] troulouliou_dev: has joined #ruby
[12:00:22] nso95-: has joined #ruby
[12:00:24] dlitvak: has joined #ruby
[12:01:11] ruid: has joined #ruby
[12:04:17] CloCkWeRX: has joined #ruby
[12:04:38] AndChat479316: has joined #ruby
[12:06:42] zotherstupidguy: has joined #ruby
[12:11:42] Ruby_Knight: has joined #ruby
[12:12:07] Xaitec: has joined #ruby
[12:16:23] Gustavo: has joined #ruby
[12:16:34] build22: has joined #ruby
[12:17:46] GGMethos: has joined #ruby
[12:17:51] Ox0dea: has joined #ruby
[12:21:46] Bellthoven: has joined #ruby
[12:22:19] bmalum: has joined #ruby
[12:22:55] SenpaiSilver: has joined #ruby
[12:23:36] Affix: has joined #ruby
[12:31:34] abra0: has joined #ruby
[12:31:38] moeabdol: has joined #ruby
[12:31:44] AndChat479316: has joined #ruby
[12:31:51] rgrmatt: has joined #ruby
[12:34:23] gremax: has joined #ruby
[12:37:20] Xaitec: has joined #ruby
[12:39:58] allcentury: has joined #ruby
[12:40:01] lipoqil: On satturday I am going to Rome for almost two weeks. Is there some dev-interesting by that time in Rome or around?
[12:40:19] lipoqil: * there something
[12:40:29] maloik: has joined #ruby
[12:40:52] Trynemjoel: has joined #ruby
[12:41:02] madhatter: has joined #ruby
[12:44:54] tknz: has joined #ruby
[12:46:58] NeverDie: has joined #ruby
[12:47:59] jackcom: has joined #ruby
[12:48:07] jackcom: i want to learn ruby.
[12:48:16] jackcom: but i don???t know what tutorial is good?
[12:49:39] driftig: jackcom: Why do you want to learn Ruby?
[12:49:53] jackcom: because i like red
[12:50:38] alphaatom: has joined #ruby
[12:51:05] driftig: jackcom: Do you have an intelligent reason for wanting to pursue something that has taken hundreds of thousands of people years of dedicated work to create?
[12:51:38] jackcom: http://www.overstock.com/Jewelry-Watches/Jewelry/13/dept.html
[12:51:57] driftig: jackcom: Because, there are various documents that are geared at varying audiences. Ultimately, you want something elementary, but which leads towards a focus in your general area of interest.
[12:52:25] jackcom: what tutorial is good?
[12:52:36] driftig: jackcom: The Well Grounded Ruby is generic enough a document to get your feet wet. After that, you really do have to decide on how you pursue your understanding.
[12:53:18] jackcom: give me tutorial
[12:53:20] beast: has joined #ruby
[12:57:33] driftig: See above.
[13:00:59] jackcom: what tutorial is good? i don???t know
[13:01:11] Mia: has joined #ruby
[13:01:11] Mia: has joined #ruby
[13:02:43] toretore: has joined #ruby
[13:02:51] dorei: has joined #ruby
[13:04:21] Averna: has joined #ruby
[13:04:30] lubarch: has joined #ruby
[13:05:31] atomical: has joined #ruby
[13:05:33] sdothum: has joined #ruby
[13:05:58] monod: has joined #ruby
[13:06:48] jackcom: No one is here except driftig
[13:06:58] solocshaw: has joined #ruby
[13:07:42] wildlander: has joined #ruby
[13:10:15] Xeago: has joined #ruby
[13:10:22] agit0: has joined #ruby
[13:13:16] radgeRayden: has joined #ruby
[13:14:08] millerti: has joined #ruby
[13:14:41] Erik_Underline: has joined #ruby
[13:14:43] freerobby: has joined #ruby
[13:14:47] tildes: has joined #ruby
[13:15:52] nofxx: has joined #ruby
[13:16:17] JazzyVariable227: has joined #ruby
[13:16:50] Averna: has joined #ruby
[13:20:01] jackcom: what is good tutorial?
[13:20:54] Xeago: has joined #ruby
[13:21:10] Xeago: has joined #ruby
[13:21:21] Erik_Underline: I know this is per se a Ruby-unrelated question, but I really really need help with this and I can't find any solution that works for me on other forums, so I'll try my luck here. I recently got Ubuntu Linux distro and installed it on a SSD, and everything went fine. However, I'm having two big problems; first the headphone jack doesn't work, like it does while I run Windows on my older HDD. It is registered by the computer, as
[13:21:26] Erik_Underline: refuses to play any sound
[13:22:13] Erik_Underline: My headphones are perfectly functional on other devices
[13:22:52] Papierkorb: Erik_Underline: #ubuntu
[13:23:29] rgrmatt: has joined #ruby
[13:24:05] kirun: has joined #ruby
[13:24:11] Erik_Underline: Oh, didn't know they existed, okay, I won't disturb you ;)
[13:26:07] jackcom: who can introduce me good tutorial?
[13:27:03] dionysus69: has joined #ruby
[13:27:37] pestle: has joined #ruby
[13:28:20] rgrmatt: has joined #ruby
[13:29:04] dkphenom: has joined #ruby
[13:32:21] baweaver: has joined #ruby
[13:35:13] bmalum: has joined #ruby
[13:36:21] rgrmatt: has joined #ruby
[13:41:14] Pupp3tm4st3r: has joined #ruby
[13:43:12] Gustavo: has joined #ruby
[13:43:17] leat: has joined #ruby
[13:44:23] Erik_Underline: Jackcom, there's a great tutorial for beginners on Codecademy
[13:44:56] Erik_Underline: After that you can learn more with RubyMonk, which is a harder experience, but much more educational.
[13:47:11] Ox0dea: jackcom: Just jumping in to save you from Codecademy: https://pine.fm/LearnToProgram/
[13:48:04] jackcom: https://pine.fm/LearnToProgram/ vs ruby monkey, which is better?
[13:48:06] atomical: has joined #ruby
[13:48:29] blackmesa: has joined #ruby
[13:49:06] Ox0dea: PSA: It's a troll. :<
[13:51:10] IrishGringo: has joined #ruby
[13:52:15] adaedra: It was put on starvation.
[13:52:44] CodingWolf: has joined #ruby
[13:53:42] Xiti: has joined #ruby
[13:54:14] User458764: has joined #ruby
[13:54:57] Trynemjoel: has joined #ruby
[13:56:45] Ox0dea: > Dulce et decorum est pro stultitia mori.
[13:58:11] Scripore: has joined #ruby
[13:58:59] CloCkWeRX: has joined #ruby
[14:02:46] synthroid: has joined #ruby
[14:02:56] sondr3: has joined #ruby
[14:05:33] jackcom: ruby method don???t add ???()????
[14:06:02] s2013: has joined #ruby
[14:09:26] _blizzy_: has joined #ruby
[14:09:33] unshadow: (Asking again) When you create a new socket, non_blocking or blocking. AFAIK this is only efective to the Ruby socket and not the kernel\OS socket which behaves differently as dictated by the OS itself right ?
[14:11:06] blackjid: has joined #ruby
[14:11:28] Trynemjoel: has joined #ruby
[14:11:49] unshadow: I got this info from "flush" and IO.write: "Flushes any buffered data within ios to the underlying operating system (note that this is Ruby internal buffering only; the OS may buffer the data as well)."
[14:12:14] solocshaw1: has joined #ruby
[14:13:03] unshadow: So my question is, is there a way to tell the OS (Linux) that I want the underlying socket to also be blocking\non-blocking ?
[14:13:23] RobertBirnie: has joined #ruby
[14:14:08] Cokie990: has joined #ruby
[14:16:13] doddok: has joined #ruby
[14:17:12] Tref: has joined #ruby
[14:18:54] dlitvak: has joined #ruby
[14:19:04] Pumukel: has joined #ruby
[14:22:45] Cokie990: has left #ruby: ()
[14:26:52] khwilo: has joined #ruby
[14:27:53] nertzy: has joined #ruby
[14:31:09] kp666: has joined #ruby
[14:31:43] ibouvousaime: has joined #ruby
[14:31:44] johnzorn: has joined #ruby
[14:32:09] zotherstupidguy: has joined #ruby
[14:34:13] UtkarshRay: has joined #ruby
[14:38:10] freerobby: has joined #ruby
[14:39:25] Gustavo: has joined #ruby
[14:40:27] cdg: has joined #ruby
[14:43:06] skade: has joined #ruby
[14:46:24] Trynemjoel: has joined #ruby
[14:46:25] blackmesa: has joined #ruby
[14:50:43] houhoulis: has joined #ruby
[14:53:17] ibouvousaime: has joined #ruby
[14:54:36] gigetoo: has joined #ruby
[14:55:02] loechel: has joined #ruby
[14:58:44] karapetyan: has joined #ruby
[15:03:26] Mnemonic: has joined #ruby
[15:03:44] TomPeed: has joined #ruby
[15:05:31] futilegames: has joined #ruby
[15:07:35] futilegames: has left #ruby: ()
[15:09:02] khwilo: has left #ruby: ("Leaving")
[15:09:20] Tref: has joined #ruby
[15:09:38] nofxx: has joined #ruby
[15:10:13] futilegames: has joined #ruby
[15:13:28] IrishGringo: has joined #ruby
[15:13:32] yardenbar: Hi all, I'm tying to run ruby app with non-default ruby using 'rvm ruby-2.2.3 do RUBY_SCRIPT.rb' and I get '/usr/local/rvm/rubies/ruby-2.2.3/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- bundler/setup (LoadError)', I've installed the bundler gem (shown by bundle show bundler), any idea?
[15:14:06] bluOxigen: has joined #ruby
[15:14:55] havenwood: yardenbar: Are you a non-root user? What do you get for `which bundler` and `gem which bundler`?
[15:15:42] yardenbar: "gem which bundler" -> /usr/local/rvm/gems/ruby-2.2.3/gems/bundler-1.10.6/lib/bundler.rb
[15:15:55] dionysus69: has joined #ruby
[15:16:02] yardenbar: "which bundler" -> /usr/local/rvm/gems/ruby-2.2.3/bin/bundler
[15:16:10] yardenbar: Yes, non-root user
[15:16:11] greister: has joined #ruby
[15:17:40] _stu_: has joined #ruby
[15:18:32] havenwood: yardenbar: And you're running the command yourself? Not cron or init or anything?
[15:18:46] dreinull75: tomorrow someone will probably tell me that I can't run a crucial app on a linux server any more. I'm in windows hell. Right now there's a laptop plugged into our network but I guess it has to leave. What are the solutions for running a really small sinatra app on windows? It runs fine on JRuby. However, I somehow need to frequently update my git repo.
[15:19:34] yardenbar: Generally I use circus to manage processes on this server
[15:20:00] yardenbar: the process in question runs perfectly on ruby 2.0.0-p645
[15:20:18] yardenbar: which is the rvm-default
[15:21:03] yardenbar: I've installed ruby-2.2.3 (also using rvm) and execute bundle install and the process does not run
[15:21:29] havenwood: yardenbar: Does Bundler work with 2.2.3 if you just run it yourself manually?
[15:21:43] zacts: has joined #ruby
[15:21:43] karapetyan: has joined #ruby
[15:21:55] havenwood: yardenbar: I'm wondering if you don't need to create a wrapper for 2.2.3 since it seems your env is getting dropped.
[15:22:31] yardenbar: I understand, let me try this
[15:22:49] havenwood: yardenbar: RVM ships with the gem-wrappers gem: https://github.com/rvm/gem-wrappers#readme
[15:23:12] havenwood: Some examples in God, Cron, or init.d pages on RVM's site.
[15:23:28] havenwood: https://rvm.io/deployment/cron
[15:25:49] blackmesa: has joined #ruby
[15:26:36] diegoaguilar: has joined #ruby
[15:26:57] moeabdol: has joined #ruby
[15:27:19] chipotle: has joined #ruby
[15:27:27] havenwood: dreinull75: JRuby seems like a nice option. Or MRI does install on Win.
[15:28:13] davedev24: has joined #ruby
[15:28:59] Scripore: has joined #ruby
[15:30:13] chipotle: has joined #ruby
[15:31:52] dreinull75: havenwood does jruby hava some kind of ecosystem that will help me?
[15:32:06] naftilos76: has joined #ruby
[15:32:59] dreinull75: I think I could do a per user install but then would like to be able to remotely tell clients to update. ie run the server on the client.
[15:33:32] havenwood: dreinull75: Ah, so you want to ship Ruby to users?
[15:33:46] havenwood: dreinull75: I think I'm confused.
[15:33:51] dreinull75: havenwood can't say. I want a simple solution
[15:33:51] havenwood: dreinull75: Say more about what you're doing?
[15:34:10] baweaver: has joined #ruby
[15:34:46] dreinull75: I hava a sinatra app that talks to a db through sequel and outputs some html/pdf. I don't hava problem running this script on a client machine.
[15:35:13] dreinull75: right now it's on that linux machine, users going there via local ip.
[15:36:10] m8: has joined #ruby
[15:37:48] cornerma1: has joined #ruby
[15:38:25] zotherstupidguy: has joined #ruby
[15:38:35] antoniobeyah: has joined #ruby
[15:40:45] JazzyVariable227: has joined #ruby
[15:42:34] PlasmaStar: has joined #ruby
[15:49:22] inukshuk: has joined #ruby
[15:51:06] Nahra: has joined #ruby
[15:52:07] htmldrum: has joined #ruby
[15:53:45] havenwood: dreinull75: So you're thinking of making self-contained versions of the app that you can put on more boxes? Want a copy locally wherever it's run?
[15:54:01] codecop: has joined #ruby
[15:54:11] dreinull75: havenwood sounds good to me.
[15:54:54] VladGh: has joined #ruby
[15:57:10] maloik: has joined #ruby
[15:57:10] havenwood: dreinull75: Traveling Ruby might be worth checking out: https://phusion.github.io/traveling-ruby/
[15:57:29] dreinull75: havenwood nice, thank you!
[15:58:33] vnk: has joined #ruby
[15:58:50] vnk: def sum arr
[15:58:50] vnk: # YOUR CODE HERE
[15:58:59] vnk: sum is name of method, but what is that arr?
[15:59:05] adaedra: a parameter
[15:59:19] adaedra: that's the same as sum(arr); parenthesis can be omitted.
[15:59:40] havenwood: vnk: Or you could call it an arrrgument.
[15:59:46] dreinull75: adaedra but not recommended. I find it particularly hard to read
[15:59:57] adaedra: depends on the person.
[15:59:58] dreinull75: *in many cases*
[16:00:05] adaedra: I say 'can', not 'must' ;)
[16:00:06] havenwood: Seattle style! ;)
[16:00:46] adaedra: (I would write it with parenthesis myself)
[16:01:02] iateadonut: has joined #ruby
[16:01:04] adaedra: also, badum tss for havenwood.
[16:01:14] dealpete: has joined #ruby
[16:02:21] vnk: I've made array called niz = [1,2,3] then I tried to call method by this niz.sum
[16:02:22] vnk: here is method
[16:02:23] vnk: def sum arr
[16:02:23] vnk: arr.each {|x| ukupno += x puts x}
[16:02:27] vnk: why it doesnt work?
[16:02:39] atmosx: has joined #ruby
[16:03:27] havenwood: >> class Array; def sum; 42 end end; [].sum
[16:03:28] ruboto: havenwood # => 42 (https://eval.in/473897)
[16:06:03] havenwood: vnk: You can define an Array#sum or even a Kernel#sum but if you define a toplevel #sum it'll not be callable from other Objects.
[16:07:20] vnk: havenwood: wait, how I can call that method then that I made?
[16:07:40] havenwood: vnk: sum([1, 2, 3])
[16:07:52] User458764: has joined #ruby
[16:08:36] havenwood: >> class Array; def map_double; self.map { |n| n * 2 } end end; [1, 3].map_double
[16:08:37] ruboto: havenwood # => [2, 6] (https://eval.in/473898)
[16:09:23] havenwood: vnk: One should be cautious though re-opening core Classes like that ^ since your global changes can get confusing quickly. :)
[16:09:28] vnk: havenwood: NoMethodError: undefined method `x' for main:Object
[16:10:22] havenwood: vnk: I have to relocate right now but there are plenty other to help! :) Happy coding!
[16:10:48] allcentury: has joined #ruby
[16:12:35] maloik: has joined #ruby
[16:15:27] s2013: has joined #ruby
[16:16:32] tubuliferous_: has joined #ruby
[16:16:49] symm-: has joined #ruby
[16:16:54] govg: has joined #ruby
[16:17:10] antoniobeyah: has joined #ruby
[16:20:33] akem: has joined #ruby
[16:21:23] haxrbyte: has joined #ruby
[16:21:27] howdoicomputer: has joined #ruby
[16:21:55] haxrbyte: has joined #ruby
[16:22:52] gypsydave5: has joined #ruby
[16:24:09] platzhirsch: has joined #ruby
[16:24:32] kobain: has joined #ruby
[16:26:44] johnzorn: has joined #ruby
[16:30:24] akem: has joined #ruby
[16:31:11] Xeago: has joined #ruby
[16:32:16] kies: has joined #ruby
[16:32:19] rickmasta: has joined #ruby
[16:34:37] zotherstupidguy: has joined #ruby
[16:34:38] jhn: has joined #ruby
[16:35:01] baweaver: has joined #ruby
[16:35:20] aryaching: has joined #ruby
[16:35:30] BTRE: has joined #ruby
[16:36:39] wnd: has joined #ruby
[16:37:49] Xaitec: has joined #ruby
[16:38:02] kallisti5: has joined #ruby
[16:38:27] kallisti5: question.. wouldn't it make more sense to have gem install as --user-install by default?
[16:38:55] kallisti5: it's always strange that gem install as a non-root user tries to install to system paths :-\
[16:41:40] gix: has joined #ruby
[16:41:44] apeiros: kallisti5: most ruby version managers do that (not sure how exactly)
[16:42:01] apeiros: e.g. with rvm, gems by default are not installed systemwide.
[16:42:23] adaedra: version managers changes (by env, i think) the default path of gem installation.
[16:42:56] kallisti5: hm. On Haiku our ruby install is always read-only
[16:43:01] kallisti5: (system paths are read only)
[16:43:09] kallisti5: thinking of making --user-install default in our patches
[16:43:25] kallisti5: it makes sense... then system packages get read, but user gem installs over-ride system
[16:43:26] adaedra: For the system-provided, the choice is actually the distribution's, which can provide a gemrc with default to user-install (iirc Arch does it)
[16:43:39] kallisti5: ooh.. didn't know about gemrc
[16:44:02] kallisti5: ACTION was looking at a patch to def install_update_defaults_str
[16:44:06] kallisti5: in rubygems
[16:44:19] kallisti5: (adding --user-install to default install flags :-) )
[16:44:21] adaedra: Under Haiku, everything is root:root, no?
[16:44:36] kallisti5: in Haiku, anything system (think /usr) is read only
[16:44:47] kallisti5: packages are mounted over each other and layered
[16:45:00] adaedra: but last time I ran an Haiku, there was only root
[16:45:10] kallisti5: yeah, there is a single user atm
[16:45:31] kallisti5: but yeah... even root can't modify /usr
[16:45:46] adaedra: there could be a place in the fs for this
[16:46:09] kallisti5: we use our own package filesystem. install a "system" os package, and it gets mounted at /boot/system
[16:46:28] kallisti5: nothing in our system paths are read-write.. so installing gems fails :-)
[16:46:41] kallisti5: however... default user-install fixes that
[16:46:50] adaedra: there could be
[16:47:02] kallisti5: then packaged gems installed work... and non-packaged gems installed to user work
[16:47:05] adaedra: this is a problem you'll have with other systems, like npm
[16:47:24] symm-: has joined #ruby
[16:47:27] kallisti5: yeah. Luckily the ruby solution is pretty easy
[16:47:38] kallisti5: anyway, always wondered why user-install wasn't default
[16:47:46] kallisti5: seems to make more sense overall
[16:47:56] Gustavo: has joined #ruby
[16:48:01] marahin: has joined #ruby
[16:48:32] marahin: Hello. I am pretty sure it would be possible, but HOW do I override String class, so whenever I do something like "puts 'abcd'", it would result in printing "(abcd)"?
[16:48:56] marahin: (so a function that appends '(' to the beginning of the string, and ')' to the end of the string)
[16:49:03] maloik: has joined #ruby
[16:50:01] karapetyan: has joined #ruby
[16:53:26] adaedra: Why would you want that
[16:53:43] s2013: has joined #ruby
[16:54:39] jhn: has joined #ruby
[16:56:09] sankaber: has joined #ruby
[17:00:01] Drakevr: has joined #ruby
[17:01:01] Xaitec: has joined #ruby
[17:01:43] moeabdol: has joined #ruby
[17:01:45] oli: has joined #ruby
[17:01:59] marahin: adaedra, just out of curiosity, I am wondering if it's even possible and if it is, how to access that kind of stuff
[17:02:00] yardenbar: has joined #ruby
[17:02:33] sankaber: has joined #ruby
[17:02:55] vnk: can anyone explain me what is raise used for?
[17:03:32] adaedra: To raise exceptions. You may find more complete documentation in most ruby guides.
[17:04:03] BSaboia: has joined #ruby
[17:04:21] ja: vnk: http://ruby-doc.com/docs/ProgrammingRuby/html/tut_exceptions.html
[17:04:31] vnk: ja: Thanks! :)
[17:04:48] beauby: has joined #ruby
[17:04:50] ja: vnk: no problem ^_^
[17:05:06] vnk: ja: this is completly irrelevenat, but where are from you?
[17:05:52] ja: vnk: Denmark here. How about you?
[17:06:11] vnk: ja: Serbia, 'ja' is word in Serbian language so I thought you are maybe from there.
[17:06:41] adaedra: 'ja' is a word in a lot of languages, tbf.
[17:06:45] ja: vnk: Aah, haha. What does it mean in Serbian? It means ???yes??? in Danish.
[17:06:50] ja: yeah, adaedra
[17:07:07] vnk: ja: in Serbian in means 'I' or 'me'. :)
[17:07:09] ja: You wouldn't believe how many incorrectly-addressed private messages I get
[17:07:44] ja: vnk: Ah. Same as in Polish, I think.
[17:07:52] poguez_: has joined #ruby
[17:07:56] gix: has joined #ruby
[17:08:30] vnk: ja: yup, same like in polish
[17:10:15] NeverDie: has joined #ruby
[17:12:44] NeverDie: has joined #ruby
[17:16:14] zenguy_pc: has joined #ruby
[17:20:22] tenderlove: has joined #ruby
[17:22:33] m3_del: has joined #ruby
[17:24:19] Xaitec: has joined #ruby
[17:28:21] maloik: has joined #ruby
[17:31:51] karapetyan: has joined #ruby
[17:35:32] fedexo: has joined #ruby
[17:37:02] baweaver: has joined #ruby
[17:38:35] dionysus69: has joined #ruby
[17:42:44] shevy: ja is also german meaning yes
[17:45:32] norc: has joined #ruby
[17:47:09] Guest38498: has left #ruby: ()
[17:47:30] norc: has joined #ruby
[17:48:48] nofxx: has joined #ruby
[17:48:56] genpaku: has joined #ruby
[17:49:14] sdothum: has joined #ruby
[17:49:41] atomical: has joined #ruby
[17:50:12] rgtk_: has joined #ruby
[17:50:46] RobertBirnie: has joined #ruby
[17:50:57] maloik: has joined #ruby
[17:52:38] m3_del: has joined #ruby
[17:52:58] blackmesa: has joined #ruby
[17:54:23] kallisti5: if someone gets a moment:
[17:54:26] kallisti5: https://github.com/ruby/ruby/pull/1109
[17:54:27] khebbie: has joined #ruby
[17:54:30] freerobby: has joined #ruby
[17:54:35] kallisti5: fixes all ruby crashes under Haiku :-D
[17:55:01] quaquaraqua: has joined #ruby
[17:55:22] chipotle: has joined #ruby
[17:55:23] bnizzle: has joined #ruby
[17:57:34] norc: Meh, anyone here have any experience with MWS feeds by any chance
[17:58:22] teoric: has joined #ruby
[17:59:45] norc: ACTION is wondering whether updates to ProductImage feeds can take multiple days to finally show
[18:00:25] _stu_: has joined #ruby
[18:03:57] allcentury: has joined #ruby
[18:05:37] finisherr: has joined #ruby
[18:05:44] hinbody: has joined #ruby
[18:09:08] khebbie: has left #ruby: ("bye")
[18:12:49] shevy: kallisti5 did you send it to ruby core yet?
[18:13:16] sondr3: has joined #ruby
[18:14:58] kies: has joined #ruby
[18:17:57] genpaku: has joined #ruby
[18:18:36] tmtwd: has joined #ruby
[18:19:46] genpaku: has joined #ruby
[18:23:42] bluOxigen: has joined #ruby
[18:24:18] tildes: has joined #ruby
[18:24:24] ismaelga: has joined #ruby
[18:24:55] nertzy: has joined #ruby
[18:26:06] norc: kallisti5: Create a feedback ticket on the redmine bug tracker. That is the best way to get non-trivial pull requests into trunk.
[18:27:05] norc: If there are reported bugs, associate them with your ticket.
[18:29:54] Gustavo: has joined #ruby
[18:30:45] DLSteve: has joined #ruby
[18:31:56] shevy: norc has more experience creating tickets than writing ruby code :)))
[18:32:24] rippa: has joined #ruby
[18:32:40] nfk: has joined #ruby
[18:33:43] greenbigfrog: has joined #ruby
[18:33:52] purplexed-: has joined #ruby
[18:36:03] BLuEGoD: has joined #ruby
[18:36:41] dstarh: has joined #ruby
[18:37:46] baweaver: has joined #ruby
[18:40:01] baweaver: has joined #ruby
[18:40:34] towski_: has joined #ruby
[18:41:17] Guest96462: has joined #ruby
[18:44:44] pwnd_nsfw: has joined #ruby
[18:44:46] platzhirsch: What's the equivalent for Time.at to parse the seconds into UTC?
[18:45:11] platzhirsch: Time.at(s).utc alters time
[18:45:51] bmalum: has joined #ruby
[18:47:10] jhass: platzhirsch: Time.at interprets it since epoch and then converts it into local time
[18:47:22] jhass: it does not interpret it as local time
[18:47:23] platzhirsch: so, .utc should be correct..
[18:47:32] platzhirsch: okay, thanks I will have another look
[18:47:37] platzhirsch: timezones always make me dizzy
[18:48:18] JammyHammy: has joined #ruby
[18:48:50] bmalum_: has joined #ruby
[18:48:54] shevy: he surely was drunk
[18:49:10] ur5us: has joined #ruby
[18:50:53] Spami: has joined #ruby
[18:50:58] blubjr: is there a way to look at older return values than the last in the repl
[18:51:56] graffix__: has joined #ruby
[18:53:05] finisherr: has joined #ruby
[18:54:06] Axsuul: has joined #ruby
[18:55:49] ismaelga: has joined #ruby
[18:55:53] djellemah: blubjr: assign variables? Otherwise not as far as I know.
[18:56:04] Xeago: has joined #ruby
[18:57:31] yqt: has joined #ruby
[18:57:52] djellemah: blubjr: if you're using pry, _out_ might do what you want. TIL.
[18:58:14] blubjr: whats til
[18:58:21] djellemah: Thing I Learned
[18:58:56] blubjr: oh thats perfect
[18:58:57] blubjr: thank you
[18:58:59] djellemah: blubjr: https://github.com/pry/pry/wiki/Special-Locals#the-input-and-output-cache
[18:59:07] vnk: has joined #ruby
[18:59:10] Mon_Ouie: has joined #ruby
[18:59:54] vnk: What is difference betwen variable.gsub("l", "w") and variable.gsub(/l/, "w"
[19:00:25] jhass: vnk: in that particular instance there's none
[19:00:46] jhass: vnk: alternative: variable.tr("l", "w")
[19:01:11] djellemah: vnk: // delimits a regex
[19:01:29] vnk: djellemah: delimits in which way?
[19:01:50] futilegames: has joined #ruby
[19:02:24] djellemah: >> /which way/ =~ "delimits in which way?" #vnk
[19:02:25] ruboto: djellemah # => 12 (https://eval.in/473916)
[19:03:10] djellemah: Which is a trivially useless use of a regex.
[19:03:15] stannard: has joined #ruby
[19:03:48] finisherr: has joined #ruby
[19:04:00] hotpancakes: has joined #ruby
[19:04:40] vnk: djellemah: I am currently trying to understund what regex is, watching some tutorials.. seem like its module with collection of various methods that help us play with strings?
[19:04:51] freerobby: has joined #ruby
[19:05:31] sepp2k: has joined #ruby
[19:05:35] skcin7: has joined #ruby
[19:05:58] jhass: vnk: it's a domain specific language specialized to matching and extracting patterns from strings
[19:06:09] yardenbar: has joined #ruby
[19:06:20] adaedra: regex is a developer's heaven and a beginner's hell. :p
[19:06:26] djellemah: vnk: regex in general is a Regular Expression, which is for doing pattern matching on strings. Regexp is the class that implements regular expressions in ruby. http://ruby-doc.org/core-2.1.1/Regexp.html
[19:06:30] vnk: adaedra: haha :)
[19:07:16] vnk: djellemah: tnx will take a look.. also tnx for trying to explain me jhass but I just think I need to get deeper into it to truly understund it.
[19:10:06] Tref: has joined #ruby
[19:11:55] Xeago: has joined #ruby
[19:13:25] nertzy: has joined #ruby
[19:16:31] kallisti5: norc: thanks :-) Last time it took quite some time... likely because I didn't mention it on redmine?
[19:16:34] kallisti5: norc: https://bugs.ruby-lang.org/issues/10811
[19:17:28] kallisti5: norc: as a plus, with that pull request Ruby can add one-more "stable" platform with minimal work :-)
[19:19:48] saddad: has joined #ruby
[19:20:40] Channel6: has joined #ruby
[19:20:42] sepp2k: has joined #ruby
[19:21:37] camonz: has joined #ruby
[19:21:41] gix: has joined #ruby
[19:23:43] platzhirsch: has joined #ruby
[19:26:19] ElSif: has joined #ruby
[19:26:52] asas: has joined #ruby
[19:30:22] ohcibi: has joined #ruby
[19:30:38] Pupp3tm4st3r: has joined #ruby
[19:32:37] ereslibre: has joined #ruby
[19:32:37] ereslibre: has joined #ruby
[19:37:17] nofxx: has joined #ruby
[19:37:28] VeryBewitching: has joined #ruby
[19:38:33] blubjr: hi very bewitching
[19:38:33] sepp2k: has joined #ruby
[19:39:16] karapetyan: has joined #ruby
[19:39:27] ibouvousaime: has joined #ruby
[19:40:42] zenguy_pc: has joined #ruby
[19:41:44] vnk: has joined #ruby
[19:41:54] vnk: this drives me crazy, anyone know why it doesnt work http://www.dodaj.rs/f/2Z/OL/38xcRrcb/screenshot-from-2015-11-.png
[19:42:10] vnk: and what * means in second row?!
[19:42:14] houhoulis: has joined #ruby
[19:42:14] Bellthoven: has joined #ruby
[19:42:18] Trynemjoel: has joined #ruby
[19:43:09] jhass: vnk: the * means that the expression from the first line isn't finished yet
[19:43:36] jhass: vnk: and that's because you closed with a > instead of a ), so the ( is still open
[19:44:12] houhoulis: has joined #ruby
[19:44:34] vnk: jhass: it should look like this puts "Telephone number cannot contain characters" if "3582fq".match(/[a-z]/), right?
[19:44:39] millerti: has joined #ruby
[19:44:53] ruboto: Why don't you try it and see for yourself?
[19:45:04] havenwood: vnk: Are you familiar with irb or pry?
[19:45:13] vnk: havenwood: I am using irb currently :)
[19:45:15] _blizzy_: has joined #ruby
[19:45:19] bmalum: has joined #ruby
[19:45:54] vnk: havenwood: problem is I open terminal, run irb and paste this code "puts "Telephone number cannot contain characters" if "3582fq".match(/[a-z]/)" nothing happens.. its finished this time, no * anymore but nothing happens.. and obviously it should write "Telephone number cannot...."
[19:46:54] havenwood: >> puts "Telephone number cannot contain characters" if "3582fq".match(/[a-z]/)
[19:46:55] ruboto: havenwood # => Telephone number cannot contain characters ...check link for more (https://eval.in/473925)
[19:47:00] hotpancakes: has joined #ruby
[19:47:39] jhass: vnk: still the * visible? hit ctrl-c
[19:47:50] havenwood: vnk: Are you hitting return?
[19:47:52] aspiers: has joined #ruby
[19:48:20] vnk: jhass: noup. it just doesnt do anything
[19:49:02] vnk: lol.. it just started working for no special reson, I runed it like 5 times before this..
[19:49:22] vnk: thanks a lot guys! soory for bothering.
[19:49:27] maikowblue: has joined #ruby
[19:50:04] karapetyan: has joined #ruby
[19:52:33] m3_del: has joined #ruby
[19:53:09] RobertBirnie: has joined #ruby
[19:53:15] Xeago: has joined #ruby
[19:53:54] m3_del: has joined #ruby
[19:55:21] vnk: trivial question, but if regex is kinda language for itself. does that mean that when you learn regex in ruby it will be almost same as regex in java? from my point of view and understunding it should be bescause it doesnt have anything with java or ruby it is its own language.
[19:55:27] juddey: has joined #ruby
[19:55:39] shevy: no idea about java but perl and ruby regex are very similar
[19:55:48] genpaku: has joined #ruby
[19:56:08] shevy: I think both default to pcre but I am not sure
[19:56:10] jhass: vnk: yes, the basic concepts are the same. The differences appear in the advanced features and edge case behavior in a particular regex engine
[19:56:22] vnk: jhass: thanks.
[19:57:57] DoubleMalt: has joined #ruby
[19:58:40] RobertBirnie: has joined #ruby
[19:58:43] millerti: has joined #ruby
[20:00:29] cpup: has joined #ruby
[20:01:59] genpaku: has joined #ruby
[20:02:31] akem: has joined #ruby
[20:04:31] zenguy_pc: has joined #ruby
[20:04:33] lxsameer: has joined #ruby
[20:04:55] spider-mario: has joined #ruby
[20:05:58] stannard: has joined #ruby
[20:06:49] droptone: Afternoon, ladies and gentlemen!
[20:07:00] droptone: How are everyone's various projects going today?
[20:09:03] cpup: has joined #ruby
[20:09:23] SCHAAP137: has joined #ruby
[20:10:06] fbidu: has joined #ruby
[20:13:59] nofxx: has joined #ruby
[20:15:40] allcentury: has joined #ruby
[20:16:50] last_staff: has joined #ruby
[20:17:54] moss: has joined #ruby
[20:18:56] diegoaguilar: has joined #ruby
[20:23:36] genpaku: has joined #ruby
[20:23:44] greenbigfrog: has joined #ruby
[20:29:28] shinnya: has joined #ruby
[20:30:41] kallisti5: https://bugs.ruby-lang.org/issues/11731 feedback?
[20:30:55] bigmac: has joined #ruby
[20:31:12] tulak: has joined #ruby
[20:31:57] bigmac: im looking into gdbm vs Hash.new
[20:32:07] bigmac: hash["text"]=1
[20:32:27] bigmac: gdbm["text"]=1 => cant convert fixnum to string
[20:32:52] genpaku: has joined #ruby
[20:33:53] mattwildig: has joined #ruby
[20:34:07] droptone: kallisti5: I don't know, I manage multiple boxes with per-user rvm deployments, I don't have any issues.
[20:34:38] droptone: I mean, I suppose it would be nice if it defaulted to non-system-wide by default, but considering how easy it is to do per-user deployments, not sure if they'll do anything here.
[20:34:54] bahar: hi guys.... trying to update my pg gem.... im getting the following error (using postgres.app btw): invalid option: --with-pg-config=/Applications/Postgres.app/Contents/Versions/9.4/bin/pg_config
[20:34:58] bahar: anyone know how to get around that?
[20:35:26] droptone: Also, it may default to system-wide because a lot of *nix builds these days come with a default Ruby deployment, not per-user
[20:35:50] BSaboia: has joined #ruby
[20:35:55] shevy: kallisti5 don't think this is a suggestion that is easily feasible since the other way works as well, for those users who prefer the default system-install
[20:35:59] havenwood: bigmac: DBM only allows Strings for keys and values.
[20:36:09] havenwood: bigmac: Instead, try YAML::DBM: http://ruby-doc.org/stdlib/libdoc/yaml/rdoc/YAML/DBM.html
[20:36:24] havenwood: bigmac: Then you can have a Fixnum value.
[20:38:15] bigmac: oh thank you
[20:38:39] havenwood: bigmac: you're welcome
[20:39:11] shinenelson: has joined #ruby
[20:43:38] jordanm: has joined #ruby
[20:44:48] m3_del: has joined #ruby
[20:44:50] havenwood: kallisti5: I prefer the local user dir gem install as well.
[20:45:40] nertzy: has joined #ruby
[20:46:49] kallisti5: havenwood: i'm suprised no previous tickets were open on it
[20:47:01] bkxd: has joined #ruby
[20:47:19] kallisti5: I get how having it default to system-wide might be easier sometimes... but it isn't easier for the right reasons
[20:47:38] kallisti5: just like compiling sources and installing them to /usr isn't technically correct
[20:48:41] nbjoerg: has joined #ruby
[20:49:28] nbjoerg: anyone here to take care of a fix for the setjmp use in the interpreter core?
[20:49:52] sivoais: has joined #ruby
[20:50:06] kallisti5: tools like rvm override gem installs with --user-directory because it makes more sense and is easier to deal with. --user-directory default means things like vendor gem directories become unnecessary
[20:50:40] zenguy_pc: has joined #ruby
[20:51:07] EminenceHC: has joined #ruby
[20:51:09] kallisti5: anyway, it's a large change... with semi-wide reaching potential impact... so I think a lot of community consensus would be required
[20:51:45] nbjoerg: http://www.netbsd.org/~joerg/ruby-setjmp-volatile.diff
[20:52:36] framling: has joined #ruby
[20:54:06] amirpro_: has joined #ruby
[20:54:45] akira__: has joined #ruby
[20:56:42] tildes: has joined #ruby
[20:56:55] Parko: has joined #ruby
[20:57:02] quazimodo: has joined #ruby
[20:58:46] platzhirsch: has joined #ruby
[20:59:33] dionysus69: has joined #ruby
[21:00:19] shevy: rvm installs into the user's home directory so the prefix is different than /usr anyway; they don't have much of an alternative to defaul to the home dir; gobolinux with its versioned appdirs also got started in that way, by compiling into the user's home prefix
[21:01:33] solocshaw: has joined #ruby
[21:01:36] millerti: has joined #ruby
[21:02:37] shevy: on my system ruby resides at /Programs/Ruby/2.2.3/; gem cache will be at /Programs/Ruby/Current/lib/ruby/gems/2.2.0/cache/
[21:03:41] Coldblackice: has joined #ruby
[21:04:20] NeverDie: has joined #ruby
[21:05:22] saddad: has joined #ruby
[21:06:05] Yzguy: has joined #ruby
[21:06:28] fbidu: has joined #ruby
[21:06:55] millerti: has joined #ruby
[21:07:52] Icey: has joined #ruby
[21:08:57] mutantkeyboard: has joined #ruby
[21:09:33] Icey: has joined #ruby
[21:10:05] zenguy_pc: has joined #ruby
[21:14:11] zenguy_pc: has joined #ruby
[21:14:14] leat: has joined #ruby
[21:14:57] havenwood: Speaking of RVM... a stable release is long overdue. If anyone wants to weigh in on or help with one of the seven milestone blockers left it'd be much appreciated: https://github.com/rvm/rvm/milestones/rvm-1.26.12
[21:16:22] framlinqp: has joined #ruby
[21:16:27] droptone: Is it? Any particular reason rvm development has slowed?
[21:16:33] droptone: I use it on a daily basis, have for years, I love it, works great.
[21:16:38] droptone: Is there some competitor everyone is switching to?
[21:16:54] havenwood: droptone: chruby continues to grow in popularity
[21:17:36] millerti: has joined #ruby
[21:17:56] zenguy_pc: has joined #ruby
[21:18:11] hotpancakes: has joined #ruby
[21:20:20] IrishGringo: has joined #ruby
[21:20:49] NeverDie_: has joined #ruby
[21:21:43] zenguy_pc: has joined #ruby
[21:22:03] vdamewood: has joined #ruby
[21:24:04] DLSteve: has joined #ruby
[21:24:08] havenwood: droptone: The original author or RVM left after some mudslinging by the author of rbenv. After than mpapis took the helm and was sponsored by Engine Yard. They stopped sponsorship and mpapis went to work on RVM 2 and got a new job. So about nine months ago he stepped down as maintainer of RVM 1.
[21:24:14] havenwood: After that*
[21:24:27] nofxx: has joined #ruby
[21:24:54] techietrash: has joined #ruby
[21:24:55] dtordable: has joined #ruby
[21:25:08] havenwood: droptone: TL;DR: There was a full-time dev working on RVM. Now there are volunteers on the weekends.
[21:25:36] havenwood: droptone: It's over 10,000 lines of portable shell so it's not easy to maintain.
[21:25:45] vnk: is there difference and when betwen using "" and ''? in ruby ofc :)
[21:26:02] adaedra: interpolation is not performed inside ''
[21:26:06] vnk: I am coming from java and we used to put characters only under '' and normal strings under ""
[21:26:19] havenwood: droptone: We have to choreograph releases with mpapis, who is busy, so that makes it even harder to get stable releases out frequently.
[21:26:44] adaedra: >> who = "world"; [ "hello, #{who}", 'hello #{who}' ] # vnk
[21:26:46] ruboto: adaedra # => ["hello, world", "hello \#{who}"] (https://eval.in/473960)
[21:27:10] adaedra: also, some escape sequences, iirc.
[21:28:11] vnk: adaedra: ohh.. okay, thanks a lot mate :)
[21:28:14] dlitvak: has joined #ruby
[21:28:29] Yzguy: has joined #ruby
[21:32:45] radgeRayden_: has joined #ruby
[21:34:49] Averna: has joined #ruby
[21:37:25] zacts: has joined #ruby
[21:37:46] zacts: is it more difficult to learn OOP after Functional, or Functional after OOP?
[21:37:55] zacts: (I wonder if I should try Clojure first, or Ruby)
[21:38:09] mutantkeyboard: it's just a different approach of solving things
[21:38:22] djbkd: has joined #ruby
[21:39:06] havenwood: zacts: Either Clojure or Ruby are good options.
[21:39:59] havenwood: zacts: Or Elixir for that matter. ;)
[21:40:32] havenwood: zacts: (Elixir borrows a lot from both Clojure and Ruby.)
[21:40:37] mutantkeyboard: @zacts try to look at this way. If you have a fixed set of operation on things use OOP, but if you have a fixed set of things, and you need a new operation on these, use FP
[21:41:08] dtordable: has joined #ruby
[21:42:50] ruurd: has joined #ruby
[21:43:01] genpaku: has joined #ruby
[21:43:20] cajone: has joined #ruby
[21:44:31] nofxx: has joined #ruby
[21:47:34] ta: has joined #ruby
[21:47:34] ellisTAA: has joined #ruby
[21:48:13] pwnd_nsfw: has joined #ruby
[21:48:41] mattwildig: has joined #ruby
[21:49:13] dtordable: has joined #ruby
[21:50:12] yfeldblum: has joined #ruby
[21:50:41] bmalum: has joined #ruby
[21:53:08] zenguy_pc: has joined #ruby
[21:54:49] Azure: has joined #ruby
[21:55:19] platzhirsch: has joined #ruby
[21:57:15] arooni: has joined #ruby
[21:58:05] hotpancakes: has joined #ruby
[21:58:51] cwong_on_irc: has joined #ruby
[22:00:15] Azure: has joined #ruby
[22:00:16] NeverDie: has joined #ruby
[22:00:48] bkxd: has joined #ruby
[22:01:04] karapetyan: has joined #ruby
[22:01:51] dikaio: has joined #ruby
[22:03:56] tmtwd: has joined #ruby
[22:04:55] griffindy: has joined #ruby
[22:05:26] griffindy: has joined #ruby
[22:06:49] w14d0my: has joined #ruby
[22:07:09] griffindy: has joined #ruby
[22:07:10] wilsonc91: has joined #ruby
[22:07:16] stannard: has joined #ruby
[22:07:36] nbjoerg: has left #ruby: ()
[22:07:38] wilsonc91: Could someone help me with this? New to ruby, getting a undefined method `[]=' for nil:NilClass http://pastebin.com/82XafLJK
[22:07:39] ruboto: wilsonc91, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/8c45e882f127f834c2e4
[22:07:39] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[22:07:55] platzhirsch: has left #ruby: ()
[22:09:13] greenbigfrog: has joined #ruby
[22:09:17] Coraline: wilsonc91: script files is a single-depth hash
[22:09:40] Coraline: So updated_script_files[:foo] is ni;
[22:09:53] wilsonc91: can i make it not single-depth?
[22:10:15] Coraline: You need to do updated_script_files[:file_num] = {}
[22:10:24] zenguy_pc: has joined #ruby
[22:10:31] wilsonc91: Awesome, thanks!
[22:10:45] Coraline: although I think you want file_num, not :file_num and key, not :key
[22:10:50] hotpancakes: has joined #ruby
[22:11:15] wilsonc91: hmm ok, whats the difference between : and without it? Still a bit confused about that
[22:11:20] htmldrum: has joined #ruby
[22:11:24] Coraline: Otherwise you have a literal key of :file_num instead of the value from your enumerable
[22:11:38] griffindy: has joined #ruby
[22:11:38] Melpaws: has joined #ruby
[22:11:51] droptone: Holy crap it's so much nicer deving on 2 27" external monitors.
[22:11:56] Coraline: :file_num is a symbol, file_num in your case is a variable
[22:11:59] droptone: I can fit 6 terminal windows on each.
[22:12:24] Coraline: Does that make sense?
[22:12:36] wilsonc91: so :file_num would literally be 'file_num'?
[22:12:51] Coraline: You want the hash key to be dynamic based on the variable's value
[22:13:20] Coraline: So by not using the : you get updated_script_files["1"]["script_name"]
[22:13:53] wilsonc91: okay thnaks :)
[22:16:58] Tref: has joined #ruby
[22:17:07] shevy: droptone now you can use your 4 arms to code faster too
[22:17:29] droptone: shevy: Exactly, ever since transforming into Goro I've seen my development rate increase 82%
[22:18:09] droptone: I use 2 27" external monitors, 4 keyboards, and an army of underpaid Koreans to develop my Ruby projects.
[22:18:10] juddey: has joined #ruby
[22:19:06] zenguy_pc: has joined #ruby
[22:19:30] zenguy_pc: has joined #ruby
[22:21:10] maloik: has joined #ruby
[22:21:21] zenguy_pc: has joined #ruby
[22:22:37] zenguy_pc: has joined #ruby
[22:23:45] Trynemjoel: has joined #ruby
[22:26:58] rickmasta: has joined #ruby
[22:29:28] apeiros: droptone: how do you stuff the army of koreans in front of your 2 monitors?
[22:29:37] ta: has joined #ruby
[22:29:58] ismaelga: has joined #ruby
[22:30:00] rgrmatt: has joined #ruby
[22:30:24] lurch_: has joined #ruby
[22:31:01] adaedra: they're Koreans, they don't need your poor screens and keyboards to code.
[22:31:19] ellisTAA: has anyone ever not been able to unzip a .gz file?
[22:31:21] zenguy_pc: has joined #ruby
[22:31:31] vnk: guys how often do we actually use .send method in ruby on rails development?
[22:31:37] ellisTAA: i read there may have been a problem when the file was compressed ...
[22:33:14] nofxx: has joined #ruby
[22:33:59] adaedra: EllisTAA: does gzip(1) can decode your file?
[22:34:17] adaedra: does...can, great english here adaedra
[22:36:10] shevy: le fabulous english
[22:36:27] bmalum: has joined #ruby
[22:36:44] jhass: EllisTAA: what does the file command report for that file?
[22:37:00] tulak: has joined #ruby
[22:37:00] w14d0my: has left #ruby: ()
[22:37:16] digneety: has joined #ruby
[22:38:48] nofxx: has joined #ruby
[22:38:48] nofxx: has joined #ruby
[22:40:08] rgrmatt: has joined #ruby
[22:40:24] Scripore: has joined #ruby
[22:41:30] djbkd: has joined #ruby
[22:42:41] ekleog: has joined #ruby
[22:44:04] wilsonc91: Could use a hand again :3 http://pastie.org/10574753 Getting a syntax error on line 10 saying it excepts a ':' I basically want to check if theres an existing file with this filename already before creating it
[22:44:57] stannard: has joined #ruby
[22:45:05] jhass: wilsonc91: TestScript is an active record model or what?
[22:45:41] jhass: the where(...)? is invalid syntax, you want exists?(...)
[22:46:19] jhass: note that the ? there is part of the method name
[22:46:57] quazimodo: has joined #ruby
[22:46:58] millerti: has joined #ruby
[22:47:54] ChameleonSix: has joined #ruby
[22:48:33] apeiros: We greet you
[22:48:37] ChameleonSix: Are you people programmers
[22:48:47] apeiros: I'm a contragrammer
[22:48:53] apeiros: but I guess there's a lot of programmers here too
[22:49:07] ChameleonSix: Can you explain me something
[22:49:18] agit0: has joined #ruby
[22:49:19] ChameleonSix: Do you know Ruby ?
[22:49:25] apeiros: a little bit
[22:49:33] ChameleonSix: What does that mean
[22:49:34] NeverDie: has joined #ruby
[22:49:55] millerti: has joined #ruby
[22:49:56] ChameleonSix: Have you written any programs in it
[22:50:20] jhass: How about we get to your actual question?
[22:50:24] havenwood: ChameleonSix: A common thing you'll find in the #ruby channel is Rubyists.
[22:50:36] ChameleonSix: How do I lol idk how to asj
[22:50:47] ruboto: How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
[22:50:50] ChameleonSix: I want to attach a process to a firefox
[22:51:01] ChameleonSix: Like object programming I guess
[22:51:09] ellisTAA: anyone know why this method is creating files that when i try to inflate them says they aren???t in gz format? https://github.com/ellismarte/neatfreak/blob/master/neatfreak.rb#L14
[22:51:15] ChameleonSix: I know Ruby a little lol
[22:51:18] adaedra: You want to control a Firefox instance, ChameleonSix ?
[22:51:23] k3asd`: has joined #ruby
[22:51:30] jhass: ChameleonSix: don't describe how you imagine to solve your problem, describe what you actually want to achieve
[22:51:34] adaedra: You know what you want, ChameleonSix ?
[22:51:55] ChameleonSix: I want to learn about ruby input and output to programs like browsers
[22:51:56] jhass: EllisTAA: what does the file command report on them?
[22:52:13] ChameleonSix: Do you understand me
[22:52:19] havenwood: jhass: Kinda reminds me of: http://www.theonion.com/article/nation-figured-everything-would-run-some-kind-cube-51834
[22:52:45] jhass: ChameleonSix: you should pick some concrete problem/goal that you want to solve, makes it much easier to find the right things to learn in order to do so
[22:53:05] ChameleonSix: How do I change a text written in a file using ruby console
[22:53:27] Scripore: has joined #ruby
[22:53:42] adaedra: Ruby console?
[22:53:46] jhass: havenwood: hehe
[22:53:48] jschmid: has joined #ruby
[22:53:50] User458764: has joined #ruby
[22:54:05] trosborn: has joined #ruby
[22:54:13] adaedra: Using the right terminology is the first step of asking efficiently.
[22:54:16] duncannz: has joined #ruby
[22:54:30] ChameleonSix: Do you understand what am I saying
[22:54:36] jhass: &ri File::read File::write File::open @ChameleonSix
[22:54:36] `derpy: ChameleonSix: http://www.rubydoc.info/stdlib/core/IO#read-class_method, http://www.rubydoc.info/stdlib/core/IO#write-class_method, http://www.rubydoc.info/stdlib/core/File#open-class_method
[22:54:51] duncannz: has joined #ruby
[22:55:08] shevy: so this is how it looks when people use android for IRC :)
[22:55:35] ChameleonSix: I don't understand this
[22:55:46] ChameleonSix: I am learning ruby still
[22:55:56] ChameleonSix: I finished hashes,loops ...
[22:55:58] jhass: well, spending less than a minute on it, I can't say it seems like you tried
[22:55:58] adaedra: Is Ruby your first programing language?
[22:56:30] apeiros: ChameleonSix: notice that while we gladly help, but we're not an academy. we're not a replacement for a book either.
[22:56:32] jhass: ChameleonSix: please drop everything else and read this https://pine.fm/LearnToProgram/
[22:56:34] shevy: did you work through the chris pine tutorial yet?
[22:56:54] jackcom: has joined #ruby
[22:57:09] Glenny: has joined #ruby
[22:57:13] Xeago: has joined #ruby
[22:57:22] ChameleonSix: I use code academy
[22:57:26] ChameleonSix: And tree house
[22:57:29] wilsonc91: sorry still having issue with there where? thing. I just want to check if a file doesn't exist
[22:57:46] ChameleonSix: Do you have any recommendations
[22:57:50] shevy: unless File.exist? location
[22:58:07] jhass: ChameleonSix: finish the courses you started. If you're still confused after that read the book I linked above.
[22:58:22] ChameleonSix: I just don't get something
[22:58:36] ChameleonSix: How to I use that knowledge to manipulate with programs
[22:58:38] jhass: so you still didn't ask your actual question?
[22:58:48] ChameleonSix: I got many questions
[22:58:54] jhass: ChameleonSix: don't worry about that for now, it'll become apparent soon enough
[22:59:04] jhass: you should understand the basics first
[22:59:12] ChameleonSix: I understand that
[22:59:15] jackcom: ruby vs lua, which is more used?
[22:59:26] jhass: ChameleonSix: yes, programming is about building abstractions over abstractions over abstractions and so on
[22:59:42] ChameleonSix: Can you give me a code example
[23:00:07] jhass: ChameleonSix: once you understand the lower abstraction such as those for reading and writing files or loops, higher abstractions will become easier to understand
[23:00:26] jhass: ChameleonSix: no, please just proceed with the basics for now
[23:00:29] ChameleonSix: I understand that basic stuff
[23:00:37] havenwood: jackcom: Ruby. Though it was out of Lua-envy that mruby was born.
[23:00:47] jhass: ChameleonSix: then you should understand the documentation I linked earlier
[23:00:47] ChameleonSix: I need to finish ruby gems and objects
[23:00:48] havenwood: jackcom: http://www.mruby.org
[23:00:51] ChameleonSix: Is that important
[23:01:06] jhass: ChameleonSix: yes, everything in the basic courses is important, every single thing
[23:01:27] jackcom: thanks havenwood
[23:01:32] jhass: wilsonc91: elaborate?
[23:01:36] ta: has joined #ruby
[23:01:42] ChameleonSix: You are a programmer ?
[23:01:45] wilsonc91: actually figured it out, thanks :)
[23:01:52] droptone: I AM A PROGRAMMER
[23:01:58] droptone: I PROGRAM COMPUTERS
[23:02:16] jhass: ChameleonSix: I would expect the vast majority of people in this channel can be called programmers
[23:02:19] droptone: I MAKE COMPUTERS DO THINGS
[23:02:23] symm-: has joined #ruby
[23:02:31] ChameleonSix: Why do you use caps
[23:02:36] ChameleonSix: You make computers ?
[23:02:40] VeryBewitching: ChameleonSix: Since I was 17, ~1997
[23:02:41] ChameleonSix: Hardware engineering ?
[23:02:42] droptone: BECAUSE MY CHEESE HAS SLID OFF MY CRACKER
[23:03:05] CloCkWeRX: has joined #ruby
[23:03:23] ChameleonSix: Anyway do you people know something about buffer overflow
[23:03:37] adaedra: You're doing C now?
[23:03:41] droptone: Are you an elite hacker?
[23:04:02] ChameleonSix: I know a little of C
[23:04:13] jhass: ChameleonSix: seriously, get back to your courses, dabbing into all those topics will only confuse the hell out of you at this point
[23:04:34] ChameleonSix: Anyway how can someone hack pc via ports
[23:04:46] droptone: They use the internet.
[23:04:57] droptone: If you hack the internet you can hack pc via ports.
[23:05:06] shevy: an android hacker
[23:05:07] ChameleonSix: Network ports
[23:05:17] ChameleonSix: Not serial ports
[23:05:20] VeryBewitching: TCP/IP ports you mean?
[23:05:29] droptone: Port 80 is a hacker port.
[23:05:41] jhass: you hack the program accepting network traffic there, not the "port"
[23:05:55] ChameleonSix: You enter via the port
[23:06:00] jhass: this would again be much easier to understand for you if you know the basics of I/O
[23:06:09] droptone: nmap -sS -p0 -p80 --reason --open --elitehacker 127.0.0.1
[23:06:12] droptone: Type that to hack port 80.
[23:06:45] ChameleonSix: Anyway do I need to learn assembly
[23:06:58] ChameleonSix: Isn't it important
[23:06:58] droptone: I write everything in AT&T syntax assembly.
[23:07:00] jhass: because you ask if you have to
[23:07:10] jhass: you know when you reach the point where you need it
[23:07:21] droptone: jhass is wise.
[23:07:23] ChameleonSix: What languages do you know
[23:07:34] jhass: how does that matter?
[23:07:40] droptone: ChameleonSix: QBASIC, GWBASIC, and Visual Basic.
[23:07:53] ChameleonSix: The first 2 don't exist
[23:08:01] jhass: there's a point where you can pick up new languages fairly quick
[23:08:04] droptone: If the name of the language doesn't have the word "basic" in it, I don't learn it.
[23:08:12] droptone: ChameleonSix: I'm kidding but yes, the first two exist.
[23:08:15] jhass: droptone: so you don't know Ruby?
[23:08:16] ChameleonSix: Anyway is ruby good for start
[23:08:17] VeryBewitching: C, C++, Perl, PHP, Ruby, Java, C#, VB, Bash, SCSS
[23:08:23] VeryBewitching: There's probably more.
[23:08:24] havenwood: ChameleonSix: Stop spamming: Lol
[23:08:24] jhass: ChameleonSix: yes
[23:08:30] droptone: jhass: No, I hang in #ruby but know nothing of Ruby.
[23:08:33] droptone: I'm wacky like that.
[23:08:39] havenwood: ChameleonSix: Repeatedly entering into the channel.
[23:08:44] VeryBewitching: jhass: I think someone is having a little fun with you.
[23:08:45] havenwood: !kick ChameleonSix Not Lol
[23:08:46] ruboto: ruboto kicked ChameleonSix: Lol
[23:08:46] ruboto: -o ruboto
[23:08:52] jhass: ACTION forks Ruby and calls it RBasic
[23:08:54] VeryBewitching: Thank you havenwood
[23:09:28] jhass: VeryBewitching: nah, just a 12 year old
[23:09:45] droptone: He's off to hack port 80.
[23:09:46] ChameleonSix: has joined #ruby
[23:09:49] VeryBewitching: Or an individual with similar brain setbacks.
[23:10:05] jhass: ChameleonSix: now you learned what happens if you ignore ops
[23:10:17] ChameleonSix: I leaned that long ago
[23:10:27] droptone: "It's not my first rodeo"
[23:10:30] jhass: how did you get yourself kicked then?
[23:10:48] ChameleonSix: Is ddos firewall bypassable
[23:10:58] droptone: ACTION grabs popcorn
[23:11:03] havenwood: ?ot ChameleonSix
[23:11:03] ruboto: ChameleonSix, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[23:11:21] ChameleonSix: Ruboto hacker
[23:11:25] howdoicomputer: has joined #ruby
[23:11:30] jhass: ?justabot
[23:11:30] ruboto: I'm just a bot. You don't need to address me.
[23:11:32] ChameleonSix: I installed that on my android phone lol
[23:11:53] ChameleonSix: And it can't execute programs for some reason
[23:12:15] adaedra: Got any real and precise ruby question?
[23:12:18] jhass: I believe they have their own help channel
[23:12:25] Radar: what adaedra said
[23:12:46] ChameleonSix: Can I create and exe file from .rb
[23:12:52] VeryBewitching: I put him on ignore, the quiet is refreshing.
[23:13:27] ChameleonSix: I'm disappointed
[23:13:40] havenwood: ChameleonSix: https://github.com/Spooner/releasy#readme
[23:13:52] adaedra: You don't need it to run Ruby under Windows though.
[23:14:10] havenwood: ChameleonSix: Read the README. (It's SCREAMING to be read.)
[23:14:14] ChameleonSix: That is amazing
[23:14:17] ChameleonSix: I read it lol
[23:14:21] jhass: ChameleonSix: you didn't even try to understand, 10 seconds is barely enough to click on the link
[23:14:38] jhass: ChameleonSix: next time you don't invest time into the suggestions given to your questions, you're gone
[23:14:40] havenwood: ChameleonSix: More reading: https://phusion.github.io/traveling-ruby/
[23:16:23] ChameleonSix: Anyway I haven't seen any game examples written in ruby
[23:16:27] ChameleonSix: You got some ?
[23:16:41] droptone: Examples of any game written in Ruby?
[23:17:02] droptone: I haven't personally heard of anyone writing a game in Ruby, though I'm sure someone has.
[23:17:16] bmalum: has joined #ruby
[23:17:18] droptone: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#safe=off&q=game%20written%20in%20ruby
[23:17:20] ChameleonSix: I mean game like snake or something
[23:17:35] ChameleonSix: I made a number guessing game in ruby
[23:17:44] jhass: https://github.com/mmorin/Snake-2/blob/master/snake2.rb
[23:17:54] droptone: We use Ruby for web-based, server-side applications and in custom websites using the Rails framework.
[23:18:01] jhass: that took me 15 seconds on google
[23:18:13] Radar: Google is your friend :)
[23:18:30] ChameleonSix: Google is your enemy
[23:18:31] havenwood: ChameleonSix: You can find nice game examples with RubyMotion as well (for Android, iOS and OS X): http://www.rubymotion.com
[23:18:40] finisherr: has joined #ruby
[23:18:41] zenguy_pc: has joined #ruby
[23:18:50] ChameleonSix: I understand some parts of the code
[23:19:05] ChameleonSix: But how did he draw the snake object
[23:19:11] adaedra: Start by finishing learning the basics, maybe?
[23:19:31] Radar: ACTION thinks ChameleonSix wants to be the very best, like noone ever was.
[23:19:52] freerobby: has joined #ruby
[23:19:59] ChameleonSix: Your grammar is nice
[23:20:10] droptone: You're in Serbia, ChameleonSix?
[23:20:39] ChameleonSix: I hate when people trace my vpn
[23:20:48] adaedra: No need for that...
[23:21:15] ChameleonSix: Anyway don't ddos me
[23:21:19] droptone: If by "trace your VPN" you mean "whois you and notice your dynamically-assigned FQDN ends in the .rs TLD", then yes.
[23:21:39] malconis: has joined #ruby
[23:22:09] adaedra: ChameleonSix: Seriously, stop with the "Lol"s.
[23:22:17] ChameleonSix: Can I use lel instead
[23:22:29] Ox0dea: Radar: Are you sure Noone was ever the very best?
[23:22:43] ChameleonSix: I don't understand that grammar
[23:23:00] Radar: Ox0dea: Positive.
[23:23:01] Radar: ChameleonSix: bye.
[23:23:10] Ox0dea: Cya nide.
[23:23:12] Radar: Can't wait.
[23:23:19] ChameleonSix: Don't go anywhere
[23:23:32] jhass: !kick ChameleonSix no Lols
[23:23:33] ruboto: ruboto kicked ChameleonSix: Lols
[23:23:33] ruboto: -o ruboto
[23:24:06] atomical: has joined #ruby
[23:26:16] dmcp_: has joined #ruby
[23:26:24] Mojo_Nixon: has joined #ruby
[23:26:25] jackcom: what is string length method?
[23:26:45] adaedra: You know there are online docs to know that?
[23:26:56] adaedra: rubydoc.info, ruby-doc.org, devdocs.io ??? pick one
[23:26:57] blubjr: youre really close
[23:26:57] nofxx: jackcom: #length
[23:27:05] Ox0dea: nofxx: No feeding!
[23:27:16] JazzyVariable227: has joined #ruby
[23:27:41] Ox0dea: jackcom: You're a horse that can't even be led to the fucking water, mate.
[23:27:42] nofxx: you guys are too evil today...
[23:28:01] droptone: You gotta have fun sometimes.
[23:28:04] Radar: nofxx: pretty much.
[23:28:04] droptone: Can't be all business.
[23:28:11] Radar: !kick Ox0dea not nice
[23:28:11] ruboto: ruboto kicked Ox0dea: nice
[23:28:11] ruboto: -o ruboto
[23:28:37] Radar: sorry about 0x, jackcom.
[23:28:46] Radar: jackcom: Did you try googling your question before asking in here?
[23:29:12] Radar: I know, it's such a ridiculous concept.
[23:29:49] jackcom: it is more efficiency saying it to me directly, instead of many explanation.
[23:30:06] Radar: jackcom: It's more efficient if you just googled in the first place
[23:30:16] Radar: jackcom: Here is what "ruby string length method" returns as the first result for me in google: http://ruby-doc.org/core-2.2.0/String.html
[23:30:31] CloCkWeRX: has left #ruby: ()
[23:31:34] Radar: jackcom: We're happy to answer non-googleable questions in here.
[23:31:36] adaedra: We can help you here, but not to answer the first question you can answer by some google and/or doc searching. You also have to do some research.
[23:32:02] Radar: http://ruby-community.com/pages/user_rules See under "What the channel expects from you"
[23:32:05] Radar: Number 2.
[23:32:34] RobertBirnie: has joined #ruby
[23:34:40] saddad: has joined #ruby
[23:35:31] htmldrum: has joined #ruby
[23:35:35] doddok: why newbies so stupid
[23:35:38] nertzy: has joined #ruby
[23:35:49] stannard: has joined #ruby
[23:36:07] jessemcgilallen: has joined #ruby
[23:36:22] Radar: !kick doddok not nice
[23:36:22] ruboto: ruboto kicked doddok: nice
[23:36:22] ruboto: -o ruboto
[23:36:31] doddok: has joined #ruby
[23:36:37] Radar: Why are those who have some experience unkind to those without? You were one of those people before.
[23:36:44] Radar: How quickly you forget!
[23:37:03] doddok: fisrt rule
[23:37:12] Radar: "We are a polite and inclusive channel. Everybody is welcome."
[23:37:15] Radar: That is the first rule.
[23:37:21] Radar: You were not polite.
[23:37:33] doddok: if you dont know something try spend couple of days to searching alone
[23:38:01] agent_white: has joined #ruby
[23:38:11] droptone: Radar has seen the light.
[23:38:26] Radar: days? pah. I expect 15 minutes of trying it out yourself from anyone who I mentor and then if they still can't find the answer then we pair on it.
[23:38:28] agent_white: Evenin' folks
[23:39:29] blubjr: hi agent white
[23:39:48] Radar: When I pair with them I don't start out with "You fucking idiot. It's right there in the docs!" I lead them to the answer very carefully and make sure that they understand where the answer is so that they can find it again.
[23:39:55] jackcom: "The string you just gave me has a length of #{incoming_string.length}" <?????? this is wrong?
[23:40:14] jhass: looks okay, did you try it out prior asking?
[23:40:18] zenguy_pc: has joined #ruby
[23:40:46] Radar: Two weeks ago I was at a hack night here in Melbourne where one of the people I mentored was helping out other people. It was fantastic to see.
[23:40:53] ledestin: has joined #ruby
[23:41:39] Radar: Do you think he would've gotten to that point if I berated him for not knowing?
[23:42:23] Radar: doddok: Eagerly awaiting your reply.
[23:44:27] doddok: radar, has he achieved something worthwhile? can you boast of?
[23:44:49] Radar: doddok: jackcom or the other person I mentioned?
[23:44:49] Gustavo: has joined #ruby
[23:44:54] adaedra: good night.
[23:46:26] Radar: doddok: He is on the way to being a better Ruby and Rails programmer. He recognises where his abilities are lacking and he knows now where he can go to learn things to fill those holes in his knowledge.
[23:46:42] Radar: jackcom: Please answer the questions with words and not emoticons. jhass asked if you had tried it.
[23:47:52] doddok: he already has made a mistake
[23:48:14] doddok: learning rails fw
[23:48:17] jackcom: Radar: yes, manytimes
[23:48:39] Radar: jackcom: and what happened?
[23:49:00] Radar: Nothing at all? So problem solved?
[23:49:17] Spami: has joined #ruby
[23:50:00] jhass: jackcom: show some more of what you're doing, make a gist with your code, how you run it and the result of doing so
[23:50:12] ohaibbq: has joined #ruby
[23:50:25] jackcom: ok from next time
[23:51:18] NeverDie: has joined #ruby
[23:51:25] Radar: jackcom: ?gist
[23:51:32] Radar: Ok, I cannot drive ruboto at all.
[23:51:35] jackcom: i don???t know gist Radar
[23:51:40] Radar: https://gist.github.com/
[23:51:46] jhass: ?gist jackcom
[23:51:46] ruboto: jackcom, https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[23:51:55] Radar: of course it has to be backwards
[23:52:42] safe: has joined #ruby
[23:54:02] braincrash: has joined #ruby
[23:55:20] vnk: has joined #ruby
[23:55:57] davedev24: has joined #ruby
[23:56:02] vnk: I am making method that check 2 biggest elements of array(integers). here is my code http://pastie.org/10574859 for some reson it bugs, it shows biggest element but second biggest is always 0 for some reson :( anyone have idea what to do?
[23:56:06] apeiros: Radar: the idea is simple: `nick: ???text???` does not address the bot but `nick`. `ruboto: command args???` is the basic form. `!command args???` and `?fact args???` are contractions of that (for convenience)
[23:56:12] doodleha_: has joined #ruby
[23:56:56] apeiros: i.e. ruboto follows the rule for bots to only speak when addressed, with the exception of having two allowed command prefixes.
[23:57:14] sulky: has joined #ruby
[23:57:25] apeiros: oh, actually there are more exceptions :-/ (pastebin -> gist f.ex.)
[23:57:33] jhass: vnk: think about lines 10 and 11, what value does largest have on line 11?
[23:57:52] apeiros: and now for real, no more reading x64 assembler - to bed with me! :D
[23:58:12] doddok: max1 = array.max; second = (array-[max1]).max
[23:58:44] vnk: jhass: largest should have on start value of first element.
[23:58:48] vnk: doddok: yes?
[23:58:57] Radar: >> [5, 1, 3, 2, 4].max(2)
[23:58:58] ruboto: Radar # => [5, 4] (https://eval.in/473969)
[23:59:03] vnk: al2o3-cr: you can do that?! :O
[23:59:11] jhass: vnk: what does line 10 do?
[23:59:37] jhass: vnk: I would still recommend you try to understand the issue in your method ;)
[23:59:41] vnk: jhass: I just gave it value of x, now I am not sure why..