« Back to channel list

#ruby - 13 October 2015

« Back 1 day Forward 1 day »
[00:03:41] moeabdol: has joined #ruby
[00:04:42] Bellthoven: has joined #ruby
[00:05:01] skweek: has joined #ruby
[00:05:41] jtperreault: has joined #ruby
[00:06:11] jtperreault: has left #ruby: ()
[00:06:21] jtperreault: has joined #ruby
[00:07:32] workmad3: has joined #ruby
[00:07:59] mistermocha: has joined #ruby
[00:08:41] sanjayu: has joined #ruby
[00:11:13] moeabdol: has joined #ruby
[00:11:36] ericjphillips: has joined #ruby
[00:11:58] chipotle: has joined #ruby
[00:13:25] barhum2013: has joined #ruby
[00:13:37] bkxd: has joined #ruby
[00:13:52] benlovell: has joined #ruby
[00:13:59] shevy: good old webchatters with their very real questions
[00:14:27] diegoaguilar_: has joined #ruby
[00:14:52] diegoaguilar_: has joined #ruby
[00:19:18] Kerber0s: has joined #ruby
[00:24:11] Igorshp: has joined #ruby
[00:25:37] djbkd: has joined #ruby
[00:25:46] zenguy_pc: has joined #ruby
[00:26:18] devoldmx: has joined #ruby
[00:27:58] `tim`: has joined #ruby
[00:28:03] Ox0dea: has joined #ruby
[00:28:23] Ox0dea: shevy: How do I invoke the instance methods of a singleton class?
[00:28:41] CloCkWeRX: has joined #ruby
[00:30:35] blackmesa: has joined #ruby
[00:31:39] s2013: has joined #ruby
[00:33:17] Yzguy: has joined #ruby
[00:33:23] bungoman_: has joined #ruby
[00:35:16] michaeldeol: has joined #ruby
[00:35:41] shevy: use class methods man
[00:38:36] p3ery: has joined #ruby
[00:38:56] baweaver: has joined #ruby
[00:39:34] p3ery: has joined #ruby
[00:39:47] lkba: has joined #ruby
[00:39:58] luckyme: has joined #ruby
[00:40:00] p3ery: has joined #ruby
[00:40:37] p3ery: has joined #ruby
[00:41:09] mary5030: has joined #ruby
[00:41:43] speakingcode: has joined #ruby
[00:42:29] riotjones: has joined #ruby
[00:43:39] dopieee: has joined #ruby
[00:44:41] ramfjord: has joined #ruby
[00:44:50] rickmasta: has joined #ruby
[00:44:53] shevy: Ox0dea you missed norc
[00:45:33] Bellthoven: has joined #ruby
[00:46:00] shevy: <norc> shevy: Im using Ruby extensively. Im just spending some time getting to know the internals bit by bit.
[00:46:07] hahuang65: has joined #ruby
[00:46:10] shevy: he has lots of real questions
[00:46:25] dopamean_: has joined #ruby
[00:46:52] mistermocha: has joined #ruby
[00:46:56] bkxd: has joined #ruby
[00:47:00] chipotle: has joined #ruby
[00:47:01] BraddPitt: can someone explain the difference between bundler's rake install command and `gem build *.gemspec`?
[00:47:39] t_mmyv: has joined #ruby
[00:48:56] mary5030: has joined #ruby
[00:49:54] weemsledeux: has joined #ruby
[00:49:59] mary5030: has joined #ruby
[00:50:04] shmilan: has joined #ruby
[00:50:44] nateberkopec: has joined #ruby
[00:52:28] haraoka: has joined #ruby
[00:53:47] Ox0dea: BraddPitt: If "build" and "install" are synonymous in your dictionary, something's gone awry.
[00:53:58] Ox0dea: > real questions
[00:54:01] BraddPitt: wasn't sure if they did different things, since the output is different
[00:54:07] Ox0dea: shevy: How goes the C learning?
[01:00:15] diegoaguilar_: has joined #ruby
[01:01:46] havenwood: BraddPitt: Build and install with bells and whistles and optional heel symbol versus simple build-only.
[01:02:18] havenwood: BraddPitt: https://github.com/bundler/bundler/blob/master/lib/bundler/gem_helper.rb
[01:04:46] havenwood: BraddPitt: Building a gem doesn't install the gem.
[01:08:24] swgillespie: has joined #ruby
[01:09:22] shevy: Ox0dea I dunno... 2015 is almost over already...
[01:09:33] workmad3: has joined #ruby
[01:09:38] bungoman: has joined #ruby
[01:10:19] pipework: Thank Matz for that. Hopefully we all get a great Christmas present from him.
[01:11:09] Ox0dea: has joined #ruby
[01:11:26] nateberkopec: has joined #ruby
[01:12:56] mistermocha: has joined #ruby
[01:13:48] sdothum: has joined #ruby
[01:13:49] Ox0dea: >> Time.now.yday / 365.0
[01:13:50] ruboto: Ox0dea # => 0.7835616438356164 (https://eval.in/449246)
[01:14:07] Ox0dea: pipework: matz is to blame for the year being ~78% over, you say?
[01:15:32] blue_deref: has joined #ruby
[01:16:37] ramfjord: has joined #ruby
[01:17:04] pipework: Ox0dea: It was a safer person to thank than any one diety.
[01:17:16] Ox0dea: matz isn't a deity, you say?
[01:17:34] pipework: Ox0dea: He's not just one.
[01:17:49] Ox0dea: If you mean he's *the* one, the matter is concluded.
[01:19:39] Ox0dea: "d | Convert argument as a decimal number." -- `ri sprintf`
[01:19:46] Ox0dea: >> '%d' % '0x0dea'
[01:19:52] ruboto: Ox0dea # => "3562" (https://eval.in/449250)
[01:20:02] Ox0dea: Is that an oops?
[01:20:27] tlolczyk: has joined #ruby
[01:20:27] Ox0dea: It bit me with an "octal" number in a string. :<
[01:20:49] houhoulis: has joined #ruby
[01:21:11] space-oddity: has joined #ruby
[01:21:47] space-oddity: has left #ruby: ("Leaving")
[01:22:02] mistermocha: has joined #ruby
[01:23:18] mistermocha: has joined #ruby
[01:23:32] tkuchiki: has joined #ruby
[01:23:52] tier: has joined #ruby
[01:25:10] tlolczyk: Is there some sort of library that allows me top mount a volume ( linux ) without doing a popen/exec/system?
[01:26:25] Ox0dea: tlolczyk: There's a FUSE wrapper?
[01:27:56] Shoutsid: has joined #ruby
[01:28:18] tlolczyk: Ox0dea, Sorry I forgot to mention that I will be running the script as root.
[01:29:21] `tim`: has joined #ruby
[01:29:26] Ox0dea: tlolczyk: More illuminating would be why you can't shell out.
[01:29:35] bruce_lee2: has joined #ruby
[01:30:50] beauby: has joined #ruby
[01:31:36] htmldrum: has joined #ruby
[01:32:16] stardiviner: has joined #ruby
[01:32:23] tlolczyk: Ox0dea, I want to write a script that, given a partition name "/dev/sdf1", mounts that partition someplace, reads "/dev/sdf1"/etc/fstab mounts those partitions in the right place, then bind mounts the appropriate pseudofilesystems and chroot to the mount point. It doesn't make sense to shell out.
[01:35:44] mary5030: has joined #ruby
[01:35:50] simplyianm: has joined #ruby
[01:40:28] speakingcode: has joined #ruby
[01:41:45] rewzn: has joined #ruby
[01:42:03] porfa: has joined #ruby
[01:43:15] riotjones: has joined #ruby
[01:43:42] Pathfinder_: has joined #ruby
[01:44:20] nateberkopec: has joined #ruby
[01:45:19] tmtwd: has joined #ruby
[01:46:36] Igorshp: has joined #ruby
[01:46:42] iamjarvo_: has joined #ruby
[01:47:40] bkxd: has joined #ruby
[01:49:02] keen__________12: has joined #ruby
[01:49:05] michael_mbp: has joined #ruby
[01:50:09] cajone: has joined #ruby
[01:50:10] Igorshp: has joined #ruby
[01:51:36] oetjenj: has joined #ruby
[01:52:10] Igorshp: has joined #ruby
[01:53:17] ledestin: has joined #ruby
[01:53:23] Ox0dea: has joined #ruby
[01:53:54] riskish: has joined #ruby
[01:54:31] speakingcode: has joined #ruby
[01:55:15] Limix: has joined #ruby
[01:55:51] cmoneylulz: has joined #ruby
[01:57:10] astrobun_: has joined #ruby
[01:57:21] jdawgaz: has joined #ruby
[01:58:16] haraoka: has joined #ruby
[02:02:09] benlovell: has joined #ruby
[02:05:27] bruno-: has joined #ruby
[02:05:34] rickmasta: has joined #ruby
[02:06:02] northfurr: has joined #ruby
[02:06:24] rickmasta: has joined #ruby
[02:07:32] EminenceHC: has joined #ruby
[02:10:23] workmad3: has joined #ruby
[02:10:23] zenguy_pc2: has joined #ruby
[02:17:40] Shoutsid: has joined #ruby
[02:18:41] inteq: has joined #ruby
[02:19:07] Ropeney: has joined #ruby
[02:19:29] PatrickKrebs: has joined #ruby
[02:22:25] skweek: has joined #ruby
[02:24:36] renderful: has joined #ruby
[02:25:27] northfurr: has joined #ruby
[02:27:03] devoldmx: has joined #ruby
[02:29:16] allcentury: has joined #ruby
[02:30:03] grzegorz: has joined #ruby
[02:30:15] blackjid: has joined #ruby
[02:31:20] bruce_lee2: has joined #ruby
[02:31:21] mary5030: has joined #ruby
[02:31:31] tubuliferous: has joined #ruby
[02:31:55] finisherr: has joined #ruby
[02:32:43] unreal: has joined #ruby
[02:32:55] blackmesa: has joined #ruby
[02:34:38] cajone: has joined #ruby
[02:36:03] roshanavand: has joined #ruby
[02:37:47] c_nick: has joined #ruby
[02:41:45] c_nick: i have a job in team city (builin n release tool) it launches something and returns successful. so in this job i dont have the actual status of the job whether its successful or not.
[02:41:45] c_nick: I need to trigger another job post this. Any suggestion what would be the best way forward wrt implementation?
[02:43:02] cmoneylulz: has joined #ruby
[02:43:16] Soda: has joined #ruby
[02:43:29] swgillespie: has joined #ruby
[02:44:04] riotjones: has joined #ruby
[02:46:00] baweaver: has joined #ruby
[02:49:52] Feyn: has joined #ruby
[02:50:22] Outlander: has joined #ruby
[02:51:07] Outlander: anyone see any issues running the same ruby app in amazon aws us-east-1 region vs other regions? specifically in a vpc vs not vpc? Start up of the ruby app is much slower, even on the same AMI
[02:51:14] krz: has joined #ruby
[02:52:39] PhantomSpank: has joined #ruby
[02:53:45] benlieb: has joined #ruby
[02:54:20] Jameser: has joined #ruby
[02:55:22] bryanray: has joined #ruby
[02:55:49] Eiam_: has joined #ruby
[02:58:36] mistermocha: has joined #ruby
[02:59:27] mistermocha: has joined #ruby
[03:00:04] bryanray: has joined #ruby
[03:00:30] gener1c_: has joined #ruby
[03:01:12] mrtomme: has joined #ruby
[03:01:30] sankaber: has joined #ruby
[03:01:34] skweek: has joined #ruby
[03:03:40] sankaber: has joined #ruby
[03:04:24] aaeron: has joined #ruby
[03:05:20] c_nick: has left #ruby: ()
[03:07:24] favadi: has joined #ruby
[03:07:40] djbkd: has joined #ruby
[03:10:30] justin_pdx: has joined #ruby
[03:10:53] braincrash: has joined #ruby
[03:11:07] workmad3: has joined #ruby
[03:12:20] lubarch: has joined #ruby
[03:13:40] gix: has joined #ruby
[03:18:42] bkxd: has joined #ruby
[03:21:07] bruno-: has joined #ruby
[03:23:22] jpfuentes2: has joined #ruby
[03:24:57] nk8: has joined #ruby
[03:25:56] porfa: has joined #ruby
[03:27:50] devoldmx: has joined #ruby
[03:28:52] CloCkWeRX: has joined #ruby
[03:29:00] mistermocha: has joined #ruby
[03:29:10] The_Phoenix: has joined #ruby
[03:29:20] Jameser`: has joined #ruby
[03:31:37] bandrami: has joined #ruby
[03:33:19] devbug: has joined #ruby
[03:33:43] benlieb: has joined #ruby
[03:36:06] michael_mbp: has joined #ruby
[03:36:20] darkf: has joined #ruby
[03:38:35] skweek: has joined #ruby
[03:38:52] aaeron: has joined #ruby
[03:39:56] aaeron1: has joined #ruby
[03:42:52] pawnbox: has joined #ruby
[03:45:03] riotjones: has joined #ruby
[03:45:37] sivsushruth: has joined #ruby
[03:47:33] skweek: has joined #ruby
[03:47:38] jpfuentes2: has joined #ruby
[03:48:23] devoldmx: has joined #ruby
[03:49:44] s00pcan: has joined #ruby
[03:50:12] opal: has joined #ruby
[03:50:19] benlovell: has joined #ruby
[03:53:57] grenierm: has joined #ruby
[03:54:08] zotherstupidguy: has joined #ruby
[03:55:07] arup_r: has joined #ruby
[03:55:53] weemsledeux: has joined #ruby
[03:57:02] towski_: has joined #ruby
[03:58:22] spuk: has joined #ruby
[03:59:17] sivsushruth: has joined #ruby
[03:59:33] minimalism: has joined #ruby
[04:02:09] jdawgaz: has joined #ruby
[04:02:21] psk17_: has joined #ruby
[04:03:08] shmilan: has joined #ruby
[04:04:41] opal: has left #ruby: ()
[04:04:46] pawnbox: has joined #ruby
[04:07:01] pawnbox: has joined #ruby
[04:09:51] Plas: has joined #ruby
[04:10:24] skweek: has joined #ruby
[04:11:55] workmad3: has joined #ruby
[04:13:26] skweek: has joined #ruby
[04:14:40] PlasmaStar: has joined #ruby
[04:15:02] skweeke: has joined #ruby
[04:15:14] astrobunny: has joined #ruby
[04:15:19] jpfuentes2: has joined #ruby
[04:16:25] stardiviner: has joined #ruby
[04:18:33] yardenbar: has joined #ruby
[04:18:47] sankaber: has joined #ruby
[04:23:18] allcentury: has joined #ruby
[04:23:26] jenrzzz: has joined #ruby
[04:24:15] Gnomethrower: has joined #ruby
[04:26:03] zenguy_pc2: has joined #ruby
[04:26:07] renderful: has joined #ruby
[04:27:21] benlovell: has joined #ruby
[04:27:59] LMity: has joined #ruby
[04:28:17] ramfjord: has joined #ruby
[04:32:01] tubuliferous: has joined #ruby
[04:33:43] blackmesa: has joined #ruby
[04:33:48] bruno-: has joined #ruby
[04:34:48] mistermocha: has joined #ruby
[04:35:31] NeverDie: has joined #ruby
[04:36:40] moeabdol: has joined #ruby
[04:38:15] Kero: has joined #ruby
[04:38:20] yosafbridge: has joined #ruby
[04:39:16] |ifei5good: has joined #ruby
[04:41:09] lemur: has joined #ruby
[04:41:33] johnny56: has joined #ruby
[04:41:53] Pharaoh2: has joined #ruby
[04:42:37] Log1x: has joined #ruby
[04:43:24] l_tonz: has joined #ruby
[04:43:42] yfeldblum: has joined #ruby
[04:44:43] aaeron: has joined #ruby
[04:45:54] riotjones: has joined #ruby
[04:47:48] tkuchiki: has joined #ruby
[04:47:59] Igorshp: has joined #ruby
[04:49:28] astrobunny: has joined #ruby
[04:49:58] psye: has joined #ruby
[04:53:56] mondayrain: has joined #ruby
[04:55:26] finisherr: How do I call a class as a method?
[04:55:36] finisherr: I???ve seen this before, I think in nokogiri
[04:56:31] Ox0dea: finisherr: Pardon?
[04:56:34] Sam_Gerber: has joined #ruby
[04:56:47] finisherr: Where you run something like ClassOrModuleName(param)
[04:56:58] Ox0dea: That's just a method.
[04:57:03] Ox0dea: Methods can share names with classes.
[04:57:03] finisherr: I???ve seen helper methods like that
[04:57:18] finisherr: Ah, interesting
[04:57:19] finisherr: didn???t know that
[04:57:26] finisherr: Cool thanks
[04:57:30] Ox0dea: Happy to help.
[04:57:39] solocshaw: has joined #ruby
[04:57:58] tesuji: has joined #ruby
[04:59:19] Ox0dea: finisherr: I probably shouldn't show you this, but here it is. https://eval.in/449354
[05:00:31] finisherr: I was thinking of something like: http://www.nokogiri.org/tutorials/parsing_an_html_xml_document.html
[05:01:50] finisherr: I think I found something: https://github.com/sparklemotion/nokogiri/blob/master/lib/nokogiri/xml.rb#L29
[05:02:08] Ox0dea: You found Nokogiri!
[05:02:29] Ox0dea: Here's what's going on: https://eval.in/449355
[05:02:30] |ifei5g00d: has joined #ruby
[05:03:01] Ox0dea: The "trick" is to realize that `::` and `.` are equivalent for invoking methods.
[05:03:06] Ox0dea: But forget you read that. :P
[05:03:16] finisherr: yeah, maybe it???s not idiomatic
[05:03:18] Ox0dea: >> 'foobar'::size
[05:03:19] ruboto: Ox0dea # => 6 (https://eval.in/449356)
[05:03:25] Ox0dea: It's ghastly.
[05:03:52] finisherr: In some cases it migth be considered sugary though?
[05:04:28] Ox0dea: Oh, certainly.
[05:04:35] Ox0dea: Ruby is easily the sweetest language, in that sense.
[05:05:30] Ox0dea: finisherr: To cap the thing, here's what you were looking for: http://git.io/vC0Nx
[05:05:36] finisherr: I???ve been doing a lot of Chef cookbook work and it???s really opened the doors for me. A lot of the flexibility got on my nerves at first. Just takes some getting used to.
[05:06:02] finisherr: Yeah! That???s what I was looking at
[05:06:50] finisherr: I have a particular situation where this might make sense
[05:06:51] Ox0dea: I guess it's "good" insofar as it makes folks such as yourself dive a bit further to figure out what's going on.
[05:07:07] rakm: has joined #ruby
[05:07:32] pawnbox: has joined #ruby
[05:07:56] Ox0dea: Still, invoking `Nokogiri.HTML` as the convenience method seems the best of both worlds.
[05:10:05] Spami: has joined #ruby
[05:11:40] UtkarshRay: has joined #ruby
[05:12:29] lubarch: has joined #ruby
[05:12:42] workmad3: has joined #ruby
[05:13:00] dhjondoh: has joined #ruby
[05:13:27] Eiam_: has joined #ruby
[05:13:56] Scripore: has joined #ruby
[05:14:21] |ifei5good: has joined #ruby
[05:15:23] stardiviner: has joined #ruby
[05:15:27] Pharaoh2: has joined #ruby
[05:17:18] warriorkitty: has joined #ruby
[05:18:03] doritostains: has joined #ruby
[05:18:14] warriorkitty: Inside Ruby's source code, in file main.c is a line: "#undef RUBY_EXPORT". What does it do?
[05:19:14] bkxd: has joined #ruby
[05:19:31] warriorkitty: has joined #ruby
[05:19:44] Ox0dea: warriorkitty: Ruby can be used from other C programs.
[05:20:08] Ox0dea: Ruby itself, however, is not such a program, so it shouldn't export the things it otherwise would when used as an interpreter.
[05:20:35] warriorkitty: Ox0dea: Seems reasonable, thank you.
[05:20:47] devyn: has joined #ruby
[05:20:48] warriorkitty: I'm diving into source code. :D
[05:20:55] xxneolithicxx: has joined #ruby
[05:21:28] EminenceHC: has joined #ruby
[05:21:59] Ox0dea: `grep -R -A5 '#ifdef RUBY_EXPORT'` if you want to see where all it participates.
[05:22:07] Ox0dea: It's not terribly interesting, mind.
[05:22:37] warriorkitty: Hah, I was just googling grep functionalities for this. :D Thanks!
[05:23:12] warriorkitty: I hate the capital R and r inconsitencies.
[05:23:17] Ox0dea: Yay, Unix!
[05:24:04] MeMoc: has joined #ruby
[05:24:04] BTRE: has joined #ruby
[05:24:05] Ox0dea: I only used `grep` because I knew you'd likely recognize it; do yourself the favor of upgrading to `ag` (the_silver_searcher). :P
[05:24:51] Ox0dea: It's recursive by default, but that's the tip of the iceberg.
[05:25:04] warriorkitty: Well, I was learning PHP's source code through the software called... Just a min.
[05:25:19] Ox0dea: A masochist, eh?
[05:25:36] MeMoc_: has joined #ruby
[05:26:21] MeMoc: has joined #ruby
[05:26:23] Shoutsid: has joined #ruby
[05:27:01] warriorkitty: lxn or something like that. Web app, which understood all the macros and was capable finding definitions and implementations.
[05:27:15] amystephen: has joined #ruby
[05:27:23] Ox0dea: warriorkitty: You want ctags.
[05:27:36] Ox0dea: And an editor capable of incorporating them, I suppose.
[05:27:56] warriorkitty: Well, I have ctags vim. :D
[05:28:02] Ox0dea: Then you're good to go.
[05:28:19] favadi: has joined #ruby
[05:28:28] Ox0dea: <C-]> on any identifier that tickles your fancy.
[05:29:21] lxsameer: has joined #ruby
[05:31:29] PlasmaStar: has joined #ruby
[05:33:40] ruurd: has joined #ruby
[05:35:27] |ifei5g00d: has joined #ruby
[05:36:31] tagrudev: has joined #ruby
[05:37:50] skade: has joined #ruby
[05:39:28] trautwein: has joined #ruby
[05:39:47] bruno-: has joined #ruby
[05:40:17] RobertBirnie: has joined #ruby
[05:40:51] Gnomethrower: has joined #ruby
[05:41:05] yardenbar: has joined #ruby
[05:41:14] ruurd: has joined #ruby
[05:41:22] RobertBirnie: has joined #ruby
[05:43:38] pawnbox: has joined #ruby
[05:43:53] dhjondoh: has joined #ruby
[05:45:23] Shoutsid: has joined #ruby
[05:48:19] niemcu: has joined #ruby
[05:48:32] codecop: has joined #ruby
[05:48:57] Igorshp: has joined #ruby
[05:49:19] pawnbox: has joined #ruby
[05:50:20] claw: has joined #ruby
[05:55:22] Shoutsid: has joined #ruby
[05:56:12] devoldmx: has joined #ruby
[05:57:49] Pathfinder_: has joined #ruby
[05:58:06] krz: has joined #ruby
[06:00:16] boozehound: has joined #ruby
[06:00:46] odigity: has joined #ruby
[06:02:32] UtkarshRay: has joined #ruby
[06:03:14] luckyme: has joined #ruby
[06:03:41] dionysus69: has joined #ruby
[06:03:52] aaeron: has joined #ruby
[06:03:58] weemsledeux: has joined #ruby
[06:05:47] sanjayu: has joined #ruby
[06:06:05] AlexRussia: has joined #ruby
[06:06:12] riotjones: has joined #ruby
[06:07:09] warriorkitty: has joined #ruby
[06:07:20] yeticry: has joined #ruby
[06:07:50] oetjenj: has joined #ruby
[06:10:04] Shoutsid: has joined #ruby
[06:10:12] awk: guys, what is the best way to do this.. I want to replace 000_blah.csv / 0001_blah1.csv ... I'm trying to use gsub to remove just the 000_ (so digits underscore) and the csv .. I tried if tableName =~ /[d+]/ a = tableName.gsub /.*_|\.csv/'' else a = tableName.gsub /\.csv/,'' end return a
[06:10:25] acke: has joined #ruby
[06:10:32] mmasaki: has joined #ruby
[06:10:53] tomphp: has joined #ruby
[06:13:31] workmad3: has joined #ruby
[06:13:59] Xiti`: has joined #ruby
[06:15:00] |ifei5good: has joined #ruby
[06:16:31] Pupp3tm4st3r: has joined #ruby
[06:17:18] Ox0dea: >> '0001_foo_bar_baz.csv'[/_(\w+)/, 1] # awk
[06:17:19] ruboto: Ox0dea # => "foo_bar_baz" (https://eval.in/449369)
[06:18:01] Ox0dea: It works because '_' is in \w and '.' isn't.
[06:18:21] astrobunny: has joined #ruby
[06:26:30] helpa: has joined #ruby
[06:26:30] renderful: has joined #ruby
[06:26:38] bnagy: has joined #ruby
[06:26:39] ejnahc: has joined #ruby
[06:26:49] yardenbar: has joined #ruby
[06:26:57] b3nt_pin: has joined #ruby
[06:27:06] boozehound: has joined #ruby
[06:27:28] tubbo: has joined #ruby
[06:27:35] davidt: has joined #ruby
[06:27:35] iceden: has joined #ruby
[06:27:37] Shoutsid: has joined #ruby
[06:27:44] Vile`: has joined #ruby
[06:27:54] eGGsha: has joined #ruby
[06:27:56] Caelum: has joined #ruby
[06:27:58] firstdayonthejob: has joined #ruby
[06:28:12] stardiviner: has joined #ruby
[06:28:12] roshanavand: has joined #ruby
[06:28:31] roshanavand: has joined #ruby
[06:29:14] brixen: has joined #ruby
[06:29:23] Brando753: has joined #ruby
[06:30:36] michael_mbp: has joined #ruby
[06:30:38] timonv: has joined #ruby
[06:31:43] Sam_Gerber: Hi there, very stupid question from total noob here, but I don't know the right words to use to search for this online. What do you do in the class definition to determine the value an object will return if a user inspects or puts the object without calling one of its methods or accessing one of its attributes?
[06:32:14] Mia: has joined #ruby
[06:33:00] beast: has joined #ruby
[06:33:25] hadrig: has joined #ruby
[06:34:15] Ox0dea: Sam_Gerber: If your object is passed to Kernel#p, its #inspect method is used, otherwise its #to_s.
[06:35:14] Ox0dea: https://eval.in/449373
[06:35:33] blaxter: has joined #ruby
[06:35:45] blackmesa: has joined #ruby
[06:35:56] astrobunny: has joined #ruby
[06:36:41] Sam_Gerber: Thank you, I'll try to see if I can understand the implications:)
[06:37:14] l_tonz: has joined #ruby
[06:37:19] Ox0dea: Sam_Gerber: In the broadest possible strokes, #print and #puts are intended to be read by users, whereas #p is almost always for debug printing.
[06:37:36] Ox0dea: Thus, you want the gritty details in #inspect, and something nicer to look at for #to_s.
[06:38:01] eam: >> p p p p p to_s
[06:38:02] ruboto: eam # => "main" ...check link for more (https://eval.in/449381)
[06:38:14] awk: Ox0dea: thanks, sorry I missed your reply, I landed up doing this gsub(/^[a-zA-Z]_|\.csv$/, '')
[06:38:21] Ox0dea: Sam_Gerber: What he's trying to say is that #p returns its argument, whereas #print and #puts return `nil`.
[06:38:35] eam: oh, I had a message?
[06:38:48] eam: it's a good one; I'm proud of myself
[06:39:20] Ox0dea: awk: Using #gsub for matching is ungood, but okay.
[06:39:29] Sam_Gerber: yes, that part I understand. I'm just having an issue with a class I've made that inherits from String. I can do pretty much everything I want to with the class, but the string is stored an accessed as an instance variable, and putsing printing inspect the object itself just yields an empty string. Where can I see the implementation of the String class?
[06:39:46] Ox0dea: Sam_Gerber: It's implemented in C.
[06:40:14] Ox0dea: You could always check out Rubinius' implementation?
[06:40:14] awk: Ox0dea: what is the reason for that
[06:40:20] awk: I would like to learn
[06:40:29] Ox0dea: Sam_Gerber: In any case, you probably shouldn't be inheriting from String.
[06:41:35] eam: Sam_Gerber: I'm curious, care to share code?
[06:41:36] Ox0dea: awk: Well, the "sub" in #gsub is "substitution"; you're carving the marble rather than picking a statue off the shelf, as it were.
[06:42:25] Stan: has joined #ruby
[06:42:58] Ox0dea: You want to extract some portion of the string, not remove the bits in which you're not interested. They ultimately amount to the same thing, but one is much clearer and intention-revealing than the other.
[06:43:05] Sam_Gerber: It's super messy and I'm sure completely rudimentary, it's the second problem from exercism.io https://eval.in/449383
[06:43:21] kwd: has joined #ruby
[06:44:18] Ox0dea: Sam_Gerber: How come you're inheriting from String? Does Strand need ~170 instance methods?
[06:44:26] awk: Ox0dea: interesting thanks
[06:45:25] freezevee: has joined #ruby
[06:46:00] oetjenj: has joined #ruby
[06:46:08] eam: Sam_Gerber: when you redefine initialize() you cause the original initializer for String to not becalled
[06:46:21] eam: Sam_Gerber: try adding "super" at the end of your initialize
[06:46:40] Ox0dea: Y U DO DIS?
[06:46:49] Sam_Gerber: Ox0dea, nope, certainly don't. I think I only really ever used length
[06:46:58] Ox0dea: Sam_Gerber: Well, you're using #each_char there.
[06:47:13] Ox0dea: But you're invoking it on the instance variable that contains a String, not the Strand itself.
[06:47:55] eam: yeah, Strand doesn't need to inherit from String to use string like methods
[06:48:13] eam: but as a learning exercise, why not?
[06:48:15] Sam_Gerber: that makes sense
[06:50:04] Sam_Gerber: ok, I feel bad spamming so much here on such basic stuff, I'll try to search around more about it on my own. I really appreciate everone's time in reading and helping, though. Cheers.
[06:50:05] tomphp: has joined #ruby
[06:50:38] Ox0dea: Sam_Gerber: Do you know about the Koans?
[06:50:58] eam: >> class Thing < String; end; x = Thing.new "thing"; class Thing2 < String; def initialize x; end; end; y = Thing2.new "thing"; class Thing3 < String; def initialize x; super; end; end; z = Thing3.new "thing"; [x,y,z]
[06:51:00] ruboto: eam # => ["thing", "", "thing"] (https://eval.in/449384)
[06:51:51] Sam_Gerber: downloading them now, thanks Ox0dea
[06:52:08] _blizzy_: has joined #ruby
[06:52:24] bruno-: has joined #ruby
[06:52:54] eam: well now what are we going to talk about
[06:53:40] Ox0dea: My implementation of Strand? https://eval.in/449386
[06:53:59] Ox0dea: Alternatively, cat tag.
[06:54:07] Sam_Gerber: eam, yes, that's exactly the behavior I was trying to figure out
[06:55:06] pepperbreath1: has left #ruby: ()
[06:55:21] Outlander: has left #ruby: ()
[06:55:30] eam: >> String, Fixnum = Fixnum, String; 1.class
[06:55:31] ruboto: eam # => /tmp/execpad-5dbaf82b7e16/source-5dbaf82b7e16:2: warning: already initialized constant String ...check link for more (https://eval.in/449388)
[06:55:44] eam: ugh, ruboto you and warnings
[06:55:49] Sam_Gerber: thanks for the cat tag...it's much nicer. I'm going to disappear for the next bit reading about super and zip
[06:56:48] troulouliou_div2: has joined #ruby
[06:56:49] ekleog: has joined #ruby
[06:57:05] eam: >> $VERBOSE = nil; String, Fixnum = Fixnum, String; 1.class
[06:57:06] ruboto: eam # => String (https://eval.in/449390)
[06:58:23] Ox0dea: >> require 'fiddle'; magic =->o { Fiddle::Pointer.new(o.__id__*2)[4,4] = [Fixnum.__id__*2].pack ?Q }; str = 'foo'; magic[str]; str
[06:58:25] ruboto: Ox0dea # => 541368550 (https://eval.in/449392)
[06:59:12] SCHAAP137: has joined #ruby
[06:59:21] roshanavand: has joined #ruby
[07:00:02] eam: >> rand(2**31).instance_eval { object_id === self * 2 + 1 }
[07:00:03] ruboto: eam # => true (https://eval.in/449395)
[07:00:19] _blizzy_: has joined #ruby
[07:00:22] brunto: has joined #ruby
[07:00:58] Ox0dea: What're the odds? ;)
[07:02:08] Ox0dea: >> '\\a'.tr '\\a', ''
[07:02:14] ruboto: Ox0dea # => "\\" (https://eval.in/449396)
[07:02:26] Ox0dea: Hm, I don't think that's right.
[07:02:31] krz: has joined #ruby
[07:02:34] Apocalypse: has joined #ruby
[07:02:37] samson65321: has joined #ruby
[07:03:06] roshanavand: has joined #ruby
[07:03:30] Ox0dea: x.tr(x, "") ought to be "" for all x, no?
[07:05:00] samson65321: has left #ruby: ()
[07:05:50] lubarch: has joined #ruby
[07:06:11] jas02: has joined #ruby
[07:06:21] eam: Ox0dea: looks like \ is meta to tr
[07:07:03] Ox0dea: eam: Aye, but only for '^' and '-' if the documentation is to be believed.
[07:08:21] tomphp: has joined #ruby
[07:08:26] andikr: has joined #ruby
[07:09:54] jenrzzz: has joined #ruby
[07:10:36] Ox0dea: `tr -d '\\a' <<< '\\a'` is empty, and it seems like Ruby ought to behave like its namesake in this regard.
[07:10:47] eam: yeah, this is odd
[07:11:25] Ox0dea: Easy enough to conclude that the bug is in the documentation.
[07:11:30] nfk|laptop: has joined #ruby
[07:11:38] eam: so, the docs conflict
[07:12:04] Ox0dea: Only insofar as they don't mention '\' itself as being a metacharacter, I suppose.
[07:12:08] Ox0dea: >> '\\a'.tr '\\\\a', ''
[07:12:09] ruboto: Ox0dea # => "" (https://eval.in/449405)
[07:12:09] eam: tr definitely supports \a as the escape for bell
[07:12:19] Ox0dea: It's nothing to do with the 'a'.
[07:12:29] eam: oh wait, it's using "" in the examples
[07:12:40] eam: perl tr allows escapes for those sequences
[07:12:49] guardianL: has joined #ruby
[07:12:53] Ox0dea: Why should "" matter?
[07:12:58] Ox0dea: >> '\\' == "\\"
[07:12:59] ruboto: Ox0dea # => true (https://eval.in/449406)
[07:13:00] eam: well "\a
[07:13:08] eam: >> "\a".size
[07:13:09] ruboto: eam # => 1 (https://eval.in/449407)
[07:13:11] michael_mbp: has joined #ruby
[07:13:19] eam: >> "\a".ord
[07:13:20] ruboto: eam # => 7 (https://eval.in/449408)
[07:13:27] eam: bel char
[07:13:38] eam: '\a' is two characters
[07:13:51] Ox0dea: >> '\\:'.tr '\\:', ''
[07:13:52] ruboto: Ox0dea # => "\\" (https://eval.in/449409)
[07:14:04] eam: seems like a bug
[07:14:17] workmad3: has joined #ruby
[07:14:47] Ox0dea: >> '\\:'.tr ':\\', '' # Definitely.
[07:14:49] ruboto: Ox0dea # => "" (https://eval.in/449410)
[07:16:39] Ox0dea: ACTION wonders how tr_trans() came to be 243 lines long.
[07:17:20] Ox0dea: Jesus, there's even a `struct tr` type for this monstrosity.
[07:18:02] eam: Ox0dea: I think the parsing rules for \\x in tr are reversed
[07:18:16] eam: the backslash is escaping the rightmost character
[07:18:28] Ox0dea: I'm not sure I follow.
[07:18:36] Ox0dea: I'm always using an even number of '\'s.
[07:19:36] Pupeno: has joined #ruby
[07:19:36] eam: ok I got it
[07:19:59] eam: The backslash character can be used to escape ^ or - and is otherwise ignored
[07:20:00] bkxd: has joined #ruby
[07:20:11] eam: so it's being ignored, yeah?
[07:20:25] Ox0dea: Then why does double-escaping do the "right" thing?
[07:20:39] Pupp3tm4_: has joined #ruby
[07:20:46] eam: I'm guessing "can be used to escape ^ or - or \\" is more accurate
[07:21:13] eam: no, that's nonsense
[07:21:41] Ox0dea: Aye, I'm pretty sure the code *and* the documentation are wrong here.
[07:22:48] Ox0dea: tr_trans() may well be the longest method implementation in MRI, and there are no occurrences of '-' or '\\' in it, so I'm gonna bail.
[07:23:04] eam: yeah I don't see the ascii ordinal value either
[07:23:17] Ox0dea: You're sick.
[07:23:37] Ox0dea: Spoken like somebody who's been there, I suppose.
[07:24:09] norc_: has joined #ruby
[07:27:49] ruurd: has joined #ruby
[07:27:50] SCHAAP137: has joined #ruby
[07:28:12] terlar: has joined #ruby
[07:29:53] stardiviner: has joined #ruby
[07:30:13] shevy: you two are like brothers!
[07:30:40] Pharaoh2: has joined #ruby
[07:35:12] devbug_: has joined #ruby
[07:35:52] Ox0dea: >> "\a".tr '\\a', ''
[07:35:53] ruboto: Ox0dea # => "\a" (https://eval.in/449430)
[07:36:00] Ox0dea: Worth a shot. I concede that I have no idea.
[07:36:34] Ox0dea: shevy: [k- is usually around about now, no?
[07:36:36] yeshacker: has joined #ruby
[07:37:40] solars: has joined #ruby
[07:38:09] eam: ACTION ^C's the build and adds --disable-install-rdoc
[07:38:20] Shoutsid: has joined #ruby
[07:38:33] shevy: dunno, Singaporean time zone
[07:38:46] platzhirsch: has joined #ruby
[07:39:05] khebbie: has joined #ruby
[07:39:11] karapetyan: has joined #ruby
[07:39:42] jgt: has joined #ruby
[07:40:39] Ox0dea: eam: Did you find where '-' gets interpreted?
[07:41:58] l_tonz: has joined #ruby
[07:43:06] favadi: has joined #ruby
[07:43:38] eam: trnext()
[07:44:41] ndrei: has joined #ruby
[07:44:43] Ox0dea: Hey, there's '\\' too.
[07:44:54] herbst: has joined #ruby
[07:45:13] joonty: has joined #ruby
[07:46:45] lubarch: has joined #ruby
[07:50:02] Igorshp: has joined #ruby
[07:50:55] skade: has joined #ruby
[07:52:26] subscope: has joined #ruby
[07:52:29] roshanavand: has joined #ruby
[07:53:04] senayar: has joined #ruby
[07:55:00] kimegede: has joined #ruby
[07:56:26] Skelz0r: has joined #ruby
[07:57:01] Hounddog: has joined #ruby
[07:57:37] jgt: has joined #ruby
[07:57:50] The_Phoenix1: has joined #ruby
[07:58:50] mikecmpbll: has joined #ruby
[07:59:00] craysiii: has joined #ruby
[07:59:02] n008f4g_: has joined #ruby
[07:59:53] allcentury: has joined #ruby
[08:01:26] bruno-: has joined #ruby
[08:01:52] kalusn: has joined #ruby
[08:03:33] voker57: has joined #ruby
[08:03:34] voker57: has joined #ruby
[08:04:28] heathd: has joined #ruby
[08:05:42] ndrei: has joined #ruby
[08:06:23] rdark: has joined #ruby
[08:06:44] allcentury: has joined #ruby
[08:06:54] krisquigley: has joined #ruby
[08:07:30] bougyman: yes, yes it is.
[08:08:30] DoubleMalt: has joined #ruby
[08:10:05] tvw: has joined #ruby
[08:11:15] jgt: has joined #ruby
[08:11:48] lsmola_: has joined #ruby
[08:12:03] pawnbox: has joined #ruby
[08:12:28] roshanavand: has joined #ruby
[08:13:09] roshanavand: has joined #ruby
[08:13:46] krz: has joined #ruby
[08:15:04] workmad3: has joined #ruby
[08:15:58] roshanavand: has joined #ruby
[08:16:56] [k-: has joined #ruby
[08:18:00] SCHAAP137: has joined #ruby
[08:19:05] shevy: https://bugs.ruby-lang.org/issues/11218#note-4
[08:19:11] shevy: translate for me my pretties
[08:20:15] Kendos-Kenlen: has joined #ruby
[08:20:43] bkxd: has joined #ruby
[08:21:20] tomphp: has joined #ruby
[08:21:27] canton7: https://translate.google.co.uk/translate?sl=auto&tl=en&js=y&prev=_t&hl=en&ie=UTF-8&u=https%3A%2F%2Fbugs.ruby-lang.org%2Fissues%2F11218%23note-4&edit-text=&act=url :)
[08:21:54] voker57: has joined #ruby
[08:22:33] Nanuq: has joined #ruby
[08:23:16] [k-: now we know shevy thinks canton7 is pretty!
[08:23:33] [k-: Ox0dea isn't here :(
[08:23:36] [k-: :(((((((
[08:23:42] [k-: shevy whyyyyyyyyyy
[08:23:53] shevy: <Ox0dea> shevy: [k- is usually around about now, no?
[08:23:57] shevy: like 5 minutes ago really
[08:24:01] shevy: that translate is yoda speak :)
[08:24:19] norc_: More like 50 minutes.
[08:24:38] norc_: [k- might have a bad memory, but your sense of time is worse!
[08:24:39] subscope: has joined #ruby
[08:25:16] [k-: my sense of time is pretty bad too, i can miss a whole day at times
[08:25:50] [k-: shevy: im coding, im coding!
[08:25:51] jenrzzz: has joined #ruby
[08:26:09] boozehound: has joined #ruby
[08:26:36] last_staff: has joined #ruby
[08:27:40] moty66: has joined #ruby
[08:28:36] norc_: shevy: Here is my professional translation. He or she wants File.open to do things.
[08:28:43] Peg-leg: has joined #ruby
[08:28:58] mark2: has joined #ruby
[08:29:47] stardiviner: has joined #ruby
[08:30:17] Couch: Can anyone help me fix this newbie problem ?: http://pastebin.com/SpdjuR7B
[08:30:17] ruboto: Couch, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/ad501dfda17a9829af9a
[08:30:17] ruboto: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[08:30:39] Couch: why thank you ,ruboto
[08:30:40] benlovell: has joined #ruby
[08:30:52] shevy: norc_ well it was cross-referenced in File#unlik
[08:30:53] ruurd: has joined #ruby
[08:30:58] shevy: File#unlink
[08:31:41] Kendos-Kenlen_: has joined #ruby
[08:31:48] shevy: Couch munge_boolean is not known to the class
[08:32:02] shevy: try if "include PuppetX" in your class will fix this error
[08:32:17] Couch: shevy, indeed, what is the correct way to call it? I tried PuppetX.munge_boolean, which also did not work
[08:32:34] The_Phoenix: has joined #ruby
[08:32:43] shevy: yes, you'd have to do a def self.munge_boolean for the API example you gave
[08:32:54] shevy: but simply include the module, you have done so before right?
[08:33:34] Couch: shevy, include PuppetX solves it, but is there no other way ? It doesn't feel right
[08:33:42] yorickpeterse: heh, File#unlick should be a thing
[08:33:53] norc_: shevy: On a more serious note, do you still want to know what the ticket is about?
[08:34:00] zotherstupidguy: has joined #ruby
[08:34:05] astrobun_: has joined #ruby
[08:34:21] Couch: including a module in a class that is inside that module's namespace feels wrong
[08:34:41] beast: has joined #ruby
[08:34:55] The_Phoenix: has joined #ruby
[08:35:22] bluOxigen: has joined #ruby
[08:35:47] workmad3: has joined #ruby
[08:36:16] Couch: after including PuppetX, PuppetX::BooleanProperty::BooleanProperty exists
[08:36:31] blackmesa: has joined #ruby
[08:37:33] ndrei: has joined #ruby
[08:37:56] beast_: has joined #ruby
[08:38:06] shevy: norc_ the yoda translate said that matz approved of the second change, I still don't know about File#unlink
[08:38:13] roshanavand: has joined #ruby
[08:38:37] simplyianm: has joined #ruby
[08:38:52] shevy: Couch module_function could be used, but it makes the method private
[08:39:07] shevy: but it really depends on how you want to use the API
[08:39:25] shevy: if you just want to add methods to your class, then you can do so via a module, and use "include" or "extend"
[08:40:13] The_Phoenix1: has joined #ruby
[08:40:46] rdark_: has joined #ruby
[08:40:58] bruno-_: has joined #ruby
[08:41:22] krisquigley: has joined #ruby
[08:41:50] Couch: shevy, thanks!
[08:43:51] norc_: shevy: I suppose its just about that code example where they do Tempfile.create { |f| f.unlink } -- which would only work in Win32 if FILE_SHARE_DELETE is passed in CreateFile.
[08:44:05] norc_: From what I can gather at MSDN anyway.
[08:44:07] dmolina: has joined #ruby
[08:44:28] norc_: shevy: And the japanese patch just provided that functionality to Ruby.
[08:45:41] gregoriokusowski: has joined #ruby
[08:45:55] lkba_: has joined #ruby
[08:46:57] solars: has joined #ruby
[08:47:48] _aeris_: has joined #ruby
[08:49:32] c0m0: has joined #ruby
[08:52:15] The_Phoenix: has joined #ruby
[08:54:51] shevy: well windows
[08:55:08] shevy: we adhere to the lowest common denominator!
[08:56:08] ndrei: has joined #ruby
[08:58:03] ruurd: has joined #ruby
[08:58:44] norc_: shevy: Nothing wrong with Windows. Except when you want to do anything Ruby related.
[08:59:02] devoldmx: has joined #ruby
[08:59:15] bougyman: and give microsoft all your datas.
[09:00:36] devbug: has joined #ruby
[09:00:40] marr: has joined #ruby
[09:02:05] Balzrael: has joined #ruby
[09:04:17] leafybasil: has joined #ruby
[09:04:25] Pupp3tm4st3r: has joined #ruby
[09:05:06] michael_mbp: has joined #ruby
[09:05:19] jenrzzz: has joined #ruby
[09:08:08] polycaster: has joined #ruby
[09:08:34] The_Phoenix: has joined #ruby
[09:09:38] Kendos-Kenlen: has joined #ruby
[09:09:45] T1loc: has joined #ruby
[09:11:15] ruurd: has joined #ruby
[09:12:30] jenrzzz: has joined #ruby
[09:13:00] Kero: has joined #ruby
[09:13:30] kohgpat: has joined #ruby
[09:13:32] T1loc: i've a little problem
[09:13:40] kohgpat: has left #ruby: ()
[09:13:44] kohgpat: has joined #ruby
[09:13:56] ruboto: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[09:14:08] T1loc: I try to find if a value is include in my array. If true I want to find the next value
[09:14:15] T1loc: but My code doesn't works :/
[09:14:16] T1loc: http://susepaste.org/51693159
[09:14:36] T1loc: For exemple if I start to 100, I want to get the 102 value.
[09:14:46] T1loc: and If I start to 103 I want to get the 104 value
[09:14:52] T1loc: to take (not to get :))
[09:15:23] canton7: T1loc, you should probably learn about the difference between numbers and strings
[09:15:28] patchedmonkey: has joined #ruby
[09:16:03] subscope: has joined #ruby
[09:17:22] musicmatze: Hi* #ruby...
[09:17:54] musicmatze: Can someone tell me how to sum up the values in a hash like this: { <date> => <array of int> }
[09:18:06] musicmatze: result should look like: { <date> => <int> }
[09:18:32] musicmatze: I could loop through each pair and put the result in another hash, but that looks rather non-rubyish...
[09:19:16] Kero: has joined #ruby
[09:19:32] T1loc: has left #ruby: ("1 2 3 4 5 est diff??rent de a b c d ! belle le??on !")
[09:20:25] craysiii: >> ['1', '2', '3'].map(&to_i).reduce(:+)
[09:20:26] ruboto: craysiii # => undefined local variable or method `to_i' for main:Object (NameError) ...check link for more (https://eval.in/449581)
[09:20:47] craysiii: >> ['1', '2', '3'].map(&:to_i).reduce(:+)
[09:20:48] ruboto: craysiii # => 6 (https://eval.in/449582)
[09:21:05] musicmatze: craysiii: so I would still do a Hash#each_pair, right=
[09:21:06] craysiii: my keyboard shift key has been giving me some trouble on certain keys
[09:21:32] bkxd: has joined #ruby
[09:21:43] stamina: has joined #ruby
[09:21:44] workmad3: has joined #ruby
[09:21:45] T1loc: has joined #ruby
[09:21:48] spider-mario: has joined #ruby
[09:23:14] craysiii: Hash#each should suffice though?
[09:23:45] musicmatze: k... and I can put the result right back in the same Hash object I'm iterating with, can't I?
[09:24:00] BustyLoli-Chan: has joined #ruby
[09:24:12] BustyLoli-Chan: can anyone tell me where ruby gems are installed
[09:24:21] bougyman: in GEM_HOME
[09:24:34] craysiii: back again with the name huh lol
[09:24:54] Kendos-Kenlen: has joined #ruby
[09:25:13] BustyLoli-Chan: echo $GEM_HOME returns nothing
[09:26:12] bougyman: BustyLoli-Chan: try 'gem environment'
[09:26:29] bougyman: you'll see a section called Gem Paths
[09:28:21] leafybasil: has joined #ruby
[09:28:54] patchedmonkey: has joined #ruby
[09:29:54] pontiki: has joined #ruby
[09:30:07] krz: has joined #ruby
[09:31:13] Igorshp: has joined #ruby
[09:32:11] solocshaw: has joined #ruby
[09:32:12] leafybasil: has joined #ruby
[09:33:08] The_Phoenix: has joined #ruby
[09:34:14] arup_r: has joined #ruby
[09:37:22] DEA7TH: has joined #ruby
[09:39:21] Igorshp: has joined #ruby
[09:41:52] BustyLoli-Chan: has anyone here used jekyll before?
[09:44:01] TTilus: BustyLoli-Chan: just ask
[09:44:44] BustyLoli-Chan: We have a bunch of web server files that are hosted on a github repository
[09:45:04] BustyLoli-Chan: one of the machines on our network then somehow takes that repository and hosts it locally
[09:45:23] BustyLoli-Chan: I want to know if it's possible to have jekyll do this for multiple branches of that repository
[09:45:46] BustyLoli-Chan: that way we can have a live branch and a testing/dev branch
[09:46:30] TTilus: why jekyll?
[09:47:21] BustyLoli-Chan: Some other guy set it up
[09:47:38] BustyLoli-Chan: and he was the system administrator guy before he left
[09:48:28] TTilus: ah, you mean the "web server files" in "a github repository" is essentially a website written in jekyll?
[09:48:52] BustyLoli-Chan: I think the github repo is the jekyll source
[09:49:13] TTilus: can you log in "one of the machines on our network"?
[09:49:50] BustyLoli-Chan: currently I'm on the web server
[09:50:03] TTilus: locate the clone of that gh repo
[09:50:29] TTilus: (that's prolly how the pages end up there)
[09:50:40] pawnbox: has joined #ruby
[09:50:59] TTilus: what you prolly wanna have is several clones of the repo, side by side
[09:51:11] TTilus: each clone has different branch checked out
[09:51:31] TTilus: and hooks/whatnot set up for pulling from gh and regenerating static site
[09:51:46] BustyLoli-Chan: the problem is, I'm not even sure this is the actual box that is pulling the repo
[09:51:53] BustyLoli-Chan: what do you think the best way to find the repo would be?
[09:51:57] TTilus: you have a problemn
[09:52:02] BustyLoli-Chan: like I can ssh to several machine
[09:52:16] ghr: BustyLoli-Chan first place I'd look is in the crontabs
[09:52:19] BustyLoli-Chan: is my best option just to run find / -name "reponame" ?
[09:52:19] pandaant: has joined #ruby
[09:52:22] TTilus: there's no easy general way to find out something like that
[09:52:41] ghr: might be fetching the repo every hour or whatever
[09:52:44] pawnbox: has joined #ruby
[09:53:07] TTilus: to be sure whats happening, i'd start with tracing back the path of http request that displays the site in your browser
[09:53:28] TTilus: check the ip/name of the host
[09:53:31] TTilus: log into the host
[09:53:41] TTilus: check who listens http(s) there
[09:53:49] TTilus: check the conf there
[09:55:03] TTilus: BustyLoli-Chan: usually `locate reponame` does better job and faster than find
[09:55:17] TTilus: (once you get there and if you need it)
[09:56:17] BustyLoli-Chan: I can't find the repo on the web host
[09:56:28] BustyLoli-Chan: which is strange because I know this is the box that hosts the website
[09:56:34] TTilus: you are likely to find the repo path (or subpath) inside webserver conf as virtualhost root, since jekyll by default spits the generated site inside the repo
[09:56:52] TTilus: BustyLoli-Chan: just do careful step-by-step
[09:57:02] BustyLoli-Chan: like I found the actual web directory
[09:57:04] TTilus: BustyLoli-Chan: who listens http(s) on that box?
[09:57:15] BustyLoli-Chan: is there an easy way to check that?
[09:57:28] TTilus: BustyLoli-Chan: do i need to google that for you?
[09:59:04] err_ok: has joined #ruby
[10:00:19] BustyLoli-Chan: apache 2 listens to http and https on this box
[10:00:25] err_ok: Is there a way of writing def self.types<<(t) to define the behaviour of the array append method?
[10:02:04] TTilus: BustyLoli-Chan: ok, then go find apache virtualhost config for the particular hostname you are interested in
[10:02:15] dhjondoh: has joined #ruby
[10:02:52] TTilus: BustyLoli-Chan: and then go look at the path where it serves from, because it might be inside the repo root you are looking for
[10:02:52] The_Phoenix: has joined #ruby
[10:04:26] TTilus: BustyLoli-Chan: it is highly likely that it'll be /clone/of/the/gh/repo/_site/
[10:04:42] Scripore: has joined #ruby
[10:06:49] prosody: has joined #ruby
[10:07:51] BustyLoli-Chan: this apache server doesn't even look set up....
[10:07:56] BustyLoli-Chan: what the hell is going on here
[10:08:01] jenrzzz: has joined #ruby
[10:08:51] minimalism: has joined #ruby
[10:09:38] techYJ: has joined #ruby
[10:10:00] techYJ: has left #ruby: ()
[10:10:10] TTilus: BustyLoli-Chan: sometimes ppl have evil habits of sprinkling configs all over the place, you could try `grep -rin the.host.of.the.site /etc`
[10:11:02] yuanjun: has joined #ruby
[10:11:09] yuanjun: has left #ruby: ()
[10:11:21] stardiviner: has joined #ruby
[10:11:38] BustyLoli-Chan: it says it's serving out of /var/www
[10:11:45] Kero: has joined #ruby
[10:11:48] The_Phoenix: has joined #ruby
[10:12:02] TTilus: BustyLoli-Chan: and it is?
[10:12:26] techYJ: has joined #ruby
[10:12:30] BustyLoli-Chan: but there's no like _config.yml in the root of the server
[10:12:33] TTilus: BustyLoli-Chan: i mean like if you see legit site stuff inside and when you edit something there it changes
[10:12:39] techYJ: has left #ruby: ()
[10:13:01] BustyLoli-Chan: but if you change something on github it will overwrite the local files
[10:13:08] techYJ: has joined #ruby
[10:13:08] BustyLoli-Chan: AFTER jekyll builds it somewhere
[10:13:08] TTilus: BustyLoli-Chan: then jekyll generation output dir is not default
[10:13:16] techYJ: has left #ruby: ()
[10:14:03] TTilus: BustyLoli-Chan: i'd first look crontabs and git hooks
[10:14:16] TTilus: s/look/look into/
[10:16:29] lkba: has joined #ruby
[10:18:43] favadi: has joined #ruby
[10:20:01] BustyLoli-Chan: I tried chrontab -l
[10:20:10] BustyLoli-Chan: and it just says no chrontabs for "user"
[10:20:26] rickmasta: has joined #ruby
[10:21:14] patchedmonkey: has joined #ruby
[10:23:00] BustyLoli-Chan: so if this is a bust
[10:23:06] guardianL: has joined #ruby
[10:23:14] BustyLoli-Chan: how hard would it be to set up jeckyll on my remote machine and have it pull from the fit repo?
[10:23:17] leafybasil: has joined #ruby
[10:27:34] pawnbox: has joined #ruby
[10:28:06] ndrei: has joined #ruby
[10:28:09] renderful: has joined #ruby
[10:28:13] boozehound: has joined #ruby
[10:30:06] allcentury: has joined #ruby
[10:31:58] codecop: has joined #ruby
[10:32:03] CloCkWeRX: has joined #ruby
[10:32:30] pawnbox: has joined #ruby
[10:33:25] lubarch: has joined #ruby
[10:33:58] nettoweb: has joined #ruby
[10:34:00] CloCkWeRX1: has joined #ruby
[10:34:50] shredding: has joined #ruby
[10:35:11] tobiasvl: BustyLoli-Chan: just set up a crontab for the user then
[10:36:06] beauby: has joined #ruby
[10:37:17] BustyLoli-Chan: I want to talk to the guy and figure out what machine does this already
[10:37:26] BustyLoli-Chan: so we don't have two separate machines doing it
[10:38:30] jenrzzz: has joined #ruby
[10:38:34] craysiii: has joined #ruby
[10:39:06] arup_r: has joined #ruby
[10:40:02] troulouliou_div2: has joined #ruby
[10:41:02] K1MOS: has joined #ruby
[10:41:43] sanjayu: has joined #ruby
[10:44:09] norc_: So why does irb start screwing up when I start pasting somewhat longish lines?
[10:44:31] norc_: Line breaks just are not displayed properly
[10:45:33] pawnbox: has joined #ruby
[10:46:21] blueOxigen: has joined #ruby
[10:47:10] moty66: has joined #ruby
[10:48:28] norc_: Oh. This could actually be my terminal emulator being too fast. :o
[10:49:02] shterrett: has joined #ruby
[10:51:01] jenrzzz: has joined #ruby
[10:51:10] rodfersou: has joined #ruby
[10:51:20] SenpaiSilver_: has joined #ruby
[10:52:12] amystephen: has joined #ruby
[10:52:39] michael_mbp: has joined #ruby
[10:52:50] karapetyan: has joined #ruby
[10:53:52] Xiti: has joined #ruby
[10:54:08] BSaboia: has joined #ruby
[10:59:47] devoldmx: has joined #ruby
[11:04:10] roshanavand: has joined #ruby
[11:04:20] moty66: has joined #ruby
[11:04:25] dhjondoh: has joined #ruby
[11:06:01] Pathfinder_: has joined #ruby
[11:10:22] dhjondoh: has joined #ruby
[11:11:14] davedev24: has joined #ruby
[11:18:25] norc_: So I am currently looking at UnboundMethod - what is this useful for?
[11:19:13] Xeago: has joined #ruby
[11:19:40] adaedra: >> class Foo; def bar; end; end; Foo.method(:bar) # here is one
[11:19:42] ruboto: adaedra # => undefined method `bar' for class `Class' (NameError) ...check link for more (https://eval.in/449731)
[11:19:53] adaedra: >> class Foo; def bar; end; end; Foo.instance_method(:bar) # here is one
[11:19:54] ruboto: adaedra # => #<UnboundMethod: Foo#bar> (https://eval.in/449732)
[11:20:05] adaedra: silly me :p
[11:20:54] norc_: adaedra: And that could be useful how?
[11:21:16] adaedra: If you need a reference to an instance method without attached class yet
[11:21:22] adaedra: s/class/object/
[11:21:26] atmosx: has joined #ruby
[11:21:49] adaedra: you can then bind it to an object which gives you a callable method
[11:21:49] norc_: adaedra: You just described what an UnboundMethod is - but what is this useful for?
[11:22:02] jespada: has joined #ruby
[11:22:11] norc_: adaedra: Sounds to me like a mixin can solve the problem if you need shared functionality.
[11:22:16] bkxd: has joined #ruby
[11:22:39] adaedra: Not for shared functionality only
[11:23:07] adaedra: For later call, like you have the method and the object you have to call it on is dynamic
[11:23:19] adaedra: A different way of doing send() with a variable as first parameter
[11:23:56] [k-: you cant just bind a method to any object
[11:24:05] LiquidInsect: has joined #ruby
[11:24:25] [k-: it's like sticking your organ into someone else's body
[11:24:35] [k-: the body will reject it and start attacking the foreign organ!
[11:24:51] adaedra: There's a limit on what you can bind it
[11:25:02] norc_: It has to be kind_of which means its even less useful than a Mixin.
[11:25:12] jenrzzz: has joined #ruby
[11:25:18] pawnbox: has joined #ruby
[11:25:18] norc_: http://pastie.org/10478479 -- I mean this is the dynamic dispatch that you were talking abotu adaedra
[11:25:34] norc_: (Maybe not the most creative example...)
[11:25:57] [k-: Unbound methods are copies of the original method
[11:26:04] khebbie: has joined #ruby
[11:26:05] adaedra: The bind is done on an instance
[11:26:13] [k-: (this is from the docs since i last saw it)
[11:26:34] HammyJammy: has joined #ruby
[11:26:46] [k-: that means that you can actually use unbound methods to save a method before you actually alter a method
[11:27:03] [k-: the unbound method can later be restored into the class when needed to
[11:27:28] [k-: a useful example could be (...someone think of one please)
[11:27:37] pawnbox: has joined #ruby
[11:28:18] norc_: I mean I found one posting stating that this could be useful for embedded systems with limited memory. Not that Ruby would be my first pick there though....
[11:28:51] lubarch: has joined #ruby
[11:30:17] shevy: I love you
[11:30:54] adaedra: ?guys shevy
[11:30:54] ruboto: shevy, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
[11:30:57] Icey: has joined #ruby
[11:31:05] norc_: adaedra: Still, I could just rewrite my snippet to include it on the singleton_class of the instance.
[11:31:15] norc_: adaedra: Unless shevy meant guys.
[11:31:23] norc_: And shevy does not love the girls here.
[11:31:24] shevy: can I not love the guys :(
[11:31:26] adaedra: meh and meh
[11:31:35] adaedra: let me poke shevy
[11:31:41] [k-: i thought shevy was pranked
[11:31:58] shevy: I just got home again so I am not quite here yet... it's damn cold outside
[11:32:02] adaedra: He can let me do it, for all the times he bothers me with his baguette
[11:32:15] [k-: and someone just came and went: hey, this is a chatroom (channel*), let's just type this love you message
[11:32:30] norc_: adaedra: http://pastie.org/10478495 this is what I meant
[11:33:06] yeshacker: has joined #ruby
[11:33:18] [k-: wow such introspectable
[11:33:21] shevy: [k- yeah!
[11:33:23] [k-: very big word
[11:33:34] shevy: it's the biggest channel I am in on freenode
[11:33:52] norc_: [k-: It is a brilliant Module is it not?
[11:34:02] [k-: i think it is the only channel you are in
[11:34:13] shevy: I find this ugly:
[11:34:13] shevy: class << foo
[11:34:23] [k-: it's the only channel you are in!
[11:34:29] adaedra: Funny, modules' UnboundMethods do not seems to have limitiations on what they can bound to.
[11:34:43] norc_: adaedra: As opposed to what the docs say you mean?
[11:35:08] [k-: >> {}.ancestors
[11:35:09] ruboto: [k- # => undefined method `ancestors' for {}:Hash (NoMethodError) ...check link for more (https://eval.in/449746)
[11:35:10] shevy: can an UnboundMethod be bound to an UnboundMethod?
[11:35:15] CloCkWeRX: has joined #ruby
[11:35:26] [k-: woooooo so deep, but no
[11:35:31] norc_: shevy: Hey, dont be hating on my code.
[11:35:37] adaedra: shevy: yes, can even be bound on itself.
[11:35:47] [k-: whattttt
[11:36:00] [k-: this is deep recursion here
[11:36:05] adaedra: >> module Foo; def bar; "hello" end; end; m = Foo.instance_method(:bar); m.bind(m).call
[11:36:06] ruboto: adaedra # => "hello" (https://eval.in/449750)
[11:36:08] shevy: infinite itself
[11:36:48] shevy: norc_ not the rest, only the "class << foo" part
[11:37:05] phutchins: has joined #ruby
[11:37:12] [k-: since classes are open, they can be redefined at any point in time
[11:37:21] [k-: even UnboundMethods
[11:37:33] ldnunes: has joined #ruby
[11:37:34] shevy: norc_ how about this: http://pastie.org/10478503
[11:37:53] shevy: I forgot your rescue....
[11:38:02] shevy: ah well, I am still not quite awake
[11:38:10] [k-: shevy: your code is horrible
[11:38:16] subscope: has joined #ruby
[11:38:24] pawnbox: has joined #ruby
[11:38:41] [k-: i do not see the aesthetic improvement you vowed to bring to us
[11:38:50] kobain: has joined #ruby
[11:38:54] EdwardIII: heh looking into ruby i found out i could do this: https://gist.github.com/EdwardIII/87c436c204098d3ce0e9
[11:38:55] norc_: shevy: Ok, I was gonna do foo.singleton_class.send(:include, Introspectable) - but I guess that does about the same thing. :-)
[11:38:57] EdwardIII: that's cute
[11:39:45] kobain: has joined #ruby
[11:40:05] _blizzy_: has joined #ruby
[11:40:08] sdothum: has joined #ruby
[11:40:37] adaedra: >> dice = (1..6).to_a; Fixnum.instance_method(:times).bind(dice.sample).call { puts "hello" }
[11:40:39] michael_mbp: has joined #ruby
[11:40:39] kobain: has joined #ruby
[11:40:40] shevy: there is .singleton_class again... I have no idea who made this popular. I swear I have not seen it in the past
[11:40:41] zenguy_pc: has joined #ruby
[11:40:42] ruboto: adaedra # => hello ...check link for more (https://eval.in/449759)
[11:41:09] norc_: shevy: Oh that is just me. Ever since I found out about it Im using it left and right - even in our production code powering our space rockets.
[11:41:21] shevy: EdwardIII yeah accessors or rather writers (setters); you can also use: attr_writer :name
[11:41:32] kobain: has joined #ruby
[11:41:33] Ebok: Quick question: in making an array of stop_words, I would prefer to use the %w{words,words,words} however some of the listed words are ruby commands such as : if when while do etc... so they are automatically highlighted due to not being outright listed as a string "do". Is there a shorthand way to make this worK? Or should I stick with a full literal array?
[11:41:38] shevy: ruby has a space rocket command now
[11:41:40] EdwardIII: so 'def name=(name)' is operator overloading. but is_old_enough_to_drink? is not? that's just a convention?
[11:42:03] norc_: That looks more like a weapon rocket. The space rocket has been there for a long while =>
[11:42:05] shevy: it's a method name called "name=" the = is part of it
[11:42:24] [k-: it is not overloaded
[11:42:33] [k-: methods are just overwritten
[11:42:40] shevy: the ? can also be part of the name EdwardIII
[11:42:41] EdwardIII: ok maybe operator loading doesn't mean what i think it means
[11:42:43] shevy: and a trailing ! too
[11:42:52] shevy: so you could have: def name?; def name!; def name=
[11:43:02] norc_: I would like to have a leading ? in my method names.
[11:43:13] ruboto: shevy # => "a" (https://eval.in/449763)
[11:43:25] shevy: norc_ well you could cheat via define_method() and .send()
[11:43:35] UtkarshRay: has joined #ruby
[11:43:43] shevy: obviously bougyman is not happy with leading ? in method names :-)
[11:43:49] adaedra: >> def +@; "Hi!"; end; +self
[11:43:50] ruboto: adaedra # => private method `+@' called for main:Object (NoMethodError) ...check link for more (https://eval.in/449764)
[11:43:55] [k-: >> ?a??b:?c # Warning :(
[11:43:56] ruboto: [k- # => /tmp/execpad-f0d910a55a35/source-f0d910a55a35:2: warning: string literal in condition ...check link for more (https://eval.in/449765)
[11:44:01] norc_: shevy: If my production code becomes completely and utterly maintainable now, you will have to take responsibility.
[11:44:04] odt: has left #ruby: ("Leaving")
[11:44:08] norc_: unmaintainable I meant...
[11:44:14] pawnbox: has joined #ruby
[11:44:24] adaedra: -> is for the stabby lambda
[11:44:34] shevy: norc_ just remove all your code :)
[11:45:38] s2013: has joined #ruby
[11:46:07] norc_: There. You are hating on my code again. :(
[11:46:27] EdwardIII: but shevy how come ".name" = works? i.e. with the space?
[11:46:43] [k-: in shevy's mind, only haskell is the best code;
[11:46:44] shevy: the ruby parser was written in hell
[11:46:48] EdwardIII: shevy: i'd understand if .name=() works, but it's the .name = () that i'm interested in
[11:47:04] EdwardIII: i bet you guys have a lot of experience with ruby eh?
[11:47:08] [k-: EdwardIII that is known as syntatic sugar
[11:47:19] [k-: ruby actually converts it to name=
[11:47:36] EdwardIII: but when you say def [] that's real operator overloading, right?
[11:47:40] [k-: well, it calls name=
[11:47:57] p0wn3d__: has joined #ruby
[11:48:02] norc_: EdwardIII: No.
[11:48:21] [k-: no, overloading refers to a method doing different things for different input types
[11:48:26] dhjondoh: has joined #ruby
[11:48:27] porfa: has joined #ruby
[11:48:40] [k-: def [] is just one method
[11:48:56] [k-: but in java, overloaded methods are tons of methods
[11:49:03] bryanray: has joined #ruby
[11:49:06] workmad3: [k-: it still gets called operator overloading, rather than polymorphic method overloading
[11:49:06] EdwardIII: heh right ok maybe it's a terminology thing
[11:49:19] [k-: the Runtime just decides which actual method to called
[11:49:32] EdwardIII: i consider operator overloading to mean "make an operator in the language that usually does something e.g. + do something else"
[11:49:52] EdwardIII: but i know in java/c# operator overloading means like function (int a), function (string a) etc and it matches them based on the arguments
[11:50:00] EdwardIII: well, method overloading, not operator overloading
[11:50:24] shevy: EdwardIII you could also do: .name = 5
[11:50:26] [k-: well, if you look at [] or + in a very general sense
[11:50:33] [k-: yes, they are overloaded
[11:50:35] shevy: the parser just won't care about the ' '
[11:50:42] EdwardIII: that's what operator overloading means in perl, right?
[11:50:46] shevy: take this strangeness:
[11:50:49] shevy: >> 1_2_333
[11:50:50] ruboto: shevy # => 12333 (https://eval.in/449776)
[11:50:53] norc_: [k-: Possibly UnboundMethod could be the closest thing to actually do overloading in Ruby!
[11:50:56] shevy: look! it killed off the _
[11:51:00] workmad3: EdwardIII: exactly... operator overloading is generally taken as "Make a thing that looks like an operator, e.g. +, have different behaviour", while "parametric method overloading" (sorry, I meant parametric, not polymorphic earlier) means "a different method gets called based on the parameters"
[11:51:12] shevy: paramedic!
[11:51:13] spcmastertim: has joined #ruby
[11:51:20] EdwardIII: ok good so randall schwartz doesn't have to come around and punch me in the mouth
[11:51:21] workmad3: [k-: i.e. you're using 'overloading' to just mean 'parametric method overloading' ;)
[11:51:24] [k-: (technically they are not, because the definition of + is attached to an object, and and object can only ever have one +)
[11:51:47] workmad3: [k-: and ruby doesn't support parametric method overloads
[11:52:01] [k-: if you look at Haskell's Typeclasses,
[11:52:13] [k-: workmad3: hang on, i already knew those!
[11:52:14] EdwardIII: then i will go blind with madness because of their beauty?
[11:52:36] [k-: indeed, such beautiful typeclasses
[11:52:56] EdwardIII: so this is probably +bworthy but, do you guys sort of like/love the language?
[11:52:59] [k-: Well, that is overloading, you know, types and what not
[11:53:12] [k-: and you can also make the + do different things
[11:53:22] EdwardIII: or do you think "well i'm in bed with ruby now, so i'll use it, but i'd rather be coding in x?'
[11:53:45] workmad3: EdwardIII: I like ruby, which is why I keep at it
[11:53:56] [k-: adaedra and shevy here refuses to use anything else
[11:54:01] EdwardIII: well ##php is pretty busy with people kepeing at it ;)
[11:54:10] EdwardIII: bit not because they like it
[11:54:12] adaedra: [k-: what?
[11:54:14] workmad3: shevy would use something else, if it was 'less bad' than ruby :)
[11:54:16] EdwardIII: man i am typing like an infant today
[11:54:29] [k-: and yorickpeterse just comes along and writes a new language!
[11:54:35] EdwardIII: i like the language from what i've seen so far, but i have some reservations about rails
[11:54:44] adaedra: [k-: what shit are you saying about me again?
[11:55:28] EdwardIII: the only thing about the language that concerns me a little is the amount of stuff you can do without getting an exception
[11:55:42] ruboto: norc_ # => :o (https://eval.in/449782)
[11:55:48] [k-: we are talking about languages here
[11:55:48] EdwardIII: like how with the default hashes if you access a missing array key it's hunky dory
[11:56:06] shevy: I will use something when it is elegant
[11:56:07] workmad3: >> {}.fetch(:whatever)
[11:56:08] ruboto: workmad3 # => key not found: :whatever (KeyError) ...check link for more (https://eval.in/449783)
[11:56:11] workmad3: EdwardIII: :P
[11:56:13] adaedra: >> {}.fetch(:a)
[11:56:14] ruboto: adaedra # => key not found: :a (KeyError) ...check link for more (https://eval.in/449784)
[11:56:14] norc_: EdwardIII: Seeing how you come from Java, Im not surprised that you have to wrap a function call to print something in a catch block.
[11:56:16] [k-: >> [1,2,3,4,]
[11:56:17] ruboto: [k- # => [1, 2, 3, 4] (https://eval.in/449785)
[11:56:24] norc_: EdwardIII: Or expect to rather.
[11:56:24] EdwardIII: norc_: i'm not coming from java
[11:56:24] [k-: trailing ,!
[11:56:27] EdwardIII: but i am familiar with it
[11:56:27] shevy: and ideally, it should be simple too
[11:56:30] syath: has joined #ruby
[11:56:33] norc_: EdwardIII: Oh. Nevermind then! :D
[11:56:35] workmad3: adaedra: :)
[11:56:37] EdwardIII: i found python's exception-happiness kind of useful
[11:56:38] [k-: traaaaaillllling commmmnaaaaaaa
[11:56:44] loocash: has joined #ruby
[11:56:44] shevy: python has weird stuff
[11:56:51] shevy: decorators... I still have not understood why they are used
[11:56:52] EdwardIII: like felt like it simplified writing correct code
[11:56:52] adaedra: [k-: trailing comma is nice.
[11:57:25] EdwardIII: shevy: what would you do for similar functionality in ruby? just have a func call or whatever wrapping the return contents?
[11:57:30] norc_: EdwardIII: I almost puked today when I was forced to throw an exception to control the program flow today.
[11:57:55] loocash: hi, what is the best way to make a ruby binding for c++ library?
[11:57:55] norc_: (ActiveRecord::Rollback is the culprit here)
[11:58:08] workmad3: EdwardIII: ruby can frequently expose two different ways of doing something, like `hsh[]` and `hsh.fetch` which basically give you control over whether you care about a particular condition, which I quite like
[11:58:09] [k-: the Ruby mantra is not to use exceptions as control flow
[11:58:11] adaedra: loocash: have a C interface
[11:58:14] norc_: loocash: Just use the C binding
[11:58:14] EdwardIII: norc_: pretty much every framework i've seen uses that when they say, control form validation
[11:58:36] [k-: (exceptions are slow in ruby)
[11:58:43] workmad3: EdwardIII: e.g. if I really need a hash key set, use `fetch`, if I don't care and want to provide a default, use `[]` (or even `.fetch(:whatever, default)`
[11:58:54] EdwardIII: [] or || heh?
[11:59:29] jenrzzz: has joined #ruby
[11:59:33] norc_: [k-: exceptions are slow everywhere.
[12:00:02] Scripore: has joined #ruby
[12:00:04] EdwardIII: the reason why this concerns me is because it feels like PHP's whole policy is "continue program execution at ALL costs"
[12:00:18] EdwardIII: which ends up producing loads of bugs in weird places that are hard to track back unless you're very strict with your defensive programming
[12:00:18] [k-: this is why to not use exceptions as control flow
[12:00:28] norc_: EdwardIII: They want the millions of badly written applications to work, despite idiot programmers fiddling around with them.
[12:00:31] [k-: that is the web
[12:00:32] norc_: Its a pretty neat concept.
[12:00:47] norc_: Developers get the feeling "it just works".
[12:00:51] [k-: look at the state of html
[12:01:02] Ebok: I'll ask again. If I want to have the %w(turn these words into an array) but one of the words is an active ruby word such as 'do' or 'while' is there a command I can use to ignore the words alternative meaning?
[12:01:16] workmad3: EdwardIII: PHP can be even worse than that... it can sometimes ignore all of your defensive programming and continue to produce shitloads of bad bugs based on compile-time options and magical globals
[12:01:29] shevy: >> %w( turn these words into an array do while )
[12:01:29] [k-: Ebok, that depends on your text editor, not ruby
[12:01:30] ruboto: shevy # => ["turn", "these", "words", "into", "an", "array", "do", "while"] (https://eval.in/449788)
[12:01:32] adaedra: >> %w(do while if what is the problem here)
[12:01:33] ruboto: adaedra # => ["do", "while", "if", "what", "is", "the", "problem", "here"] (https://eval.in/449789)
[12:01:49] [k-: if your text editor does not support it, it would mishighlight the words
[12:01:50] shevy: Ebok see, all Strings. Unsure what you mean with "alternative meanings" for a string...
[12:01:51] caliostro: has joined #ruby
[12:02:02] shevy: do you use notepad!!!
[12:02:03] ruurd: has joined #ruby
[12:02:05] Ebok: Actually, that simply wasnt the result when i ran the code.
[12:02:12] [k-: ruby does not confuse the meanings
[12:02:20] Ebok: I was working within a cloud9 project
[12:02:22] shevy: some strange editors do things behind the scene
[12:02:25] Icey: has joined #ruby
[12:02:47] workmad3: EdwardIII: rails doesn't have that sort of problem though... it doesn't just gloss over errors and continue execution, you do actually need to handle them or let them flow up... it's just when you get down to things like form validation, you can frequently either ask for a simple boolean or use exceptions to control flow, and the convention tends towards not using an exception
[12:03:36] [k-: in Haskell, exceptions can only be handled in the IO monad, so it's no exceptions if possible!
[12:03:52] Ebok: And... it fired this time. I suspect I had another error going on, my bad.
[12:03:54] [k-: all our erroring code in one place
[12:03:57] [k-: how nice
[12:03:58] workmad3: EdwardIII: e.g. take saving a model... `some_model.save` will return a boolean based on validation, `some_model.save!` will raise an exception on failed validation... both of them will raise exceptions if the database screws up or goes away, unlike a lot of PHP programs which will end up just continuing in that scenario
[12:04:00] The_Phoenix: has joined #ruby
[12:04:50] workmad3: EdwardIII: personally, I find frameworks and languages that only provide exceptions to control fairly normal flows (such as validating user input) to be more annoying :)
[12:05:23] shevy: the bot downloads on rubygems.org are strange
[12:05:39] workmad3: bad user input != exceptional circumstance... it's about as normal as you can get, users are untrustworthy and useless! (I <3 you really, users)
[12:06:13] shevy: I could swear there is some difference in bot behaviour... either they measure size of a project, or they measure other-downloads count, but whatever it is, I could swear that projects that have been downloaded more often than other projects, also get in more downloads lateron, even very rapidly so like 1-3 hours after a new gem push release
[12:06:27] workmad3: hmm, lunch time
[12:07:11] gusTester: has joined #ruby
[12:09:21] [k-: ha! now i know when workmad3 has lunch!
[12:09:29] jmtorresg: has joined #ruby
[12:09:29] [k-: and it is the same as adaedra!
[12:09:37] porfa: hmmm any particular command to see whats inside a variable?
[12:09:38] last_staff: has joined #ruby
[12:10:04] adaedra: Porfa: in what context? irb/pry: just type it, otherwise, p
[12:10:22] [k-: Porfa, binding.local_variable_get(:my_variable)
[12:10:24] porfa: oh sorry i forgot that (..) I'm in irb
[12:10:44] [k-: binding always works!
[12:11:15] [k-: adaedra: are you going for lunch sooooon
[12:11:21] nateberkopec: has joined #ruby
[12:11:26] [k-: workmad3 has gone already!
[12:11:28] jmtorresg: Hey guy! Just a quick question: why do so many people in the Ruby community seem to use Macs? Do they have advantages over other platforms when programming in Ruby? (Not trolling, just genuinely curious about that)
[12:11:29] sanguisdex: has joined #ruby
[12:11:38] adaedra: [k-: why do you ask?
[12:11:45] adaedra: jmtorresg: personal preferences.
[12:11:51] [k-: because workmad3 has gone already!
[12:12:00] adaedra: Why should I care?
[12:12:17] [k-: i didbt say you should care
[12:12:21] [k-: but i did care.
[12:12:27] kobain: has joined #ruby
[12:12:28] jmtorresg: adaedra: no technical reason at all?
[12:12:33] [k-: you are commiting a logical fallacy
[12:13:06] adaedra: jmtorresg: for me it's that at least. I like OS X.
[12:13:21] kobain: has joined #ruby
[12:13:34] adaedra: [k-: and you're comiting annoyance.
[12:13:40] porfa: i use mac because its light, aluminum and the battery lasts a lot. and the equivalent built quality with dell latitude or hp elite book's would cost the same or even more than a mac...
[12:14:00] porfa: but I'm not a ruby user, i just like to hang out with these guys
[12:14:09] adaedra: Poor girls.
[12:14:19] kobain: has joined #ruby
[12:14:33] [k-: Porfa: dell xps 13 is better than a macbook!
[12:14:44] jmtorresg: Porfa: Me neither, but I got a Macbook as well. Just curious as to why virtually every guy I see talking about Ruby on YouTube uses a Macbook
[12:14:46] adaedra: such troll
[12:14:49] [k-: and cheaper too
[12:14:57] jmtorresg: I don't see that in other programming laguage communities
[12:15:13] [k-: does them use windoze
[12:15:18] jmtorresg: Being more acquainted with the Python guys in general
[12:16:10] jmtorresg: Although I prefer using Linux for programming
[12:16:13] porfa: [k-: looks amazing that dell
[12:16:15] ndrei: has joined #ruby
[12:16:23] porfa: is it built on anything other than plastic?
[12:16:30] porfa: the keyboard looks nice too
[12:17:09] porfa: and if i can downgrade that from windows 10 it's a really nice laptop for that price
[12:17:42] acke: has joined #ruby
[12:17:43] EdwardIII: i mean the thing is, one typical use for me is when i'm working on a lower level object where, say, trying to get a user that doesn't exist is exceptional. then in the higher level object it's not exceptional, it's normal. so i use exceptions that way
[12:18:02] [k-: Porfa: asus ux is a metallic build
[12:18:05] EdwardIII: different from form validation
[12:18:13] [k-: not sure about dell xps 13 though
[12:18:14] porfa: http://i.dell.com/sites/imagecontent/products/PublishingImages/xps-13-9343-laptop/19278-laptop-xps-13-9343-v1-689x351%5b1%5d.jpg
[12:18:17] EdwardIII: but in php that method would just return 'null' everywhere
[12:18:21] porfa: wow, that's not "mac" at all ;)
[12:18:54] caliostro: My own is an old Toshiba A200
[12:19:24] caliostro: with ubuntu 12.04 installed
[12:19:37] EdwardIII: one other thing about ruby... this is more of an inherited opinion, but that the lack of initialising a variable in a form way is a bit meh
[12:19:56] EdwardIII: e.g. my $person = new Person rather than just $person = new Person
[12:20:07] [k-: i want to get a chromebook, but those might not be enough to compile haskell code!
[12:20:20] EdwardIII: meaning you can get a nice handy "tried to use uninitialised variable $person" later down the line
[12:20:41] EdwardIII: [k-: you could buy the pixel heh
[12:20:52] naftilos76: has joined #ruby
[12:20:55] [k-: it's so exxxxx
[12:21:08] EdwardIII: yeah it's very expensive for what you get imo
[12:21:12] EdwardIII: i like the display though
[12:21:14] EdwardIII: (i use a mbp)
[12:21:27] EdwardIII: (so i should have been coding in ruby for years ;)
[12:21:45] porfa: that asus goes up to a nice 1300 USD, same as a macbook..! it all comes down to personal preference i guess??? and when i come to think about it, the real machine i use to run my code is a AMD athlon 1.2 or something, with 2gb ram..! i just use the macbook with the text editor
[12:22:15] [k-: but that asus looks so damn hot
[12:22:22] EdwardIII: i find big ram is good for running tons of vms, and the high res display enables lovely text rendering
[12:22:23] porfa: i just ssh to that old baby and act like a foo in front of rib, and foo i get
[12:22:23] [k-: so shiny
[12:22:37] decoponio: has joined #ruby
[12:22:45] jdawgaz: has joined #ruby
[12:22:50] EdwardIII: plus osx - i can use brew and get my toolchain up and running with minimal pain, but i can also plug my laptop into hdmi and it works with no kernel recompiles
[12:23:07] porfa: yes it does.. and the display.. damn i wonder how many errors i i would see there
[12:23:21] cgfbee: has joined #ruby
[12:23:35] EdwardIII: oh so many errors
[12:23:41] prestorium: has joined #ruby
[12:24:02] EdwardIII: high res display reduces bugs by 47.32%, of course
[12:24:27] porfa: i won't do this because it would change my whole workflow.. but that new iPad pro 13" + external keyboard??? haha
[12:25:03] EdwardIII: wrap your athlon/2gb up in a vm, build with vagrant, job done
[12:25:09] EdwardIII: throw that old thing away and run it locally
[12:25:40] porfa: EdwardIII: it's also running an instance of own cloud for the company
[12:25:51] EdwardIII: haha ok maybe don't throw it away then
[12:25:56] porfa: hahaha :D
[12:26:16] EdwardIII: one of the things i hear a lot is that ruby takes the best of perl
[12:26:22] krisquigley: has joined #ruby
[12:26:35] jenrzzz: has joined #ruby
[12:27:03] karapetyan: has joined #ruby
[12:27:05] EdwardIII: but to me that would mean "use strict;" type behaviour being on by default?
[12:27:37] s00pcan: has joined #ruby
[12:27:50] zenguy_pc: has joined #ruby
[12:28:04] sgambino: has joined #ruby
[12:28:29] Igorshp: has joined #ruby
[12:28:31] jgt: has joined #ruby
[12:29:21] CloCkWeRX: has joined #ruby
[12:29:30] renderful: has joined #ruby
[12:30:36] ndrei: has joined #ruby
[12:30:48] devoldmx: has joined #ruby
[12:32:43] krisquigley: has joined #ruby
[12:33:02] moty66: has joined #ruby
[12:33:58] dorei: has joined #ruby
[12:34:23] The_Phoenix: has joined #ruby
[12:35:20] shevy: EdwardIII you can run via -w
[12:35:50] shevy: if you use modules and classes then you can't do much wrong really
[12:35:58] shevy: the typical ruby program can't be compared to the typical perl atrocity
[12:36:42] karapetyan: has joined #ruby
[12:36:47] shevy: take this here http://www.perlmonks.org/?node_id=887878
[12:36:59] shevy: in ruby people would typically not do any of this
[12:37:08] shevy: they'd start by: class Bla, or perhaps a toplevel namespace
[12:37:26] shevy: I mean this is classic perl spaghetti code
[12:37:52] JohnBat26: has joined #ruby
[12:38:22] dhjondoh: has joined #ruby
[12:41:46] dhjondoh: has joined #ruby
[12:42:46] asxbr: has joined #ruby
[12:43:40] certainty: or "use strict;" isn't one of the best things of perl
[12:43:43] certainty: ACTION hides
[12:45:01] shevy: you kinda have to be strict to avoid too much spaghettification
[12:45:07] shevy: let me show you the typical PHP in bioinformatics
[12:45:08] EdwardIII: shevy: there's some beautiful code in perl though
[12:45:15] pandaant: has joined #ruby
[12:45:49] shevy: http://www.biophp.org/minitools/restriction_digest/
[12:48:02] adac: has joined #ruby
[12:48:10] DexterLB: has joined #ruby
[12:48:24] shevy: yeah well
[12:48:34] sankaber: has joined #ruby
[12:48:41] shevy: you can write well-structured code in any language but some languages make it easy to write awful code
[12:48:57] shevy: you could of course literally copy the two examples given above in ruby
[12:48:57] bigkevmcd: has joined #ruby
[12:49:02] shevy: it would still be cleaner in ruby :)
[12:49:09] Igorshp: has joined #ruby
[12:49:35] jenrzzz: has joined #ruby
[12:49:49] kobain: has joined #ruby
[12:49:58] adac: Does someone know how to delete a key in redis?
[12:50:17] EdwardIII: shevy: most of the stuff i've seen uses the Moose object system in perl - like the Catalyst mvc framework
[12:50:30] EdwardIII: i learned a huge amount from the perl community
[12:50:49] EdwardIII: they were knowledgeable about smalltalk and lisp and stuff that i didn't know about at the time
[12:51:03] EdwardIII: and they always make you read Object Thinking which i thought was pretty fantastic when i read it back in the day
[12:51:08] shevy: yeah we all have nostalgia about the year 2000
[12:51:23] shevy: I learned regexes through a perl book back then too
[12:51:44] shevy: the rest of the world moved on so only nostalgia was left
[12:52:01] adac: ah it seems to be just del
[12:52:08] shevy: eam here is a perl guru
[12:53:17] [k-: shevy still cant learn haskell :/
[12:53:26] shevy: haskell is really hard
[12:53:45] tknz: has joined #ruby
[12:53:50] shevy: my brain is more suited for objects
[12:54:11] DexterLB: has joined #ruby
[12:54:26] shevy: I still have not understood what a monad really is either even though it was explained many times
[12:56:04] yorickpeterse: a monad is a burrito
[12:57:09] The_Phoenix: has joined #ruby
[12:58:03] basiles: has joined #ruby
[12:58:42] DEA7TH: has joined #ruby
[13:00:58] tier: has joined #ruby
[13:01:47] ndrei: has joined #ruby
[13:01:55] certainty: shevy: well then don't focus on trying to understand monads. Just use them and learn all the other valuable things that come with haskell.
[13:02:57] [k-: when you use them, intuition will come with it
[13:02:59] fxck: has joined #ruby
[13:03:10] fxck: has joined #ruby
[13:03:10] ChanServ: ChanServ kicked fxck: troll
[13:03:31] fxxck: has joined #ruby
[13:03:39] fxxck: ruby regex is PCRE, right?
[13:03:53] shevy: certainty well the monads just stand out, the rest isn't that much easier :)
[13:04:02] shevy: certainty I am sure scheme is much easier than haskell!
[13:04:15] bougyman: it's oniguruma, fxxck
[13:04:20] anisha: has joined #ruby
[13:04:44] balazs: has joined #ruby
[13:04:53] shevy: fxxck are you norc?
[13:04:58] certainty: shevy: depends on how you define easy. But yeah most lisps are computationally very simple. (Also semantically)
[13:04:59] fxxck: no im govt
[13:05:06] fxxck: and fxck, cyber_police, etc
[13:05:26] fxxck: if I need to do really complex parsing, should I abandon regex and use something like parslet?
[13:05:38] certainty: shevy: but really I don't think that haskell is any harder to learn. It just happens to have that reputation
[13:05:46] bougyman: regex is not capable of parsing.
[13:05:57] bougyman: utilizing regex in a parser is sometimes sane.
[13:06:15] bougyman: but other parsing methods will be more efficient, usually.
[13:06:46] EdwardIII: shevy: there's an element of truth in what you're saying but really you've got the wrong end of the stick i think heh
[13:06:50] EdwardIII: your opinion reflects popular opinion
[13:06:55] EdwardIII: and it's definitely true that perl isn't popular any more
[13:07:04] EdwardIII: but there's a lot of really smart people doing really good stuff there
[13:07:06] JDiPierro: has joined #ruby
[13:07:06] fxxck: i have word lists that categorize words, and i need to categorize sentences based on the structure of the sentence's words and their categories
[13:07:12] EdwardIII: not CGI.pm horribleness
[13:07:12] fxxck: seems like parslet would be a lot easier
[13:07:18] bougyman: sounds like it.
[13:07:24] patchedmonkey: has joined #ruby
[13:07:26] fxxck: yo, perl is def not dead
[13:07:33] jenrzzz: has joined #ruby
[13:07:37] certainty: it just fades
[13:07:40] shevy: yeah there are fossil coders using it
[13:07:42] bougyman: fxxck: so where's perl 6?
[13:07:48] fxxck: on my machine right now
[13:07:54] fxxck: its pretty great
[13:07:56] shevy: sleeping?
[13:08:06] shevy: ok ... * ChanServ has kicked fxck from #ruby (Banned: troll)
[13:08:14] shevy: I can now see why :)
[13:08:14] EdwardIII: a lot of top people seem to hate perl6
[13:08:14] fxxck: yeah thats old
[13:08:31] `tim`: has joined #ruby
[13:08:35] shevy: perl6 should have been out in 2005
[13:08:56] EdwardIII: my biggest gripe with perl6 was not having sensible defs for passing by ref or value and making you handle that
[13:09:04] s2013: has joined #ruby
[13:09:17] EdwardIII: er perl5 sorry
[13:09:41] certainty: i have no idea about perl6. My gut feeling is, is that probably is not a bad thing, because perl seems to have become irrelevant most of the times
[13:09:45] certainty: that's true at least for me
[13:09:54] shevy: this chart is not ideal http://goo.gl/yRzGQB but the general trend seems to be quite correct IMO
[13:10:12] fxxck: yeah but in perl6, everything is an object the same way that ruby does it. immutable strings and nums...
[13:10:27] certainty: so what? welcome to the modern age
[13:10:43] shevy: slight decline for php, ruby and perl, moderate increase for python - all of which may be relative, considering that there should be more programmers in 2015 than there were in e. g. 2000
[13:10:48] last_staff: has joined #ruby
[13:10:54] certainty: why would I pick up perl now instead of all the other PLs that have been developed
[13:10:58] fxxck: python will die when julia thrives
[13:11:00] shevy: and TIOBE for the ultimate truth :) http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
[13:11:07] sivsushruth: has joined #ruby
[13:11:11] fxxck: perl 6 will live on when 5t06 doesnt suck so much
[13:11:13] bougyman: I don't see python death happening.
[13:11:29] bougyman: the scientific community has volumes of math and sci libs in python that work perfectly well there.
[13:11:34] shevy: yeah, python is now one higher step in the league above the other scripting languages
[13:11:39] EdwardIII: i remember reading a HN article years ago talking about perl to python to ruby, it was great
[13:11:57] fxxck: julia can inline c, fortran already. when it can inline python, there will be no need
[13:11:59] bougyman: plus the wonderous ipython integration.
[13:12:07] fxxck: and yeah, julia can run in pynb
[13:12:21] EdwardIII: along the lines of: perl was great but the refs thing sucks, saying "but look anything can be a reference" is not an excuse, python was better but the lack of blocks causes issues, then ruby came out, fixed these things and was great
[13:12:29] shevy: it's hard for programming languages to really die, it's more like a declining trend but over a time span of 10 years, one can definitely notice certain trends
[13:12:42] fxxck: yeah btu SciRuby isn't exactly a landslide victory, eh?
[13:12:43] shevy: ruby has other problems such as awful docs!
[13:12:50] cantaberry: has joined #ruby
[13:12:56] fxxck: and stupid naming conventions for libs
[13:13:11] shevy: which libs
[13:13:15] bougyman: IJulia <-> IPython already exists.
[13:13:16] certainty: there are naming conventions?
[13:13:17] fxxck: almost all of them
[13:13:20] fxxck: gems i mean
[13:13:35] shevy: gems are picked by +100000 different gem authors
[13:13:37] fxxck: lack of, like perl I can just Net::IRC or whatever
[13:13:48] fxxck: in Ruby, there is Cinch
[13:14:08] shevy: Net::IRC is an integrated part of perl when you download the source?
[13:14:14] fxxck: or XML::Simple, and Nokogiri
[13:14:22] fxxck: no i meant third party, like gems
[13:14:34] ndrei: has joined #ruby
[13:15:11] ytti: i understand the complain, there probably is net/irc though
[13:15:22] ytti: but that type of naming implies one is formal/standard
[13:15:30] rickmasta: has joined #ruby
[13:15:33] shevy: fxxck well gems were an afterthought
[13:15:44] ytti: https://rubygems.org/gems/net-irc/versions/0.0.9
[13:16:07] fxxck: yeah i guess so
[13:17:05] cdg: has joined #ruby
[13:17:41] cdg: has joined #ruby
[13:17:48] certainty: guess what. I can search for the things
[13:17:52] shevy: people can use all sorts of different namespaces, but whoever is the first to define one, wins
[13:18:05] certainty: type in irc and see all the libraries that relate to that term
[13:18:11] shevy: I got mad when someone took over class Configuration!
[13:18:28] shevy: get out of ma namespace bro
[13:18:29] certainty: you will be probably presented with some infrared stuff, but our brains are good at disambiguating
[13:18:36] EdwardIII: heh yes in perl
[13:18:41] EdwardIII: i can make Net::Bungholio
[13:18:51] EdwardIII: and release it pretty quickly
[13:18:54] supergeek: has joined #ruby
[13:19:03] EdwardIII: then i would be the internet's foremost authority on network bungholio access protocols
[13:19:12] fxxck: arent you already?
[13:20:41] roshanavand: has joined #ruby
[13:20:43] whippythellama: has joined #ruby
[13:20:48] sankaber: has joined #ruby
[13:21:10] c355E3B: has joined #ruby
[13:21:24] shevy: EdwardIII yeah, similar with gems. I'd love if namespaces would have more way to control them in ruby
[13:21:34] shevy: for instance, a way to restore to the corelib namespace
[13:21:39] victortyau: has joined #ruby
[13:21:44] shevy: so that I don't have to use modified core classes by other people's ruby code
[13:21:45] e1senhorn: has joined #ruby
[13:21:52] shevy: or same-named gems able to coexist
[13:22:41] certainty: require "somegem", ns: "Foo"
[13:22:56] EdwardIII: shevy: riiiight this was one of the things that stood out to me when i was reading one of the intros to ruby
[13:23:03] bkxd: has joined #ruby
[13:23:06] certainty: require "something", hide: [:Foo, :Bar, :Baz]
[13:23:10] fxxck: what if gems were only accessible from rubygems as a hash id, and we could alias any name to any hash?
[13:23:16] EdwardIII: that ruby's (i assume) most popular framework does some pretty extensive monkey patching on the stdlib
[13:23:28] loocash: hi, when I have a c++ library and I want to make a ruby binding for it then I should have a c api. Could someone give me a simple example of how to connect a piece of code written in C++ to ruby through c api? thanks.
[13:23:29] shevy: certainty dunno, I think require will stay as it is but perhaps some more advanced import-like system or something could be used
[13:23:47] shevy: another thing I wanted was to be able to control the main namespace upon load-time
[13:23:58] shevy: if someone calls it module Foo, I want to be able to rename it to module Bar
[13:24:03] roshanavand: has joined #ruby
[13:24:21] shevy: but we have ruby 3.0 for all sorts of crazy ideas!
[13:24:21] jmignault: has joined #ruby
[13:24:24] shevy: like frozen strings!!!
[13:24:27] c355E3B: loocash: https://silverhammermba.github.io/emberb/c/
[13:24:45] c355E3B: you may also just want to read the headers
[13:25:02] shevy: loocash hanmac here maintains rxwidget ruby bindings to the C++ api, he knows a lot about C++
[13:25:05] funkenstrahlen: has joined #ruby
[13:25:24] funkenstrahlen: hey, will 'spec.required_ruby_version = '~> 1.9.3'' in my gemspec require 1.9.3 and higher?
[13:25:40] funkenstrahlen: I want to accept 2.0, 2.1, ... and up also
[13:25:50] c355E3B: ~> locks to 1.9.3
[13:26:19] funkenstrahlen: c355E3B: so I should use '> 1.9.3' ?
[13:26:50] funkenstrahlen: c355E3B: ok thank you!
[13:27:02] c355E3B: well => i think, you want 1.9.3 right?
[13:27:32] Xeago: has joined #ruby
[13:28:01] aaeron: has joined #ruby
[13:28:06] funkenstrahlen: havenwood: right of course
[13:28:49] funkenstrahlen: another question: I read a config file on start via JSON.parse(File.read(client_secret_file_path))
[13:29:31] funkenstrahlen: how can I write such a config file to disk?
[13:29:38] funkenstrahlen: or better use yml?
[13:30:33] xlogic: has joined #ruby
[13:30:48] bruno-: has joined #ruby
[13:30:54] funkenstrahlen: so in other words: best practice for using config files?
[13:31:00] c355E3B: JSON#generate yields a string
[13:31:03] newdan: has joined #ruby
[13:31:33] c355E3B: funkenstrahlen: what kind of app is this?
[13:31:38] fxxck: ive been in starbucks long enough to have heard all these shitty tracks before
[13:31:44] aaeron1: has joined #ruby
[13:32:24] ndrei: has joined #ruby
[13:32:35] havenwood: funkenstrahlen: The stdlib has PStore (Marshal) and YAML::Store if you need transactional writes to disk.
[13:32:40] umgrosscol: has joined #ruby
[13:32:46] havenwood: funkenstrahlen: File.write(client_secret_file_path, content.to_json)
[13:33:08] funkenstrahlen: havenwood: so content should be a hash?
[13:33:49] havenwood: funkenstrahlen: It can be.
[13:33:59] funkenstrahlen: content will have to contain 4-5 parameters
[13:34:45] havenwood: funkenstrahlen: http://ruby-doc.org/stdlib/libdoc/yaml/rdoc/YAML/Store.html
[13:34:57] Dopagod: has joined #ruby
[13:34:57] Dopagod: has joined #ruby
[13:36:52] decoponio: has joined #ruby
[13:37:40] lkba: has joined #ruby
[13:38:58] allcentury: has joined #ruby
[13:39:47] machinewar: has joined #ruby
[13:40:04] centrx: has joined #ruby
[13:41:04] sepp2k: has joined #ruby
[13:42:44] Xeago_: has joined #ruby
[13:42:58] EdwardIII: the reason why i brought up perl was that i was interested in ruby's lack of "my $var" or "var name;" syntax
[13:43:15] EdwardIII: whaddya call that? declarative variable initialisation?
[13:43:28] ruurd: has joined #ruby
[13:43:37] certainty: i have no idea
[13:43:56] adaedra: It's variable declaration, no?
[13:44:19] ytti: EdwardIII, those are for scoping in perl
[13:44:31] ytti: EdwardIII, in ruby scope depends on variable name
[13:44:34] adaedra: ACTION drowns ddv in sugar
[13:44:46] ddv: sugar is bad for you
[13:44:50] ddv: adeponte
[13:44:53] ddv: err, adaedra
[13:45:01] adaedra: Poor adeponte
[13:45:11] ddv: didn't want to drag adeponte into this
[13:45:21] ndrei: has joined #ruby
[13:45:24] fxxck: is ruby gluten-free cuz I only hack on organic, gluten-free, non-GMO, non-subsidized, non-fat languages
[13:45:30] bigkevmcd: has joined #ruby
[13:45:44] adaedra: &ri Gluten
[13:45:45] `derpy: No results
[13:45:48] certainty: EdwardIII: how does my scope in perl?
[13:45:49] adaedra: Seems safe
[13:45:56] fxxck: k, thats good
[13:46:09] wnd: I like to declare variables because I make typos and "use strict; use warnings FATAL => 'all';" catches large number of the kind. Sometimes I wish Ruby would allow me to do the same.
[13:46:19] ytti: { $poo = 3 }
[13:46:24] ytti: is visible outside scope
[13:46:27] EdwardIII: certainty: it declares it in the scope of the current block (i think)
[13:46:33] ytti: { my $foo = 3 } is not
[13:46:34] devoldmx: has joined #ruby
[13:46:36] EdwardIII: hah poo, you say?
[13:46:41] certainty: ytti: oh i see. thanks
[13:46:44] EdwardIII: whereas without 'var' it's globalish, right?
[13:46:45] EdwardIII: like with JS
[13:46:50] EdwardIII: er without' my'
[13:47:18] ytti: so all 'foo = 3' in ruby are as if my $foo in perl
[13:47:24] eam: wnd: I wish ruby allowed it as well -- its scoping syntax is super clumsy
[13:47:27] finisherr: has joined #ruby
[13:47:38] Pupp3tm4st3r: has joined #ruby
[13:47:49] EdwardIII: wnd, eam: is ruby -w not similar?
[13:47:53] ytti: my is not really about declaring, it's about scoping
[13:48:11] ytti: in dynamic typing (And weak in case of perl) declaring is kind of moot point
[13:48:14] eam: for example, how many ruby people know what a semicolon does inside of || ?
[13:48:25] wnd: ytti, true
[13:48:36] eam: EdwardIII: no, not similar at all
[13:49:01] eam: take for example a simple block scope in ruby:
[13:49:02] EdwardIII: it just stopped me having a file saying only "puts not_initialised"
[13:49:29] eam: >> y = 5; 1.times { |x| y = 6 } y
[13:49:30] ruboto: eam # => /tmp/execpad-df4f2a35f831/source-df4f2a35f831:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/449829)
[13:49:36] eam: >> y = 5; 1.times { |x| y = 6 }; y
[13:49:37] ruboto: eam # => 6 (https://eval.in/449830)
[13:49:52] eam: in perl, you'd use my() to scope the y local to the block
[13:50:02] eam: in ruby, the syntax for this is strained |x;y|
[13:50:16] Mojo_Nixon: has joined #ruby
[13:50:18] eam: and not generally applicable
[13:50:39] Diabolik: if im editing 30k database records, what is faster and more efficient than .each?
[13:50:43] eam: you can't warn on this, since it's not necessarily an error
[13:50:47] fxxck: wait |x;y| makes y locally scoped?
[13:50:54] eam: see? No one knows this
[13:50:57] certainty: Diabolik: updating them using SQL
[13:50:59] fxxck: thats awesome
[13:51:02] Pupp3tm4st3r: has joined #ruby
[13:51:11] certainty: ACTION knew this
[13:51:13] eam: >> y = 5; 1.times { |x;y| y = 6 }; y
[13:51:14] ruboto: eam # => 5 (https://eval.in/449831)
[13:51:18] certainty: but has forgotten about it
[13:51:42] eam: I'm also cranky about the lack of block scope around a ton of ruby constructs, like if/else
[13:51:56] axl_: has joined #ruby
[13:52:14] EdwardIII: eam: hmm so... in ruby y = 3 is not synonymous to my $y = 3 at all then?
[13:52:29] EdwardIII: or... it is?
[13:52:51] ytti: yes it is
[13:53:06] EdwardIII: that example was helpful
[13:53:07] ytti: the y inside the block did not change hte value of y outside the block
[13:53:09] eam: EdwardIII: in ruby, the first assignment kind of acts like a weak form of declaration -- but because it's not an explicit statement of scope it can't guard against reuse
[13:53:28] eam: EdwardIII: and, block scope in ruby is different than you'd expect from other languages like C or perl
[13:53:39] eam: ytti: it did change
[13:53:52] eam: you need to use |;y| to avoid change
[13:53:56] EdwardIII: eam: overall would you rather spend your days writing perl or ruby? or other?
[13:54:06] eam: EdwardIII: these days I write about 1000x more ruby than perl
[13:54:24] EdwardIII: eam: but which do you prefer?
[13:54:31] eam: tough question :)
[13:54:46] eam: ruby has a lot of benefits over perl as well
[13:54:50] mary5030: has joined #ruby
[13:55:04] certainty: of course the correct answer is miranda
[13:55:04] eam: I think I prefer perl though
[13:55:22] workmad3: >> y = 5; 1.times { |x,y| y = 6 }; y
[13:55:23] ruboto: workmad3 # => 5 (https://eval.in/449832)
[13:55:31] workmad3: eam: they sorted out the block scoping with ^ a while back
[13:55:39] mary5030: has joined #ruby
[13:56:00] workmad3: eam: or are you talking about when it's not a parameter, so you're relying on the closure aspect of a block? :)
[13:56:03] eam: workmad3: yeah after 1.8 I think? But you need ; if you want to avoid params
[13:56:06] eam: workmad3: yes
[13:56:08] bruno-: has joined #ruby
[13:56:09] certainty: workmad3: yeah the latter
[13:56:12] supergeek: has joined #ruby
[13:56:24] EdwardIII: eam: the funny thing with perl is that although it lets you write disgusting code, the perl coders i've met have been some of the smartest people i've met and they have also written some of the most beautiful expressive code i've seen
[13:56:27] eam: in 1.8 even || vars would stomp on outer scope
[13:56:46] workmad3: eam: I think they backported that fix into later 1.8.7 releases, but yeah it was a problem before then
[13:57:14] fxxck: thats something that worries me about perl6, is that there are going to be rubyists clogging up CP6N with ruby-ized perl code
[13:57:26] eam: I'm cranky about stuff like the complete lack of scope for things like begin blocks, or conditionals
[13:57:36] workmad3: fxxck: how about not worrying until it's released in a decade or so? ;)
[13:57:40] EdwardIII: heh who's writing begin blocks?
[13:57:44] fxxck: its out now...
[13:57:50] JDiPierro: has joined #ruby
[13:57:54] fxxck: not cp6n, but perl6 is out and usable rn
[13:57:56] EdwardIII: eam: total curiousity, i promise this is not something i'm going to do, but can you hack the symbol table in ruby as you can with perl?
[13:58:10] chthon: has joined #ruby
[13:58:12] batu: has joined #ruby
[13:58:16] workmad3: fxxck: oh, fair enough... I stopped paying attention to perl6 years ago :D
[13:58:30] fxxck: i'll write that down
[13:58:31] havenwood: fxxck: Christmas
[13:58:43] fxxck: havenwood: yeah but rakudo is usable right now
[13:58:44] ruurd: perl? isn't that that language that looks the same before and after uuencoding it???
[13:58:53] fxxck: there are real projects already happening
[13:58:56] havenwood: fxxck: Just not released.
[13:59:00] EdwardIII: eam: what do they call it? i googled "hacking the symbol table in ruby" but it just referred me to loads of docs on :symbols
[13:59:11] mistermocha: has joined #ruby
[13:59:22] djcp: has joined #ruby
[13:59:28] northfurr: has joined #ruby
[13:59:32] workmad3: 'The design process for Perl 6 began in 2000.' haha
[13:59:40] havenwood: Ruby 2.3 and Perl 6 on the same day.
[13:59:42] eam: EdwardIII: it's done through methods like instance_variable_set
[13:59:51] fxxck: does 2.3 have anything good?
[13:59:55] eam: or define_method
[13:59:57] havenwood: workmad3: And it's been scheduled for release every Christmas! :P
[14:00:03] EdwardIII: this kind of leads me onto an actual real question
[14:00:05] havenwood: This Christmas is the one!
[14:00:24] certainty: because every day is Christmas when perl6 is out
[14:00:25] eam: >> define_method :foo, ->{"hello world"}; foo()
[14:00:26] ruboto: eam # => "hello world" (https://eval.in/449833)
[14:00:29] cdg_: has joined #ruby
[14:00:37] workmad3: havenwood: haha
[14:00:38] EdwardIII: in python, if you want to make an api return a response from a fixture or you want to see what happens when you run your test on leap year you use @patch to swap-out the underlying obj
[14:01:07] EdwardIII: i've seen vcr for ruby which i will definitely be using
[14:01:11] EdwardIII: but like... what's the standard practice here?
[14:02:59] fxxck: "how come ruby can't" => "there's a gem for that"
[14:03:15] EdwardIII: in symfony/swing you use a whole big fat DIC framework so it's easy to swap out collaborators under tests
[14:03:24] workmad3: EdwardIII: there's not exactly a standard practice, as it depends a fair bit on what you want your tests to achieve... on the one hand, you have tools like webmock and fakeweb (and vcr built on top of webmock), which stubs out the net/http library, letting you inject faked responses and prevent actual API access... some people will write a wrapper around the actual network requests, test that hitting the re
[14:03:30] workmad3: al API (normally with sandbox creds or similar) and then stub out their client in other tests for speed...
[14:04:06] workmad3: EdwardIII: and sometimes, if you're developing the API and the client in tandem, it might make sense to just bring up your API as part of your test suite, and run your client tests against that version of the API
[14:04:16] EdwardIII: what if you wanted to see what happened when you ran your test on the bonus day in a leap year?
[14:04:29] EdwardIII: is the stubbing part i'm interested in
[14:05:38] workmad3: EdwardIII: well, once you can inject fake responses into the net/http stack, you can pretty much fake anything you want... so you can easily inject responses that have feb 29th in them and make sure your code works correctly
[14:05:51] chouhoulis: has joined #ruby
[14:06:01] workmad3: EdwardIII: whether that's going to represent the actual behaviour of the API at that point is another question
[14:06:29] catphish: has joined #ruby
[14:06:45] EdwardIII: workmad3: not in terms of API responses, i mean like if your method uses d = Date.parse(Time.now.to_s)
[14:06:54] catphish: does anyone know if it's possible to use ECDH in openssl within ruby?
[14:07:26] catphish: (specifically, as a server)
[14:07:50] khebbie: has joined #ruby
[14:08:23] prefixed: has joined #ruby
[14:08:48] EdwardIII: perhaps something like Time.any_instance.stub(:foo).and_return(:return_value) ?
[14:08:57] workmad3: EdwardIII: oh... there are two thoughts on that front... one thought is basically "Stub out Time.now to return the date/time you want" (there are libraries like TimeCop that support that)... the other thought is that relying on Time.now directly is an implicit global dependency, you should try to make it explicit and pass in a timesource or similar to your methods, so you can easily test by simply injecting
[14:09:03] workmad3: an arbitrary time in
[14:09:44] EdwardIII: workmad3: ok cool thanks - and this kind of goes back to the earlier conversation with eam about hacking the symbol table :)
[14:10:10] workmad3: EdwardIII: the exact syntax for stubbing/mocking will also depend on the library you use. rspec, for example, would have `allow(Time).to recieve(:now).and_return(...)`
[14:10:25] EdwardIII: workmad3: ah and that will patch Time?
[14:10:35] EdwardIII: this looks pretty good
[14:11:16] EdwardIII: i'm going to go back into +b territory i think but - do you think there's any inherent danger on doing this? rather than having a big DIC framework liek symfony/swing do?
[14:11:17] workmad3: EdwardIII: if you wanted to patch Time globally, you can also make use of ruby's open classes - `class Time; def self.now; "The end is now!"; end; end`
[14:11:36] EdwardIII: liek/like, damnit
[14:11:48] momomomomo: has joined #ruby
[14:11:50] simplyianm: has joined #ruby
[14:12:09] dopamean_: has joined #ruby
[14:12:10] troulouliou_div2: has joined #ruby
[14:13:02] jamesaxl: has joined #ruby
[14:13:19] workmad3: EdwardIII: again, differing views, at least in the rails world... some people (DHH included) think that there's no point in having a big DIC framework, and if you want/need to alter some behaviour like that, just monkeypatch or similar... I personally don't like using a framework to wire things together for me, but I'll tend towards being able to inject dependencies rather than rely on them being globally a
[14:13:29] bkxd: has joined #ruby
[14:13:57] niemcu: has joined #ruby
[14:14:11] EdwardIII: then have a factory function to save you having to type out the collaborators you're injecting in each time?
[14:14:22] workmad3: e.g. `def do_something(param, time_source: Time)` is perfectly valid ruby, letting you call that method like `do_something(:foo)` or `do_something(:foo, time_source: FakeTime)`
[14:14:40] favadi: has joined #ruby
[14:15:14] EdwardIII: there was a lot of overhead and extra complexity with the DIC
[14:15:19] EdwardIII: but it did have some advantages too
[14:15:31] Dopagod: has joined #ruby
[14:15:38] workmad3: EdwardIII: it helps that in ruby, you always use the method `new` to create instances, rather than a special syntax construct... so you can also monkeypatch `new` to inject things, if you want
[14:15:54] s2013: has joined #ruby
[14:16:00] EdwardIII: it was nice seeing exactly what the collaborators were at a glance, it made you extremely aware when you were getting a bit greedy with responsibilites and it made test subs in unit tests very very easy indeed
[14:16:10] workmad3: EdwardIII: it's not unheard of to inject a specific instance into a rails controller by doing `allow(SomeClass).to receive(:new).and_return(some_fake)` for example
[14:16:41] workmad3: EdwardIII: yeah, that's exactly the sort of reasons given for heading that way :)
[14:17:07] workmad3: EdwardIII: it's just not a monoculture of 'DIC everything!' in rails like it can sometimes seem in java :)
[14:17:16] deepu: has joined #ruby
[14:17:38] EdwardIII: sometimes it felt like you were breaking your balls pretty hard 100% of the time just to get a benefit 6% of the time
[14:17:46] Xeago: has joined #ruby
[14:18:02] workmad3: and 'poor mans DIC', where you set up ad-hoc dependency injection if you need it is easier in ruby too, so it tends to be broken out as needed
[14:18:37] workmad3: the above examples, of injecting or overriding methods if required, are a real PITA through the java reflection APIs :D
[14:19:26] diegoaguilar: has joined #ruby
[14:19:46] Trynemjoel: has joined #ruby
[14:19:50] ksteck: has joined #ruby
[14:21:39] porfa: has joined #ruby
[14:21:44] EdwardIII: well usually you'd mock the whole object and inject it through the constructor, and the mock would basically be an instance of the real object but just have 1 method mocked, that was fairly easy
[14:21:54] EdwardIII: mock spec object or something
[14:22:14] EdwardIII: but yes probably the reflection aspect of that was a pain for the mocking library author hehe
[14:22:18] Gnomethrower: has joined #ruby
[14:22:23] Mojo_Nixon: has joined #ruby
[14:24:57] workmad3: EdwardIII: yeah, it's been figured out... but it's normally more painful IME :)
[14:25:35] workmad3: EdwardIII: and that's assuming you only want to do that in a test, rather than something like correct a bug in a library you don't control
[14:26:12] EdwardIII: i've run into some swines of issues with JS due to monkey patching though
[14:26:20] EdwardIII: where other lib authors have been a little monkey-patch happy
[14:26:52] EdwardIII: a personal favourite was when someone patched jQuery.load(function(){}) to squash all errors
[14:27:04] workmad3: oh sure, it's a technique that has potential issues if you misuse it or overuse it
[14:27:04] EdwardIII: that really had me scratching my head heh
[14:27:16] workmad3: but then, that can be said of pretty much any technique ;)
[14:27:45] workmad3: and monkey-patching is a tool of last resort, IMO... but it's a pretty life-saving one if you end up with it :)
[14:27:46] atomical: has joined #ruby
[14:28:01] EdwardIII: yeah it's flexibility vs correctness i guess?
[14:28:10] EdwardIII: "correctness"
[14:28:12] krz: has joined #ruby
[14:28:20] havenwood: EdwardIII: Call it Freedom Patching and it'll work better. Ruby does have Refinements as well now for locally scoped Freedom Patching.
[14:28:42] zenguy_pc: has joined #ruby
[14:28:55] richard4: has joined #ruby
[14:29:11] havenwood: richard4: hi
[14:29:27] jdawgaz: has joined #ruby
[14:29:30] basiles: has joined #ruby
[14:29:33] fxxck: has joined #ruby
[14:29:36] northfurr: has joined #ruby
[14:29:48] workmad3: EdwardIII: I see that as a weird dichotomy, personally... it's almost like saying "This thing you're doing isn't getting correct results, even though it's the thing ensuring you get correct results. The incorrectness isn't a 'visible' incorrectness"
[14:30:00] renderful: has joined #ruby
[14:30:20] funkenstrahlen: has left #ruby: ("WeeChat 1.1.1")
[14:30:25] richard4: is $stdout.sync = true is similar to fflush in c?
[14:30:26] EdwardIII: i like havenwood's description
[14:30:39] EdwardIII: locally scoped patching... that would solve so many issues
[14:30:54] havenwood: EdwardIII: http://ruby-doc.org/core/doc/syntax/refinements_rdoc.html
[14:31:02] basiles: has joined #ruby
[14:31:10] EdwardIII: who was it that was saying they didn't see the point in decorators?
[14:31:13] caliostro_: has joined #ruby
[14:32:01] karmatr0n: has joined #ruby
[14:32:13] EdwardIII: shevy: that's quite a decent use of decorators. in python for say, a unit test, you can say @patch('some.object', spec=whatever, other=stuff) and then python does the patch when it enters your method, then undoes it when it leaves your method. that's a pretty handy thing
[14:32:50] yeshacker: has joined #ruby
[14:32:52] hobodave: has joined #ruby
[14:33:13] [k-: refinements...
[14:33:28] [k-: read havenwood's link!
[14:33:46] [k-: (they are implemented in ruby actually)
[14:33:57] [k-: so it's not special syntax!
[14:34:57] EdwardIII: ACTION reads
[14:35:04] EdwardIII: after this i promise i'll stfu and build something
[14:35:07] supergeek: has joined #ruby
[14:35:34] beauby: has joined #ruby
[14:36:14] kies^: has joined #ruby
[14:36:47] Trynemjoel: has joined #ruby
[14:37:05] basiles: has joined #ruby
[14:38:52] funkenstrahlen: has joined #ruby
[14:39:02] yardenbar: has joined #ruby
[14:39:14] funkenstrahlen: hey, I call 'auth_code = gets.chomp' and get 'podcast-to-youtube.rb:33:in `gets': No such file or directory @ rb_sysopen - upload (Errno::ENOENT)
[14:39:38] funkenstrahlen: what has gets to do with files?
[14:39:51] supergeek: has joined #ruby
[14:39:55] karapetyan: has joined #ruby
[14:39:56] funkenstrahlen: I only want to read from command line
[14:41:21] havenwood: funkenstrahlen: "Returns (and assigns to $_) the next line from the list of files in ARGV (or $*), or from standard input if no files are present on the command line."
[14:41:40] EdwardIII: heh i didn't realise you had $_ in ruby
[14:41:43] havenwood: funkenstrahlen: Try: STDIN.gets
[14:41:52] havenwood: EdwardIII: Many perlisms!
[14:42:04] fxxck: rubyists dont like perlisms for some reason
[14:42:29] polishdub: has joined #ruby
[14:42:41] [k-: i would mention yorick again but he would be angry for many pings
[14:42:50] bluOxigen: has joined #ruby
[14:42:52] shmilan: has joined #ruby
[14:43:02] karapetyan: has joined #ruby
[14:43:46] dopie: has joined #ruby
[14:44:12] stannard: has joined #ruby
[14:44:17] leafybas_: has joined #ruby
[14:44:55] fxxck: yorick is too busy parsing xml anyways
[14:45:10] justin_pdx: has joined #ruby
[14:45:37] [k-: well actually, he is waiting for his new carbon x1 to arrive
[14:46:49] fxxck: i want to get the Chromebook Pixel 2 next
[14:46:50] to_json: has joined #ruby
[14:46:50] to_json: has joined #ruby
[14:47:10] [k-: give me your old chromebook pixel 1 :>
[14:47:25] okdas: has joined #ruby
[14:47:25] okdas: has joined #ruby
[14:47:47] podman: has joined #ruby
[14:47:55] imperator: has joined #ruby
[14:48:02] Meow-J: has joined #ruby
[14:48:12] imperator: anyone up for some peer review? https://github.com/mrbrdo/vcr/tree/threadsafety
[14:48:35] imperator: part of a code bounty to add thread support for vcr gem
[14:48:49] ngscheur1: has joined #ruby
[14:48:50] imperator: seems to work, just want to see if there are any obvious issues
[14:48:51] fxxck: i dont have a pixel, ive got the newer acer one
[14:49:03] fxxck: the first pixel wasnt worth what they were charging
[14:49:08] fxxck: im shocked people fell for that shit
[14:49:13] catphish: is there a likely timescale for ruby 2.3?
[14:49:30] sankaber: has joined #ruby
[14:49:55] havenwood: catphish: Here comes Sana Claws.
[14:50:41] grenierm: has joined #ruby
[14:50:44] shredding: has joined #ruby
[14:50:48] catphish: http://images.dailykos.com/images/121135/small/Santa_Claws.9.jpg?1419202845
[14:51:04] catphish: i'll probably have to backport what i need for now :)
[14:52:07] [k-: has the world suddenly gone flat and bright?
[14:52:46] [k-: do you like the new github [build: pass] [code coverage: 99%] and all those other newly designed tags?
[14:52:56] [k-: yorickpeterse: ^
[14:53:17] funkenstrahlen: havenwood: thanks. STDIN.gets fixed my problem!
[14:54:03] yorickpeterse: [k-: what the fuck are you on about?
[14:54:35] sgambino: has joined #ruby
[14:54:56] v0n: has joined #ruby
[14:55:12] The_Phoenix: has joined #ruby
[14:55:57] rippa: has joined #ruby
[14:57:09] basiles: has joined #ruby
[14:57:36] edp1: has joined #ruby
[14:57:59] funkenstrahlen: has left #ruby: ("WeeChat 1.1.1")
[14:58:35] jdawgaz: has joined #ruby
[14:58:55] l_tonz: has joined #ruby
[14:59:08] riichard4: has joined #ruby
[14:59:33] Jardayn: has joined #ruby
[14:59:52] edp1: I got the exact same error as DomT4 -> https://github.com/flori/json/issues/229#issuecomment-68802010 but I don't know how to apply the patch as I execute $ bundle install --path foo/bar to install install bundle
[15:00:00] edp1: do you know how can I make it ?
[15:01:01] freerobby: has joined #ruby
[15:01:53] jhass: edp1: you need to find a git repository that has it applied (possibly just flori/json? didn't read the full thread)
[15:02:08] jhass: edp1: then just use the git/github option to gem in your Gemfile
[15:02:20] jhass: (and possibly branch option)
[15:02:44] edp1: jhass: ok I understand I will try that thank you
[15:03:26] finisherr: has joined #ruby
[15:03:44] [k-: yorickpeterse: that vcr github link sported the new badges
[15:03:45] lkba: has joined #ruby
[15:05:02] doddok: has joined #ruby
[15:05:34] karapetyan: https://gist.github.com/karapetyan/db1ea7e8fd448c7386ad
[15:05:54] Helius: has joined #ruby
[15:07:08] karapetyan: https://projecteuler.net/problem=44 but let's assume we have only 1 chance run application (and can't set limit for 5000 elements)
[15:07:28] karapetyan: is my algorithm very very bad? :)
[15:07:52] havenwood: imperator: I was going to suggest `warn` in place of `STDERR.puts` so it doesn't print if warnings are disabled like with -W0. I wasn't sure if the goal is to print anyways but thought I'd mention.
[15:08:06] pdoherty: has joined #ruby
[15:08:06] prestorium_: has joined #ruby
[15:08:47] cwong_on_irc: has joined #ruby
[15:09:07] l_tonz: has joined #ruby
[15:09:19] jmtorresg: has joined #ruby
[15:09:44] cwong_on_irc: has joined #ruby
[15:10:07] jhass: karapetyan: the problem from last time is still present, but we can try https://en.wikipedia.org/wiki/Pentagonal_number#Tests_for_pentagonal_numbers for now
[15:10:20] catphish: has left #ruby: ("Leaving")
[15:11:13] havenwood: imperator: No issues jump out at me. Neat!
[15:11:24] imperator: havenwood, thanks
[15:11:32] imperator: i'll mention the stderr thing
[15:11:58] vipaca: has joined #ruby
[15:12:12] ruurd: has joined #ruby
[15:12:27] cdg: has joined #ruby
[15:13:51] The_Phoenix: has joined #ruby
[15:13:55] finisherr: has joined #ruby
[15:14:18] arup_r: has joined #ruby
[15:15:13] favadi: has joined #ruby
[15:16:07] ndrei: has joined #ruby
[15:16:58] karapetyan: jhass: but now i don't calculate twice ? yes, i have tail and there some double-calculation
[15:16:59] imperator: havenwood, actually, where do you see that?
[15:17:09] havenwood: imperator: https://github.com/mrbrdo/vcr/commit/8cc7a5402307b5fe4889d7a0d698ec10b000f3d3#diff-a895456446c284ea2ce433a85dfc2772R522
[15:17:36] jhass: karapetyan: well I think the problem is meant to be solved without knowing the range you have to consider
[15:17:58] imperator: havenwood, thanks
[15:18:10] karapetyan: jhass: yes, i want to solve it without range.
[15:18:15] havenwood: imperator: no prob, any time
[15:18:26] jhass: karapetyan: and my ruby implementation of my algorithm from last time takes just 5 seconds here
[15:18:57] apt-get: has joined #ruby
[15:19:00] slackR: has joined #ruby
[15:19:01] karapetyan: jhass: cool.
[15:19:03] baroquebobcat: has joined #ruby
[15:19:54] mistermocha: has joined #ruby
[15:20:23] karapetyan: jhass: your algorithm uses some limits?
[15:20:38] Pathfinder_: has joined #ruby
[15:21:01] jhass: just two hashes and the above test to check for pentagonality
[15:21:05] favadi: has joined #ruby
[15:21:20] jhass: if unknown yet
[15:21:51] karapetyan: jhass: so, where is my mistake?
[15:21:59] momomomomo: has joined #ruby
[15:22:16] jhass: by now in the whole approach, kinda
[15:22:54] jhass: you try to precompute stuff instead of doing calculations as you need them but only if you didn't cache their result yet
[15:23:14] favadi: has joined #ruby
[15:23:26] jhass: it probably would even perform acceptably without caching using just the efficient pentagonality test
[15:23:37] rcvalle: has joined #ruby
[15:23:43] jhass: and not repeating combinations of course
[15:24:28] brunto_: has joined #ruby
[15:25:13] finisherr: has joined #ruby
[15:25:55] imperator: https://bugs.ruby-lang.org/issues/11588
[15:26:31] karapetyan: has joined #ruby
[15:27:30] _blizzy_: has joined #ruby
[15:29:57] basiles: has joined #ruby
[15:30:24] prefixed: is it possible to include private mthods in modules?
[15:30:55] blackmesa: has joined #ruby
[15:31:30] ishikawa91: in your module
[15:31:52] ishikawa91: and then any method you declare after it, will be a private method for that module
[15:34:31] karapetyan: jhass: eh, actually i got so much troubles with that code. Seems i haven't enough experience for that
[15:34:52] prefixed: why is it possible to use private methods outside a module / class in ruby?
[15:34:56] jhass: karapetyan: so want to see my solution?
[15:35:05] karapetyan: jhass: no :)
[15:35:15] karapetyan: jhass: after... )
[15:35:18] ishikawa91: outside a module or class? What are you trying to do?
[15:35:23] to_json: prefixed: ideological reasons. Ruby largely doesn't prevent you from doing anything
[15:35:29] jhass: karapetyan: ah, kinda sounded like you gave up :P
[15:35:36] Limix: has joined #ruby
[15:35:40] prefixed: to_json sounds smart
[15:35:53] jairojunior: has joined #ruby
[15:36:25] michaeldeol: has joined #ruby
[15:36:32] gregf__: ishikawa91: https://gist.github.com/anonymous/424dae3a3de47a411774 <== something like that?
[15:36:42] ItSANgo: has joined #ruby
[15:36:43] symm-: has joined #ruby
[15:36:51] karapetyan: jhass: actually i feel stupid :( i spent about 2 days on it. And now. i feel if i remove this code i can't write it fast again
[15:36:58] gregf__: oops , prefixed i meant :|
[15:37:14] roshanavand: has joined #ruby
[15:37:22] Cache_Money: has joined #ruby
[15:37:49] closer: has joined #ruby
[15:40:20] ishikawa91: gregf__ thats how you do it. But only the public methods in the module Foo can access the private methods, not the class Bar
[15:40:53] ishikawa91: and instead of writing public, just move def foo to before the private line
[15:41:12] ishikawa91: then have foo call bar
[15:41:36] railsForDaiz: has joined #ruby
[15:41:51] yardenbar: Hi all, where can I find the documentation for Logger 'daily' rotation? when the rotation occurs and such..?
[15:42:08] cibs: has joined #ruby
[15:42:21] nettoweb: has joined #ruby
[15:42:45] mistermocha: has joined #ruby
[15:42:51] ruurd: has joined #ruby
[15:42:52] rwilcox: has joined #ruby
[15:43:48] loveablelobster: has joined #ruby
[15:43:52] EminenceHC: has joined #ruby
[15:44:13] bluOxigen: has joined #ruby
[15:48:05] rwilcox: has joined #ruby
[15:48:30] NeverDie: has joined #ruby
[15:49:15] ishikawa91: @gregf__ and @prefixed https://gist.github.com/anonymous/58a502d2d347ff0ba009
[15:49:24] The_Phoenix: has joined #ruby
[15:50:14] f4cl3y: has joined #ruby
[15:50:43] ruurd: has joined #ruby
[15:51:34] s2013: has joined #ruby
[15:52:03] devoldmx: has joined #ruby
[15:53:35] luckyme: has joined #ruby
[15:54:27] Marco_: has joined #ruby
[15:54:42] EminenceHC: has joined #ruby
[15:54:47] sanjayu: has joined #ruby
[15:59:32] TDJACR: has joined #ruby
[16:00:38] grenierm: has joined #ruby
[16:00:44] jgt: has joined #ruby
[16:00:56] toretore: has joined #ruby
[16:02:05] Soda: has joined #ruby
[16:04:34] amclain: has joined #ruby
[16:05:38] mase-chatter: has joined #ruby
[16:08:05] mistermocha: has joined #ruby
[16:08:33] p0wn3d__: has joined #ruby
[16:08:36] momomomomo: has joined #ruby
[16:08:44] SCHAAP137: has joined #ruby
[16:09:07] mistermocha: has joined #ruby
[16:09:19] favadi: has joined #ruby
[16:10:06] riotjones: has joined #ruby
[16:11:01] riotjones: has joined #ruby
[16:11:36] djcp: has joined #ruby
[16:11:47] towski_: has joined #ruby
[16:11:55] riotjones: has joined #ruby
[16:12:03] ajaiswal_: has joined #ruby
[16:12:24] justinmburrous: has joined #ruby
[16:12:37] eGGsha: has joined #ruby
[16:12:38] russt: has joined #ruby
[16:13:11] chopin: has joined #ruby
[16:13:16] naftilos76: has joined #ruby
[16:15:50] justin_pdx: has joined #ruby
[16:17:05] vdamewood: has joined #ruby
[16:17:27] victortyau: has joined #ruby
[16:17:57] robbyoconnor: has joined #ruby
[16:18:22] The_Phoenix: has joined #ruby
[16:22:00] ndrei: has joined #ruby
[16:22:16] ytti: https://www.yubico.com/github-special-offer/ - might be relevant to some
[16:22:44] RobertBirnie: has joined #ruby
[16:23:01] skade: has joined #ruby
[16:23:29] jhass: that's still running? also you're late
[16:24:14] Dopagod: has joined #ruby
[16:26:11] p0wn3d__: has joined #ruby
[16:27:09] nfk|laptop: has joined #ruby
[16:28:40] shevy: ruby runs forever
[16:29:08] shevy: ytti are you coding in Helsinki?
[16:30:15] caliostro_: what is the difference among + and << in string concatenation ?
[16:30:34] shevy: I swear this came up like 3 days ago :)
[16:31:14] shevy: += will create a new object, << is just appending to your string object (if you have a string there that is); you can query this by calling .object_id
[16:31:18] ytti: shevy, i moved to cyprus in may
[16:31:28] shevy: cool, so hot!
[16:31:28] newdan: Is there a place where I can read what's on the schedule for Ruby 2.3?
[16:31:38] karapetyan: has joined #ruby
[16:31:38] shevy: hey... we are using ruby 2.3...
[16:31:42] ytti: shevy, but yeah, lived in helsinki for 15 years or so
[16:31:46] shevy: ruby 2.2.3p173 (2015-08-18 revision 51636) [i686-linux]
[16:31:51] shevy: you are right
[16:31:51] caliostro_: shevy : thanks
[16:31:56] shevy: we are using 2.2.3 sorry
[16:32:07] ytti: but i'm mostly network monkey, only develope to make my life easier
[16:32:09] The_Phoenix: has joined #ruby
[16:32:13] newdan: shevy: lol np had me worried that I forgot how to read for a second
[16:32:22] basiles: has joined #ruby
[16:32:25] shevy: haha yeah... I usually glance at the changelog https://github.com/ruby/ruby/blob/trunk/ChangeLog
[16:32:37] shevy: there were some minor changes, for instance, the ruby-ftp module got a few new methods
[16:32:48] shevy: then there were some changes related to the upcoming string freezing stuff
[16:33:01] zenguy_pc: has joined #ruby
[16:33:03] shevy: and some superhuman changes by Koichi Sasada which I don't understand (it's above my level)
[16:33:41] grenierm: has joined #ruby
[16:34:20] michaeldeol: has joined #ruby
[16:34:39] djbkd: has joined #ruby
[16:35:06] benlieb: has joined #ruby
[16:35:06] doddok: has left #ruby: ("Leaving")
[16:37:12] Asher: has joined #ruby
[16:37:46] Gnomethrower: has joined #ruby
[16:38:07] kristofferR: has joined #ruby
[16:38:21] oetjenj: has joined #ruby
[16:38:25] bryanray: has joined #ruby
[16:38:54] arup_r: has joined #ruby
[16:38:56] blackmesa: has joined #ruby
[16:39:39] jairojunior: has joined #ruby
[16:40:28] robbyoconnor: has joined #ruby
[16:41:47] adac: How to compare two sets?
[16:43:25] basiles: has joined #ruby
[16:43:26] psye: has joined #ruby
[16:43:28] slash_nick: adac: compare how?
[16:43:49] adac: slash_nick, in terms of if they contain the same elements
[16:44:09] adac: exactly the same
[16:44:33] slash_nick: adac: [1,2,3] & [3] #=> [3]
[16:44:35] leafybasil: has joined #ruby
[16:44:56] Channel6: has joined #ruby
[16:45:19] slash_nick: >> [:foo, :bar, :baz, "bang"] & %w{ bang }
[16:45:20] ruboto: slash_nick # => ["bang"] (https://eval.in/449921)
[16:48:13] adac: [1,2,3] & [3] #=> [3]
[16:48:49] basiles: has joined #ruby
[16:48:53] agent_white: has joined #ruby
[16:49:14] Maletor: has joined #ruby
[16:49:46] basiles: has joined #ruby
[16:49:54] prefixed: yo. why is this retuning a "undefined method `build_exclude_list' for class `Module'" error? https://gist.github.com/anonymous/d9290c204d37fae27fb1
[16:50:05] spider-mario: has joined #ruby
[16:50:23] deol: has joined #ruby
[16:50:28] adaedra: because it's not a class method
[16:51:16] prefixed: what does that *even* mean? I am using the notation given in this post: http://stackoverflow.com/questions/318850/private-module-methods-in-ruby
[16:51:40] symm-_: has joined #ruby
[16:52:23] adaedra: The method you define is not a class method, which would be defined by self.xxx
[16:52:43] fxxck: has left #ruby: ()
[16:52:48] prefixed: ok. that makes sense
[16:52:59] urbanmonk: has joined #ruby
[16:53:09] adaedra: You're defining A#b and make A.b private, if you prefer this notation
[16:54:37] jpfuentes2: has joined #ruby
[16:54:49] eikood: has joined #ruby
[16:55:04] K1MOS: has joined #ruby
[16:56:00] Helius: has joined #ruby
[16:56:02] adac: How can I copy/clone a set object So the objects are different objects?
[16:56:27] ANdi`: has joined #ruby
[16:56:28] solocshaw: has joined #ruby
[16:56:37] ANdi`: has left #ruby: ("WeeChat 1.3")
[16:56:47] rsk: has joined #ruby
[16:57:19] adac: arr2 = arr.inject([]) { |a,element| a << element.dup }
[16:57:26] adac: think this ways it wors
[16:57:41] adac: got to go have a nice time guys!
[16:58:30] mdih: has joined #ruby
[16:58:32] rakm: has joined #ruby
[17:00:40] firstdayonthejob: has joined #ruby
[17:01:46] baweaver: has joined #ruby
[17:01:48] guacjack: has joined #ruby
[17:03:15] krz: has joined #ruby
[17:03:44] platzhirsch: Wow, JS doesn't have a method_missing method *cough* JS sucks *cough*
[17:03:51] karapetyan: has joined #ruby
[17:04:29] Steve_Jobs: has joined #ruby
[17:05:28] platzhirsch: So you can't write magic code that is hard to understand
[17:06:41] tubbo: platzhirsch: challenge accepted... http://www.jsfuck.com/
[17:06:53] nertzy2: has joined #ruby
[17:07:17] platzhirsch: tubbo: oh, well JS is already screwed
[17:07:23] platzhirsch: no reason to set the dead horse on fire
[17:07:32] dorei: has joined #ruby
[17:07:46] Shoutsid: has joined #ruby
[17:07:53] tubbo: in all seriousness though i've been really happy with the latest JS news
[17:08:11] tubbo: there seems to be an effort in making it suck a little bit less to write in JS all the time
[17:09:01] Motoservo: has joined #ruby
[17:09:13] ruurd: has joined #ruby
[17:09:29] khebbie: has joined #ruby
[17:09:38] ericjphillips: has joined #ruby
[17:09:46] bryanray: has joined #ruby
[17:10:34] shevy: oh the nodehirsch... I miss the old platzhirsch ...
[17:11:20] kalusn: has joined #ruby
[17:12:17] loocash: has joined #ruby
[17:12:44] riotjones: has joined #ruby
[17:13:14] johnhamelink: has joined #ruby
[17:14:23] Hanmac: has joined #ruby
[17:16:44] platzhirsch: tubbo: yeah, ES6 is... great
[17:17:12] EminenceHC: has joined #ruby
[17:17:40] eikood: has joined #ruby
[17:18:33] pocketprotector: i am starting to get the hang of this
[17:18:56] pocketprotector: i wish chef would use pure ruby, instead of a DSL
[17:19:41] pocketprotector: What IDE's do you guys use? I am using sublime text to help me with the auto-complete
[17:19:49] pocketprotector: auto-suggestion i should say
[17:20:09] pocketprotector: I also use vim. are there any special configs i should use for vim?
[17:20:31] pocketprotector: https://github.com/vim-ruby/vim-ruby
[17:20:48] pwnd_nfsw: has joined #ruby
[17:21:11] rakm: has joined #ruby
[17:21:43] mrchris: has joined #ruby
[17:21:52] newdan: has left #ruby: ()
[17:22:09] naztharune: has joined #ruby
[17:23:53] ruurd: has joined #ruby
[17:24:03] momomomomo: has joined #ruby
[17:25:41] jairojunior: has joined #ruby
[17:27:39] basiles: has joined #ruby
[17:29:09] EminenceHC: has joined #ruby
[17:29:43] eikood: has joined #ruby
[17:32:03] renderful: has joined #ruby
[17:32:38] [k-: has joined #ruby
[17:32:58] kirun: has joined #ruby
[17:33:49] Shoutsid: has joined #ruby
[17:34:26] cdg: has joined #ruby
[17:36:55] n008f4g_: has joined #ruby
[17:37:04] ericjphillips: has joined #ruby
[17:38:17] K1MOS: has joined #ruby
[17:38:44] balazs: Hi, how do I truly detach a forked process ? I want it to keep running even if the parent process exits.
[17:39:13] dorei: balazs: oh, you want to make it a daemon, i'm pretty sure that there are specialized gems for this task
[17:39:14] musl: has joined #ruby
[17:40:47] krisquigley: has joined #ruby
[17:41:19] eam: there are definitely gems for this, but the short answer is: double fork, setsid, close inherited descriptors, cd /
[17:42:33] diegoviola: has joined #ruby
[17:43:18] David27: has joined #ruby
[17:43:49] nateberkopec: has joined #ruby
[17:44:45] pocketprotector: eam: is your name have anything to do with the artist?
[17:44:52] eam: the artist?
[17:44:53] urbanmonk: has joined #ruby
[17:44:58] eam: it's my initials
[17:45:16] pocketprotector: look up a documentary on PBS called the painter and the architect
[17:45:22] pocketprotector: or architect and the painter i forget
[17:45:40] eam: oh Ray Eames
[17:45:59] eam: huh, I'll watch it
[17:46:00] ramfjord: has joined #ruby
[17:46:21] karapetyan: has joined #ruby
[17:46:22] pocketprotector: sorry, i totally misspelled Eames
[17:47:40] Klumben: has joined #ruby
[17:50:28] shevy: try ita gain
[17:51:26] karapetyan: jhass: your algorithm uses math formula?
[17:51:46] jenrzzz: has joined #ruby
[17:52:22] jhass: karapetyan: my implementation does the pentagonality check with the inverse function (that's all the function at wikipedia is)
[17:52:46] devoldmx: has joined #ruby
[17:52:46] jhass: karapetyan: http://www.wolframalpha.com/input/?i=solve+x+%3D+y%283y-1%29%2F2+for+y
[17:53:08] Shoutsid: has joined #ruby
[17:53:18] jhass: if that returns an integer result it is a pentagonal number
[17:54:18] simplyianm: has joined #ruby
[17:55:53] karapetyan: jhass: ehm don't understand math at all :(
[17:56:06] simplyianm: has joined #ruby
[17:56:07] bruno-: has joined #ruby
[17:56:43] simplyianm: has joined #ruby
[17:57:10] mistermo_: has joined #ruby
[17:57:25] Cache_Money: has left #ruby: ()
[17:58:10] shevy: 2 + 2 = 5
[17:58:19] karapetyan: jhass: x = y(3y-1)/2 if x == integer then x == pentagonal?
[17:58:36] jhass: karapetyan: yes
[17:58:39] solocshaw: has joined #ruby
[17:58:43] pocketprotector: if 2 + 2 = 5, then 1 + 3 = 6
[17:58:43] tubbo: karapetyan: you know you're talking to us on the world's most expensive calculator right? :P
[17:58:51] tubbo: Cmd + Space, type in your math problem ;)
[17:59:07] mistermo_: has joined #ruby
[17:59:34] jhass: karapetyan: that's actually not the inverse function but the original one
[17:59:36] mikecmpbll: has joined #ruby
[17:59:52] petricore: has joined #ruby
[18:00:19] jhass: karapetyan: x is P(n), y is n
[18:01:34] kgirthofer: has joined #ruby
[18:02:32] Musashi007: has joined #ruby
[18:03:03] mary5030: has joined #ruby
[18:03:37] avelldiroll: has joined #ruby
[18:03:39] victortyau: has joined #ruby
[18:04:10] shevy: yo people... did you know that sheep can program?
[18:04:17] shevy: this is a sheep-loop: http://shevegen.square7.ch/screenshot.png
[18:05:07] srashidi: has joined #ruby
[18:06:19] bougyman: ACTION watching S6E1
[18:06:19] bryanray: has joined #ruby
[18:06:32] kgirthofer: shevy: needs an escape dog
[18:06:48] karapetyan: jhass: ok, show me your code! :D
[18:07:06] shevy: it's genius though... they are just following the leader-sheep... and the next one is just following the prior sheep... etc...
[18:07:06] karapetyan: jhass: but if possible without math tricks)
[18:07:16] jhass: I only have one version
[18:07:20] karapetyan: only hardcore, logic + code)
[18:07:22] jhass: no real math trick
[18:07:32] karapetyan: jhass: no math formula )
[18:07:40] karapetyan: jhass: ok :)
[18:07:40] jhass: karapetyan: http://p.jhass.eu/3.rb
[18:07:51] victortyau: has joined #ruby
[18:07:57] nnaztharue: has joined #ruby
[18:07:58] naztharune: has joined #ruby
[18:08:08] kgirthofer: shevy: shrodingers sheep. they are all the leader sheep, while also they are all the prior sheep
[18:09:54] datanoise: has joined #ruby
[18:10:42] solars: has joined #ruby
[18:11:51] bb010g: has joined #ruby
[18:11:55] chthon: has joined #ruby
[18:12:06] kidoz: has joined #ruby
[18:12:21] senayar: has joined #ruby
[18:12:29] blt: has joined #ruby
[18:13:33] riotjones: has joined #ruby
[18:14:02] last_staff: has joined #ruby
[18:15:34] karapetyan: jhass: so, what you can recommend me? i am junior developer with huge problems in math and understanding algorithms. Now i see your code and have no idea how it works. Especially if it contain nested loops etc.
[18:16:10] p0wn3d__: has joined #ruby
[18:16:21] danman: has joined #ruby
[18:16:29] adaedra: karapetyan: get used to it. Read some, Write some, Read on the background, etc.
[18:17:14] jhass: karapetyan: don't focus on math then, get great at other stuff. Don't do euler, do ruby warrior, codewars & exercism
[18:17:21] uber: has joined #ruby
[18:18:35] akkad: has joined #ruby
[18:20:12] karapetyan: jhass: i do ruby warrior then.
[18:20:42] musl: has joined #ruby
[18:21:20] shevy: I do ruby ninja
[18:21:23] sankaber: has joined #ruby
[18:21:25] srashidi: has left #ruby: ()
[18:21:48] lea: has joined #ruby
[18:21:48] pipework: I do ultimate ruby ninja warrior
[18:22:14] jhass: where are the pirates? I demand more pirates! And zombies. And cats.
[18:22:14] blt: has left #ruby: ("WeeChat 1.3")
[18:22:41] shevy: you can be a cat jhass
[18:23:46] ruboto: I don't know anything about cat
[18:23:55] adaedra: You don't?
[18:24:41] datanoise: has joined #ruby
[18:25:09] adac: has joined #ruby
[18:26:47] subscope: has joined #ruby
[18:26:57] dbz: has joined #ruby
[18:27:07] naftilos76: has joined #ruby
[18:27:17] Shoutsid: has joined #ruby
[18:27:27] ruboto: don't be mean to adaedra
[18:27:57] Xeago: has joined #ruby
[18:28:07] adaedra: In a general way, don't be mean to anyone.
[18:29:34] datanoise: has joined #ruby
[18:29:54] Jackneill: has joined #ruby
[18:29:54] prestorium: has joined #ruby
[18:30:13] ericjphillips: has joined #ruby
[18:32:44] bryanray: has joined #ruby
[18:34:04] zenguy_pc: has joined #ruby
[18:34:25] jackjackdripper: has joined #ruby
[18:34:56] cyber_police: has joined #ruby
[18:34:56] cyber_police: has joined #ruby
[18:34:56] ChanServ: ChanServ kicked cyber_police: troll
[18:35:22] greymeister: has joined #ruby
[18:36:02] Shoutsid: has joined #ruby
[18:36:06] baroquebobcat: has joined #ruby
[18:36:28] grenierm: has joined #ruby
[18:37:27] jackjackdripper: has joined #ruby
[18:37:50] simplyianm: has joined #ruby
[18:38:31] ruboto: Just ask your question, if anyone has or can, they will respond.
[18:38:44] shevy: this bot will one day hold all the knowledge in the world
[18:40:58] mattprelude: has joined #ruby
[18:41:07] sankaber: has joined #ruby
[18:41:38] barhum2013: has joined #ruby
[18:45:00] AccordLTN: has joined #ruby
[18:46:22] yeticry: has joined #ruby
[18:46:51] jackjackdripper: has joined #ruby
[18:48:24] failshell: has joined #ruby
[18:51:46] Igorshp: has joined #ruby
[18:53:04] cwong_on_irc: has joined #ruby
[18:53:11] yairgo: has joined #ruby
[18:53:19] cwong_on_irc: has joined #ruby
[18:54:34] cwong_on_irc: has joined #ruby
[18:54:51] cwong_on_irc: has joined #ruby
[18:55:14] zotherstupidguy: has joined #ruby
[18:55:36] dikaio: has joined #ruby
[18:55:40] jenrzzz: has joined #ruby
[18:55:44] chrisja: has joined #ruby
[18:56:40] cwong_on_irc: has joined #ruby
[18:57:51] diegoviola: has joined #ruby
[18:58:00] Musashi007: has joined #ruby
[18:59:12] AccordLTN: has joined #ruby
[18:59:33] dionysus69: has joined #ruby
[19:01:56] shmilan: has joined #ruby
[19:02:19] Marco_: has left #ruby: ("Leaving")
[19:02:29] user1138: has joined #ruby
[19:02:49] toretore: has joined #ruby
[19:03:57] n008f4g_: has joined #ruby
[19:04:14] asui: has joined #ruby
[19:05:44] ruby-lang509: has joined #ruby
[19:06:28] jackjackdripper: has joined #ruby
[19:06:40] jpfuentes2: has joined #ruby
[19:06:44] Channel6: has joined #ruby
[19:06:51] VeryBewitching: has joined #ruby
[19:07:02] dionysus69: has joined #ruby
[19:07:28] mistermocha: has joined #ruby
[19:08:07] AccordLTN: has joined #ruby
[19:09:19] jamesaxl: has joined #ruby
[19:09:40] momomomomo: has joined #ruby
[19:09:55] simplyianm: has joined #ruby
[19:10:39] fantazo: has joined #ruby
[19:11:21] ubuntu___: has joined #ruby
[19:11:43] ubuntu___: Hi Mr jhass I an ur fann
[19:11:59] jhass: well, that was quick
[19:12:08] jhass: what did I do to earn that honor?
[19:12:10] ubuntu___: You are a great ruby developer I know ur git
[19:12:11] mooe: has joined #ruby
[19:12:21] ubuntu___: Ur reply is my onor
[19:12:32] pipework: all ur git r no to him
[19:13:01] mistermocha: has joined #ruby
[19:13:05] ubuntu___: I want to know ur age? 40 + and so ur very experienced?
[19:13:34] acke: has joined #ruby
[19:13:43] ubuntu___: or just 30's and started very early
[19:14:08] ubuntu___: hello pipework
[19:14:33] ubuntu___: ruby === best proh=gramming but only few use it correct?
[19:14:49] ubuntu___: all use java and c++
[19:14:53] SenpaiSilver: has joined #ruby
[19:15:00] swgillespie: has joined #ruby
[19:15:13] ubuntu___: no reply ok then byee
[19:15:41] riotjones: has joined #ruby
[19:15:53] jhass: a good programmer has patience
[19:16:14] ubuntu___: but I am not even a programmer so i learn patience
[19:16:14] pipework: And a good coffee pot.
[19:16:25] ubuntu___: why coffee pot?
[19:16:46] jhass: it helps with the patience
[19:16:58] riotjones: has joined #ruby
[19:17:04] ubuntu___: all programmer drink coffee?
[19:17:16] ubuntu___: I never drink coffee I just drink milk
[19:17:16] acke: has joined #ruby
[19:17:27] ubuntu___: cofee is bad to health
[19:17:30] dstarh: has joined #ruby
[19:17:37] ubuntu___: its kind of toxic right?
[19:17:47] A124: Anyone ever create some sort of own database? (I mean the thing that manages database itselt, not a schema) Wonder what to look for and how to implement certain stuff, how to save and load B-trees and all.
[19:17:48] jhass: everything is toxic in the wrong amount
[19:18:00] A124: ubuntu___ Milk is bad too.
[19:18:10] atmosx: has joined #ruby
[19:18:18] A124: Its acidic for human body.
[19:18:33] jhass: milk is fat, sugar and protein
[19:18:35] A124: I drink both, but limit as much as possible.
[19:18:41] jhass: too much of it is like fast food
[19:18:44] A124: And antibiotics, hormones, etc.
[19:18:49] AccordLTN: has joined #ruby
[19:18:53] A124: Trace elements mater. Because trace today is a lot.
[19:19:06] ubuntu___: ok and how many hours top level programmers slee[p they stay online whole nights??
[19:19:08] jhass: sounds like you believe in homoeopathics :P
[19:19:21] A124: Top level programmers enough to be fresh.
[19:19:24] ubuntu___: No I dont be;ieve in any homeopathics
[19:19:25] A124: Most 6-8h
[19:19:41] ubuntu___: A124: thats too much right
[19:19:49] renier: has joined #ruby
[19:19:51] A124: How clear your mind is is more important then time.
[19:19:57] A124: It makes up quadruple.
[19:20:05] jhass: generalizing such stuff is worthless, everybody is different
[19:20:06] ruboto: much, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
[19:20:12] platzhirsch: has left #ruby: ()
[19:20:39] jhass: ?justabot
[19:20:39] ruboto: I'm just a bot. You don't need to address me.
[19:21:08] ReK2: has joined #ruby
[19:21:08] ReK2: has joined #ruby
[19:23:13] Shoutsid: has joined #ruby
[19:24:25] bryanray: has joined #ruby
[19:25:03] barhum2013: has joined #ruby
[19:25:09] ddv: has left #ruby: ("Leaving")
[19:25:43] tubbo: jhass: i'm starting to become a fan of homeopathy.. http://www.independent.co.uk/life-style/health-and-families/health-news/homeopathy-conference-ends-in-chaos-after-delegates-take-hallucinogenic-drug-10491114.html
[19:26:38] kristian_: has joined #ruby
[19:26:57] jhass: tubbo: haha, yeah read that story
[19:27:00] kristian_: I'm on a fresh Linux Mint install ... I will be using jekyll and friends, but perhaps not much more
[19:27:10] kristian_: I just got ruby-full from repos
[19:27:11] jhass: tubbo: it gets ugly when they claim to be able to treat things like cancer
[19:27:32] ddv: has joined #ruby
[19:28:16] Motoservo: has joined #ruby
[19:28:17] devoldmx: has joined #ruby
[19:29:01] kristian_: I'd like to be able to just install gems as a regular user
[19:29:11] luckyme: has joined #ruby
[19:29:11] ramfjord: has joined #ruby
[19:29:28] pipework: kristian_: You can do that with setting some environment variables.
[19:29:47] banister: has joined #ruby
[19:30:18] kristian_: pipework: good
[19:30:18] Macaveli: has joined #ruby
[19:30:23] mase-chatter: has joined #ruby
[19:30:23] kristian_: should I get RVM?
[19:30:31] jhass: kristian_: echo "install: --user-install -n ~/.bin" > ~/.gemrc
[19:30:34] pipework: I'd go for ruby-install and chruby instead of RVM, but what yo uhave works.
[19:30:47] jhass: kristian_: most likely don't need RVM no, with ^ just add ~/.bin to your PATH then
[19:31:37] mistermocha: has joined #ruby
[19:32:29] mistermocha: has joined #ruby
[19:32:31] yairgo: has left #ruby: ()
[19:32:40] kristian_: jhass: should that do it?
[19:33:02] jhass: that'd be all, if that's what you mean
[19:33:20] goldfish6744: has joined #ruby
[19:33:29] opensource_ninja: has joined #ruby
[19:33:37] kristian_: seems like I should make a ~/.bin/ though :)
[19:34:48] hectortrope: has joined #ruby
[19:36:20] simplyianm: has joined #ruby
[19:36:45] kristian_: ah, it made itself ... amazing
[19:36:48] kristian_: thanks, jhass
[19:37:13] momomomomo: has joined #ruby
[19:38:01] shevy: tubbo the power of believe
[19:38:59] tubbo: jhass: that's just evolution man
[19:39:02] tubbo: natural selection
[19:39:24] jhass: dunno, defective animals don't tell other animals to die
[19:39:38] tubbo: jhass: false.
[19:39:48] acke: has joined #ruby
[19:39:55] nfk: has joined #ruby
[19:40:05] tubbo: i mean they don't tell anyone anything because they can't speak but what about that worm that implants itself into a grasshopper and makes the grasshopper drown itself?
[19:40:34] jhass: ... inside the same species
[19:40:38] shevy: you and your zombie worms
[19:41:35] ishikawa91: call of duty black ops 267 nazi worm zombies :O
[19:41:52] krisquigley: has joined #ruby
[19:43:36] clebrun: has joined #ruby
[19:43:37] sdothum: has joined #ruby
[19:44:57] clebrun: what should I name a function that takes a product hash and a block, searches through the hash for strings and returns the a new product hash with mutated strings?
[19:45:12] Helius: has joined #ruby
[19:45:36] pipework: clebrun: Name it after what it's intention is, not what it does.
[19:46:00] Igorshp: has joined #ruby
[19:46:09] clebrun: pipework: thanks for reminding me to kiss.
[19:47:43] clebrun: fix_product_strings it is...
[19:48:22] shevy: def cleanup
[19:49:01] jamto11: has joined #ruby
[19:49:36] pipework: clebrun: Are you actually mutating the instances of String or are you modifying the instances and returning new instances of String?
[19:49:50] clebrun: modifying and returning new, sorry. didn't make that clear
[19:49:56] pipework: If the prior, might wanna add a ! to the method so that people know something possibly confusing is going on.
[19:50:53] cdg: has joined #ruby
[19:51:10] User458764: has joined #ruby
[19:51:31] cdg: has joined #ruby
[19:52:14] EminenceHC: has joined #ruby
[19:53:12] PaulCapestany: has joined #ruby
[19:53:23] yfeldblum: has joined #ruby
[19:53:32] nettoweb: has joined #ruby
[19:55:15] stannard: has joined #ruby
[19:55:50] gusTester: has joined #ruby
[19:57:05] shevy: "Agile is a hammer"
[19:57:09] michael_mbp: has joined #ruby
[19:57:10] shevy: "You are the nail"
[19:57:17] norc: has joined #ruby
[19:57:20] shevy: some blogs are so violent
[19:58:02] mordocai: has joined #ruby
[19:58:08] momomomomo_: has joined #ruby
[19:58:43] eam: http://carboncostume.com/wordpress/wp-content/uploads/2013/01/captainhammer.jpg
[20:00:06] niemcu: has joined #ruby
[20:00:50] meoblast001: has joined #ruby
[20:01:14] meoblast001: hi. if i get Net::SMTPFatalError (550 5.1.1 <my@email.address>... User unknown, is this more likely to be an issue with the email address or the SMTP server?
[20:01:38] greymeister: has left #ruby: ()
[20:01:50] BraddPitt: its an SMTP server error, meoblast001
[20:01:53] BraddPitt: http://www.serversmtp.com/en/error-550
[20:02:20] meoblast001: ah okay. thanks :)
[20:02:21] djbkd: has joined #ruby
[20:03:06] meoblast001: BraddPitt: but then it would be safe to assume the SMTP server is being reached?
[20:03:10] jhass: whether it's a configuration issue or not depends on how sure you are it exists
[20:03:14] jhass: or should exist
[20:03:16] kristian_: has joined #ruby
[20:03:35] kristian_: it all works now, and I added the environment -- cool!
[20:03:47] jhass: meoblast001: it successfully connected, yes
[20:04:02] meoblast001: okay thanks. then i'll have to see why it's not reaching the email address
[20:04:18] meoblast001: also in other things, long time no see jhass
[20:04:26] jhass: not on me
[20:04:33] jhass: but yeah, hi ;)
[20:04:49] doddok: has joined #ruby
[20:05:34] jhass: you stopped visiting, not me :P
[20:06:51] barhum2013: has joined #ruby
[20:07:07] salmon42: has joined #ruby
[20:07:22] meoblast001: okay it works.. the email address was actually screwed up.. but i should be catching this exception anyways
[20:07:35] EminenceHC: has joined #ruby
[20:08:36] bmurt: has joined #ruby
[20:10:22] Pupeno: has joined #ruby
[20:13:17] diegoaguilar: has joined #ruby
[20:16:03] shmilan: has joined #ruby
[20:17:27] basiles: has joined #ruby
[20:18:20] kalusn: has joined #ruby
[20:20:47] hahuang65: has joined #ruby
[20:22:24] jenrzzz: has joined #ruby
[20:23:22] sankaber: has joined #ruby
[20:23:48] elliottcable: been out of the loop for a while:
[20:24:03] kristian_: when I install a gem, I get "WARNING: You don't have /home/kristian/.bin in your PATH gem executables will not run." ... but they seem to run fine?
[20:24:16] elliottcable: really hoping I'm not accidentally starting a flamewar, but: is rbenv still the go-to ruby-installation-manager?
[20:24:24] elliottcable: vs rvm, or, idk, a new one altogether
[20:24:30] adaedra: that's all matter of preference
[20:24:35] workmad3: I prefer chruby with ruby-install
[20:25:05] jhass: ACTION kicks shevy
[20:25:14] elliottcable: one particular problem I had with rvm for the longest time, and am now happy to escape from:
[20:25:20] workmad3: shevy: ruby-install == source but without needing to remember the configure options :P
[20:25:31] elliottcable: ???global??? packages; that is, ones I want installed in every single ruby, updated in every single ruby, etc; so no matter which ruby I'm working in, they're available system-wide.
[20:25:33] jhass: kristian_: what's the exact entry in echo $PATH ?
[20:25:44] elliottcable: i.e. when I install something like heroku-toolbelt globally, I don't want that command disappearing if I switch Rubies.
[20:25:50] elliottcable: does any of the options handle that well right now? :x
[20:26:10] workmad3: ELLIOTTCABLE: no... but if you're on a mac, you can install the `brew-gem` extension and have homebrew install them systemwide
[20:26:15] elliottcable: also! hi, shevy! :D
[20:26:18] workmad3: *on a mac and using homebrew
[20:26:23] elliottcable: workmad3: oooooh.
[20:26:28] elliottcable: workmad3: I'll look into that. That sounds perfect.
[20:26:33] riotjones: has joined #ruby
[20:26:34] shevy: hey ELLIOTTCABLE
[20:26:37] porfa: has joined #ruby
[20:26:43] elliottcable: shevy: long time no see.
[20:26:51] shevy: you abandoned ruby!
[20:26:55] workmad3: I had to hack foreman slightly with that, but otherwise it's been pretty good for systemwide ruby tools :)
[20:27:01] elliottcable: shevy: A little. >:
[20:27:24] elliottcable: I still love Ruby more than almost any other language, but I've been working on the same damn Omega Project for the last five years, and haven't really had much time for working on new side-projects in different fun languages.
[20:27:46] elliottcable: the languages-I'm-desperate-to-learn-asap list is *also* as long as my arm right now, and that will probably take precedence over coming back to Ruby, when I *do* start on new projects. /=
[20:27:47] jgt: has joined #ruby
[20:28:54] elliottcable: workmad3: do you *also* use chruby and/or rbenv?
[20:29:11] workmad3: ELLIOTTCABLE: yeah, I use chruby for version switching, and ruby-install for installing ruby
[20:29:14] elliottcable: i.e., it looks like brew-gem completely ignores/avoids those, and uses the system Ruby. does that work well?
[20:29:25] workmad3: for the stuff I want systemwide, it works well yeah
[20:29:55] elliottcable: ACTION nods
[20:29:57] elliottcable: excellent. thanks.
[20:30:40] workmad3: ELLIOTTCABLE: apart from, as I said, a slight need to hack the foreman binscript (basically to stop it from trashing the chruby-set GEM_PATH and GEM_HOME env vars)
[20:31:13] krisquigley: has joined #ruby
[20:31:25] solocshaw: has joined #ruby
[20:32:43] chandlerbing: has joined #ruby
[20:32:53] elliottcable: workmad3: did you fork it and submit those fixes? :P
[20:33:05] elliottcable: if not, wanna /msg me the specifics? :P :P
[20:33:36] kimegede: has joined #ruby
[20:33:53] jackjackdripper: has joined #ruby
[20:34:01] barhum2013: has joined #ruby
[20:34:25] EminenceHC: has joined #ruby
[20:34:30] workmad3: ELLIOTTCABLE: I didn't, and sure :)
[20:35:07] martin_work: has joined #ruby
[20:35:24] zenguy_pc: has joined #ruby
[20:35:58] dionysus69: has joined #ruby
[20:37:01] tier_: has joined #ruby
[20:37:01] rakm_: has joined #ruby
[20:37:38] BraddPitt: how can I test a method that loops, expecting user input, until 'exit' is typed?
[20:37:53] kristian_: jhass: echo PATH just gives me "PATH"
[20:38:08] slawrence00: has joined #ruby
[20:38:12] jhass: kristian_: $PATH
[20:39:07] kristian_: bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/kristian/tex/bin/x86_64-linux/:/home/kristian/.bin/: No such file or directory
[20:39:20] based_pdev: has joined #ruby
[20:39:34] jhass: mmh, dunno
[20:39:50] jhass: maybe it chokes on the trailing /
[20:40:01] kristian_: that's what I think, too
[20:41:35] ericjphillips: has joined #ruby
[20:42:05] jackjackdripper: has joined #ruby
[20:42:13] Pupeno: has joined #ruby
[20:43:11] kristian_: has joined #ruby
[20:43:34] kristian_: removed the /'s and reloaded, problem persists ... but now I know where the problem is
[20:43:39] AccordLTN: has joined #ruby
[20:44:58] rakm: has joined #ruby
[20:45:06] wochie: has joined #ruby
[20:45:49] kalusn: has joined #ruby
[20:46:47] postmodern: has joined #ruby
[20:47:44] jenrzzz: has joined #ruby
[20:47:57] kristian_: jhass: http://superuser.com/questions/881463/no-such-file-or-directory-after-typing-path-in-terminal
[20:48:02] ericjphillips: has joined #ruby
[20:48:22] jhass: kristian_: yeah that part is not what I meant
[20:48:51] jhass: kristian_: my initial suggestion was echo $PATH, you did echo PATH and I corrected the PATH to $PATH
[20:49:07] kristian_: I'm tired :)
[20:49:57] AlexRussia: has joined #ruby
[20:50:01] XxionxX: has joined #ruby
[20:52:35] kristian_: I think the answer may be in my ~/.profile
[20:53:21] jhass: well, is anything actually not working? else just ignore the warning
[20:53:34] barhum2013: has joined #ruby
[20:54:29] kristian_: stuff seems to work okay
[20:55:09] ekleog: has joined #ruby
[20:55:34] ericjphillips: has joined #ruby
[20:56:53] ksteck: has joined #ruby
[20:59:28] ramfjord_: has joined #ruby
[20:59:50] mistermo_: has joined #ruby
[21:01:39] mistermo_: has joined #ruby
[21:02:06] t0code: has joined #ruby
[21:02:55] t0code: anyone got some time to help a noob on some basic code?
[21:03:22] ruboto: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[21:03:31] simplyianm: has joined #ruby
[21:04:03] tomphp: has joined #ruby
[21:04:23] mistermocha: has joined #ruby
[21:04:27] t0code: just need corrections on syntax...do i post code here directly or link?
[21:04:35] shevy: paste it onto jhass!
[21:04:45] ruboto: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[21:05:18] skade: has joined #ruby
[21:06:16] momomomomo: has joined #ruby
[21:07:17] AccordLTN: has joined #ruby
[21:07:30] spuk: has joined #ruby
[21:08:19] michaeldeol: has joined #ruby
[21:08:29] t0code: just trying to figure why its not accepting my arguments correctly. https://gist.github.com/anonymous/38f8bc5ae92503987247
[21:09:23] benlieb: has joined #ruby
[21:09:28] hooper: has joined #ruby
[21:09:41] shevy: if you change all_accounts to ALL_ACCOUNTS wherever it occurs, does your code work?
[21:09:53] hooper: has joined #ruby
[21:09:57] jhass: shevy: no
[21:10:07] shevy: btw you can move things such as acct_input = gets.chomp into your class
[21:10:17] jhass: t0code: which method of your class gets called when you call .new?
[21:10:19] hooper: has joined #ruby
[21:10:31] shevy: t0code yeah, use @acct_input rather than all_accounts
[21:10:43] hooper: has joined #ruby
[21:10:50] t0code: well i assume it would move through the firstCheck method authomatically?
[21:10:56] jhass: t0code: why?
[21:11:07] t0code: because i called the class...
[21:11:09] shevy: t0code entry point for a class is at "def initialize", so you have to define it and pass through it
[21:11:10] hooper: has joined #ruby
[21:11:18] jhass: t0code: well, what tutorial are you following?
[21:12:03] t0code: just finished the codeacademy one on ruby and realized i didnt retain as much as i should have so just doing my own project and came here for help first...:p
[21:12:22] jhass: maybe redo the part about classes ...
[21:12:43] Igorshp: has joined #ruby
[21:12:46] jhass: because tbh. your assumption shows quite some lack on a rough idea of their purpose
[21:12:50] shevy: t0code add def initialize, in def initialize call that second method
[21:13:02] jhass: ?styleguide
[21:13:02] ruboto: I don't know anything about styleguide
[21:13:04] jhass: ?styleguides
[21:13:04] ruboto: here are three popular styleguides, you should read and follow at least one: https://github.com/styleguide/ruby https://github.com/bbatsov/ruby-style-guide https://github.com/thoughtbot/guides/tree/master/style/ruby
[21:13:08] lenwood: has joined #ruby
[21:16:18] odigity: If I'm inside a module that's going to be included in a class Foo::Bar::Baz, is there an elegant way to extract the second segment of the namespace (Bar in this example)?
[21:16:58] northfurr: has joined #ruby
[21:17:16] jhass: mmh, I think self.class.name will have the full name, though it sounds like an ugly assumption that will add an unnecessary tight coupling
[21:17:40] BraddPitt: odigity Class.ancestors
[21:17:47] BraddPitt: will return an array of the ancestor chain
[21:18:00] jhass: BraddPitt: which has nothing to do with the namespace
[21:18:12] DoubleMalt: has joined #ruby
[21:18:34] jhass: odigity: so, why?
[21:18:44] odigity: jhass, I know it's tight coupling, but it's a temporary solution and is based on assumptions that hold true within my project for now. going to refactor it later
[21:18:51] odigity: jhass, it's a long story
[21:18:53] BraddPitt: what about self.class.name.split("::")
[21:18:57] Ox0dea: has joined #ruby
[21:19:05] odigity: BraddPitt, I'm about to try: self.to_s.split('::')[1]
[21:19:08] jhass: BraddPitt: that's what I suggested ;)
[21:19:16] Ox0dea: odigity: https://eval.in/449998
[21:19:16] `tim`: has joined #ruby
[21:19:18] jhass: no, don't realy on to_s
[21:19:25] BraddPitt: sorry jhass didn't read above
[21:19:30] odigity: jhass, ok, then: self.class.name.split('::')[1]
[21:19:33] jhass: heh, how did I do that
[21:19:47] odigity: I mean, self.name, since self is the class
[21:20:48] pignatovsky: has joined #ruby
[21:21:29] Agoldfish: has joined #ruby
[21:25:17] tomphp: has joined #ruby
[21:25:48] gusTester: has joined #ruby
[21:26:07] wpp: has joined #ruby
[21:26:14] Pupeno: has joined #ruby
[21:26:14] Pupeno: has joined #ruby
[21:27:24] riotjones: has joined #ruby
[21:27:40] caliostro: has joined #ruby
[21:28:33] dmolina1: has joined #ruby
[21:29:01] devoldmx: has joined #ruby
[21:29:09] Scripore: has joined #ruby
[21:30:34] _wldcordeiro: has joined #ruby
[21:31:01] _wldcordeiro: has joined #ruby
[21:31:52] jdawgaz: has joined #ruby
[21:33:34] stannard: This just cost me 4 hours of my life: http://ruby-doc.org/stdlib-2.0.0/libdoc/mathn/rdoc/Fixnum.html
[21:34:00] stannard: idk why stdlib of all things is overriding methods of core classes
[21:34:21] Shoutsid: has joined #ruby
[21:34:54] jhass: hope you learned about Method#source_location in the process at least :P
[21:34:55] Motoservo: has joined #ruby
[21:35:03] jhass: but yeah, mathn is a weirdo
[21:35:36] bruno-: has joined #ruby
[21:35:51] eam: whaaaat is that
[21:36:01] yfeldblum: has joined #ruby
[21:36:07] ellisTAA: has joined #ruby
[21:36:07] jhass: haha, you never encountered mathn?
[21:36:15] eam: nope, and I don't think I want to
[21:37:30] eam: warn('lib/mathn.rb is deprecated') if $VERBOSE
[21:37:40] mistermocha: has joined #ruby
[21:38:07] ellisTAA: has joined #ruby
[21:38:12] dmolina: has joined #ruby
[21:38:23] northfurr: has joined #ruby
[21:38:26] NivenHuH: has joined #ruby
[21:38:32] mistermocha: has joined #ruby
[21:38:32] dmolina: has joined #ruby
[21:38:51] leafybasil: has joined #ruby
[21:39:13] slash_nick: ... why not just adhere to the correct order of precedence?
[21:39:28] EminenceHC: has joined #ruby
[21:39:58] slash_nick: parens, exponents, multiplication, division, addition, subtraction, no?... weird
[21:40:07] nk8: has joined #ruby
[21:40:38] wpp: has joined #ruby
[21:41:52] porfa: has joined #ruby
[21:41:56] diegoaguilar: has joined #ruby
[21:42:14] _wldcordeiro: has joined #ruby
[21:42:21] davedev24: has joined #ruby
[21:43:20] clebrun: decided to go with map_product_strings
[21:43:22] neanderslob: has joined #ruby
[21:43:31] clebrun: I like that way better
[21:43:52] pietr0: has joined #ruby
[21:46:30] shevy: giving things names is one of the hardest thing there is in programming
[21:47:31] yfeldblum: has joined #ruby
[21:47:50] Asher: has joined #ruby
[21:48:42] clebrun: https://gist.github.com/clebrun/3637b539dc8fb11ed5d6
[21:49:18] clebrun: Is there a better way to do that?
[21:49:22] EminenceHC: has joined #ruby
[21:49:39] Eiam_: has joined #ruby
[21:50:23] slash_nick: shevy: and most fun?
[21:50:30] jamesaxl|2: has joined #ruby
[21:50:38] shevy: nah, names are overrated
[21:50:49] shevy: my favourite variable is still _ but it's not exactly a meaningful name now is it
[21:50:53] allcentury: has joined #ruby
[21:52:30] mistermo_: has joined #ruby
[21:52:31] jessemcgilallen: has joined #ruby
[21:53:28] beauby: has joined #ruby
[21:53:33] caliostro: has joined #ruby
[21:54:12] p0wn3d__: has joined #ruby
[21:54:13] jessemcgilallen: has left #ruby: ()
[21:54:38] caliostro: what a fantastic language
[21:54:43] mistermo_: has joined #ruby
[21:55:46] shinnya: has joined #ruby
[21:57:27] _wldcordeiro: has joined #ruby
[21:58:23] zcreative: has joined #ruby
[21:58:29] jessemcgilallen: has joined #ruby
[21:58:45] zcreative: has joined #ruby
[21:59:02] zcreative_: has joined #ruby
[21:59:04] tynamite: has joined #ruby
[21:59:25] Azure: has joined #ruby
[21:59:28] Guest13389: has left #ruby: ()
[22:00:23] arthurix_: has joined #ruby
[22:00:25] northfurr: has joined #ruby
[22:01:47] _wldcordeiro: has joined #ruby
[22:02:23] MeMoc: has joined #ruby
[22:02:26] hal_9000: who here was at rubyconf in 2008?
[22:02:57] zcreative__: has joined #ruby
[22:03:42] martin_work: has joined #ruby
[22:04:13] Coldblackice: has joined #ruby
[22:04:54] mistermocha: has joined #ruby
[22:06:50] kristian_: has joined #ruby
[22:07:33] kristian_: I get this error: /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require': cannot load such file -- jekyll-last-modified-at (LoadError) -- is it a jekyll thing or ruby?
[22:08:22] jhass: https://rubygems.org/gems/jekyll-last-modified-at appears to be a gem, did you install it?
[22:09:09] zcreative: has joined #ruby
[22:09:14] shevy: kristian_ this means you have not installed this gem
[22:09:29] zcreative_: has joined #ruby
[22:09:47] zcreative_: has joined #ruby
[22:09:51] platzhirsch: has joined #ruby
[22:09:55] kristian_: the name was so weird I thought it was something else
[22:10:02] jenrzzz: has joined #ruby
[22:10:09] Cyther: has joined #ruby
[22:10:09] shevy: <shevy> giving things names is one of the hardest thing there is in programming
[22:10:18] trajing: has joined #ruby
[22:10:24] shevy: I assume the author wanted some jekyll addon
[22:10:58] kristian_: I'm not dissing anyone :)
[22:11:01] shevy: there are countless gems containing "jekyll" as part of their name :\ https://rubygems.org/search?utf8=%E2%9C%93&query=jekyll
[22:11:21] noethics: has joined #ruby
[22:11:42] _aeris_: has joined #ruby
[22:11:59] zcreative_: has joined #ruby
[22:12:08] icarus: has joined #ruby
[22:12:12] gusTester: has left #ruby: ()
[22:12:29] murder_guido: has joined #ruby
[22:12:29] sankaber: has joined #ruby
[22:14:12] shevy: hidehirsch
[22:14:29] shevy: dr. jekyll and mr. hyde - good cop, bad cop
[22:14:33] shevy: I don't even know what jekyll is
[22:15:28] acke: has joined #ruby
[22:16:47] mary5030: has joined #ruby
[22:18:08] rickmasta: has joined #ruby
[22:18:12] platzhirsch: has left #ruby: ()
[22:18:12] firstdayonthejob: has joined #ruby
[22:18:33] gregoriokusowski: has joined #ruby
[22:19:26] cornerma1: has joined #ruby
[22:19:49] northfurr: has joined #ruby
[22:20:20] pipework: shevy: How are you so often completely oblivious to the rubygems ecosystem?
[22:20:39] pipework: I bet shevy's google search history is like, 20 searches, max.
[22:22:42] Azure: has joined #ruby
[22:22:44] XxionxX: has joined #ruby
[22:24:19] simplyianm: has joined #ruby
[22:24:49] adaedra: Too busy doing static builds of his ruby.
[22:25:46] jhass: shevy is the kind of person that would stick to fortran unless forced to learn something else ;)
[22:26:24] pipework: And even then, wouldn't use anything resembling a library.
[22:26:39] nateberkopec: has joined #ruby
[22:26:45] shevy: pipework I dunno, I usually look at gems that seem really useful to me, such as kramdown or coderay
[22:27:08] Eiam_: has joined #ruby
[22:27:08] pipework: shevy: You should subscribe to rubyweekly.
[22:27:15] shevy: jhass nah, fortran has awful syntax
[22:27:16] pipework: Expose yourself to more tools that might be useful.
[22:27:22] shevy: pipework I can't keep up with mailing list!
[22:27:24] pipework: But ultimately it'll just waste your time.
[22:27:33] pipework: shevy: It's a newsletter not a mailing list, per se.
[22:27:33] BraddPitt: is there a comprehensive tutorial or documentation for the curses gem?
[22:27:36] shevy: I am already watching cat videos on youtube
[22:27:38] pipework: Read what you want or don't.
[22:27:50] BraddPitt: https://github.com/ruby/curses shows literally no info and has no wiki :(
[22:27:56] shevy: newsletter, mailing list, same thing! I grew up in the phpBB era!
[22:28:01] senayar: has joined #ruby
[22:28:05] pipework: BraddPitt: Curses upon the ruby curses library!
[22:28:10] riotjones: has joined #ruby
[22:28:12] user1138_: has joined #ruby
[22:28:20] adaedra: well http://www.rubydoc.info/stdlib/curses/toplevel
[22:28:26] shevy: BraddPitt I guess they were just happy to get rid of it
[22:28:52] shevy: it would be ironic if the github wiki would have more information than the old stdlib for curses had
[22:29:03] riotjones: has joined #ruby
[22:29:03] pipework: shevy: would it really be irony?
[22:29:05] shevy: does anyone here still use curses?
[22:29:07] shevy: pipework yeah
[22:29:29] shevy: because it would mean that github works better for documenting stuff... but I actually don't like the github wiki, it feels so clunky
[22:29:45] pipework: shevy: I don't think there will be any intentional use of the opposite of what was intended.
[22:29:52] BraddPitt: or cna anyone recommend a good wrapping lib for curses?
[22:29:54] pipework: Amusing, but not ironic.
[22:30:19] pipework: BraddPitt: I've looked for a number of them and found a number of them but haven't found anything that stands out and away from the rest.
[22:30:28] diegoviola: what's the equivalent of for i in range() in ruby?
[22:30:57] tomphp: has joined #ruby
[22:31:02] BraddPitt: kind of my experience pipework
[22:31:08] pipework: diegoviola: diegoviola Enumerable with a Range object
[22:31:12] BraddPitt: maybe i just wont use curses and do my own repl type thing
[22:31:19] pipework: Look at #up_to as well.
[22:31:30] shevy: go use curses, it's like the ultimate bootcamp, then you know why this name was picked
[22:31:37] shevy: did I already mention that naming stuff is hard?
[22:31:58] dreinull75: has left #ruby: ("undefined")
[22:32:06] platzhirsch: has joined #ruby
[22:32:15] BraddPitt: i hear curses is pretty fucking irritating to use
[22:32:26] davedev24: has joined #ruby
[22:32:27] acidrainfall: That would be an understatement
[22:32:52] shevy: try to code a dungeonhack clone in ruby-curses
[22:32:55] weemsledeux: has joined #ruby
[22:33:00] duderonomy: has joined #ruby
[22:33:30] hahuang65: has joined #ruby
[22:33:40] neanderslob: has joined #ruby
[22:33:45] BraddPitt: ok yeah fuck it
[22:33:56] BraddPitt: i won't die if my terminal application scrolls
[22:34:00] BraddPitt: instead of redrawing
[22:34:39] lenwood: has joined #ruby
[22:35:31] adaedra: There are better ways than plain curses
[22:36:00] pipework: adaedra: What complete and useful alternatives are there?
[22:36:37] weemsledeux: has joined #ruby
[22:36:40] adaedra: I don't know them exactly, sorry
[22:37:38] bruno-: has joined #ruby
[22:37:46] rakm: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[22:38:14] adaedra: Been some time since I played with terminals last
[22:39:02] zenguy_pc: has joined #ruby
[22:39:10] rgtk: has joined #ruby
[22:40:01] duderonomy: has joined #ruby
[22:41:13] sgambino: has joined #ruby
[22:43:49] diegoaguilar: has joined #ruby
[22:43:53] p0wn3d__: has joined #ruby
[22:44:28] Igorshp: has joined #ruby
[22:44:33] kalusn: has joined #ruby
[22:45:39] jhass: diegoviola: or simply Fixnum#upto / Fixnum#downto
[22:46:12] jhass: or possibly even #times
[22:46:14] pipework: Didn't I say look up #upto?
[22:46:24] pipework: I dumbed and said up_to
[22:46:36] akkad: has joined #ruby
[22:46:52] arthurix: has joined #ruby
[22:47:05] shevy: yeah, your brain corrected a typo it thought to exist
[22:47:20] gambl0re: has joined #ruby
[22:47:36] ghq: has joined #ruby
[22:47:47] ghq: Are all blocks in Ruby passed to methods as proc objects?
[22:47:55] kristian_: shevy: jekyll is good fun if you want to make a website
[22:48:54] platzhirsch: has left #ruby: ()
[22:49:21] user1138__: has joined #ruby
[22:50:05] workmad3: ghq: depends on if you look at them or not (if you're talking about implementation specifics)
[22:50:43] Steve_Jobs: has joined #ruby
[22:51:19] ghq: I just don't understand '&' in method defs and calls.
[22:51:23] chopin_: has joined #ruby
[22:52:08] beauby: has joined #ruby
[22:52:25] adaedra: in method def, it tags an argument to explicitely receive the block
[22:52:26] workmad3: ghq: in a def, it captures the block arg into a parameter (which also means a proc object is created). In a method call, it calls `to_proc` on the thing you prefix with `&` and passes the result to the method as the block arg
[22:52:49] barhum2013: has joined #ruby
[22:53:09] ghq: workmad3: Does this mean blocks are just procs?
[22:53:42] pipework: ghq: Not really, but they can become procs.
[22:54:57] workmad3: ghq: implementation-wise, no, blocks and procs are separate things... within ruby, it's a distinction that can lack semantic meaning, because in all useful ways (and whenever you have a 'block' to play with) a block is a proc
[22:56:41] vF3hNGxc47h8: has joined #ruby
[22:56:50] ghq: workmad3: So inside a method call the '&' converts a proc to a block and inside a method definition it's vice versa?
[22:57:09] bryanray: has joined #ruby
[22:57:25] workmad3: ghq: other way around
[22:57:44] Igorshp: has joined #ruby
[22:57:44] workmad3: oh wait, no... sorry
[22:58:14] workmad3: it's late for me, and I personally just tend to think of 'procs' most of the time, not 'procs and blocks' :)
[22:59:04] shoutsid06: has joined #ruby
[23:00:05] mistermo_: has joined #ruby
[23:02:27] diegoviola: how can I do string arithmetic like print((n - m - 1) * ' ' + (m + 1) * '#')
[23:03:09] diegoviola: ruby complains that a string can't be coerned into a fixnum
[23:04:17] bnagy: >> n=4;m=1; ' ' * (n-m-1)
[23:04:18] ruboto: bnagy # => " " (https://eval.in/450062)
[23:04:33] bnagy: operator inference is from LHS
[23:04:38] bnagy: because they're actually methods
[23:04:57] bnagy: left hand side
[23:05:11] dnewkerk: has joined #ruby
[23:05:25] diegoviola: not sure what that is
[23:05:55] workmad3: diegoviola: it means that `' ' * 10` works, but `10 * ' '` is a type error
[23:05:56] bnagy: the meaning of '*' is inferred from what's on the left, not what's on the right
[23:06:38] bnagy: because '*' is actually a method, so it's like ' '.send :*, operand
[23:06:51] ghq: has left #ruby: ()
[23:06:54] diegoviola: yes, sometimes I forget about that
[23:07:23] jamto11: has joined #ruby
[23:08:02] CloCkWeRX: has joined #ruby
[23:08:15] twistedpixels: has joined #ruby
[23:08:23] _blizzy_: has joined #ruby
[23:08:33] dorei: has joined #ruby
[23:09:13] polycaster: has joined #ruby
[23:14:04] swgillespie: has joined #ruby
[23:14:40] step1step2: has joined #ruby
[23:15:24] step1step2: Anyone know how to fix this? https://gist.github.com/step1step2/b7bf8a9d099fcd611376
[23:15:52] mistermocha: has joined #ruby
[23:16:11] acke: has joined #ruby
[23:16:58] jhass: step1step2: first google result for me is http://stackoverflow.com/questions/28896733/rhc-setup-gives-error-no-such-file-dl-import
[23:17:04] _blizzy_: has joined #ruby
[23:19:47] Spami: has joined #ruby
[23:23:27] diegoviola: http://sprunge.us/EQAZ?rb
[23:23:29] diegoviola: is there another way to do this
[23:23:35] diegoviola: I'm getting an ArgumentError for some reason
[23:23:43] diegoviola: foo.rb:5:in `*': negative argument (ArgumentError)
[23:23:44] ellisTAA: has left #ruby: ()
[23:24:02] diegoviola: not sure why
[23:24:11] weemsledeux: has joined #ruby
[23:24:21] diegoviola: I mean I don't understand the error
[23:24:29] shevy: negative arguments
[23:24:31] shevy: what are you doing
[23:24:44] workmad3: diegoviola: means that your calculation is coming out as negative
[23:25:00] dnewkerk: Trying to understand something more fully. When I initialize a variable in my class as an instance variable (say, @foo = ???bar???), I can read the value from an instance of the object like myobject.foo (returns ???bar???). Does ruby automatically set up attr_reader for my instance variable?
[23:25:11] bnagy: >> ' ' * -1
[23:25:12] ruboto: bnagy # => negative argument (ArgumentError) ...check link for more (https://eval.in/450077)
[23:25:14] diegoviola: workmad3: so like -4?
[23:25:17] workmad3: dnewkerk: no
[23:25:29] jhass: ('#'*(m+1)).rjust(n)
[23:25:32] joneshf-laptop: has joined #ruby
[23:25:36] bnagy: negative one spaces names no sense
[23:25:43] bnagy: ACTION eyes fingers
[23:25:55] solocshaw: has joined #ruby
[23:26:00] diegoaguilar: has joined #ruby
[23:26:11] bnagy: dnewkerk: no
[23:26:19] serialaxel: has joined #ruby
[23:26:36] bnagy: dnewkerk: attr_reader is basically shortcut for defining def foo; @foo; end in your class
[23:26:40] jhass: diegoviola: also 1.upto can probably save the +1
[23:26:43] EminenceHC: has joined #ruby
[23:27:41] diegoviola: jhass: what do you mean?
[23:28:04] jhass: I wonder if you thought about what I said...
[23:28:15] bnagy: dnewkerk: you can't access via a method like that without doing anything, so if that's what you think you're seeing then there's some missing information
[23:28:20] jhass: 1.upto(n) { puts ('#'*m).rjust(n) }
[23:28:23] diegoviola: jhass: yes I did, still doesn't make sense
[23:28:32] diegoviola: jhass: that makes sense
[23:28:51] `tim`: has joined #ruby
[23:28:59] jhass: n += 1 if you really need to print one more than entered for n
[23:29:00] shmilan: has joined #ruby
[23:29:06] northfurr: has joined #ruby
[23:29:14] jhass: which I kinda doubt
[23:29:20] dnewkerk: bnagy: thanks, just before you posted that I decided to exit my IRB session and retype my test code, and it gave the expected result that time. Not sure why it was behaving that way before (had me very confused)
[23:29:42] bnagy: you might have used the same class name, for example
[23:29:48] devoldmx: has joined #ruby
[23:29:51] bnagy: in which case you might have been extending an existing class
[23:29:55] riotjones: has joined #ruby
[23:30:24] dnewkerk: bnagy: yeah must be what happened, I assumed I was overwriting it when I pasted different iterations of it into IRB to test
[23:30:41] twistedpixels: has joined #ruby
[23:30:47] bnagy: two-for-one mystery solutions. Boom.
[23:31:37] JammyHammy: has joined #ruby
[23:32:19] bruno-: has joined #ruby
[23:32:58] jdawgaz: has joined #ruby
[23:33:39] diegoviola: jhass: this works, thanks: https://gist.github.com/02ebc541f0ab63f854a4
[23:36:01] arthurix_: has joined #ruby
[23:38:26] EminenceHC: has joined #ruby
[23:38:46] jenrzzz: has joined #ruby
[23:39:24] dnewkerk: I see in many code examples attr_reader defined for the same instance variables being setup in an initialize method, like attr_reader :items ; def initialize @items = items ; end. However the variables tend to be used only inside the class???s own instance methods, but called items instead of @items. Is there any reason for this other than wanting to remove the @ when using the variable? The intent of using attr_reader in the
[23:39:25] dnewkerk: examples doesn???t usually seem to be to read the value from an instance of the class, but rather just internal methods
[23:40:29] drbrain: dnewkerk: some people don't like to type @
[23:40:48] drbrain: I don't mind typing @
[23:41:13] bryanray: has joined #ruby
[23:41:44] drbrain: the advantage of using attr_accessor is that you may decide to replace the instance variable at some point with a method
[23:42:16] drbrain: ??? such as replacing attr_accessor :items with def items; ???; end and def items= things; ???; end
[23:42:23] dnewkerk: ah good point
[23:42:42] twistedpixels: has joined #ruby
[23:42:44] drbrain: so using the accessor methods means reduced churn
[23:43:06] pipework: ACTION loves attr_* for all readers and writers, public or private.
[23:43:13] pipework: Whale, trivial ones, obviously.
[23:43:24] Ropeney: has joined #ruby
[23:44:23] Guest123456666: has joined #ruby
[23:44:52] dnewkerk: cool that???s the understanding I was after :D thanks!
[23:46:10] duderonomy: has joined #ruby
[23:47:24] naztharune: has joined #ruby
[23:47:56] serialaxel: has joined #ruby
[23:48:18] bmurt: has joined #ruby
[23:50:59] EminenceHC: has joined #ruby
[23:50:59] maikowblue: has joined #ruby
[23:56:16] Igorshp: has joined #ruby
[23:58:17] umgrosscol: has joined #ruby
[23:58:17] senayar: has joined #ruby
[23:58:59] Thomas-0725: has joined #ruby
[23:59:08] Bellthoven: has joined #ruby
[23:59:22] nym: has joined #ruby
[23:59:39] ledestin: has joined #ruby
[23:59:52] baweaver: has joined #ruby
[23:59:56] momomomomo: has joined #ruby