« Back to channel list

#ruby - 11 December 2015

« Back 1 day Forward 1 day »
[00:03:09] bubbys: has joined #ruby
[00:04:49] tvw: has joined #ruby
[00:05:00] charliesome: has joined #ruby
[00:06:15] yfeldblum: has joined #ruby
[00:09:30] Suntzu: has joined #ruby
[00:10:44] Guest85239: has joined #ruby
[00:11:19] Azure: has joined #ruby
[00:14:42] ur5us: has joined #ruby
[00:14:47] nettoweb: has joined #ruby
[00:14:59] krzkrz: has joined #ruby
[00:15:01] citrusfizz: is p short for puts?
[00:15:46] Ox0dea: citrusfizz: `p foo` == `puts foo.inspect`
[00:16:09] Ox0dea: Except that `puts` returns `nil`, whereas `p` returns `foo`.
[00:17:10] zenspider: has joined #ruby
[00:18:25] zenspider: rawr. what'd I miss?
[00:18:50] blub: hi zenspider
[00:19:26] brendan-: has joined #ruby
[00:19:57] hxegon: has joined #ruby
[00:21:01] QualityAddict: has joined #ruby
[00:21:58] solocshaw: has joined #ruby
[00:22:01] banister: has joined #ruby
[00:22:48] rdavila: has joined #ruby
[00:23:17] jetpackjoe: has joined #ruby
[00:23:24] platzhirsch: has left #ruby: ()
[00:24:17] inanepenguin: has joined #ruby
[00:24:47] govg: has joined #ruby
[00:25:10] Bellthoven: has joined #ruby
[00:27:11] banister_: has joined #ruby
[00:27:45] blub: whats up....write any ruby
[00:27:56] DLSteve: has joined #ruby
[00:29:15] symm-: has joined #ruby
[00:30:21] c-c: hookay, looks like 2.1.5 has no rdoc data for the core
[00:30:30] hxegon: has joined #ruby
[00:30:39] c-c: or maybe this is a debian jessie problem?
[00:30:44] calderonroberto: has joined #ruby
[00:31:10] zenspider: c-c: probably a packaging issue. comes up time and time again w/ linux distros
[00:31:24] zenspider: look for ruby-docs or somesuch?
[00:31:41] zenspider: blub: all the time
[00:31:56] blub: nice..nice
[00:32:40] c-c: zenspider: indeed such a package exists in debian jessie:
[00:33:09] c-c: i A ruby2.1-doc - Documentation for Ruby 2.1
[00:33:12] zenspider: I still use rdoc all the time. can't stand having to fire up a web browser just to read something plaintext
[00:33:24] dlitvak: has joined #ruby
[00:33:34] c-c: lol I even have it installed, I guess rdoc must be used to rebuild in some suitable location
[00:34:08] zenspider: how are you testing for it?
[00:34:12] zenspider: `ri String`
[00:34:28] c-c: I was using Array -- the classic nothing known
[00:34:51] zenspider: huh. can you ensure via `which ri` or something that it is coming from the right package/
[00:35:22] zenspider: `ri --list-doc-dirs`
[00:35:28] c-c: Then I installed rdoc and rdoc-data with -All kinds of flags, and now it has the gem docs. So clearly one must add the core/std docs.
[00:35:44] zenspider: I've got a lot of gem dirs listed plus: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/share/ri/2.0.0/system and friends
[00:36:05] zenspider: rdoc-data is only for 1.9 and below
[00:36:20] zenspider: I don't know what's wrong w/ your setup... but it shouldn't be solved w/ that
[00:36:25] c-c: Ok now I know
[00:36:30] c-c: I have rvm on this box!
[00:36:32] zenspider: in fact, rdoc-data is prolly stale/wrong for 2.1
[00:36:39] zenspider: ah. that's it
[00:36:53] zenspider: rvm has a subcmd to build the doco and excludes it by default, which I hate
[00:37:20] zenspider: you really should only do rvm (or better, rbenv) or packages... not both.
[00:37:28] talntid: has left #ruby: ()
[00:37:29] ramfjord: has joined #ruby
[00:39:11] c-c: well, so many boxes, I forget to test whats what on each
[00:39:23] puria: has joined #ruby
[00:41:48] c-c: hm, or maybe that debian jessie ruby 2.1 has been installed by some other jessie package as dep
[00:44:08] dnewkerk: has joined #ruby
[00:44:10] calderonroberto: has joined #ruby
[00:44:36] lyoshajapan: has joined #ruby
[00:49:35] bb010g: has joined #ruby
[00:50:56] Bugboy1028: has joined #ruby
[00:52:11] mclong: has joined #ruby
[00:53:50] duncannz: has joined #ruby
[00:53:54] zacts: hi rubyists
[00:53:57] zacts: zenspider: cool nick
[00:54:20] zacts: I actually have a spiderman toothbrush in my side pack... :-D
[00:54:32] zacts: anyway, I love some of these ruby tutorials on github linked in /topic
[00:56:07] blackmesa: has joined #ruby
[01:02:08] freerobby: has joined #ruby
[01:05:24] casadei: has joined #ruby
[01:05:47] kmckelvi1: has joined #ruby
[01:06:35] nanoz: has joined #ruby
[01:09:43] JDiPierro: has joined #ruby
[01:10:05] berserk_ren: has joined #ruby
[01:11:59] ruid: has joined #ruby
[01:12:00] ruid: has joined #ruby
[01:14:30] CloCkWeRX: has joined #ruby
[01:15:58] solocshaw: has joined #ruby
[01:16:09] tenderlove: has joined #ruby
[01:16:31] lyoshajapan: has joined #ruby
[01:16:34] zenspider: zacts: thanks?
[01:17:01] zacts: zenspider: sorry, just thought it was too cool
[01:17:30] zacts: (don't mean to be offtopic)
[01:18:01] diegoviola: ruby is cool
[01:18:07] diegoviola: and this community also
[01:20:52] Ox0dea: diegoviola: Whence the change of heart?
[01:20:52] arescorpio: has joined #ruby
[01:20:59] shanemcd: has joined #ruby
[01:21:20] diegoviola: Ox0dea: change of heart? what do you mean?
[01:21:41] Ox0dea: I just recall you bashing #ruby at some point not too long ago.
[01:22:07] diegoviola: I don't think I ever bashed ruby
[01:22:41] Ox0dea: There is a difference between Ruby the programming language and #ruby the IRC channel.
[01:22:45] Ox0dea: Precision matters.
[01:22:53] diegoviola: I don't think I ever bashed #ruby
[01:23:07] Ox0dea: Must've just been #ror, then.
[01:23:18] jhn: has joined #ruby
[01:24:08] Ox0dea: Oh, it was Ruby's manpage with which you took some umbrage.
[01:24:19] Ox0dea: For shitting on Perl, as you saw it.
[01:24:27] diegoviola: I don't have change of heart (not sure what it means, not really interested either)
[01:24:40] diegoviola: and no, that wasn't me bashing ruby or #ruby
[01:24:49] c-c: I'm sorry to inform you that the c-c corporation test labs have finalized alpha version of ruby that is written entirely in YAML. So enjoy while it lasts, soon c-c megacorp robots will force you to write everything in YAML.
[01:25:02] c-c: (even ruby)
[01:26:31] berserk_ren: has joined #ruby
[01:26:44] diegoviola: Ox0dea: I just thought it looked odd in the man page, that's all
[01:27:09] zenspider: c-c: you're late to the party
[01:27:36] zenspider: c-c: http://confreaks.tv/videos/rubyconf2009-worst-ideas-ever
[01:27:59] rdavila: has joined #ruby
[01:28:24] rgrmatt: has joined #ruby
[01:28:31] diegoviola: Ox0dea: I tend to contribute to the documentation of some projects, this is my latest change (not related to ruby): https://lkml.org/lkml/2015/11/5/78
[01:29:25] diegoviola: Ox0dea: so maybe I could improve the ruby man page also
[01:30:08] saddad: has joined #ruby
[01:30:15] InvGhost: has joined #ruby
[01:30:23] Ox0dea: c-c: https://gist.github.com/0x0dea/eb96b4d620f2b2034f4e
[01:30:38] Ox0dea: We could write Ruby in YAML just fine.
[01:31:02] zenspider: enterprise ruby!
[01:31:55] c-c: how did you know!
[01:33:12] nettoweb: has joined #ruby
[01:34:14] lyoshajapan: has joined #ruby
[01:34:42] dlitvak: has joined #ruby
[01:34:50] jessemcgilallen_: has joined #ruby
[01:36:03] berserk_ren: has joined #ruby
[01:36:47] kp666: has joined #ruby
[01:36:58] nanoz: has joined #ruby
[01:37:04] tenderlove: has joined #ruby
[01:37:08] baweaver: has joined #ruby
[01:38:13] JDiPierro: has joined #ruby
[01:40:34] ruid: has joined #ruby
[01:40:35] ruid: has joined #ruby
[01:40:47] chipotle: has joined #ruby
[01:41:12] daivyk: has joined #ruby
[01:42:56] hxegon: has joined #ruby
[01:43:06] chaturbate: has joined #ruby
[01:50:28] jhn: has joined #ruby
[01:50:50] segmond: has joined #ruby
[01:51:43] rgrmatt: has joined #ruby
[01:52:12] rickmasta: has joined #ruby
[01:52:33] imperator: has joined #ruby
[01:55:07] rakm: has joined #ruby
[01:57:06] DavidDudson: has joined #ruby
[01:58:38] tjbiddle: has joined #ruby
[01:59:19] devoldmx: has joined #ruby
[01:59:24] JDiPierro: has joined #ruby
[02:00:13] segmond: has joined #ruby
[02:01:10] houhoulis: has joined #ruby
[02:01:19] elton: has joined #ruby
[02:01:38] JDiPierro: has joined #ruby
[02:02:04] DiCablo: has joined #ruby
[02:02:34] casadei: has joined #ruby
[02:03:41] ruid: has joined #ruby
[02:03:42] ruid: has joined #ruby
[02:05:25] arooni: has joined #ruby
[02:06:57] axisys: has joined #ruby
[02:07:06] axisys: has joined #ruby
[02:07:26] Moosashi: has joined #ruby
[02:08:32] kmckelvi1: has joined #ruby
[02:09:39] diegoviola: has joined #ruby
[02:12:17] c-c: Seen code that generates ruby class files from in-memory Class -instances?
[02:15:40] wolffles: has joined #ruby
[02:15:53] centrx: I seen it
[02:15:55] centrx: Big as a bear he was
[02:16:06] wolffles: this is a test, im new to IRC
[02:16:34] elton: has joined #ruby
[02:16:46] jhass: wolffles: it worked!
[02:17:07] zenspider: FINALLY... dropping 1.8, removing build logic from multiruby (using rbenv)... simplify... got my multiversion CI up and running under the new system
[02:17:18] imperator: are there any tools out there for gauging regex efficiency?
[02:17:47] imperator: something that shows me how much backtracking is going on, for instance
[02:17:54] rgrmatt: has joined #ruby
[02:17:55] Nuck: has joined #ruby
[02:17:56] c-c: imperator: would benchmarking time be sufficient?
[02:17:58] zenspider: imperator: mmm... don't know of any, no... there's some nice tools to help optimize regexps, but it won't point out backtracing hotspots
[02:18:29] zenspider: I use regex-opt for the former
[02:19:22] saddad: has joined #ruby
[02:19:38] krzkrz: has joined #ruby
[02:19:51] dfinninger: has joined #ruby
[02:19:51] govg: has joined #ruby
[02:20:04] imperator: that an emacs plugin?
[02:20:18] lyoshajapan: has joined #ruby
[02:20:47] zenspider: cmdline. I got it from homebrew
[02:21:05] zenspider: imperator: found it. http://bisqwit.iki.fi/source/regexopt.html
[02:22:09] Guest65039: has joined #ruby
[02:22:20] imperator: zenspider, thanks, installing now :)
[02:22:41] dfinninger: has joined #ruby
[02:23:42] atomical: has joined #ruby
[02:25:16] tenderlove: has joined #ruby
[02:27:56] baweaver: has joined #ruby
[02:28:57] aibot: has joined #ruby
[02:29:48] sneakerhax: has joined #ruby
[02:31:01] dlitvak: has joined #ruby
[02:33:00] TomPeed: has joined #ruby
[02:33:02] Moosashi: has joined #ruby
[02:34:22] B1n4r10: has joined #ruby
[02:34:56] The_Phoenix: has joined #ruby
[02:35:18] saddad: has joined #ruby
[02:38:09] tcrypt: has joined #ruby
[02:39:54] zenspider: when is 2.0 EOL'd ?
[02:40:13] zenspider: I'm so sick of minitest 4 being in stdlib as a fake gem. fuck me
[02:42:56] Arnvald: has joined #ruby
[02:43:21] jhass: zenspider: february 24
[02:43:30] jhass: (next year)
[02:44:03] zenspider: 2016 is the year of uncruft
[02:44:06] ramfjord: has joined #ruby
[02:44:11] crystalmaiden: has joined #ruby
[02:44:11] RobertBirnie: has joined #ruby
[02:44:41] jhass: oh, 2.3.0-preview2 got released
[02:44:59] crystalmaiden: has joined #ruby
[02:45:46] crystalmaiden: has joined #ruby
[02:46:45] crystalmaiden: has joined #ruby
[02:47:21] tenderlove: has joined #ruby
[02:49:34] kmckelvi1: has joined #ruby
[02:52:43] elton: has joined #ruby
[02:55:32] crystalmaiden: has joined #ruby
[02:56:33] tjbiddle: has joined #ruby
[02:57:10] nettoweb: has joined #ruby
[02:57:10] favadi: has joined #ruby
[02:57:35] lyoshajapan: has joined #ruby
[03:00:07] dlitvak: has joined #ruby
[03:05:16] A124: has joined #ruby
[03:05:33] jessemcgilallen_: has joined #ruby
[03:06:50] Nuck: what the fuck. I'm running into something... new
[03:07:02] Nuck: My ApplicationController apparently doesn't exist or something
[03:07:55] Nuck: I have UsersController < ApplicationController < ActionController::Base, and when I check the ancestry of UsersController, there's no reference to ApplicationController
[03:08:00] Nuck: Why would my superclass cease existing?
[03:08:40] Nuck: Oh and if I instantiate an ApplicationController (which does work!), I can't call any of the methods I defined on it
[03:08:45] Nuck: And Pry can't seem to show the source for it
[03:10:30] yeticry: has joined #ruby
[03:12:39] Rodya_: has joined #ruby
[03:15:01] zenspider: nuck: #rubyonrails
[03:15:21] Nuck: It doesn't seem to be a Rails issue afaict
[03:15:42] zenspider: if rails is fucking with loading and the like, it is a rails issue until proven otherwise
[03:15:49] Nuck: hah fair enough
[03:15:53] zenspider: if you want, replicate the issue w/o rails and I'm happy to help
[03:15:59] zenspider: (until I have to leave)
[03:16:08] Nuck: I'll try disabling Spring and nuking things until it works
[03:17:24] chipotle: has joined #ruby
[03:17:47] supermar_: has joined #ruby
[03:19:04] chipotle: has joined #ruby
[03:20:52] blackgoat: has joined #ruby
[03:21:50] willywos: has joined #ruby
[03:22:36] supermarin: has joined #ruby
[03:23:34] lyoshajapan: has joined #ruby
[03:23:39] jgt: has joined #ruby
[03:23:54] ruid: has joined #ruby
[03:23:54] ruid: has joined #ruby
[03:25:14] sgambino: has joined #ruby
[03:27:20] babblebre: has joined #ruby
[03:28:26] kmckelvi1: has joined #ruby
[03:30:11] Oog: has joined #ruby
[03:30:16] elton: has joined #ruby
[03:30:56] rdavila: has joined #ruby
[03:33:36] durstburger: has joined #ruby
[03:35:26] krzkrz: has joined #ruby
[03:36:31] exadeci: has joined #ruby
[03:36:53] lyoshajapan: has joined #ruby
[03:37:14] yeticry: has joined #ruby
[03:38:43] ap4y: has joined #ruby
[03:39:12] qiukun: has joined #ruby
[03:39:39] bronson: has joined #ruby
[03:42:16] yeticry: has joined #ruby
[03:42:52] diego1: has joined #ruby
[03:43:18] zarubin: has joined #ruby
[03:43:57] blackmesa: has joined #ruby
[03:45:14] elton: has joined #ruby
[03:48:00] rdavila: has joined #ruby
[03:48:06] Contigi: has joined #ruby
[03:49:35] diego1: has joined #ruby
[03:50:32] rdark: has joined #ruby
[03:53:43] qiukun: has joined #ruby
[03:54:37] rdark: has joined #ruby
[03:55:55] lyoshajapan: has joined #ruby
[03:56:29] qiukun: has joined #ruby
[03:57:05] shanemcd: has joined #ruby
[03:58:44] qiukun: has joined #ruby
[04:00:03] tjbiddle: has joined #ruby
[04:00:06] devoldmx: has joined #ruby
[04:03:15] stannard: has joined #ruby
[04:03:22] yeticry: has joined #ruby
[04:04:57] dlitvak: has joined #ruby
[04:07:43] Oog: has joined #ruby
[04:08:24] kmckelvi1: has joined #ruby
[04:17:05] zast: has joined #ruby
[04:17:52] braincrash: has joined #ruby
[04:18:47] akem: has joined #ruby
[04:19:27] dlitvak: has joined #ruby
[04:22:33] qiukun: has joined #ruby
[04:23:17] cwong_on_irc: has joined #ruby
[04:24:57] jgt: has joined #ruby
[04:25:16] cwong_on_irc: has joined #ruby
[04:26:30] dlitvak: has joined #ruby
[04:26:46] Arnvald: has joined #ruby
[04:28:10] RobertBirnie: has joined #ruby
[04:30:59] supermarin: has joined #ruby
[04:31:15] qiukun: has joined #ruby
[04:31:34] baweaver: has joined #ruby
[04:31:34] gix: has joined #ruby
[04:32:39] aspire_: has joined #ruby
[04:34:49] rdavila: has joined #ruby
[04:38:33] lyoshajapan: has joined #ruby
[04:40:08] tAn: has joined #ruby
[04:41:47] bronson: has joined #ruby
[04:42:05] Rodya_: has joined #ruby
[04:43:22] bronson: has joined #ruby
[04:45:27] bronson: has joined #ruby
[04:46:21] ornerymoose: has joined #ruby
[04:47:37] bronson: has joined #ruby
[04:47:39] BlackCoyote: has joined #ruby
[04:47:44] freerobby: has joined #ruby
[04:48:31] ornerymoose: Hi, could someone explain to me why has_value? here returns false? https://gist.github.com/ornerymoose/e6458f666e9f0ea849b4
[04:48:41] rickmasta: has joined #ruby
[04:49:43] bronson: has joined #ruby
[04:49:49] lubarch: has joined #ruby
[04:49:50] lubarch: has joined #ruby
[04:50:17] kmckelvi1: has joined #ruby
[04:51:48] bronson: has joined #ruby
[04:52:42] havenwood: ornerymoose: hash.has_value?(["a", "b", "c"]) #=> true
[04:53:05] RobertBirnie: has joined #ruby
[04:53:58] bronson: has joined #ruby
[04:54:54] havenwood: ornerymoose: It does has a value that's an Array that includes that String, but it's doesn't have a value that's just the String itself.
[04:55:12] ornerymoose: right, right, makes sense now.
[04:56:03] bronson: has joined #ruby
[04:56:12] ornerymoose: What would be best practice to fetch one of the items within the array? (ie, just get back ???a???)
[04:56:54] yfeldblum: has joined #ruby
[04:56:56] ornerymoose: the fetch method kinda does the same thing as has_value here
[04:57:35] Arnvald: has joined #ruby
[04:58:13] bronson: has joined #ruby
[04:59:49] tjbiddle: has joined #ruby
[05:00:24] bronson: has joined #ruby
[05:00:57] rickmasta: has joined #ruby
[05:01:16] havenwood: ornerymoose: I'm not quite sure I follow what you're wanting, but based on your first example maybe consider something along the lines of `hash.any? { |_, v| v.include? "a" }` or `hash.values.flatten(1).include? "a"`.
[05:01:41] ornerymoose: Yeah that was a poorly worded question, my bad.
[05:01:48] ornerymoose: And nice, looking at the include? method on the docs now
[05:02:29] bronson: has joined #ruby
[05:04:39] bronson: has joined #ruby
[05:05:48] lemur: has joined #ruby
[05:05:52] ornerymoose: That flatten method is awesome. I appreciate your help, think I got it!
[05:05:55] lyoshajapan: has joined #ruby
[05:06:34] wolffles: has joined #ruby
[05:06:49] bronson: has joined #ruby
[05:08:24] Cyther: has joined #ruby
[05:08:49] bronson: has joined #ruby
[05:08:54] podman: has joined #ruby
[05:10:17] havenwood: ornerymoose: :D
[05:10:59] bronson: has joined #ruby
[05:12:05] codeurge: has joined #ruby
[05:13:04] bronson: has joined #ruby
[05:14:28] blackmesa: has joined #ruby
[05:14:33] lyoshajapan: has joined #ruby
[05:15:11] berserk_ren: has joined #ruby
[05:16:30] DiCablo: has joined #ruby
[05:18:56] pwnd_nsfw: has joined #ruby
[05:21:45] astrobun_: has joined #ruby
[05:24:00] Bloomer: has joined #ruby
[05:24:21] elton: has joined #ruby
[05:25:10] ramfjord: has joined #ruby
[05:26:27] shevy: flatten the mouse
[05:26:30] shevy: and flatten the moose
[05:26:38] blub: hi shevy
[05:26:52] shevy: hey blub are you still pondering about classes versus modules
[05:27:11] blub: that wasnt me
[05:29:34] therealcode: has joined #ruby
[05:29:43] Ox0dea: shevy: Are you doing AoC?
[05:30:29] djbkd: has joined #ruby
[05:31:12] kmckelvi1: has joined #ruby
[05:33:11] lyoshajapan: has joined #ruby
[05:33:54] shevy: Ox0dea AoC?
[05:33:57] colegatron: has joined #ruby
[05:34:57] Ox0dea: shevy: http://adventofcode.com/leaderboard ^_^
[05:35:03] gamov: has joined #ruby
[05:35:24] Ox0dea: I even mis-pasted my second answer and had to wait a whole minute before I could try again.
[05:35:30] shevy: don't think I have seen that before
[05:35:33] Ox0dea: Ruby is too good for speedcoding.
[05:35:55] shevy: I am not even sure what this is about
[05:36:03] shevy: but I see that you are on top, whatever that is
[05:36:13] Ox0dea: Project Euler + advent calendar.
[05:37:06] krzkrz: has joined #ruby
[05:37:40] CloCkWeRX: has left #ruby: ()
[05:40:23] DavidDudson: has joined #ruby
[05:41:37] darkf: has joined #ruby
[05:41:59] lyoshajapan: has joined #ruby
[05:43:41] zarubin: has joined #ruby
[05:43:41] nertzy: has joined #ruby
[05:45:00] DavidDudson: has joined #ruby
[05:47:51] supermarin: has joined #ruby
[05:51:08] S01780: has joined #ruby
[05:52:39] atmosx: Good morning everyone
[05:53:00] blub: hi atmosx
[05:54:59] tenderlove: has joined #ruby
[05:55:00] supermarin: has joined #ruby
[05:57:10] ta: has joined #ruby
[05:58:48] qiukun: has joined #ruby
[05:59:48] DavidDudson: has joined #ruby
[06:00:51] devoldmx: has joined #ruby
[06:02:04] colleenmcguckin: has joined #ruby
[06:04:31] qiukun: has joined #ruby
[06:05:36] supermarin: has joined #ruby
[06:07:01] shevy: omg https://github.com/dotnet/coreclr/issues/2285 - how do people have so much time to even invest as much time into discussing something
[06:07:08] qiukun: has joined #ruby
[06:09:18] favadi: has joined #ruby
[06:11:25] supermarin: has joined #ruby
[06:13:55] qiukun: has joined #ruby
[06:14:12] araujo: has joined #ruby
[06:14:28] favadi: has joined #ruby
[06:14:43] kmckelvi1: has joined #ruby
[06:14:54] bronson: has joined #ruby
[06:15:11] hxegon: has joined #ruby
[06:15:51] ornerymoose: has joined #ruby
[06:18:14] lyoshajapan: has joined #ruby
[06:19:35] baweaver_: has joined #ruby
[06:21:09] RTG`: has joined #ruby
[06:21:19] bmalum: has joined #ruby
[06:22:07] lkba_: has joined #ruby
[06:23:18] qiukun: has joined #ruby
[06:25:11] qiukun: has joined #ruby
[06:25:36] jgt: has joined #ruby
[06:26:55] chouhoul_: has joined #ruby
[06:27:29] Heero: has joined #ruby
[06:27:29] vikaton: has joined #ruby
[06:27:49] mattyohe: has joined #ruby
[06:27:49] PhilK: has joined #ruby
[06:28:00] pizzaops: has joined #ruby
[06:29:09] shevy: did something with the documentation change lately?
[06:29:13] shevy: I never before saw this style:
[06:29:14] shevy: http://docs.ruby-lang.org/en/2.1.0/OptionParser.html#method-i-make_switch
[06:32:54] codeurge: has joined #ruby
[06:33:15] Glenny: has joined #ruby
[06:34:26] passerine: has joined #ruby
[06:35:41] bubbys: has joined #ruby
[06:36:20] Moosashi: has joined #ruby
[06:37:24] trautwein: has joined #ruby
[06:38:02] techsethi: has joined #ruby
[06:40:55] agit0: has joined #ruby
[06:42:06] auzty: has joined #ruby
[06:42:50] tagrudev: has joined #ruby
[06:43:41] zarubin: has joined #ruby
[06:43:44] lyoshajapan: has joined #ruby
[06:44:54] supermarin: has joined #ruby
[06:45:04] blackmesa: has joined #ruby
[06:47:17] dlitvak: has joined #ruby
[06:50:20] qiukun: has joined #ruby
[06:50:30] devoldmx: has joined #ruby
[06:50:42] lemur: has joined #ruby
[06:54:54] aufi: has joined #ruby
[06:55:28] qiukun: has joined #ruby
[06:56:11] baweaver_: has joined #ruby
[06:57:26] User458764: has joined #ruby
[07:00:32] tenderlove: has joined #ruby
[07:00:37] jetpackjoe: has joined #ruby
[07:01:00] Cohedrin: has joined #ruby
[07:01:13] lubarch: has joined #ruby
[07:01:13] lubarch: has joined #ruby
[07:02:20] qiukun: has joined #ruby
[07:04:17] solars: has joined #ruby
[07:04:28] qiukun: has joined #ruby
[07:05:01] avahey: has joined #ruby
[07:05:12] kmckelvi1: has joined #ruby
[07:05:19] aufi: has joined #ruby
[07:10:53] qiukun: has joined #ruby
[07:11:24] myztic: has joined #ruby
[07:13:52] lemur: has joined #ruby
[07:14:09] dionysus69: has joined #ruby
[07:17:00] baweaver_: has joined #ruby
[07:20:53] akkad: has joined #ruby
[07:24:08] troulouliou_div2: has joined #ruby
[07:24:53] exadeci: has joined #ruby
[07:25:13] iateadonut: has joined #ruby
[07:30:01] qiukun: has joined #ruby
[07:30:21] codecop: has joined #ruby
[07:30:38] aganov: has joined #ruby
[07:30:46] scepticulous: has joined #ruby
[07:31:36] yardenbar: has joined #ruby
[07:35:32] DeXterbed: has joined #ruby
[07:36:26] codeurge: has joined #ruby
[07:38:44] krzkrz: has joined #ruby
[07:38:57] qiukun: has joined #ruby
[07:42:06] DavidDudson: has joined #ruby
[07:43:03] [dmp]: has joined #ruby
[07:43:45] zarubin: has joined #ruby
[07:45:36] B1n4r10: has joined #ruby
[07:45:50] djbkd: has joined #ruby
[07:45:58] sandstrom: has joined #ruby
[07:46:28] blackmesa: has joined #ruby
[07:48:08] anisha: has joined #ruby
[07:48:24] qiukun: has joined #ruby
[07:48:33] passerine: has left #ruby: ("Leaving")
[07:50:07] tvw: has joined #ruby
[07:50:14] AmayA-_: has joined #ruby
[07:52:21] lubarch: has joined #ruby
[07:52:21] lubarch: has joined #ruby
[07:53:57] DavidDudson: has joined #ruby
[07:54:32] ledestin: has joined #ruby
[07:55:36] jbrhbr: has joined #ruby
[07:57:31] qiukun: has joined #ruby
[07:57:40] mesamoo: has joined #ruby
[07:59:03] juddey: has joined #ruby
[07:59:10] qiukun: has joined #ruby
[08:00:19] vondruch: has joined #ruby
[08:00:54] qiukun: has joined #ruby
[08:01:56] symm-: has joined #ruby
[08:02:40] TomyWork: has joined #ruby
[08:06:58] agit0: has joined #ruby
[08:07:48] brunto: has joined #ruby
[08:09:20] devoldmx: has joined #ruby
[08:09:36] qiukun: has joined #ruby
[08:11:18] ibouvousaime: has joined #ruby
[08:13:03] Silox|: has joined #ruby
[08:14:12] charliesome: has joined #ruby
[08:14:39] SCHAAP137: has joined #ruby
[08:14:56] adac: has joined #ruby
[08:15:35] Bloomer: has joined #ruby
[08:15:58] CloCkWeRX: has joined #ruby
[08:16:22] DeXterbed: has joined #ruby
[08:17:23] wldcordeiro: has joined #ruby
[08:19:19] TvL2386: has joined #ruby
[08:20:17] TvL2386: hi guys, is there a way to kill a process created with EventMachine::popen? I'm having a hanging subprocess and I want to implement some kind of timeout
[08:26:40] jgt: has joined #ruby
[08:29:42] tAn: has joined #ruby
[08:29:58] BSaboia: has joined #ruby
[08:31:31] andykingking: has joined #ruby
[08:31:40] charliesome: has joined #ruby
[08:36:20] lurch_: has joined #ruby
[08:40:46] sandstrom: has joined #ruby
[08:43:30] lubarch: has joined #ruby
[08:43:39] Arnvald: has joined #ruby
[08:43:40] zarubin: has joined #ruby
[08:44:02] bronson: has joined #ruby
[08:45:22] senayar: has joined #ruby
[08:45:22] senayar: has joined #ruby
[08:46:04] Mon_Ouie: has joined #ruby
[08:47:43] lubarch: has joined #ruby
[08:47:51] blackmesa: has joined #ruby
[08:48:43] marr: has joined #ruby
[08:50:00] qiukun: has joined #ruby
[08:54:18] c0m0: has joined #ruby
[08:54:48] araujo: has joined #ruby
[08:54:49] araujo: has joined #ruby
[08:54:58] qiukun: has joined #ruby
[08:55:20] Xiti: has joined #ruby
[08:55:50] devoldmx: has joined #ruby
[08:57:27] anisha: has joined #ruby
[08:57:30] qiukun: has joined #ruby
[08:57:43] jas02: has joined #ruby
[08:57:54] DavidDudson: has joined #ruby
[08:59:26] qiukun: has joined #ruby
[09:03:05] Pumukel: has joined #ruby
[09:03:10] snowy: has joined #ruby
[09:03:30] lubarch: has joined #ruby
[09:04:11] sandstrom: has joined #ruby
[09:04:17] krzkrzkrz: has joined #ruby
[09:04:53] chthon: has joined #ruby
[09:05:05] snowy: has joined #ruby
[09:05:20] ttilley: has joined #ruby
[09:05:25] ttilley: has joined #ruby
[09:05:46] drptbl: has joined #ruby
[09:06:00] Bloomer: has joined #ruby
[09:08:30] lubarch: has joined #ruby
[09:08:57] techsethi: has joined #ruby
[09:09:22] tagrudev: has joined #ruby
[09:09:45] DavidDudson: has joined #ruby
[09:09:46] cornerma1: has joined #ruby
[09:10:36] TheHodge: has joined #ruby
[09:13:16] qiukun: has joined #ruby
[09:13:32] User458764: has joined #ruby
[09:14:29] toretore: has joined #ruby
[09:21:37] Nahra```: has joined #ruby
[09:22:23] DavidDudson: has joined #ruby
[09:22:45] timonv: has joined #ruby
[09:24:41] qiukun: has joined #ruby
[09:28:24] avelldiroll: has joined #ruby
[09:28:41] Pumukel: has joined #ruby
[09:29:13] lyoshajapan: has joined #ruby
[09:30:10] lysw123: has joined #ruby
[09:30:44] julweber: has joined #ruby
[09:31:23] DavidDudson: has joined #ruby
[09:32:02] jgt: has joined #ruby
[09:32:27] Tempesta: has joined #ruby
[09:32:35] lysw123: has joined #ruby
[09:33:02] DeXterbed: has joined #ruby
[09:34:21] B1n4r10: has joined #ruby
[09:34:57] Tempesta: has joined #ruby
[09:35:01] Hounddog: has joined #ruby
[09:35:41] DavidDudson: has joined #ruby
[09:37:58] user1138: has joined #ruby
[09:39:01] krzkrzkrz: has joined #ruby
[09:43:51] zarubin: has joined #ruby
[09:44:48] tomphp: has joined #ruby
[09:45:43] zotherstupidguy: has joined #ruby
[09:49:13] blackmesa: has joined #ruby
[09:52:30] lemur: has joined #ruby
[09:52:48] qiukun: has joined #ruby
[09:54:05] blaxter: has joined #ruby
[09:54:34] baweaver: has joined #ruby
[09:56:02] elton: has joined #ruby
[09:56:32] devoldmx: has joined #ruby
[09:59:42] rodfersou: has joined #ruby
[10:00:07] platzhirsch: has joined #ruby
[10:01:26] ayonkhan: has joined #ruby
[10:02:56] ethe: has joined #ruby
[10:07:43] qiukun: has joined #ruby
[10:09:44] qiukun: has joined #ruby
[10:10:08] jgt: has joined #ruby
[10:13:52] qiukun: has joined #ruby
[10:13:52] platzhirsch: has joined #ruby
[10:16:02] blackmesa: has joined #ruby
[10:19:14] bronson: has joined #ruby
[10:20:47] lkba: has joined #ruby
[10:23:16] qiukun: has joined #ruby
[10:23:17] loren: has joined #ruby
[10:23:50] platzhirsch: has joined #ruby
[10:25:28] blackgoat: has joined #ruby
[10:27:11] qiukun: has joined #ruby
[10:27:42] nfk|laptop: has joined #ruby
[10:29:38] yfeldblum: has joined #ruby
[10:29:49] qiukun: has joined #ruby
[10:30:28] lubarch_: has joined #ruby
[10:31:02] DeXterbed: has joined #ruby
[10:32:27] ruby-lang219: has joined #ruby
[10:33:15] ruby-lang219: I am quite new to ruby and have a little question
[10:33:46] ruby-lang219: does anyone know if i can access the command history of a user on linux or listen to incoming commands in the shell?
[10:34:07] lubarch: has joined #ruby
[10:34:07] lubarch: has joined #ruby
[10:35:03] adaedra: theorically, you can access the history; but this is dependent on machine and/or user configuration (shell, location, etc.)
[10:35:25] adaedra: what do you mean now by "listen to incoming commands in the shell"?
[10:36:08] lubarch: has joined #ruby
[10:36:09] lubarch: has joined #ruby
[10:36:09] ruby-lang219: let's say I use bash. I would like to log which commands I input into the shell
[10:36:44] adaedra: into any shell?
[10:37:03] ruby-lang219: if possible yes, otherwise I am fine with bash
[10:37:10] adaedra: no, I mean
[10:37:14] adaedra: into any bash instance?
[10:37:31] lubarch: has joined #ruby
[10:37:31] lubarch: has joined #ruby
[10:37:39] ruby-lang219: is this possible?
[10:38:05] adaedra: I think it's more bash side
[10:38:14] adaedra: But what are you trying to do in the first place?
[10:39:04] ruby-lang219: My main goal is to make a list of all frequently accessed directories, lets say i do "cd Documents/mainDir" and if i give the string
[10:39:25] ruby-lang219: 'mainDir' as an argument to the ruby program it should automatically change to the directory Documents/mainDir
[10:39:41] ruby-lang219: so just a little command line tool for easier directory access
[10:40:16] ruby-lang219: I think the main problems are to capture the commands and to change the directory because ruby will be a child process right?
[10:40:34] adaedra: So you would have a part that collects accessed directories, and another that reads that collected data to sort most accessed directories?
[10:40:53] shevy: if you invoke a ruby file you can have it log output into a file, but cd itself is a shell builtin
[10:41:09] lubarch: has joined #ruby
[10:41:09] lubarch: has joined #ruby
[10:41:15] baweaver: has joined #ruby
[10:41:24] ruby-lang219: yeah i know but with the system command it's possible to call commands I've seen
[10:41:24] adaedra: There's a directory change hook, you could call your collector in it
[10:42:01] adaedra: This has to be called by the shell imo
[10:42:38] ruby-lang219: ok I didn't know that existed, how does this work?
[10:43:22] adaedra: there may be another way, it's just an idea, is more difficult to code, but may not need to edit the shell itself: track shell processes, and use /proc to see cwd.
[10:43:35] DeXterbed: can't you get a list of dirs from the history file?
[10:44:35] adaedra: mh, it may appear that the chpwd hook is zsh-only.
[10:44:59] blub: getting absolute paths would be a trick wouldnt it dexterbed
[10:45:12] adaedra: the bash-solution would be to override cd, but that's bleh
[10:45:21] ldnunes: has joined #ruby
[10:45:26] blub: especially with CDPATH
[10:46:58] ruby-lang219: so can I call system 'history' from the ruby process? I tried this and didn't get any output
[10:47:08] adaedra: nope, history is a builtin.
[10:47:52] adaedra: better to look where bash stores its history and read the history file.
[10:50:08] bean: has joined #ruby
[10:51:42] ruby-lang219: thanks that seems to work :) "system 'cat ~/.bash_history' " shows the whole history :)
[10:51:58] KrzaQ: [*?a..?z] <-- how should I understand this?
[10:52:15] adaedra: ruby-lang219: why use system cat for that? Just use IO.read
[10:52:16] KrzaQ: I can see what it is in pry, but I don't know what the star does
[10:52:22] KrzaQ: or ? to be honest
[10:52:27] ruby-lang219: It was a little test
[10:52:35] adaedra: KrzaQ: ?x is a character litteral.
[10:52:38] ruboto: adaedra # => "x" (https://eval.in/483727)
[10:52:59] adaedra: KrzaQ: the * is a splat: it will take the array/range/... you give it and expands it as parameters
[10:53:23] KrzaQ: so, it's pretty much .to_a ?
[10:54:58] qiukun: has joined #ruby
[10:55:37] adaedra: >> def add(a, b); a + b; end; add *[1, 2] # KrzaQ
[10:55:39] ruboto: adaedra # => 3 (https://eval.in/483730)
[10:56:22] beast: has joined #ruby
[10:57:06] elton: has joined #ruby
[10:57:43] Peg-leg: has joined #ruby
[10:59:33] last_staff: has joined #ruby
[11:01:23] last_staff: has joined #ruby
[11:02:23] gix: has joined #ruby
[11:03:31] qiukun: has joined #ruby
[11:04:54] ponga: has joined #ruby
[11:06:04] nettoweb: has joined #ruby
[11:07:59] qiukun: has joined #ruby
[11:09:24] FooMunki: has joined #ruby
[11:10:17] shevy: .gsub versus .tr versus .delete - before looking what is the fastest, make a guess! http://pastie.org/pastes/10625021/text
[11:13:57] shevy: .gsub is such a heavy beast
[11:14:01] KrzaQ: .reject would be probably even slower
[11:14:30] huyderman: has joined #ruby
[11:15:29] shevy: you have to combine .reject with something to get rid of characters or?
[11:15:38] blackmesa: has joined #ruby
[11:16:19] chipotle: has joined #ruby
[11:18:32] dlitvak: has joined #ruby
[11:18:53] sdothum: has joined #ruby
[11:19:44] jds: has joined #ruby
[11:20:01] dlitvak: has joined #ruby
[11:20:30] rickmasta: has joined #ruby
[11:21:06] adaedra: shevy: logical, as gsub bases itself on regegxp match, which is more expensive.
[11:22:16] c355E3B: has joined #ruby
[11:23:09] B1n4r10: has joined #ruby
[11:24:13] julian-delphiki: has joined #ruby
[11:27:25] stamina: has joined #ruby
[11:28:13] haxrbyte: has joined #ruby
[11:31:11] qiukun: has joined #ruby
[11:33:20] colegatron: has joined #ruby
[11:34:49] sandstrom: has joined #ruby
[11:35:07] prestorium: has joined #ruby
[11:36:37] rodferso1: has joined #ruby
[11:39:07] davedev24: has joined #ruby
[11:42:25] houhoulis: has joined #ruby
[11:42:31] ruby-lang219: does anyone know how to call a shell command of the parent process from the ruby child process?
[11:45:09] Bellthoven: has joined #ruby
[11:45:55] nettoweb: has joined #ruby
[11:46:26] rodfersou: has joined #ruby
[11:46:28] arquebus: has joined #ruby
[11:47:29] Ropeney: has joined #ruby
[11:48:20] Bellthoven: has joined #ruby
[11:50:11] qiukun: has joined #ruby
[11:54:38] qiukun: has joined #ruby
[11:55:03] ruby-lang219: does anyone know how to call a shell command of the parent process from the ruby child process?
[11:56:13] gits1225: has joined #ruby
[11:56:42] symm-: has joined #ruby
[11:57:09] Insti: ruby-lang219, system ?
[11:57:17] devoldmx: has joined #ruby
[11:57:31] sandstrom: has joined #ruby
[11:57:32] ruby-lang219: if you call system it won't affect the parent process that's the problem
[11:57:53] ruby-lang219: so if i run a ruby script it won't change the environment i'm running it from
[11:57:53] elton: has joined #ruby
[11:58:40] ruby-lang219: I've thought of this hack. Run a bash script which calls the ruby script which makes a file which is run from the bash script
[11:58:50] ruby-lang219: but this is so bad
[11:59:01] ruby-lang219: and I would like to make it in a ruby way
[12:01:16] sandstrom: has joined #ruby
[12:01:39] qiukun: has joined #ruby
[12:02:09] DeXterbed: has joined #ruby
[12:03:16] atumzin: has joined #ruby
[12:03:19] Maximoz: has joined #ruby
[12:04:18] sandstrom: has joined #ruby
[12:04:27] nettoweb: has joined #ruby
[12:04:35] wolffles: has joined #ruby
[12:05:16] spiman: has joined #ruby
[12:05:23] rodferso1: has joined #ruby
[12:07:04] jhass: ?xy ruby-lang219
[12:07:04] ruboto: ruby-lang219, it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
[12:07:31] ruby-lang219: ok i will explain my problem
[12:08:05] ruby-lang219: i would like to change my current directory from bash by calling a ruby script
[12:08:20] jhass: technically impossible
[12:08:36] jhass: you can do something like cd $(ruby foo.rb)
[12:09:33] ledestin: has joined #ruby
[12:09:46] ruby-lang219: didn't know you could do that thanks
[12:10:46] techsethi: has joined #ruby
[12:11:56] bronson: has joined #ruby
[12:12:15] Pumukel: has joined #ruby
[12:12:36] charliesome: has joined #ruby
[12:13:07] ruby-lang048: has joined #ruby
[12:13:33] vdamewood: has joined #ruby
[12:13:56] wmdrossard: has joined #ruby
[12:16:30] l0yd: has joined #ruby
[12:16:55] dlitvak: has joined #ruby
[12:18:22] ItSANgo: has joined #ruby
[12:19:03] dlitvak: has joined #ruby
[12:21:41] quaristice: has joined #ruby
[12:22:11] sandstrom: has joined #ruby
[12:22:17] favadi: has joined #ruby
[12:22:37] yqt: has joined #ruby
[12:22:58] atumzin: has joined #ruby
[12:24:05] baweaver: has joined #ruby
[12:24:22] rdark: has joined #ruby
[12:24:46] sandstrom: has joined #ruby
[12:26:46] tknz: has joined #ruby
[12:27:03] shevy: I used to be able to use KDE's dcop to restart a REPL in ruby on exit ... the zombie REPL :)
[12:29:47] jgt: has joined #ruby
[12:31:37] chipotle: has joined #ruby
[12:32:44] skade: has joined #ruby
[12:35:06] atumzin: has joined #ruby
[12:38:14] Nahra```: has joined #ruby
[12:38:21] Fraeon: has joined #ruby
[12:39:02] casadei: has joined #ruby
[12:39:15] dlitvak: has joined #ruby
[12:40:53] cjk101010: has joined #ruby
[12:41:37] rodfersou: has joined #ruby
[12:43:24] User458764: has joined #ruby
[12:43:25] zarubin: has joined #ruby
[12:46:12] B1n4r10: has joined #ruby
[12:47:03] nettoweb: guys, can you suggest some good gem to do simple sorting table list? I start to do everything but I have lots of columns so my code gots big
[12:48:19] Xentil: has joined #ruby
[12:49:32] sgambino: has joined #ruby
[12:50:16] atumzin: has joined #ruby
[12:52:38] dlitvak: has joined #ruby
[12:54:18] atomical: has joined #ruby
[12:55:27] Fraeon: has joined #ruby
[12:55:53] techsethi: has joined #ruby
[12:56:09] tenderlove: has joined #ruby
[12:57:21] daivyk: has joined #ruby
[12:58:20] dlitvak: has joined #ruby
[12:58:29] Spami: has joined #ruby
[13:06:05] voodo: has joined #ruby
[13:07:09] rodfersou: has joined #ruby
[13:07:24] synthroid: has joined #ruby
[13:09:36] mostlybadfly: has joined #ruby
[13:10:24] desmondhume: has joined #ruby
[13:15:34] d0nn1e: has joined #ruby
[13:15:50] desmondhume: has joined #ruby
[13:21:05] AlexRussia: has joined #ruby
[13:23:18] jcromartie: has joined #ruby
[13:23:50] johnzorn: has joined #ruby
[13:25:44] snowy: has joined #ruby
[13:26:01] agit0: has joined #ruby
[13:26:15] techsethi: has joined #ruby
[13:26:21] f4cl3y: has joined #ruby
[13:26:50] ytti: oh yeaaah
[13:26:54] prestorium: has joined #ruby
[13:26:59] ytti: pry interated slop3
[13:27:03] ytti: and no longer depends to slop
[13:27:13] jhass: really? <3
[13:27:16] f4cl3y: has joined #ruby
[13:27:20] jhass: ljarvis: ^ ;D
[13:27:29] ytti: https://github.com/pry/pry/pull/1498
[13:28:15] rickmasta: has joined #ruby
[13:28:53] jhass: now nov just needs to accept my PR ripping AS out of json-jwt and I might have faith into this community again :P
[13:29:38] ledestin: has joined #ruby
[13:30:05] shevy: november?
[13:31:52] johnzorn: has joined #ruby
[13:32:37] jhass: github.com/nov
[13:32:51] apeiros: what's json jwt?
[13:33:03] apeiros: ACTION looks
[13:34:00] atomical: has joined #ruby
[13:35:26] tenderlove: has joined #ruby
[13:35:32] shevy: that reminds me of hanmac
[13:35:38] shevy: he gets all his changes in :)
[13:36:05] rodfersou: has joined #ruby
[13:43:57] B1n4r10: has joined #ruby
[13:44:19] ramortegui: has joined #ruby
[13:45:28] shanemcd: has joined #ruby
[13:45:43] davedev24: has joined #ruby
[13:48:38] bnizzle1: has joined #ruby
[13:49:03] bnizzle1: has left #ruby: ()
[13:49:20] dstarh: has joined #ruby
[13:52:13] akkad: has joined #ruby
[13:55:22] dlitvak: has joined #ruby
[13:58:03] devoldmx: has joined #ruby
[13:58:04] dlitvak_: has joined #ruby
[13:58:43] Moosashi: has joined #ruby
[14:00:23] elton: has joined #ruby
[14:00:48] devbug: has joined #ruby
[14:05:06] chipotle: has joined #ruby
[14:06:00] Nahra```: has joined #ruby
[14:06:50] dopie: has joined #ruby
[14:08:14] kobain: has joined #ruby
[14:10:28] favadi: has joined #ruby
[14:11:35] workmad3: has joined #ruby
[14:11:43] voker57: has joined #ruby
[14:11:43] voker57: has joined #ruby
[14:12:36] TomPeed: has joined #ruby
[14:14:01] Bloomer: has joined #ruby
[14:14:20] decoponio: has joined #ruby
[14:17:03] JDiPierro: has joined #ruby
[14:18:14] hoylemd: Hey, if I want to document in-line the parameters in an options hash, what's the best way to do that? just a comment?
[14:18:40] davedev24: has joined #ruby
[14:19:49] davedev24: has joined #ruby
[14:21:26] ornerymoose: has joined #ruby
[14:21:30] tenderlove: has joined #ruby
[14:21:58] jhass: hoylemd: did you consider switching to keyword arguments by now?
[14:22:09] B1n4r10: has joined #ruby
[14:24:27] Fernando1: has joined #ruby
[14:24:33] ElFerna: has joined #ruby
[14:25:52] babblebre: has joined #ruby
[14:26:05] baweaver: has joined #ruby
[14:26:09] voker57: has joined #ruby
[14:26:09] voker57: has joined #ruby
[14:26:32] adaedra: Yard has @option, but I'd agree with jhass, kwargs are a better way.
[14:26:39] centrx: has joined #ruby
[14:27:34] chipotle: has joined #ruby
[14:27:46] pdoherty: has joined #ruby
[14:28:38] shevy: hoylemd you can use those weird signatures
[14:29:02] adaedra: weird signatures?
[14:29:21] shevy: # @note this code does not work
[14:29:39] dfinninger: has joined #ruby
[14:29:53] shevy: [returns a duck]
[14:30:09] adaedra: Yeah, syntax used by yard and surely others
[14:31:18] cantaberry: has joined #ruby
[14:31:45] edwinvdgraaf: has joined #ruby
[14:34:11] _stu_: has joined #ruby
[14:34:28] Jardayn: has joined #ruby
[14:34:46] SOLDIERz: has joined #ruby
[14:37:48] timonv: has joined #ruby
[14:39:07] hoylemd: jhass: I didn't know ruby had kwargs! maybe that's a better option.
[14:39:33] jhass: hoylemd: optional since 2.0, required since 2.1
[14:40:14] ornerymoose: has joined #ruby
[14:42:04] nertzy: has joined #ruby
[14:42:04] skade: has joined #ruby
[14:44:03] BSaboia: has joined #ruby
[14:44:13] ornerymoose_: has joined #ruby
[14:44:44] atomical_: has joined #ruby
[14:45:19] darkxploit: has joined #ruby
[14:45:19] yardenbar: has joined #ruby
[14:45:40] User458764: has joined #ruby
[14:45:40] trwyth: has joined #ruby
[14:46:04] Walex: I still have a bizarre problem with 'gem install' (and found it has some odd behaviour) and it is very baffling: in a given context when I run it with '--explain' it says it would install a number of dependencies but without '--explain' it does not install them, just downloads them and puts them in a cache. The two cases, including the environment: http://paste.ubuntu.com/13931597/ http://paste.ubuntu.com/13931584/
[14:46:46] Walex: the command line: "printenv; env GEM_SPEC_CACHE=/var/lib/gems/specs gem install [--explain] -u --no-user-install arvados-cli"
[14:47:23] dahoo: has joined #ruby
[14:47:56] dahoo: if I have an array which contains elements but also arrays, how can i split these subarrays and combine them with the original array?
[14:48:06] dlitvak: has joined #ruby
[14:48:18] dahoo: i would like to have only an array with strings and not also subarrays in there
[14:48:23] adaedra: dahoo: example of input/output?
[14:48:24] jhass: dahoo: .flatten
[14:48:52] BTRE: has joined #ruby
[14:49:28] stannard: has joined #ruby
[14:49:38] dahoo: input = [1,2,[1,2,3][,5,6]] output = [1,2,1,2,3,5,6]
[14:49:52] dahoo: will look into .flatten
[14:49:59] nettoweb: has joined #ruby
[14:50:01] adaedra: yeah, that's #flatten
[14:50:52] dahoo: ok yes thanks that was fast
[14:51:16] dahoo: I am quite new to ruby and don't really know sometimes where to look in the documentation
[14:51:38] adaedra: ruby-doc.org, rubydoc.info, devdocs.io
[14:51:59] chouhoulis: has joined #ruby
[14:52:06] adaedra: You can also use pry to explore your objects
[14:52:09] ruboto: Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
[14:53:33] dahoo: so that's like debugging in ruby? can you recommend any editors? currently i am doing this in a simple text editor
[14:54:23] chipotle: has joined #ruby
[14:54:47] rdavila: has joined #ruby
[14:54:54] platzhirsch: has joined #ruby
[14:55:29] jcromartie: has joined #ruby
[14:56:22] atomical: has joined #ruby
[14:56:56] puria: has joined #ruby
[14:57:05] agent_white: has joined #ruby
[14:57:48] ekleog: has left #ruby: ("parting")
[14:58:00] colli5ion: has joined #ruby
[14:58:57] colli5ion: has joined #ruby
[14:58:58] sepp2k: has joined #ruby
[14:59:28] favadi: has joined #ruby
[14:59:38] rikai: has joined #ruby
[14:59:44] adaedra: dahoo: use what fits you. Many people do ruby with simple editors.
[15:00:23] adaedra: for debugging, you have the `p` method, or use pry and pry-byebug for something more advanced.
[15:00:30] uris: has joined #ruby
[15:00:52] mary5030: has joined #ruby
[15:01:10] akkad: has joined #ruby
[15:01:21] quaristice: has joined #ruby
[15:01:28] elton: has joined #ruby
[15:03:11] claw: has joined #ruby
[15:04:18] atomical: has joined #ruby
[15:05:13] atomical: has joined #ruby
[15:06:20] B1n4r10: has joined #ruby
[15:08:54] mclong: has joined #ruby
[15:08:58] _stu_: has joined #ruby
[15:10:28] rikai: has joined #ruby
[15:10:38] nfk|laptop: has joined #ruby
[15:10:39] monthy: has joined #ruby
[15:10:43] bronson: has joined #ruby
[15:10:43] whippythellama: has joined #ruby
[15:12:25] colli5ion: has joined #ruby
[15:14:44] atomical: has joined #ruby
[15:15:38] tenderlove: has joined #ruby
[15:16:45] jhn: has joined #ruby
[15:16:58] colli5ion: has joined #ruby
[15:18:01] dhollinger: has joined #ruby
[15:19:58] dorei: has joined #ruby
[15:22:37] freerobby: has joined #ruby
[15:23:34] Nahra```: has joined #ruby
[15:24:16] Rodya_: has joined #ruby
[15:24:57] p0wn3d: has joined #ruby
[15:25:31] colli5ion: has joined #ruby
[15:27:17] colli5ion: has joined #ruby
[15:28:35] JDiPierro: has joined #ruby
[15:29:14] _stu_: has joined #ruby
[15:29:38] User458764: has joined #ruby
[15:30:31] avahey: has joined #ruby
[15:33:41] krz: has joined #ruby
[15:34:42] uris: has joined #ruby
[15:35:07] colli5ion: has joined #ruby
[15:37:29] hxegon: has joined #ruby
[15:37:41] trwyth: has joined #ruby
[15:37:58] victortyau: has joined #ruby
[15:39:48] symm-: has joined #ruby
[15:39:52] colli5ion: has joined #ruby
[15:40:37] mememem: has joined #ruby
[15:41:03] rodfersou: has joined #ruby
[15:41:18] InvGhost: has joined #ruby
[15:44:21] centrx: has joined #ruby
[15:44:40] DaniG2k: has joined #ruby
[15:45:04] TheBloke: has joined #ruby
[15:47:27] kies: has joined #ruby
[15:50:29] dlitvak_: has joined #ruby
[15:50:45] lxsameer: has joined #ruby
[15:50:46] lxsameer: has joined #ruby
[15:53:24] blackms: has joined #ruby
[15:57:03] aspire: has joined #ruby
[15:57:12] mchu: has joined #ruby
[15:57:55] Hien: has joined #ruby
[15:58:44] casadei: has joined #ruby
[15:58:48] devoldmx: has joined #ruby
[15:59:29] minimalism: has joined #ruby
[16:00:59] wildlander: has joined #ruby
[16:05:31] dlitvak: has joined #ruby
[16:05:33] pandaant: has joined #ruby
[16:08:04] rdavila: has joined #ruby
[16:09:25] tenderlove: has joined #ruby
[16:09:50] gizmore: has joined #ruby
[16:12:24] bmalum: has joined #ruby
[16:12:27] delsol: has joined #ruby
[16:12:59] ruby-lang143: has joined #ruby
[16:13:12] ruby-lang143: Hey, is anyone here?
[16:13:21] jhass: ruby-lang143: you seem to be :)
[16:13:30] ruby-lang143: That's true. Good call
[16:13:42] centrx: One is a crowd
[16:14:41] ruby-lang143: I just have what I thought to be a seemingly simple question but I can't figure out the answer. It's about some code...Obviously. This is my first time on here, is there protocol for sending in snippits?
[16:14:46] Papierkorb: and france is bacon
[16:14:51] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[16:15:14] jhass: paste it there, enable syntax highlighting, post link
[16:15:27] ruby-lang143: require "./todo_item" class TodoList attr_reader = :name, :todo_items def initialize(name) @name = name @todo_items = [ ] end def add_item(name) todo_items.push(TodoItem.new(name)) end end todo_list = TodoList.new("Groceries") todo_list.add_item("Milk") todo_list.add_item("Eggs") puts todo_list.inspect =begin require "./todo_item" class TodoList attr_reader :name, :todo_items def initialize(name) @name = n
[16:15:34] jhass: ruby-lang143: see above
[16:15:58] arup_r: has joined #ruby
[16:16:17] niftylettuce: has joined #ruby
[16:18:02] ruby-lang143: https://gist.github.com/darinthompson/b6ce19072ea7cdcd99d8
[16:19:01] ruby-lang143: Can anyone tell me what the deal is? It's literally the very basics, and I could move on in what I am doing, but I want to know what the hell the bug is.
[16:19:10] edwinvdgraaf: has joined #ruby
[16:19:14] delsol: if I have gems installed on one machine, is there an easy way to get them onto another machine?
[16:19:28] jhass: ruby-lang143: "attr_reader = :name, :todo_items" try to explain what this line does to me
[16:20:04] jhass: delsol: gem list | magic | xargs ssh gem install
[16:20:26] ruby-lang143: It sets the rest of class up so you don't have to create a method assigning @name to name, you can just initialize it
[16:20:32] jhass: delsol: or just use bundler
[16:20:45] delsol: I have bundler on the machine with the gems
[16:20:45] hxegon: has joined #ruby
[16:20:46] jhass: ruby-lang143: less high level
[16:20:56] jhass: delsol: bundle help package
[16:21:00] kmckelvi1: has joined #ruby
[16:21:45] ruby-lang143: Is that correct or no?
[16:21:46] delsol: or, maybe not... I have the bundler gem... but apparently not the command line command.
[16:22:05] jhn: has joined #ruby
[16:22:19] jhass: ruby-lang143: for what the line is intended to do, yes sort of. For what it actually does, no. Hence try to explain it item by item
[16:22:36] Arnvald: has joined #ruby
[16:23:56] jhass: ruby-lang143: okay, differently. What does the following code do: foo = :bar
[16:24:08] ruby-lang143: Well, attr_reader allows the program to read the symbols passed to it through the rest of the class
[16:24:42] ruby-lang143: it assigns a variable to a string
[16:24:50] kalopsian: has joined #ruby
[16:25:05] jhass: ruby-lang143: a symbol but close enough, good And: foo = :bar, :baz
[16:25:05] dfinninger: has joined #ruby
[16:25:32] ruby-lang143: I meant symbol I swear
[16:25:38] julian-delphiki: has joined #ruby
[16:25:52] ruby-lang143: it assigns two symbols to one variable?
[16:26:04] jhass: and implicit array but again close enough
[16:26:16] jhass: now let's change the names: attr_reader = :name, :todo_items
[16:26:40] kalopsian: has joined #ruby
[16:27:03] ruby-lang143: So when attr_reader gets more than one string it becomes an array?
[16:27:17] bronson: has joined #ruby
[16:27:26] jhass: ruby-lang143: forget that attr_reader means anything for just this moment
[16:27:34] jhass: ruby-lang143: keep what we just established in mind
[16:27:46] jhass: ruby-lang143: what does this do: attr_reader = :foo, :bar
[16:28:04] ruby-lang143: it sets two symbols to the variable attr_reader
[16:28:24] jhass: now: attr_reader = :name, :todo_items
[16:28:29] symm-_: has joined #ruby
[16:29:29] ruby-lang143: Right, attr_reader becomes an array containing :name, and :todo_items
[16:29:51] jhass: ruby-lang143: do you know the difference between a local variable and an array?
[16:29:58] jhass: er I typoed badly
[16:30:05] jhass: ruby-lang143: do you know the difference between a local variable and a method?
[16:30:20] ruby-lang143: Yes, I do. I was just confused earlier about the implicit array thing you mentioned. And I do for both.
[16:30:25] devbug: has joined #ruby
[16:30:44] colleenmcguckin: has joined #ruby
[16:30:44] jhass: so, one gotcha is that you can have a local variable and a method of the same name
[16:30:54] jhass: but the local variable always wins if it's ambiguous
[16:31:06] puria: has joined #ruby
[16:31:24] jhass: >> def foo; :method; end; foo = :variable; [foo, foo()]
[16:31:26] ruboto: jhass # => [:variable, :method] (https://eval.in/483838)
[16:31:28] hxegon: has joined #ruby
[16:31:45] dfinninger: has joined #ruby
[16:31:45] jhass: now compare your two code snippets again, what difference can you find?
[16:33:12] ruby-lang143: That's the problem I have been forcing myself to go through these code snippets and Im losing the ability to REALLY focus. I understand what's going on but needed another set of eyes to point out the obvious.
[16:33:44] jhass: ruby-lang143: well, I elaborated on a particular line here for some time, how about you focus on those two lines? ;)
[16:33:49] sneakerhax: has joined #ruby
[16:34:17] suchness: has joined #ruby
[16:34:17] cwong_on_irc: has joined #ruby
[16:34:24] jhass: copy paste them directly below each other or something
[16:34:45] ruby-lang143: I have done that.
[16:35:21] jhass: ruby-lang143: okay, you do realize attr_reader :foo, :bar is just a method call and you can add () to method calls, foo :x -> foo(:x), right?
[16:35:22] krobzaur: has joined #ruby
[16:35:31] jbrhbr: has joined #ruby
[16:35:38] jhass: try adding parens to the line and see what ruby thinks
[16:36:12] jhass: you want to find out how they differ so you got to understand them both
[16:37:08] ruby-lang143: But both my code that is commented and the code uncommented are the exact same... I think.
[16:37:38] jhass: but they're not
[16:37:46] jhass: in fact one should throw you a NoMethodError when you run it
[16:37:53] ruby-lang143: OH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[16:38:04] ruby-lang143: IT'S THAT DAMN =
[16:38:26] jhass: yeah, the one I've been asking you questions about all the time! ;)
[16:38:50] ruby-lang143: I know. But I just keep glazing over it over and over again
[16:39:59] InvGhostt: has joined #ruby
[16:40:43] ruby-lang143: Man, this is why sometimes Id rather just be an alcoholic than a developer.
[16:41:16] jhass: attention to detail is certainly needed
[16:41:38] cdg: has joined #ruby
[16:42:03] ruby-lang143: Yeah, and I've done some small work and got some small projects completed, but the smallest of things can trip up even the most learned people I guess.
[16:42:18] supermarin: has joined #ruby
[16:43:10] darkxploit: has joined #ruby
[16:43:21] ruby-lang143: Ok, I have another question if you have the time and patience to listen to me again.
[16:43:27] edwinvdgraaf: has joined #ruby
[16:44:06] favadi: has joined #ruby
[16:44:10] podman: has joined #ruby
[16:45:10] Rodya_: has joined #ruby
[16:45:19] banister: has joined #ruby
[16:45:50] trwyth: has joined #ruby
[16:45:51] Polysics: has joined #ruby
[16:45:58] ruby-lang143: What are some of the best ways to put Ruby into practice? I really want to use and learn Ruby, not just in Rails, but I want to learn to use Ruby. Despite my obvious blindness shown today, I feel like I have a grasp of the language but no direction from here.
[16:47:20] B1n4r10: has joined #ruby
[16:47:20] jhass: my advice is always to look for things you do routinously, sum some spreadsheets, click something on some website or whatever, limited scope but affecting your existing workflows
[16:47:31] jhass: and try to automate it as much as possible using ruby
[16:48:27] ruby-lang143: I know what you just said, but I would have no idea how to begin doing that with Ruby
[16:48:57] jhass: well, let's keep the ruby part out of the mind for now, are there any such tasks you could identify?
[16:49:44] jhass: (that's btw 70% of your later job as a software engineer, identify and split up tasks/workflows)
[16:50:30] ElFerna: has joined #ruby
[16:50:34] ruby-lang143: I see. I want to know more about that kind of life, but my workflow right now is Naval Security on escort missions in the middle east.
[16:50:37] speakingcode: has joined #ruby
[16:50:43] wsewolod: has joined #ruby
[16:51:02] kalopsian: has joined #ruby
[16:51:42] supermarin: has joined #ruby
[16:51:42] ruby-lang143: Im at a wall, and have no community around (in person) to help me over. So, I am trying to learn on my own as much as possible for when I can get out and get some work and experience.
[16:51:46] jhass: that sounds like a lot of reports to fill
[16:52:02] ruby-lang143: At times yeah.
[16:52:07] Fernando1: has joined #ruby
[16:52:24] ruby-lang143: I guess that's true. Lots of paperwork, and training records.
[16:52:29] jhass: so what technology are these reports filled with? word? some online form? good old printed things?
[16:52:56] ruby-lang143: Printed things usually. But there is some computer work such as evaluations and things.
[16:52:58] kalopsian: has joined #ruby
[16:53:30] ruby-lang143: It's usually some fillable adobeX file
[16:53:46] jhass: so my first rough ideas (I still know too little about the actual process) is to look for fields that you can fill automatically, your name, the date and whatever
[16:53:54] [Butch]: has joined #ruby
[16:54:25] ruby-lang143: Yeah, last four of my social
[16:54:29] jhass: note this is not totally about something you dare to actually use afterwards, it's about knowing the problem domain well already
[16:55:17] ruby-lang143: Definitely not. There is no way the NAVY is going to just let me install and use my own program. That have special jobs for people that tamper with government software.
[16:55:39] jhass: ah so no chance to fill them on your own computer?
[16:55:39] baroquebobcat: has joined #ruby
[16:56:31] ruby-lang143: Unfortunately no. Got to keep it on a secret network
[16:56:58] Rutix: has joined #ruby
[16:57:00] Rutix: has joined #ruby
[16:57:11] jhass: mh, but I hope that could give you some ideas for the general direction I'm going for
[16:57:17] jhass: solve a tasks that you're affected by
[16:57:26] ruby-lang143: I really am stretching way out of my area of work here. But it's because I don't exactly care for what I do.
[16:58:02] jhass: that's fine with me, if you make it you'll have good job prospects
[16:58:20] colleenmcguckin: has joined #ruby
[16:58:31] jhass: the industry is in need of people that know some particular problem domain well and just enough code to be able to explain it to the programmers
[16:59:00] favadi: has joined #ruby
[16:59:20] ruby-lang143: Definitely, having NAVY service on my resume it should be easy(ier) <= I know that's wrong, but you get the picture
[16:59:40] dahoo: programming is really hard in my opinion
[16:59:55] kobain: has joined #ruby
[16:59:56] ruby-lang143: And yeah, I really want to learn what to do with it. I love the fact that it's hard.
[17:00:23] dahoo: I am studying computer science and sometimes it's abit overwhelming
[17:00:48] jhass: anyway, if you do find something you think you could code feel free to ask for pointers as to what libraries to look at etc.
[17:01:43] ruby-lang143: Are there any simple projects you could suggest working on?
[17:01:43] supermarin: has joined #ruby
[17:02:27] InvGhostt: has joined #ruby
[17:02:49] jhass: not really, no. As said as long as it doesn't affect you and you already know the problem domain well enough, your first project will be highly frustrating IME
[17:03:33] ruby-lang143: I guess so. And I think I knew that, but didn't want to admit it.
[17:03:52] tenderlove: has joined #ruby
[17:03:53] kalopsian: has joined #ruby
[17:04:04] mchu: how do i get bundle to run on a ruby version that doesnt support it?
[17:04:13] moeabdol: has joined #ruby
[17:04:41] kalopsian: has joined #ruby
[17:04:48] jhass: if you don't know the problem domain already you should at least have another big motivation factor, like let it be you really want to achieve, like a simple game idea you have or a music player that doesn't suck for you or whatever
[17:05:01] jhass: *be something
[17:05:14] jhass: mchu: which one would that be?
[17:05:34] kalopsian: has joined #ruby
[17:05:50] mchu: it???s 2.1.5, however there was a .ruby-version file.. and that really confused me. gave me some issues I think i already solved
[17:05:52] mustmodify: has joined #ruby
[17:05:58] devbug: has joined #ruby
[17:06:16] dfinninger: has joined #ruby
[17:06:49] jhass: mchu: bundler definitely is compatible with Ruby 2.1.5
[17:06:52] kalopsian: has joined #ruby
[17:07:13] synthroid: has joined #ruby
[17:07:15] mchu: i got this error when i did bundle install : The `bundle' command exists in these Ruby versions:
[17:07:15] mustmodify: Here's a blog post in which the author suggests using sprintf() to specify the number of significant digits. It's clever but feels sooo wrong. There must be a way to get numbers into exponential form and ask for that data rather than using this hack. Any ideas? http://six-impossible.blogspot.com/2011/05/significant-digits-in-ruby-float.html
[17:07:15] mchu: 2.0.0-p598
[17:07:20] mchu: woops, sorry for that
[17:07:25] shevy: what is your ruby version?
[17:07:41] mchu: ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
[17:07:51] mchu: ive changed it though.
[17:07:59] shevy: interesting... that's very close to p598
[17:08:10] codeurge: has joined #ruby
[17:08:13] mchu: oh weird. i thought i switched to 2.1.5, let me try again
[17:09:14] dlitvak_: has joined #ruby
[17:09:24] haylon: has joined #ruby
[17:09:52] jhass: mchu: run gem install bundler again
[17:10:08] synthroid: has joined #ruby
[17:10:17] mchu: i have another question, sorry im kind of new
[17:11:03] mchu: do you mind if i direct message you so i dont spam?
[17:11:28] amclain: has joined #ruby
[17:11:39] nettoweb: has joined #ruby
[17:11:40] jhass: yes, you don't spam
[17:11:46] jhass: if it's more than 3 lines /topic
[17:12:05] haylon: Would any one have any more in-depth, or "newb" friendly setup instructions for the IRC logger bot used here? I'm failing quite miserably at getting it working.
[17:12:27] d0nn1e: has joined #ruby
[17:12:29] ruby-lang143: Thanks for the help Jhass. Im out.
[17:12:34] jhass: ruby-lang143: hf
[17:12:50] rakm: has joined #ruby
[17:12:56] mchu: so im working on an open source project and i???d like to just get it running. however theres a file name ???.ruby-version??? and in that file it says 2.1.5@abc (actual word is replaced). why is it like this?
[17:13:04] hololeap: has joined #ruby
[17:13:22] mchu: jhass: I ended up just installing ruby 2.1.5 , that is fine right?
[17:13:33] jhass: that's a feature of RVM, the part behind the @ is called the gemset
[17:13:52] jhass: RVM allows to have different gemsets in order to isolate applications dependencies from each other
[17:14:09] jhass: a feature that IMO got obsolete with bundler these days
[17:14:38] mchu: jhass: o okay. thanks appreciate your help
[17:15:05] jhass: and actually these days it's recommended to have the gemset name inside a .ruby-gemset file, not inside .ruby-version
[17:15:26] tildes: has joined #ruby
[17:15:36] ziggy: has joined #ruby
[17:15:37] ziggy: has joined #ruby
[17:16:58] kalopsian: has joined #ruby
[17:17:02] imperator: has joined #ruby
[17:17:03] mchu: jhass: oh i see
[17:17:27] tildes: is treetop still the way to go, when parsing expression grammars with ruby? I am asking because I notice the latest commit is 2,5 years old - either it became perfect / something else is hotter right now
[17:18:10] mchu: jhass: so.. i just bundle install and nokogiri gave me an error.. read stackoverflow and it says to ???sudo gem uninstall nokogiri??? then install it again.. BUT i got the same error as before even after switching to 2.1.5???. rbenv: version `2.1.5@abc??? is not installed. this .ruby-version file is really messing w/ me
[17:18:29] User458764: has joined #ruby
[17:18:56] jhass: I don't follow
[17:19:03] deanj: has left #ruby: ("WeeChat 1.0.1")
[17:19:07] Fernando1: has joined #ruby
[17:19:08] dlitvak: has joined #ruby
[17:19:13] jhass: you seem to have switched to a different problem description mid sentence
[17:19:20] mchu: ok right hahaa
[17:19:24] imperator: rubygems 2.5.1 released
[17:19:32] troulouliou_div2: has joined #ruby
[17:19:32] ElFerna: has joined #ruby
[17:19:57] mchu: so when i typed in the command to uninstall Nokogiri, i got the error ???rbenv: version `2.1.5@abc??? is not installed
[17:20:12] edwinvdgraaf: has joined #ruby
[17:20:21] mchu: i dont understand why i???m still getting that
[17:20:30] jhass: mchu: well it looks like rbenv doesn't support the gemset syntax in .ruby-version files (just one reason for the separate files)
[17:20:46] jhass: (and just one reason to not use rbenv :P)
[17:21:07] imperator: been using rbenv for a while, never saw that
[17:21:14] mchu: should i download rvm then?
[17:21:22] jhass: mchu: if you can't change the .ruby-version file you have to use RVM
[17:21:25] shevy: imperator you are my announce bot! I'm gonna update
[17:22:49] bb010g: has joined #ruby
[17:22:56] pdoherty: has joined #ruby
[17:23:06] yalue: has joined #ruby
[17:24:12] shevy: how do I query ruboto's gem version again?
[17:24:37] kalopsian: has joined #ruby
[17:25:03] ruboto: -v, I don't know anything about gem
[17:25:14] devbug_: has joined #ruby
[17:25:27] chihaja: has joined #ruby
[17:25:31] jhass: do you mean eval.in's?
[17:26:01] InvGhosttt: has joined #ruby
[17:26:13] s00pcan: has joined #ruby
[17:27:16] rakm: has joined #ruby
[17:28:13] norc: has joined #ruby
[17:28:18] norc: Hi folks
[17:28:30] baweaver: has joined #ruby
[17:28:46] kmckelvi1: has joined #ruby
[17:29:52] shevy: >> system 'gem -v'
[17:29:53] ruboto: shevy # => (https://eval.in/483854)
[17:31:03] norc: shevy: Yes. Charlie is such a kill joy that way.
[17:31:27] norc: On the other hand, it got me started trying to tear down Ruby.
[17:31:30] jhass: >> Gem::VERSION
[17:31:31] ruboto: jhass # => "2.4.5" (https://eval.in/483855)
[17:31:38] norc: Now Im writing hacks to give more direct access to the current VM. :o)
[17:31:55] norc: ACTION is so used to seg faulting Ruby now
[17:31:55] shevy: yeah I have no idea why you are jumping into the internals from day 0!
[17:31:57] kobain: has joined #ruby
[17:32:04] norc: More like day 8347
[17:32:25] Pro|: has joined #ruby
[17:32:28] shevy: I can sometimes segfault ruby too, usually with ruby-gnome
[17:32:39] jamo: has joined #ruby
[17:32:40] agit0: has joined #ruby
[17:32:42] norc: Well it is rather easy when you get to play with Pointers. :-)
[17:32:52] elton: has joined #ruby
[17:33:10] norc: shevy: You are kinda right tho, I only recently started writing Ruby seriously at work.
[17:33:21] colegatron: has joined #ruby
[17:33:39] norc: They wanted me to write Java add-ons for some really crappy application. I said no - and so it happened.
[17:36:29] kalopsia1: has joined #ruby
[17:37:03] mchu: issues installing gem nokogiri 1.6.1 - Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.
[17:37:09] quaristice: has joined #ruby
[17:37:12] mchu: can anyone help ?
[17:37:14] Agi-Don34f: has joined #ruby
[17:37:28] saddad: has joined #ruby
[17:37:30] mchu: just stackoverflowed for the last 20 minutes - failed
[17:37:33] devbug: has joined #ruby
[17:37:49] bronson: has joined #ruby
[17:38:26] goodcodeguy: has joined #ruby
[17:38:27] imperator: mchu, what platform?
[17:38:27] jhass: mchu: full output to gist please
[17:38:40] mchu: platform?
[17:38:43] mchu: like Terminal?
[17:38:51] jhass: & architecture
[17:38:54] mchu: oh yeah OS
[17:39:50] mchu: what did you want jhass?
[17:40:02] jhass: the full output of the failing command
[17:40:19] mchu: gem install nokogiri -v '1.6.1'
[17:40:29] mchu: also during bundle install
[17:40:35] Agi-Don34f: has left #ruby: ()
[17:40:41] kalopsian: has joined #ruby
[17:41:28] jhass: and you never answered imperator's question either
[17:41:55] mchu: sorry, not really good w/ the terminology .
[17:41:58] kalopsian: has joined #ruby
[17:42:02] mchu: what do you mean by platform
[17:42:09] imperator: linux? windows?
[17:42:24] jhass: ^ + 32bit/64bit cpu
[17:42:27] kalopsian: has joined #ruby
[17:43:02] mchu: ooo, i said Mac OS Yosemite
[17:43:12] mchu: or i just said OS earlier
[17:43:22] mchu: heres my terminal w/ the error
[17:43:23] norc: mchu: What kind of Ruby? MRI? Jruby?
[17:43:24] mchu: http://fs5.directupload.net/images/151211/rcu43lac.png
[17:44:06] jhass: mchu: "review bla/.log to see what happened"
[17:44:17] B1n4r10: has joined #ruby
[17:44:25] norc: mchu: It is a known bug in Rubygems. Update it to 2.4.5 or later.
[17:44:28] mustmodify: has left #ruby: ()
[17:44:39] jhass: wat, really?
[17:44:40] supermarin: has joined #ruby
[17:44:43] InvGhostt: has joined #ruby
[17:44:45] norc: jhass: Yes.
[17:44:53] jhass: do I even want to know?
[17:45:09] norc: Depends on your curiositzy I suppose.
[17:45:13] imperator: mchu: "gem update --system"
[17:45:14] Papierkorb: Yes of course
[17:45:28] shanemcd: has joined #ruby
[17:45:34] kfogel: has joined #ruby
[17:45:54] kfogel: ACTION watches mchu's conversation, hopes to learn, since is also a newbie on the same project
[17:46:08] yos7ph: has joined #ruby
[17:47:00] norc: The best thing I ever did on OSX was not using the system Ruby.
[17:47:15] norc: I mean it is really neat to get 2.0.0 out of the box... but still...
[17:48:15] Papierkorb: I'm not sure yet if having no ruby at all, or a completely outdated ruby by default, on a system is more destructive
[17:48:37] Polysics: has joined #ruby
[17:48:39] norc: Papierkorb: Honestly it is much worse on Ubuntu.
[17:48:48] gits1225: has left #ruby: ()
[17:49:08] Papierkorb: norc: yeah, but everything debian-based is horribly outdated. Not sure about other distros besides Arch
[17:49:28] norc: Papierkorb: Honestly most of it changed for the better since Debian Lenny, and Ubuntu generally has a tendency to bring relatively new packages.
[17:49:33] norc: Ruby is just rather extreme
[17:50:29] psy: has joined #ruby
[17:50:54] chihaja: has joined #ruby
[17:51:04] dlitvak: has joined #ruby
[17:51:21] psy: has joined #ruby
[17:51:32] ElFerna: has joined #ruby
[17:51:39] norc: Papierkorb: We once had a project where we had to find a certain 15 year old specific libc because of a bizarre dependency. So once I mentioned it, the other developer turns around and says: "Install debian current stable and apt-get install it" - it was hilarious considering the day.
[17:51:43] jhn: has joined #ruby
[17:52:17] jbrhbr: has joined #ruby
[17:52:23] The_Phoenix: has joined #ruby
[17:52:30] Papierkorb: norc: wow .. just wow .. isn't the glibc quite good at downwards compatibility? Was it maybe more of an ABI issue?
[17:52:44] hoylemd: Hey, is there a way to have a bit of code that runs if an error was rescued, no matter the error, while still having error-specific rescues?
[17:53:08] Papierkorb: Though no idea if the ABI of C really changed over the last years. the GNU/C++ one did change every 4 years or so
[17:53:42] mrtomme: has joined #ruby
[17:53:44] based_pdev_: has joined #ruby
[17:53:44] based_pdev: has joined #ruby
[17:53:57] Fernando1: has joined #ruby
[17:53:59] norc: Papierkorb: From what I can recall the problem was Dreppers ubsurd egolomaniac personality writing glibc in a way that has made it impossible to statically link it.
[17:54:13] norc: Just because he thinks he knows better.
[17:54:14] TomPeed: has joined #ruby
[17:54:35] kmckelvi1: has joined #ruby
[17:54:52] norc: And Qt has a hard dependency on the glibc - together with some dependencies from the loader on the embedded linux we had, we ended up with a rather specific version requirement.
[17:54:56] hoylemd: Actually I think I just figured out how to do it while typing out claririfcation. Thanks for rubber-ducking #ruby c:
[17:54:56] Papierkorb: Oh yeah, iirc this topic comes about every so often in the community how they want to get rid of statically linking the glibc
[17:55:03] Papierkorb: won't help you of course for shared libraries
[17:55:16] NeverDie: has joined #ruby
[17:55:34] Papierkorb: norc: but yeah, those issues are .. .. 'fun' .. never had to go that deep though
[17:55:37] norc: Papierkorb: I mean I understand if they advise against it, but intentionally writing it so that it will just cause your linker to throw errors all around is just wrong.
[17:55:52] ElFerna: has joined #ruby
[17:55:53] Papierkorb: ACTION afk
[17:56:34] platzhirsch: has left #ruby: ()
[17:56:53] norc: hoylemd: Sorry. Of course you want to use ensure.
[17:56:54] trwyth: has joined #ruby
[17:57:04] djellemah: has joined #ruby
[17:57:18] cpup: has joined #ruby
[17:57:27] mahk: has joined #ruby
[17:58:17] tenderlove: has joined #ruby
[17:59:29] Jackneill: has joined #ruby
[17:59:32] devoldmx: has joined #ruby
[17:59:43] dlitvak: has joined #ruby
[18:00:24] baweaver: has joined #ruby
[18:01:28] adac: has joined #ruby
[18:01:56] `based_pdev`: has joined #ruby
[18:02:08] rippa: has joined #ruby
[18:02:50] jessemcgilallen: has joined #ruby
[18:03:07] sapslaj: has joined #ruby
[18:05:18] dzejrou: has joined #ruby
[18:06:09] colleenmcguckin: has joined #ruby
[18:06:22] based_pdev: has joined #ruby
[18:07:13] dzejrou: has joined #ruby
[18:07:26] aibot: has joined #ruby
[18:07:48] dzejrou: has joined #ruby
[18:08:06] fantazo: has joined #ruby
[18:08:11] RegulationD: has joined #ruby
[18:08:34] kalopsia1: has joined #ruby
[18:09:12] cirn0: has joined #ruby
[18:10:21] hoylemd: norc: why apologise? y'all solved me problem either way :D
[18:11:07] djbkd: has joined #ruby
[18:11:33] norc: hoylemd: Chatting OT while not seeing a Ruby question.
[18:11:55] kalopsia1: has joined #ruby
[18:11:55] norc: It is a habit here to stop OT chats when someone brings up an actual Ruby question... :)
[18:12:02] ornerymoose: has joined #ruby
[18:12:07] based_pdev_: has joined #ruby
[18:12:39] gregf: has joined #ruby
[18:12:44] hoylemd: Ah. That's a good policy to have. In that case. I, hoylemd, developer of ruby codes, hereby forgive this most heinous transgression ;)
[18:13:13] dlitvak: has joined #ruby
[18:14:14] bojuana: has joined #ruby
[18:14:29] colleenmcguckin: has joined #ruby
[18:14:47] kalopsia1: has joined #ruby
[18:16:24] matp: has joined #ruby
[18:17:16] dzejrou: has joined #ruby
[18:19:04] nertzy: has joined #ruby
[18:19:58] delsol: hxegon: :)
[18:20:25] berserk_ren: has joined #ruby
[18:22:52] supermarin: has joined #ruby
[18:25:07] hahuang65: has joined #ruby
[18:25:08] RobertBirnie: has joined #ruby
[18:26:15] colleenmcguckin: has joined #ruby
[18:26:46] berserk_ren: has joined #ruby
[18:26:47] yardenbar: has joined #ruby
[18:28:14] zarubin: has joined #ruby
[18:29:06] zarubin: has joined #ruby
[18:29:27] dfinninger: has joined #ruby
[18:31:00] kalopsia1: has joined #ruby
[18:32:02] kalopsia1: has joined #ruby
[18:32:20] fantazo: has joined #ruby
[18:33:49] dlitvak_: has joined #ruby
[18:34:07] norc: shevy: Stop laughing and go back writing code.
[18:34:30] supermarin: has joined #ruby
[18:35:04] bronson: has joined #ruby
[18:35:16] elton: has joined #ruby
[18:36:56] B1n4r10: has joined #ruby
[18:37:03] devbug: has joined #ruby
[18:37:08] joast: has joined #ruby
[18:37:17] spider-mario: has joined #ruby
[18:37:22] berserk_ren: has joined #ruby
[18:37:27] kalopsia1: has joined #ruby
[18:37:39] bmalum: has joined #ruby
[18:37:52] adac: has joined #ruby
[18:38:05] Jet4Fire: has joined #ruby
[18:39:09] User458764: has joined #ruby
[18:40:08] User458764: has joined #ruby
[18:40:26] avahey: has joined #ruby
[18:42:56] desmondhume: has joined #ruby
[18:43:25] kalopsia1: has joined #ruby
[18:43:50] kirun: has joined #ruby
[18:44:22] desmondhume: has joined #ruby
[18:44:52] colli5ion: has joined #ruby
[18:44:59] ElFerna: has joined #ruby
[18:46:03] Frem: has joined #ruby
[18:46:30] pdoherty: has joined #ruby
[18:46:53] dfinninger: has joined #ruby
[18:47:35] kalopsia1: has joined #ruby
[18:48:25] riceandbeans: has joined #ruby
[18:48:35] riceandbeans: what's the likelihood of needing to do a linked list in ruby?
[18:48:46] zast: has joined #ruby
[18:48:47] SCHAAP137: has joined #ruby
[18:49:13] eam: are we counting homework
[18:49:16] xybre: riceandbeans: pretty much nil, except for interviews
[18:49:32] riceandbeans: that's pretty much what I told my friend, but he didn't seem to understand
[18:49:56] riceandbeans: I was like, ruby is too high level, but they'll want to ask to see that you understand data structures and if you ever need to do anything lower level you may need to know how to do a linked list
[18:50:28] xybre: I've been asked about low level data structures in Ruby interviews maybe 5% of the time.
[18:51:15] xybre: I was asked to implement a linked list exactly once.
[18:51:26] riceandbeans: yeah, but coding interviews are stupid
[18:51:31] riceandbeans: they're like calculus classes
[18:51:45] riceandbeans: things you will likely never actually need to do or use and not how you actually code
[18:52:14] eam: pairing interviews are good, contrived stuff generally isn't
[18:52:31] rakm: has joined #ruby
[18:52:36] tenderlove: has joined #ruby
[18:52:43] bmalum_: has joined #ruby
[18:53:01] shevy: pair brogramming!
[18:53:09] xybre: Calculus is more useful than most interview questions.
[18:53:20] xybre: shevy: bear brogramming
[18:53:49] nfk|laptop: has joined #ruby
[18:54:37] dlitvak: has joined #ruby
[18:54:49] slact: has joined #ruby
[18:55:10] symbol: has joined #ruby
[18:55:10] Kruppe: has joined #ruby
[18:56:04] haylon: Would any one have any more in-depth, or "newb" friendly setup instructions for the IRC logger bot used here? I'm failing quite miserably at getting it working.
[18:56:42] eam: shevy: why's it gotta be brogramming :(
[18:56:48] bmalum: has joined #ruby
[18:57:07] Radcircle: has joined #ruby
[18:57:30] tb1: has joined #ruby
[18:58:56] pietr0: has joined #ruby
[19:00:18] kmckelvi1: has joined #ruby
[19:00:58] freerobby: has joined #ruby
[19:01:25] freerobby: has joined #ruby
[19:01:33] zarubin: has joined #ruby
[19:02:09] sdothum: has joined #ruby
[19:04:48] dfinninger: has joined #ruby
[19:05:18] berserk_ren: has joined #ruby
[19:06:47] kalopsia1: has joined #ruby
[19:08:06] cschneid_: has joined #ruby
[19:08:07] lacuna: has joined #ruby
[19:08:08] lacuna: has joined #ruby
[19:08:18] cschneid_: Are Hash#merge and Hash#merge! the same?
[19:08:35] cschneid_: oh, I see, its just if they mutate the original
[19:08:41] Trynemjoel: has joined #ruby
[19:08:54] cschneid_: They always return the resulting hash though it seems?
[19:09:04] moeabdol: has joined #ruby
[19:09:32] shevy: eam hah for bearly brogramming hugs!
[19:09:42] kalopsia1: has joined #ruby
[19:09:49] dionysus69: has joined #ruby
[19:10:21] Sou|cutter: cschneid_: I find it's better to never depend on the return value of a bang method. It is hard to keep track of which ones return what
[19:10:46] cschneid_: Sou|cutter: yeah - that's what I thought my error was a second ago. But apparently not :)
[19:10:48] jhass: cschneid_: mh, looks like it, interesting
[19:11:22] jhass: normally core ! methods would return nil if they make no change
[19:12:33] kalopsia1: has joined #ruby
[19:14:23] sphex: has joined #ruby
[19:16:24] tomphp: has joined #ruby
[19:17:14] E_W: has joined #ruby
[19:17:38] lacuna: has joined #ruby
[19:18:51] rdavila: has joined #ruby
[19:18:52] ElFerna_: has joined #ruby
[19:19:04] mchu: has joined #ruby
[19:19:37] kalopsia1: has joined #ruby
[19:20:32] shevy: lovely nils all over everywhere
[19:21:28] shock_one: has joined #ruby
[19:21:28] BlackCoyote: has joined #ruby
[19:22:16] colleenmcguckin: has joined #ruby
[19:22:22] lacuna: has joined #ruby
[19:22:23] lacuna: has joined #ruby
[19:22:24] kadoppe: has joined #ruby
[19:22:47] jgt: has joined #ruby
[19:23:17] ethe: has joined #ruby
[19:24:01] ta: has joined #ruby
[19:25:27] kalopsia1: has joined #ruby
[19:25:58] shevy: the implementation of .tap is pretty trivial
[19:26:02] shevy: rb_yield(obj); return obj;
[19:26:50] colleenmcguckin: has joined #ruby
[19:27:03] berserk_ren: has joined #ruby
[19:28:04] ta: has joined #ruby
[19:29:18] lemur: has joined #ruby
[19:29:52] azgil: has joined #ruby
[19:30:29] azgil: top posters today http://pastie.org/10626044
[19:31:28] tomphp: has joined #ruby
[19:32:12] Trynemjoel: has joined #ruby
[19:32:39] shevy: blub is among them!
[19:32:43] shevy: congratulation blub
[19:32:54] blub: thank you
[19:33:13] shevy: azgil you should chop off the '<' and '>' :D
[19:34:28] _djbkd: has joined #ruby
[19:34:33] lacuna_: has joined #ruby
[19:34:36] colleenm_: has joined #ruby
[19:34:45] goodcodeguy: has joined #ruby
[19:34:47] akem: has joined #ruby
[19:35:04] QORRiE: has joined #ruby
[19:35:05] haylon: has left #ruby: ()
[19:35:28] AndroidLoverInSF: has joined #ruby
[19:35:55] lacuna_: has joined #ruby
[19:36:02] elton: has joined #ruby
[19:37:00] tAn: has joined #ruby
[19:38:32] druonysus: has joined #ruby
[19:38:32] druonysus: has joined #ruby
[19:38:37] goodcodeguy: I'm trying to percent encode a url path for a webservice call and I was trying to use Addressable to do so but it's not doing what I expect. https://gist.github.com/goodcodeguy/4e72ca1e61b3dc1460aa - The first comment shows what I am expecting to get and line 2's comment shows hte code and what I am actually getting, any insight into what I sohuld be doing instead?
[19:42:05] felltir: has joined #ruby
[19:43:08] ElFerna: has joined #ruby
[19:43:14] norc: goodcodeguy: It puts out whisp%C3%A4 correctly.
[19:43:25] norc: goodcodeguy: Can you gist your actual code?
[19:43:40] nettoweb: has joined #ruby
[19:45:54] shanemcd: has joined #ruby
[19:47:43] tomphp: has joined #ruby
[19:47:46] _stu_: has joined #ruby
[19:49:48] lacuna: has joined #ruby
[19:50:29] baroquebobcat_: has joined #ruby
[19:52:00] hxegon: has joined #ruby
[19:52:17] akem: has joined #ruby
[19:52:53] voodo: has joined #ruby
[19:53:27] kalopsian: has joined #ruby
[19:53:48] jhass: ^ for me too
[19:53:59] goodcodeguy: norc: sorry stepped away; oddly when I do run it in pry it does but not within the context of my gem
[19:54:10] goodcodeguy: give me a moment
[19:54:24] jbrhbr1: has joined #ruby
[19:55:27] Ox0dea: has joined #ruby
[19:56:50] jhass: goodcodeguy: add require "pry"; binding.pry directly before the line where you do it in your gem
[19:57:04] jessemcgilallen: has joined #ruby
[19:58:33] djbkd: has joined #ruby
[19:59:37] goodcodeguy: I think I figured out what i was doing
[19:59:41] goodcodeguy: thanks for being a duck guys ;0
[19:59:55] shevy: we are all ducks!
[20:00:18] devoldmx: has joined #ruby
[20:00:19] lacuna: has joined #ruby
[20:01:25] bronson: has joined #ruby
[20:02:58] JDiPierro: has joined #ruby
[20:03:05] shevy: why is that small projects seem to be so much easier than big projects
[20:03:23] ruboto: eam # => "\\" (https://eval.in/483874)
[20:03:25] eam: that's weird
[20:03:33] bubbys: what is it http://pastie.org/10626038
[20:03:33] RegulationD: has joined #ruby
[20:03:35] JDiPierro: has joined #ruby
[20:03:57] djbkd: has joined #ruby
[20:03:58] p0wn3d: has joined #ruby
[20:04:47] DeXterbed: has joined #ruby
[20:05:34] Ox0dea: eam: Is it?
[20:05:53] f00bar-32: has joined #ruby
[20:05:59] Ox0dea: bubbys is linking dox.
[20:06:43] Ox0dea: >> "\#{}" # eam: I reckon the teleporting backslash is a little weirder.
[20:06:44] ruboto: Ox0dea # => "\#{}" (https://eval.in/483875)
[20:06:50] Ox0dea: That went well.
[20:06:54] Ox0dea: >> "#\{}"
[20:06:56] ruboto: Ox0dea # => "\#{}" (https://eval.in/483876)
[20:07:27] blackgoat: has joined #ruby
[20:07:36] f00bar-32: How can I sort by offer[1] if market contain a list of arrays. {% for offer in market}
[20:07:54] dfinninger: has joined #ruby
[20:08:59] shevy: f00bar-32 what the hell mate
[20:09:08] shevy: that's like random-out-of-nowhere and no code
[20:09:30] shevy: in general you can define the criteria to sort for in the block
[20:11:15] Ox0dea: f00bar-32: How many elements in `offer`?
[20:11:40] dhollinger: has joined #ruby
[20:12:21] chipotle: has joined #ruby
[20:12:47] ElFerna: has joined #ruby
[20:13:45] zarubin: has joined #ruby
[20:14:25] f00bar-32: Ox0dea: 2 elements are in offer and i like to sort by offer[1]
[20:14:43] eam: Ox0dea: that's even weirder
[20:15:15] norc: Ox0dea: I hate Ruby. So far I havent found a simple way to manipulate the control frames, instructions or any of the likes. :(
[20:15:16] ta: has joined #ruby
[20:15:32] hxegon: has joined #ruby
[20:15:38] PaulCapestany: has joined #ruby
[20:16:40] DeXterbed: has joined #ruby
[20:17:11] Ox0dea: f00bar-32: `sort_by(&:last)`, then.
[20:17:35] Ox0dea: eam: Aye, that was my reckonin' too.
[20:17:48] Ox0dea: norc: From Ruby, you mean?
[20:17:57] norc: I was really hoping to be able to load a compiled iseq and execute it as a block, but all the fun functions are not exported and thus not avaliable through dyload..... :(
[20:18:02] norc: Ox0dea: Yeah.
[20:18:10] norc: Pure Fiddle.
[20:18:21] Ox0dea: What a pair of terms. :P
[20:19:10] norc: All the Ruby hacks in the world are just boring if you cannot share them with eval.in.
[20:19:56] replay: has joined #ruby
[20:20:29] norc: But at least I got to learn a lot about how Ruby initializes the VM.
[20:20:45] eam: Ox0dea: actually I take it back, I think it's less weird :D
[20:21:01] beardo_: has joined #ruby
[20:21:47] norc: And I meant dlsym of course, not dyload.
[20:21:55] nettoweb: has joined #ruby
[20:22:21] Ox0dea: norc: Are you moving onto Python, then? :/
[20:22:30] Ox0dea: eam: How so?
[20:23:28] eam: well, that's just using the fact that the canonical escape of a string isn't the only way to create the literal
[20:23:28] Ox0dea: `?\\` isn't weird at all, to be frank.
[20:23:45] eam: ?\\ is weird because ? should be followed by exactly one character in the parser
[20:23:50] eam: escapes shouldn't be a thing
[20:24:15] Ox0dea: >> ?\C-@ # eam
[20:24:16] ruboto: Ox0dea # => "\u0000" (https://eval.in/483877)
[20:24:25] norc: Ox0dea: Meh, Python is not so bad actually if you can manage to avoid it.
[20:24:41] Ox0dea: The *evaluation* is always a single character, but why should that have any bearing on the syntax?
[20:24:43] eam: >> ?" == ?\"
[20:24:44] ruboto: eam # => true (https://eval.in/483878)
[20:24:50] eam: that's weird
[20:24:53] Ox0dea: Oh, I see now.
[20:25:01] Ox0dea: I think that's weird, but not the backslash one.
[20:25:23] eam: well, it's weird that ?\ isn't "\"
[20:25:24] Ox0dea: Then again, why bother to escape " in this case?
[20:25:31] Ox0dea: eam: There's no such thing.
[20:25:45] n_blownapart: has joined #ruby
[20:25:52] eam: yes yes "\\"
[20:27:13] yfeldblum: has joined #ruby
[20:27:14] Suntzu: has joined #ruby
[20:29:00] juddey: has joined #ruby
[20:30:44] SCHAAP137: has joined #ruby
[20:33:17] baweaver: has joined #ruby
[20:34:17] ElFerna: has joined #ruby
[20:34:47] onechr: has joined #ruby
[20:35:23] onechr: has left #ruby: ()
[20:35:55] bronson: has joined #ruby
[20:36:05] lemur: has joined #ruby
[20:36:43] elton: has joined #ruby
[20:37:19] f00bar-32: Can I access the key of a hash with [0]? WTF
[20:38:27] shanemcd: has joined #ruby
[20:38:28] havenwood: f00bar-32: Whatcha mean?
[20:38:28] eam: f00bar-32: sure why not
[20:38:30] endriuuuu: has joined #ruby
[20:39:14] havenwood: endriuuuu: hi
[20:39:51] endriuuuu: sup havenwood
[20:40:04] endriuuuu: hows your weekend going
[20:40:48] endriuuuu: fucking eminem
[20:40:55] endriuuuu: playing in my earthphones
[20:41:00] endriuuuu: when i like drum and bass you know
[20:41:04] endriuuuu: shit happens
[20:41:06] havenwood: ?ot endriuuuu
[20:41:06] ruboto: endriuuuu, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[20:42:25] dlitvak: has joined #ruby
[20:42:30] snockerton: has joined #ruby
[20:43:02] atomical: has joined #ruby
[20:44:44] dfockler: has joined #ruby
[20:48:41] somedude: has joined #ruby
[20:48:49] skade: has joined #ruby
[20:49:04] somedude: I have a quick question about radio_button_tag, can someone help me?
[20:49:15] supermarin: has joined #ruby
[20:49:20] krobzaur: has joined #ruby
[20:50:12] somedude: how would I take this tag and make it selected by default?
[20:50:14] somedude: <%= radio_button_tag(:method, :direct, params[:method] == 'direct', :onclick => 'directOnclick();') %>
[20:50:47] havenwood: somedude: Someone might chime in here but the best place for ActionView questions is the #RubyOnRails channel.
[20:51:16] norc: somedude: Also, please ask about unobstrusive JavaScript when you are there.
[20:53:04] desmondhume: has joined #ruby
[20:53:43] BTRE: has joined #ruby
[20:53:53] somedude: I'm just styling the form, its for a network gateway
[20:54:04] somedude: But I need this selected by default
[20:56:00] somedude: I did it! :checked => 'checked' was all it needed
[20:56:02] somedude: I'm the bets
[20:56:10] havenwood: somedude: ;)
[20:56:29] somedude: I beleive I'm a professional developer now
[20:58:09] JakFrist: has joined #ruby
[21:01:37] ruby-lang075: has joined #ruby
[21:01:48] ruby-lang075: hey people. how would one of you go about taking an image and breaking it up into pixels?
[21:02:38] Ox0dea: ruby-lang075: oily_png
[21:03:27] sucks: has joined #ruby
[21:03:42] ElFerna: has joined #ruby
[21:03:50] sneakers: has joined #ruby
[21:03:58] eam: ruby-lang075: that's a bit of a weird question, considering an image is an array of pixels
[21:04:27] baweaver: has joined #ruby
[21:04:28] jhass: eam: so SVG isn't an image format? scnr
[21:04:40] eam: jhass: correct, it's a vector format ...
[21:04:44] ruby-lang075: it may sound like an easy question, so forgive me for sounding goofy, but I really wouldn't know how to start with such a problem.
[21:04:59] Ox0dea: ruby-lang075: ChunkyPNG::Image.from_file('foo.png').pixels
[21:05:14] eam: jhass: but an image format isn't an image either :)
[21:05:40] Vitor_: has joined #ruby
[21:06:08] jhass: well, are there imagines or are there only representations of images anyway?
[21:06:31] tomphp: has joined #ruby
[21:06:33] zarubin: has joined #ruby
[21:07:03] Ox0dea: <obligatory Allegory of the Cave mention>
[21:07:26] eam: Ox0dea: probably more Korzybski, no?
[21:08:07] Ox0dea: eam: jhass introduced a debate to do with form, not interpretation, no?
[21:08:24] Ox0dea: They're related, to be sure, but scarcely the same thing.
[21:08:54] eam: is "image" not an interpretation?
[21:09:30] abra0: has joined #ruby
[21:09:31] ruurd: jhass freudian slip? imagines instead of images?
[21:09:44] Ox0dea: ruurd: jhass is a huge Beatles fan.
[21:09:49] akem: has joined #ruby
[21:10:21] Ox0dea: eam: I suppose you're right; Korzybski is probably the most relevant theorist to that particular discussion.
[21:10:27] ruurd: O thank you now I'm hearing 64
[21:14:32] bronson: has joined #ruby
[21:17:45] banister: has joined #ruby
[21:18:25] sucks: has joined #ruby
[21:19:02] daivyk: has joined #ruby
[21:19:40] trwyth: has joined #ruby
[21:20:15] jhass: ?guys endriuuuu
[21:20:16] ruboto: endriuuuu, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[21:20:40] Spami: has joined #ruby
[21:21:38] endriuuuu: RUSSIA VS SYRIA ?>
[21:21:42] jhass: not going to discuss it here, do you have a ruby question?
[21:22:00] jhass: endriuuuu: if you don't have a Ruby question, I'd like you to leave
[21:22:26] hxegon: ?ot endriuuuu
[21:22:26] ruboto: endriuuuu, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[21:23:20] ruboto: +q endriuuuu!*@*
[21:23:20] ruboto: -o ruboto
[21:23:35] havenwood: !kick endriuuuu be nice
[21:23:36] ruboto: ruboto kicked endriuuuu: nice
[21:23:36] ruboto: -o ruboto
[21:23:56] dopieee: has joined #ruby
[21:26:59] delsol: has joined #ruby
[21:28:24] lemur: has joined #ruby
[21:29:00] AndroidLoverInSF: has joined #ruby
[21:29:56] jackcom: has joined #ruby
[21:30:23] Rush_: has joined #ruby
[21:30:40] f00bar-32: has joined #ruby
[21:30:52] Cohedrin: has joined #ruby
[21:30:58] Rush: has joined #ruby
[21:32:31] mchu: has joined #ruby
[21:32:31] Rush: a = lambda { |foo:| puts 'called'}, how can I programatically check the required arguments for such lambda or proc? (without rescuing from exceptions ArgumentError: missing keyword: foo)
[21:32:51] moeabdol: has joined #ruby
[21:32:59] jhass: >> lambda { |foo:| puts 'called'}.arguments
[21:33:00] ruboto: jhass # => undefined method `arguments' for #<Proc:0x4120f490> (NoMethodError) ...check link for more (https://eval.in/483908)
[21:33:01] druonysuse: has joined #ruby
[21:33:01] druonysuse: has joined #ruby
[21:33:05] jhass: wasn't there ...
[21:33:31] Rush: without changing the lambda
[21:33:37] jhass: >> lambda { |foo:| puts 'called'}.parameters
[21:33:38] ruboto: jhass # => [[:keyreq, :foo]] (https://eval.in/483909)
[21:33:51] Rush: jhass: nice!
[21:34:54] delsol: has left #ruby: ()
[21:35:04] hxegon: what does |foo:| mean?
[21:35:12] jhass: Rush: that said, given this isn't purely academical, my estimate for whether you're doing something wrong is pretty high
[21:35:20] jhass: hxegon: required keyword argument
[21:35:28] hxegon: jhass, ty
[21:35:43] unreal: has joined #ruby
[21:35:51] skade: has joined #ruby
[21:35:52] lemur: has joined #ruby
[21:36:11] Rush: jhass: well, I can only say that maybe you're right but I'm playing with a serializing framework, and some dependency injection ideas, so academically speaking it's a science experiment and all rules are out :)
[21:36:26] Rush: and thank you for your help
[21:36:29] Ox0dea: >> -> _, _ = 1, *_, _:, _: 1, **_ {}.parameters.map &:first
[21:36:30] ruboto: Ox0dea # => [:req, :opt, :rest, :keyreq, :key, :keyrest] (https://eval.in/483910)
[21:36:36] Ox0dea: I think that's all of 'em.
[21:37:10] moeabdol1: has joined #ruby
[21:37:22] jhass: Ox0dea: block
[21:37:25] elton: has joined #ruby
[21:37:38] adaedra: >> -> _, _ = 1, *_, _:, _: 1, **_, &_ {}.parameters.map &:first
[21:37:39] ruboto: adaedra # => [:req, :opt, :rest, :keyreq, :key, :keyrest, :block] (https://eval.in/483913)
[21:38:35] calderonroberto: has joined #ruby
[21:40:40] arooni: has joined #ruby
[21:41:52] bronson: has joined #ruby
[21:43:57] _stu_: has joined #ruby
[21:47:47] finisherr: has joined #ruby
[21:49:34] SCHAAP137: has joined #ruby
[21:50:04] zarubin: has joined #ruby
[21:50:21] tnireytu: has joined #ruby
[21:50:29] atomical: has joined #ruby
[21:51:22] Wompy: has joined #ruby
[21:52:14] thiagofm: has joined #ruby
[21:52:21] Wompy: has left #ruby: ()
[21:53:13] Spami_: has joined #ruby
[21:55:35] B1n4r10: has joined #ruby
[21:55:56] jbrhbr: has joined #ruby
[21:56:29] thiagofm: has joined #ruby
[21:56:57] druonysuse: has joined #ruby
[21:56:58] druonysuse: has joined #ruby
[21:57:22] eam: why is #binread a class method but not an instance method?
[21:59:19] thomass: has joined #ruby
[22:01:02] devoldmx: has joined #ruby
[22:02:38] solars: has joined #ruby
[22:04:16] dfinninger: has joined #ruby
[22:04:54] matled-: has joined #ruby
[22:06:24] user1138: has joined #ruby
[22:07:19] finisherr: has joined #ruby
[22:07:58] Ox0dea: https://github.com/tric/trick2015
[22:08:01] yqt: has joined #ruby
[22:08:18] zarubin: has joined #ruby
[22:08:41] rgrmatt: has joined #ruby
[22:08:52] shevy: eam might have been forgotten to add
[22:09:07] blub: hi shevy
[22:09:57] shevy: yeah blub are you doing anything kickass
[22:10:33] zarubin: has joined #ruby
[22:11:20] akem: has joined #ruby
[22:13:01] zarubin_: has joined #ruby
[22:13:21] shock_one: has joined #ruby
[22:13:51] luckyme: has joined #ruby
[22:16:52] casadei: has joined #ruby
[22:19:44] douglass1: has joined #ruby
[22:20:33] devbug: has joined #ruby
[22:22:18] jbrhbr: neat comp
[22:22:29] jbrhbr: running this one does nothing for me: https://raw.githubusercontent.com/tric/trick2015/master/ksk_2/entry.rb
[22:22:37] jbrhbr: guess there's some ruby version problem
[22:23:12] jbrhbr: woops, needed to give it data :)
[22:24:16] duncannz: has joined #ruby
[22:24:58] Ox0dea: jbrhbr: Do let me know your favorite once you've gone through the lot.
[22:25:14] hxegon: has joined #ruby
[22:25:15] Ox0dea: omoikane is really neat.
[22:25:21] nettoweb: has joined #ruby
[22:25:51] jbrhbr: will do, tomorrow probably :) can't spend that much time on it today
[22:26:12] somedude: is there any way I can delay an element from loading from a certain page for a few seconds?
[22:26:13] jbrhbr: i like trying to decipher these things. it's good for learning if nothing else!
[22:27:24] InvGhost: has joined #ruby
[22:28:23] Rodya_: has joined #ruby
[22:28:50] Ox0dea: Consider all of my flabbers gasted: https://eval.in/483930
[22:29:03] yfeldblum: has joined #ruby
[22:29:22] Ox0dea: There are no syntax errors therein.
[22:29:52] atomical_: has joined #ruby
[22:31:16] f00bar-32: has joined #ruby
[22:32:00] Wompy: has joined #ruby
[22:33:00] Ox0dea: I still don't get it.
[22:33:01] TomyLobo: has joined #ruby
[22:33:22] davedev24: has joined #ruby
[22:33:45] TomyLobo: has anyone ever used ruby on cygwin? i'm having trouble building ffi since there's no ruby.h. any idea which package that might be in?
[22:33:54] hxegon: has left #ruby: ("Leaving")
[22:34:03] hxegon: has joined #ruby
[22:34:06] hxegon: https://eval.in/483930
[22:34:07] TomyLobo: there's no ruby-dev or ruby-devel or anything and i cant find a feature to search by file name
[22:34:13] Rodya_: has joined #ruby
[22:34:18] hxegon: https://www.youtube.com/watch?v=mtsWLVM0k1Y
[22:34:23] TomyLobo: https://cygwin.com/cgi-bin2/package-grep.cgi?grep=ruby%5C.h&arch=x86_64 maybe this, but that doesnt seem right
[22:35:08] Wompy_: has joined #ruby
[22:37:21] snockerton: has joined #ruby
[22:38:16] elton: has joined #ruby
[22:38:55] gizmore: has joined #ruby
[22:41:42] axl_: has joined #ruby
[22:44:28] Coldblackice: has joined #ruby
[22:45:28] sucks: has joined #ruby
[22:46:17] beardo_: has left #ruby: ("Leaving")
[22:47:01] Ox0dea: >> we can say whatever we want if @it_doesnt_actually_get_executed # hxegon
[22:47:02] ruboto: Ox0dea # => nil (https://eval.in/483934)
[22:48:14] charliesome: has joined #ruby
[22:48:15] Ox0dea: $1 is nil at program start; everything else builds around that.
[22:50:10] soahccc: gosh anyone know how fast fail2ban is? It parses my log forever :<
[22:50:14] threh: has joined #ruby
[22:51:47] Ox0dea: soahccc: Bigger logs burn slower; that's just basic chemistry.
[22:51:49] jhass: seems rather offtopic ;)
[22:52:46] tomphp: has joined #ruby
[22:53:27] soahccc: rather yeah. It should help out my rails app :) 4GB access.log however takes some time I'm afraid. I haven't used fail2ban yet and I hope it tails after that initial load
[22:57:24] baweaver: has joined #ruby
[22:58:04] firstdayonthejob: has joined #ruby
[22:58:57] ta: has joined #ruby
[23:00:51] norc: Ox0dea: Slower?`
[23:00:56] bronson: has joined #ruby
[23:01:00] norc: I think you meant to say "longer".
[23:01:27] Ox0dea: norc: It's a saying in Tennessee. Well, it's in Texas; it's probably in Tennessee.
[23:01:37] norc: Ox0dea: I got that reference immediately.
[23:01:50] norc: And I am not even close to being a native speaker, let alone American.
[23:02:08] hxegon: is this the reference that shames you if you make it twice?
[23:02:22] Ox0dea: I've no trouble accepting that Bush's tomfoolery at microphones has spread far and wide.
[23:02:29] norc: hxegon: Funny.
[23:03:09] norc: Ox0dea: Yeah. You made peace with the fishes right?
[23:03:16] mchu: has joined #ruby
[23:03:33] Ox0dea: norc: All in the interest of putting food on my family.
[23:04:42] ibouvousaime: has joined #ruby
[23:05:05] norc: Ox0dea: So is this the moment where we start a new Ruby idiom: "It's clearly a Bignum. It's got a lot of numbers in it." ?
[23:05:52] dstarh: has joined #ruby
[23:06:45] Ox0dea: has joined #ruby
[23:07:21] B1n4r10: has joined #ruby
[23:07:31] Ox0dea: norc: I'm so glad you asked. I've been meaning to use Fiddle to add Bignum#[]=, but it gets hairy once the static array optimization hits its limit.
[23:07:48] Ox0dea: How to reliably twiddle heap values?
[23:07:50] norc: Say what?
[23:08:19] Ox0dea: You know how small strings (<24 characters on 64-bit) are optimized to use a static array for storage?
[23:08:29] TomPeed: has joined #ruby
[23:08:41] norc: I have barely reached the impl of the VM, Im not even at Object implementations yet.
[23:08:41] Ox0dea: http://patshaughnessy.net/2012/1/4/never-create-ruby-strings-longer-than-23-characters
[23:08:52] norc: Bottom up, remember?
[23:08:56] Wompy: has left #ruby: ("Leaving...")
[23:08:57] Ox0dea: Aye, fair enough.
[23:09:10] Ox0dea: But yeah, that same approach is taken for optimizing Bignums.
[23:09:39] ornerymoose: has joined #ruby
[23:09:52] Ox0dea: Writing to the array for Bignums smaller than 193 bits is cake, but then it gets wonky because heap-allocated.
[23:10:44] Ox0dea: You'll have to hit Run. https://repl.it/B41z
[23:11:31] norc: Ox0dea: Where is the problem in fiddling heap values?
[23:11:46] Wompy: has joined #ruby
[23:11:56] norc: Fiddle has #ptr and #malloc, which basically gives you all the tools to really screw around.
[23:12:15] shevy: oh dear god I just realized
[23:12:21] shevy: both Ox0dea and norc are awake
[23:12:31] Trynemjoel: has joined #ruby
[23:13:17] rdavila: has joined #ruby
[23:13:30] tenderlove: has joined #ruby
[23:13:33] norc: Ox0dea: Im guessing Ruby carries the information about the static ary optimization in flags?
[23:14:30] jgt: has joined #ruby
[23:14:41] baweaver: has joined #ruby
[23:14:58] Ox0dea: norc: Just the one: BIGNUM_EMBED_FLAG.
[23:15:28] djbkd: has joined #ruby
[23:15:49] shanemcd: has joined #ruby
[23:15:55] Ox0dea: norc: https://eval.in/483935
[23:16:23] justinmburrous: has joined #ruby
[23:16:50] Ox0dea: cf.: https://eval.in/483936
[23:18:02] Ox0dea: The thing is, all the machinery is, well, machine-dependent.
[23:18:09] kobain: has joined #ruby
[23:18:32] Ox0dea: `BDIGIT` varies in size, as the most pressing example.
[23:18:54] norc: That should not be an issue
[23:18:56] norc: Give me a second
[23:19:04] casadei: has joined #ruby
[23:19:34] norc: What flag is that? FL_USER2?
[23:19:58] Ox0dea: That doesn't look like a guess. :P
[23:20:27] dfinninger: has joined #ruby
[23:20:49] norc: Im just a little bit confused.
[23:20:57] norc: Also slightly intoxicated.
[23:21:14] Ox0dea: Rarely one without the other. ^_^
[23:21:24] Ox0dea: (How's that for a veiled compliment?)
[23:21:49] tenderlove: has joined #ruby
[23:22:13] Ox0dea: For sufficiently small Bignums, the static array lives right after the RBasic in memory, so the data's just a Fiddle::Pointer#[] away.
[23:22:21] felltir: has joined #ruby
[23:22:42] Ox0dea: After 192 bits, the data moves house and changes format and just generally shits in my corn flakes.
[23:26:13] ChanServ: -b chinkytime!*@*
[23:26:36] sonOfRa: has joined #ruby
[23:27:21] tenderlove: has joined #ruby
[23:29:09] baweaver: has joined #ruby
[23:31:16] Ox0dea: norc: It's really not as straightforward as it seems like Fiddle might make it.
[23:31:25] norc: How is that?
[23:32:12] Ox0dea: Struct layout is machine-dependent, and I don't see how to get at `bn.as.heap` without (hopefully) plucking the address out of raw memory.
[23:32:26] lemur: has joined #ruby
[23:32:32] Ox0dea: *compiler-dependent
[23:33:02] norc: The struct layout can pretty much be relied on because of C specs.
[23:33:10] norc: You just have to consider alignment
[23:33:25] colegatron: has joined #ruby
[23:33:45] Ox0dea: Hmm, well, Fiddle certainy obliges us there.
[23:33:55] norc: Which still should be since since somehow everything is either VALUE, or VALUE ptr, which means your structs should mostly be aligned already.
[23:34:13] Ox0dea: >> require 'fiddle'; Fiddle.constants.grep(/ALIGN/).size
[23:34:14] ruboto: Ox0dea # => 13 (https://eval.in/483937)
[23:34:22] Ox0dea: Seems excessive.
[23:34:43] Ox0dea: `bn.as.heap` is not a VALUE, though.
[23:35:32] tenderlove: has joined #ruby
[23:36:22] zeroDivisible: has joined #ruby
[23:37:39] norc: Ox0dea: Sure, the only slightly annoying part is that you have to figure out whether BDIGIT is an unsigned int or unsigned short
[23:37:42] norc: Which is still fairly easy.
[23:38:12] DeXterbed: has joined #ruby
[23:39:02] elton: has joined #ruby
[23:39:51] norc: Ox0dea: Wait! Im blind.
[23:40:06] norc: Ox0dea: Its a pointer. So everything you need to know is known.
[23:40:22] myztic: has joined #ruby
[23:40:39] Ox0dea: Well, yes, it's on the heap.
[23:40:58] Ox0dea: The heap is pointer city.
[23:41:30] Ox0dea: > I don't see how to get at `bn.as.heap` without (hopefully) plucking the address out of raw memory.
[23:41:36] Ox0dea: Do I have the right of it, then?
[23:41:36] kmckelvi1: has joined #ruby
[23:42:16] Ox0dea: How to get the address of `bn.as.heap`?
[23:42:23] myztic: I know about http://ruby-community.com/pages/links I don't know if that makes sense, but what I want is a "traditional programming book" about ruby, I only seem to find lightweight tutorials, weird reference material and the like is there no concise well written proper book?
[23:42:24] norc: You have a Fiddle::Pointer. All you do now is simple pointer arithmetic, using #ptr to deference into the next ptr.
[23:42:49] Ox0dea: norc: And why would that magically get me to `bn.as.heap`?
[23:43:13] norc: Ox0dea: A union is just syntactic sugar. In memory there is no union.
[23:43:26] woodruffw: has joined #ruby
[23:43:27] Ox0dea: That doesn't mean a deref is guaranteed to get me there, though?
[23:43:53] dorei: myztic: get the book coauthored by matz
[23:44:14] solocshaw: has joined #ruby
[23:44:28] myztic: dorei: I thought about getting The Ruby Programming Language
[23:44:29] norc: Ox0dea: Take the pointer of the object, add sizeof(RBasic) and you are at your heap object.
[23:44:42] myztic: dorei: that is the one you mean I guess :)
[23:44:52] Ox0dea: norc: Makes sense, but that's not a dereference.
[23:45:15] dorei: myztic: i think so :)
[23:45:30] norc: Ox0dea: (Fiddle::Pointer(bn.__id__ << 1) + offset).ptr
[23:45:46] norc: That is your digits pointer.
[23:46:01] norc: Forgot a .new there, but you get the idea.
[23:46:05] myztic: how "outdated" is ruby 1.8 by now (how valid is documentation for 1.8 these days) ?
[23:46:15] atumzin: has joined #ruby
[23:46:37] myztic: or rather 1.9
[23:46:50] myztic: the one coauthored by matz covers 1.9, it was published in 2008
[23:47:18] myztic: time for a second edition me thinks
[23:47:54] jhass: you can get off with 1.9 and blogs for 2.0 & 2.1
[23:48:11] jhass: 1.8 is obsolete for new stuff
[23:48:26] myztic: jhass: but basically the thinks will still all work
[23:48:40] myztic: s/thinks/things
[23:48:45] jhass: yes, some slightly difference but most of the stuff is just new
[23:48:53] jhass: *different
[23:49:58] mary5030: has joined #ruby
[23:50:01] Ox0dea: norc: https://eval.in/483950
[23:50:07] shevy: myztic most of the ruby core/stdlib things that have been in 1.8 should work fine; a few things no longer exist though... parsedate or parsetime for instance. I found that out the hard way not long ago when I tried to update an old SVG library, it was using a lot of this parse* thing
[23:50:28] myztic: yeah ruby seems to be under heavy development
[23:50:32] Ox0dea: norc: It is indeed the right address, because `size` is correct, but I'd expect to see a lot more "\xFF" in that output.
[23:50:37] myztic: still the case or have things slowed down a bit
[23:51:03] norc: Ox0dea: Im not sure whether size is in bytes
[23:51:45] shevy: myztic depends at where you look at; there have been some projects that lost their maintainer
[23:52:00] shevy: myztic ruby core team is very active though bugs.ruby-lang.org/projects/ruby-trunk
[23:52:07] Ox0dea: norc: Even then, where's all the \xFF?
[23:52:34] shevy: some projects manage to have new and semi-active maintainers such as prawn https://github.com/prawnpdf/prawn
[23:53:02] shevy: oops, wrong link... rather than ruby-trunk, I wanted to link in https://github.com/ruby/ruby/blob/trunk/ChangeLog
[23:53:33] shevy: "Eric Wong insns.def (opt_case_dispatch): avoid converting Infinity" only chuck norris could handle Infinity anyway
[23:54:15] myztic: Is matz leading the cause? :)
[23:54:47] myztic: he's a mormon?! :D
[23:54:50] norc: Ox0dea: That is the point, you are dealing with BigNum.
[23:54:55] norc: It is differently encoded.
[23:54:59] shevy: myztic he is not leading the cause that much anymore :(
[23:55:06] norc: Throw that into your previous code, and you will see that it does not look as you would expect.
[23:55:13] norc: That particular number.
[23:55:29] shevy: myztic he does focus on mruby
[23:55:48] shevy: https://github.com/mruby/mruby/
[23:56:04] radgeRayden: has joined #ruby
[23:56:20] Ox0dea: norc: We're past that, though; we're now dealing with an array of binary digits.
[23:56:39] Ox0dea: Or should be, at any rate, given the results of https://repl.it/B41z
[23:57:05] shevy: I am surprised that eam does not join in when Ox0dea and norc discuss how they could best break ruby next
[23:57:42] Ox0dea: shevy: Bignum#[]= is a great idea and you're just mad you didn't think of it first. :P
[23:58:23] shevy: I don't think I had to deal a lot with bignums so far anyway, how do you people even FIND such things!
[23:58:32] devoldmx: has joined #ruby
[23:59:30] Ox0dea: eam: I think you'll like this: https://github.com/tric/trick2015/blob/master/ko1_2/entry.rb
[23:59:52] jgt1: has joined #ruby