« Back to channel list

#ruby - 07 February 2016

« Back 1 day Forward 1 day »
[00:00:55] sandstrom: has joined #ruby
[00:01:13] georgios: It's also part of the ruby philosophy as far as I know. Python really has a focus on explicitness vs. Ruby having a focus on Implicitness (AFAIK)
[00:02:06] TomPeed: has joined #ruby
[00:02:06] devgiant: has joined #ruby
[00:02:23] benlieb: has joined #ruby
[00:02:42] Ox0dea: Bollocks.
[00:03:09] Ox0dea: $ python -c 'print(True * True + True)'
[00:03:21] Ox0dea: That's a tired example by now, but it's a stark counterpoint here.
[00:03:35] Papierkorb: Python looks more academic-y to me, where ruby focuses on offering tools to enable you writing readable code. This surfaces in the various aliases for methods, like Array#length == Array#size
[00:03:52] Papierkorb: Because sometimes, one or the other makes the code more 'logical'
[00:04:27] RickHull: in Elixir, IIRC, length is O(N) whereas size is amortized / cached
[00:04:49] Ox0dea: A top-level len() function in an allegedly object-oriented language is just silly.
[00:04:58] RickHull: in Ruby, there are legacy / backwards compat concerns
[00:05:04] zacstewart: has joined #ruby
[00:05:05] Papierkorb: Ox0dea: having to write (self, ..) every is too.
[00:05:14] Papierkorb: Pythons OO concepts always look so tacked on
[00:05:39] Ox0dea: It's a "hodge-podge of good ideas", if that can be said to make any sense.
[00:06:16] RickHull: ruby and python were both "grown" rather than "designed", I think. and the next gen of langs are more designed, based on that growth
[00:06:44] mondok: has joined #ruby
[00:07:02] Ox0dea: That's fair.
[00:07:09] RickHull: ruby and python both learned from perl's mistakes
[00:07:17] rickmasta: has joined #ruby
[00:07:26] RickHull: but each have their warts, where bottom-up growth puts baby in a corner
[00:07:36] Papierkorb: georgios: what I did enjoy the most at the start was that I didn't have to write for loops anymore. It's just calling .each on something and it does it with no need for a counter variable, and because it's a feature of the object rather than a feature of the language.
[00:08:26] RickHull: yeah, ruby's blocks are a huge win, particularly relative to perl and python
[00:08:34] Papierkorb: My grammar is getting horrific, time to go and watch some TV series
[00:08:52] jxpx777: has joined #ruby
[00:08:53] Eiam_: has joined #ruby
[00:08:55] georgios: Papierkorb: Yes, definitely, I *love* the functional elements of Python and thats why I want to get into Ruby ^^
[00:09:06] blackdev1l: has joined #ruby
[00:09:06] RickHull: georgios: checked out Elixir?
[00:09:16] RickHull: it's like functional ruby
[00:09:32] blackdev1l: ok i have a weird question: i remember someone in the ruby scene who called is daughter ruby, who was he ?
[00:09:41] blackdev1l: his daughter*
[00:09:44] Ox0dea: blackdev1l: Are you sure he didn't have a wife named Ruby?
[00:09:44] Papierkorb: all I can think of in regards to 'functional programming' is .. "urgh"
[00:09:58] georgios: RickHull: Only Erlang, sorry
[00:10:06] RickHull: georgios: you'd love Elixir i think
[00:10:07] blackdev1l: Ox0dea: well i remember a daughter, not a wife :(
[00:10:58] georgios: RickHull: Yeah, I'll definitely check it out sometime, sadly I don't have that much time atm due to university
[00:11:34] william3: has joined #ruby
[00:11:59] Papierkorb: georgios: I never got why people, who will dislike Rubys mantra of "patch classes and have it your way", like how the global scope is cluttered with functions, whose names are usually shortened until they're barely understandable. On top of that, those languages often offer no overloading support, forcing the dev to come up with new names for methods doing the same thing.
[00:12:33] RickHull: here's a simple project implemented in both Ruby and Elixir. the elixir version is missing docs, though fairly well commented. https://github.com/rickhull/conway_deathmatch see the elixir branch
[00:12:58] tfittsy: has joined #ruby
[00:13:26] georgios: RickHull: Awesome, I already put it in my bookmarks :)
[00:13:46] Xeago: has joined #ruby
[00:14:00] Papierkorb: georgios: in Ruby, there's for example the method .to_s which returns the string representation of an object. You can call it on any object and get a string. If it makes sense, the object will offer its own to_s method returning a more useful string. You can call .to_s on anything and you get the best possible response. With functional programming and without overloading, str(obj) returns whatever, which for object which could do better will
[00:14:02] Papierkorb: still be useless.
[00:14:17] RickHull: upon review, i may have to retract my comment about the elixir version being fairly well commented ;)
[00:14:27] RickHull: but it does have tests
[00:16:13] georgios: Papierkorb: Are you familiar with Rust? The concept of open classes is similar to their concept of traits; You have to bring the trait implementations for structs into scope before being able to use them
[00:16:39] georgios: Papierkorb: e.g. you need to `use std::io::Read` to read from files
[00:16:46] Papierkorb: georgios: Never took a serious look at it
[00:17:08] Papierkorb: It did look like "Go but actually good", and I liked the pattern matching stuff
[00:17:18] kies^: has joined #ruby
[00:17:21] georgios: Papierkorb: It's really great, and (like Ruby) expression-oriented
[00:17:39] georgios: Well, Go isn't actually too bad
[00:18:23] Papierkorb: georgios: The 'next' language I'm considering actually using will be Crystal, which heavily borrows from ruby (That's by design)
[00:19:10] Papierkorb: (struct *foo) func Asdasd(my_god_why_am_i_here foobar)
[00:19:32] Papierkorb: It's like C#, Perl and Erlang got drunk real bad
[00:19:41] Tempesta_: has joined #ruby
[00:19:48] CloCkWeRX: has joined #ruby
[00:20:03] rickmasta: has joined #ruby
[00:20:18] RickHull: anyone using mruby outside the embedded space? is it useful as an alternative ruby?
[00:20:20] georgios: Papierkorb: Go is simple by design
[00:20:44] poguez__: has joined #ruby
[00:21:04] jtdowney_: has joined #ruby
[00:21:59] arashb: has joined #ruby
[00:22:14] xpt2: has joined #ruby
[00:23:45] Renich: has joined #ruby
[00:23:47] kies^: has joined #ruby
[00:24:36] shaman42: has joined #ruby
[00:24:40] mhoungbo_: has joined #ruby
[00:25:25] dexter-tzu: has joined #ruby
[00:25:34] wethu: has joined #ruby
[00:28:14] preyalone_: has joined #ruby
[00:28:50] timanema: has joined #ruby
[00:28:50] DrCode: has joined #ruby
[00:29:11] dasher00: has joined #ruby
[00:29:15] Azure: has joined #ruby
[00:29:30] framling: has joined #ruby
[00:29:31] roshanavand: has joined #ruby
[00:29:49] selfadhesivefilm: has joined #ruby
[00:30:22] moeabdol: has joined #ruby
[00:30:38] pwnd_nsfw: has joined #ruby
[00:30:47] jbrhbr: has joined #ruby
[00:31:04] rickmasta: has joined #ruby
[00:31:33] nodejunkie: has joined #ruby
[00:32:28] brendan-: has joined #ruby
[00:32:32] baweaver: has joined #ruby
[00:33:46] bauruine: has joined #ruby
[00:35:51] Azure: has joined #ruby
[00:36:00] ElFerna: has joined #ruby
[00:36:08] william3: has joined #ruby
[00:36:42] felltir: has joined #ruby
[00:40:47] rickmasta: has joined #ruby
[00:41:56] terminalrecluse: has joined #ruby
[00:44:19] houhoulis: has joined #ruby
[00:44:48] Olipro_: has joined #ruby
[00:47:12] sandstrom: has joined #ruby
[00:48:50] rickmasta: has joined #ruby
[00:51:35] intrigueD: has joined #ruby
[00:53:59] Deck`: has joined #ruby
[00:54:05] DynamicMetaFlow: has joined #ruby
[00:54:59] _Tariq: has joined #ruby
[00:57:07] Scripore: has joined #ruby
[00:58:10] davedev24: has joined #ruby
[00:58:26] rickmasta: has joined #ruby
[01:04:06] duckpuppy: has joined #ruby
[01:04:27] sandstrom: has joined #ruby
[01:05:47] Azure: has joined #ruby
[01:06:47] zacstewart: has joined #ruby
[01:08:33] rickmasta: has joined #ruby
[01:09:59] ledestin: has joined #ruby
[01:11:06] DynamicMetaFlow: has joined #ruby
[01:11:10] IrishGringo: has joined #ruby
[01:11:14] Ox0dea: RickHull: What's "the embedded space"?
[01:17:31] DmitryBochkarev: has joined #ruby
[01:20:06] elifoster: has joined #ruby
[01:21:46] sandstrom: has joined #ruby
[01:23:17] karapetyan: has joined #ruby
[01:24:52] skweek: has joined #ruby
[01:28:36] Xeago: has joined #ruby
[01:29:39] rickmasta: has joined #ruby
[01:30:35] selfadhesivefilm: has joined #ruby
[01:33:59] Pintor: has joined #ruby
[01:34:20] despai: has joined #ruby
[01:37:32] Heero: has joined #ruby
[01:37:32] Heero: has joined #ruby
[01:38:39] sandstrom: has joined #ruby
[01:38:50] shevy: guess he means for everything else
[01:40:01] Ox0dea: mruby is intended to be an alternative to, say, Lua, not VHDL.
[01:44:25] sepp2k: has joined #ruby
[01:45:48] shevy: huh nobu just taught me that .ascii_compatible? exists, through https://github.com/ruby/ruby/commit/8e46f401b299eb314ea2d3637e555eb04f968f8b
[01:46:47] riceandbeans: has joined #ruby
[01:47:01] riceandbeans: can someone help me figure out how to do this
[01:47:39] riceandbeans: I want to have something using a regex / /, but where the regex is a variable that gets passed in but not have the regex thing the regex is the variable name
[01:48:49] riceandbeans: so, for intance, foo = 'magical thing to match'; baz = bar.match(/foo/)
[01:49:01] Ox0dea: riceandbeans: /#{foo}/
[01:49:32] riceandbeans: I wish I knew it was that easy lol
[01:49:37] Ox0dea: Now you do.
[01:50:00] stardiviner: has joined #ruby
[01:50:38] riceandbeans: rejoice i shall, oh hallelujah
[01:51:21] IrishGringo_: has joined #ruby
[01:51:43] Pintor: hey Ox0dea! Hi ^^
[01:51:45] rickmasta: has joined #ruby
[01:51:57] Ox0dea: Hi, Pintor. :)
[01:52:34] Pintor: I have (another~ haha) question, can you help me with that?
[01:53:42] Pintor: I am working with irb to "preview" my code, just "invoke" the file and done. But the file is so big, is possible to use a "require" that works on irb when I call there a file?
[01:54:01] Pintor: ... understand or I am so confusing?
[01:54:43] Deck`: has joined #ruby
[01:55:53] sandstrom: has joined #ruby
[01:56:43] Ox0dea: Pintor: It's not entirely clear what you're asking, but you can say `irb -r foo` to have 'foo' required before your IRB session starts.
[01:57:00] djbkd: has joined #ruby
[01:57:30] Pintor: ok, sorry, I know I didn't explained it so good
[01:59:11] Pintor: I have a bigger file "foo.rb" with 1,200 lines, but from these lines, 1,000 are from a Hash. I want to move that hash to "hashes.rb", so I think I will put at top of "foo.rb" something like "require 'hashes.rb'", but when I do this and call the file on irb shows me error, can't load the Hash
[02:00:19] Ox0dea: Pintor: You'll need to say either `require './hashes'` or `require_relative 'hashes'`.
[02:00:37] Pintor: hum, give me a minute to test it
[02:02:04] rickmasta: has joined #ruby
[02:02:12] Ox0dea: Or even `load 'hashes.rb'`, which is arguably more appropriate for this particular use.
[02:03:00] Pintor: stills same :c I think irb won't load required files in any mode
[02:03:19] Pintor: I tried require, require_relative and load, and showed exactly the same error
[02:06:27] Ox0dea: Pintor: Oh, I missed the actual problem; you're assigning to the Hashes to local variables in hashes.rb, right?
[02:06:33] Ox0dea: *assigning the Hashes
[02:07:05] Pintor: check, this is my "Hashes.rb", give me a minute to paste it in a gist
[02:07:19] Ox0dea: Pintor: You don't have to.
[02:07:22] blub: has joined #ruby
[02:07:27] Ox0dea: The problem is that local variables can't be imported.
[02:07:36] Pintor: pff, why?
[02:07:49] Pintor: I can convert them to a method, right?
[02:08:11] zacstewart: has joined #ruby
[02:08:19] urbanmonk: has joined #ruby
[02:08:21] Ox0dea: You can say `eval File.read('hashes.rb')`, but you could just as well store them in something more visible than local variables.
[02:08:24] Ox0dea: Constants, for instance.
[02:09:14] Pintor: constants? sorry, I am a newbie on Ruby
[02:09:32] LoneHerm_: has joined #ruby
[02:10:12] riceandbeans: anyone got experience with mechanize? if i want it to copy specific text from a part in the page that's not a hyperlink it's just text that happens to always follow a set of HTML tags, do you know how to do that?
[02:10:28] Pintor: oh, the "variable" with capital letter
[02:11:43] riceandbeans: normal, CONSTANT, $global, @class, @@instance
[02:11:57] Ox0dea: riceandbeans: Mixed up the last two.
[02:12:04] rickmasta: has joined #ruby
[02:12:25] Ox0dea: riceandbeans: Looks like '/following-sibling::text' is the XPath way to get there.
[02:13:08] sandstrom: has joined #ruby
[02:13:58] Ox0dea: Have you thus far completely avoided explicitly using Nokogiri in your Mechanize script?
[02:14:12] riceandbeans: I have not used nokogiri at all yet
[02:14:33] Ox0dea: Not explicitly.
[02:14:40] Ox0dea: Mechanize uses Nokogiri under the hood.
[02:14:52] riceandbeans: I thought it used libcurl under the hood
[02:15:07] FooMunki: has joined #ruby
[02:15:30] riceandbeans: so I'll look up nokogiri documentation
[02:15:42] Deck`: has joined #ruby
[02:16:04] Ox0dea: cURL and Nokogiri serve different purposes.
[02:18:32] djbkd: has joined #ruby
[02:18:55] riceandbeans: http://www.rubydoc.info/github/sparklemotion/nokogiri/Nokogiri/XML/XPath
[02:19:00] riceandbeans: I'm confused now
[02:20:05] rickmasta: has joined #ruby
[02:20:27] terminalrecluse: has joined #ruby
[02:22:54] arashb: has joined #ruby
[02:23:19] UtkarshRay: has joined #ruby
[02:25:30] urbanmonk: has joined #ruby
[02:25:34] baweaver: has joined #ruby
[02:25:40] karapetyan: has joined #ruby
[02:28:44] rickmasta: has joined #ruby
[02:30:22] sandstrom: has joined #ruby
[02:31:25] rickmasta: has joined #ruby
[02:31:52] selfadhesivefilm: has joined #ruby
[02:32:34] harly__: has joined #ruby
[02:33:45] rickmasta: has joined #ruby
[02:38:34] tfittsy: has joined #ruby
[02:38:50] pawnbox: has joined #ruby
[02:41:47] william3: has joined #ruby
[02:47:08] duderon__: has joined #ruby
[02:47:38] sandstrom: has joined #ruby
[02:48:37] despai_: has joined #ruby
[02:49:57] RegulationD: has joined #ruby
[02:50:04] timanema: has joined #ruby
[02:50:27] vikas027: has joined #ruby
[02:51:41] kam270: has joined #ruby
[02:52:10] sdothum: has joined #ruby
[02:54:55] oetjenj: has joined #ruby
[02:55:34] Gnut: has joined #ruby
[02:56:08] banister: has joined #ruby
[02:56:55] jgt4: has joined #ruby
[02:58:59] bonhoeffer: has joined #ruby
[03:01:13] arescorpio: has joined #ruby
[03:02:04] konsolebox: has joined #ruby
[03:02:07] blub: has left #ruby: ("bye")
[03:04:14] elifoster: has joined #ruby
[03:04:52] duckpuppy: has joined #ruby
[03:04:53] sandstrom: has joined #ruby
[03:08:46] zacstewart: has joined #ruby
[03:10:39] roshanavand: has joined #ruby
[03:15:55] rickmasta: has joined #ruby
[03:18:15] Deck`: has joined #ruby
[03:19:30] johnmilton: has joined #ruby
[03:20:53] johnmilton: has joined #ruby
[03:21:42] dudedudeman: has joined #ruby
[03:22:10] sandstrom: has joined #ruby
[03:23:18] johnmilton: has joined #ruby
[03:25:23] johnmilton: has joined #ruby
[03:27:32] johnmilton: has joined #ruby
[03:29:29] nofacade: has joined #ruby
[03:29:47] johnmilton: has joined #ruby
[03:32:03] johnmilton: has joined #ruby
[03:33:39] selfadhesivefilm: has joined #ruby
[03:36:59] rickmasta: has joined #ruby
[03:37:01] lswart: Hi all, I am having an issue starting up jekyll for my website. My _config.yml has `jekyll-gist` listed as a required gem, which I have installed, but I am getting an error when I run the jekyll generator. Any suggestions? Here is the error: http://ix.io/obe
[03:37:45] lswart: I have jekyll-gist listed under my installed gems, and I have added it to my Gemfile and ran `bundle install`, but I still get an error saying that I am missing jekyll-gist
[03:38:09] pawnbox: has joined #ruby
[03:39:39] sandstrom: has joined #ruby
[03:48:01] Ox0dea: lswart: Both versions of jekyll-watch that you have installed are "too new".
[03:49:11] nodejunkie: has joined #ruby
[03:49:32] Ox0dea: The "jekyll-watch (~> 1.1)" dependency means that any version from 1.1 up to (but not including) 1.2 is okay.
[03:50:02] p0wn3d: has joined #ruby
[03:51:00] houhoulis: has joined #ruby
[03:51:43] yfeldblum: has joined #ruby
[03:53:33] lswart: Ox0dea: Interesting! But when I uninstall jekyll-watch, then re-install jekyll, jekyll-watch 1.3.0 is installed as well... although now I am getting an "Unresolved specs" warning about "listen (~> 3.0)"
[03:54:38] Ox0dea: lswart: Give `bundle update` a shot.
[03:55:46] lswart: Ox0dea: Ooh, that works!
[03:56:37] rickmasta: has joined #ruby
[03:56:53] lswart: What did that do? Did it recursively re-install all gems that didn't match the semver requirements?
[03:56:58] sandstrom: has joined #ruby
[03:57:06] Ox0dea: In a nutshell.
[03:57:06] n00bDev: has joined #ruby
[03:57:13] Conflict: has joined #ruby
[03:59:24] lswart: Ox0dea: cool. Yeah, I have been trying to set up either gemsets or bundle, so I may have borked something. I am using rbenv, but I am getting confused about how to properly isolate my environments. I am used to Python's virtualenv, but there seems to be more configuration options for ruby with gemsets and bundler.
[03:59:46] Tempesta_: has left #ruby: ("Closing Channel, bye.")
[03:59:52] Tempesta: has joined #ruby
[03:59:57] LoneHerm_: has joined #ruby
[04:00:32] jorrin: has joined #ruby
[04:01:14] alphaatom: has joined #ruby
[04:01:52] Ox0dea: lswart: It's not hard to imagine that virtualenv is simpler, but both are (or at least should be :P) pretty set-it-and-forget-it once you've, well, set them.
[04:03:43] x77686d: has joined #ruby
[04:04:05] Jonah11_: has joined #ruby
[04:04:25] lswart: Ox0dea: I guess the gemsets are confusing. The bundle and Gemfile seems straightforward - I just `bundle install` and it installs all gems inside the Gemfile. But I suppose gemsets allows reuse of gems across projects?
[04:04:55] Ox0dea: lswart: Just the opposite, really.
[04:05:30] roshanavand: has joined #ruby
[04:05:42] duckpuppy: has joined #ruby
[04:06:04] lswart: Yeah, I suppose bundle is more bulky than gemsets. But I can't figure out how to mix and match different gemsets for a project
[04:06:27] Ox0dea: That sounds vaguely masochistic. :P
[04:08:02] lswart: not sure I follow? You said it was the opposite, so I assume you were referring to bundle being more confusing that gemsets. Although the bundle interface feels more intuitive
[04:08:24] DonOtreply: has joined #ruby
[04:08:31] pawnbox: has joined #ruby
[04:08:36] lswart: I've been using `rbenv gemset`, but the documentation seems lacking, and I may not be using it properly
[04:09:00] Ox0dea: No, I meant to indicate that gemsets give you separation between projects, rather than the ability to "mingle" their opinions of what's installed.
[04:09:09] yoongkang: has joined #ruby
[04:10:15] hahuang61: has joined #ruby
[04:10:18] zacstewart: has joined #ruby
[04:10:29] yoongkang: has left #ruby: ()
[04:11:26] Eiam_: has joined #ruby
[04:11:32] lswart: But can't one use multiple gemsets on a single project? For bundle, we always install from a single Gemfile. Although I may be confusing myself...
[04:11:44] rickmasta: has joined #ruby
[04:12:03] braincrash: has joined #ruby
[04:12:15] kirillzh: has joined #ruby
[04:13:44] andrew: has joined #ruby
[04:14:08] minimalism: has joined #ruby
[04:15:32] celly: has joined #ruby
[04:15:55] Conflict: has joined #ruby
[04:16:43] lswart: I am using rbenv, so that might be an issue. I am having a hard time finding how to use a gemset, because there is not `rbenv gemset use` command, or anything similar. I can create and delete gemsets, but I can't seem to use existing gemsets
[04:18:09] Ox0dea: lswart: Have you given https://github.com/jf/rbenv-gemset a look-see?
[04:18:46] Radar: gemsets are devilspawn and should be disused.
[04:18:49] Radar: Gemfile is the right way to isolate dependencies for your app
[04:19:11] lswart: Ox0dea: Yes! And I even read the PR where someone tried to update the documentation: https://github.com/jf/rbenv-gemset/pull/76/files
[04:19:16] Deck`: has joined #ruby
[04:19:57] lswart: and I also filed my own issue because the `rbenv-gemset` command isn't available, only the `rbenv gemset` command is avaialble. So I think the documentation has some issues
[04:20:02] lswart: https://github.com/jf/rbenv-gemset/issues/77
[04:20:25] Ox0dea: Er, that's everything working as expected, really.
[04:20:43] sandstrom: has joined #ruby
[04:21:55] arashb: has joined #ruby
[04:22:05] Ox0dea: It's a dead-simple plugin architecture inspired by git; `thing subcommand` just looks for an executable called `thing-subcommand` in your PATH before bailing.
[04:24:44] lswart: True, and I like the simplicity of rbenv. But why are there references to `rbenv-gemset` when after installing the plugin, the command isn't there (nor references about adding anything to the PATH)? `rbenv gemset` seems to be the command that the plugin provies, and I think it should be referenced in the docs.
[04:25:00] lswart: /provies/provides
[04:27:05] karapetyan: has joined #ruby
[04:27:26] lswart: But I think I am figuring it out. It seems to be a useful tool, but I think that the documentation makes it difficult for someone to get started with it.
[04:27:59] lessless: has joined #ruby
[04:29:21] lswart: Radar: What's the argument against gemsets? The argument for them seems to be that they are lighter weight and more configurable than bundler and Gemfiles. (BTW, I am still new to both methods, but I want to learn the pros/cons between them)
[04:30:17] rickmasta: has joined #ruby
[04:32:19] rickmasta: has joined #ruby
[04:34:25] selfadhesivefilm: has joined #ruby
[04:35:11] sdothum: has joined #ruby
[04:37:52] sandstrom: has joined #ruby
[04:39:07] Radar: lswart: They accomplish the same thing as Bundler does. imo they add bloat to whatever ruby version manager they're a part of.
[04:39:44] Radar: Bundler being as popular as it is... it doesn't make sense to have gemsets too.
[04:39:55] nerium: has joined #ruby
[04:39:57] Ox0dea: chruby is the only true Ruby version manager; the others manage environments.
[04:40:14] Radar: Also: you may accidentally install two versions of the same gem within a gemset, and gemsets don't restrict you from doing that. How do you tell your app which specific version to use?
[04:40:55] Ox0dea: Radar: How about a Gemfile? :P
[04:41:07] Radar: Ox0dea: A Gemfile would be a great way ;)
[04:41:18] rickmasta: has joined #ruby
[04:41:54] gix: has joined #ruby
[04:42:47] lswart: So, if I have two projects using the same version of Ruby, how to I update my environment when I switch projects? `bundle update`?
[04:43:15] lswart: (assuming that I don't use gemsets)
[04:44:08] Ox0dea: lswart: `bundle install` per project directory, then `bundle exec foo` to use the local configuration.
[04:45:41] lswart: Ox0dea: Ah, thanks! When you say `bundle exec foo`, if I wanted to generate my jekyll site using local configs, would I run `bundle exec jekyll serve`?
[04:46:32] yaewa: has joined #ruby
[04:46:35] Ox0dea: lswart: I want to say jekyll does some of the heavy lifting there, but it wouldn't hurt.
[04:46:42] krzkrz: has joined #ruby
[04:48:18] Ox0dea: Any given Ruby-powered program can bother to try to figure out where it is and how it should go about code loading; Bundler's overarching goal is to spare them that effort.
[04:49:45] lswart: But interestingly, without gemsets, we just run `bundle install` to replace our gems list without saving them in separate environments, no?
[04:50:41] Ox0dea: They do just get installed globally, yeah.
[04:50:55] lswart: It's like virtualenv, but there is only one environment and we run `pip install -r requirement.txt` whenever we switch projects. Is that how bundler works without gemsets, right?
[04:50:58] Ox0dea: But the Gemfile is there to do the "mixing and matching" you might've had in mind earlier.
[04:51:45] Ox0dea: You only need to `bundle install` once per project.
[04:52:06] Radar: Ox0dea is right
[04:52:18] Ox0dea: I'll phone the authorities.
[04:52:37] lswart: But when we switch projects, we need to update our gems, right? So don't we use `bundle install`? (or `bundle update`?)
[04:53:35] Radar: Ox0dea: Thanks. Hard for me to do since I'm in an airport.
[04:53:45] Ox0dea: lswart: Bundler + Gemfile gives your project a local view of the global gem repository.
[04:53:52] Radar: lswart: Each project will have its own set of dependencies, defined either in the Gemfile or Gemfile.lock.
[04:54:32] Radar: lswart: The Gemfile.lock is the SPECIFIC versions of each gem. Gemfile is what specifies the dependencies to be resolved. So you might have "gem 'rails', '~> 4.2'", in your Gemfile, which will resolve to install (currently) Rails 4.2.5.1.
[04:54:50] Radar: lswart: That 4.2.5.1 is what will be put into your Gemfile.lock after Bundler resolves + installs all dependencies.
[04:55:05] Radar: lswart: Then someone else can come along to the project, run "bundle install" and get exactly the same dependencies as specified in Gemfile.lock
[04:55:06] sandstrom: has joined #ruby
[04:56:21] lswart: Yes, that makes sense - the Gemfile uses semantic versioning to control the dependencies for a specific project. But to load those dependencies whenever we switch projects, we need to run `bundle install` in the new project, right?
[04:56:37] lswart: or `bundle update`?
[04:57:13] Ox0dea: lswart: `bundle exec`.
[04:57:52] LoneHermit: has joined #ruby
[04:58:24] andrew: has joined #ruby
[04:59:22] pawnbox: has joined #ruby
[05:00:37] lswart: Ox0dea: ok, that makes sense. With that, I think I will move forward!
[05:02:40] Ox0dea: lswart: ?????????!
[05:08:27] ensyde: has joined #ruby
[05:08:52] p0wn3d: has joined #ruby
[05:10:46] zacstewart: has joined #ruby
[05:10:51] Radar: Hooray :)
[05:12:21] sandstrom: has joined #ruby
[05:18:38] coyo: has joined #ruby
[05:20:07] Deck`: has joined #ruby
[05:25:04] UtkarshRay: has joined #ruby
[05:25:49] stardiviner: has joined #ruby
[05:28:22] karapetyan: has joined #ruby
[05:29:41] sandstrom: has joined #ruby
[05:29:51] roshanavand: has joined #ruby
[05:31:41] askhat: has joined #ruby
[05:31:57] askhat: has left #ruby: ()
[05:35:09] selfadhesivefilm: has joined #ruby
[05:35:53] baweaver: has joined #ruby
[05:39:54] Xeago: has joined #ruby
[05:45:45] celly: has joined #ruby
[05:46:38] sandstrom: has joined #ruby
[05:53:32] LoneHermit: has joined #ruby
[05:53:49] yfeldblum: has joined #ruby
[05:56:07] solocshaw: has joined #ruby
[05:56:15] adgtl: has joined #ruby
[06:02:32] adgtl_: has joined #ruby
[06:03:09] ozzloy: has joined #ruby
[06:03:52] sandstrom: has joined #ruby
[06:04:31] DmitryBochkarev: has joined #ruby
[06:05:39] PedramT: has joined #ruby
[06:05:49] rbennacer: has joined #ruby
[06:06:22] duckpuppy: has joined #ruby
[06:08:41] fedexo: has joined #ruby
[06:11:45] zacstewart: has joined #ruby
[06:11:51] skweek: has joined #ruby
[06:13:57] Limix: has joined #ruby
[06:16:26] stardiviner: has joined #ruby
[06:17:53] bb010g: has joined #ruby
[06:21:05] Deck`: has joined #ruby
[06:21:11] sandstrom: has joined #ruby
[06:21:12] Eiam_: has joined #ruby
[06:22:48] n00bDev: has joined #ruby
[06:26:16] askhat: has joined #ruby
[06:27:30] pawnbox: has joined #ruby
[06:27:40] n00bdev_: has joined #ruby
[06:28:49] shadoi: has joined #ruby
[06:32:04] marsjaninzmarsa: has joined #ruby
[06:34:19] ziyadb: has joined #ruby
[06:35:56] selfadhesivefilm: has joined #ruby
[06:38:39] sandstrom: has joined #ruby
[06:40:38] dcunit3d: has joined #ruby
[06:40:39] Cohedrin: has joined #ruby
[06:41:28] askhat: has joined #ruby
[06:45:47] lurch_: has joined #ruby
[06:49:15] askhat: has joined #ruby
[06:51:26] RegulationD: has joined #ruby
[06:52:55] Limix: has joined #ruby
[06:53:10] Edulix: has joined #ruby
[06:53:13] roshanavand: has joined #ruby
[06:54:32] askhat: has joined #ruby
[06:54:39] LoneHerm_: has joined #ruby
[06:55:57] sandstrom: has joined #ruby
[06:57:22] baweaver: has joined #ruby
[06:58:54] dexter-tzu: has joined #ruby
[06:59:58] whippythellama: has joined #ruby
[07:00:57] the_drow: has joined #ruby
[07:05:19] yoongkang: has joined #ruby
[07:05:59] dc1: has joined #ruby
[07:09:25] shout-user87: has joined #ruby
[07:09:41] shout-user87: how do i go about writing an irc client
[07:09:44] tvw: has joined #ruby
[07:10:11] shout-user87: how do i go about writing an irc client
[07:13:08] zacstewart: has joined #ruby
[07:13:08] sandstrom: has joined #ruby
[07:14:37] moeabdol1: has joined #ruby
[07:15:52] eam: shout-user87: a good first step might be to sketch out what you think its major functions are, perhaps on a piece of paper
[07:16:09] shout-user87: it would send and recieve messages
[07:16:34] shout-user87: it would not distinguish between channels, it would just prefix messages with the channel name
[07:16:37] shout-user87: same for pm's
[07:16:48] eam: sure. So this is a pretty good start
[07:16:56] shout-user87: it would just send and recieve messages and commands
[07:17:53] eam: maybe next, write example code that sends a message. And that receives a message
[07:18:10] eam: once you have the individual bits working, start plugging them together
[07:18:50] shout-user87: well, i'm opening a socket, and puts'ing to it and gets'ing from it
[07:19:01] shout-user87: but that's inefficient
[07:19:06] eam: that's probably an ok way to do it if you're just learning
[07:19:26] shout-user87: i need to type 'PRIVMSG #ruby : <message>'
[07:19:26] eam: you may want to look into more advanced libraries which will manage your i/o event loop
[07:19:45] shout-user87: can you suggest any>
[07:19:48] eam: but you can work out the irc protocol logic with a simple loop {}
[07:19:54] eam: celluloid
[07:20:18] shout-user87: i mean, i'm reading rfc 1459 right now
[07:20:19] Ox0dea: shout-user87: You should learn Ruby. :)
[07:20:29] shout-user87: Ox0dea weren't we just talking?
[07:20:41] shout-user87: about the dicebot
[07:20:46] Ox0dea: What's that?
[07:20:50] eam: shout-user87: if you want to learn the protocol, a simple loop {} with gets and puts ought to suffice
[07:21:16] shout-user87: eam, is there a way to do it asynchrously?
[07:21:22] eam: you can work out the bits that speak the protocol independent of the efficiency gains in using a more advanced event loop framework
[07:21:25] shout-user87: has left #ruby: ("undefined")
[07:21:27] eam: yes, celluloid will help you do that
[07:21:33] shout-user87: has joined #ruby
[07:21:37] eam: you could do it on your own, of course
[07:21:47] shout-user87: sorry, can you please repeat that last message that i missed?
[07:21:50] eam: yes, celluloid will help you do that
[07:21:53] Deck`: has joined #ruby
[07:21:59] william3: has joined #ruby
[07:22:00] shout-user87: celluloid is a library?
[07:22:07] eam: https://github.com/celluloid/celluloid
[07:22:40] terminalrecluse: has joined #ruby
[07:23:13] Ox0dea: eam: V srry yvxr gurl'er hc gb ab tbbq.
[07:24:08] eam: my garlic?
[07:24:51] arashb: has joined #ruby
[07:25:47] yardenbar: has joined #ruby
[07:26:01] terminalrecluse: has joined #ruby
[07:26:44] eam: Bu. Jryy, jungrire.
[07:27:02] shout-user87: eam what language is that
[07:27:21] eam: ebg guvegrra
[07:27:36] eam: ebg guvegrra.
[07:27:44] shout-user87: translated into english?
[07:27:48] eam: ebg guvegrra!
[07:28:45] shout-user87: what's the decryption key?
[07:29:19] eam: >> "ebg guvegrra".tr 'a-z', 'n-za-m'
[07:29:39] shout-user87: i'm using double rot thirteen
[07:30:23] sandstrom: has joined #ruby
[07:30:48] shout-user87: So how do I make that IRC client again?
[07:30:55] shout-user87: Fb ubj qb V znxr gung VEP pyvrag ntnva?
[07:31:07] eam: I think you more or less spelled out the steps, right?
[07:32:00] Ox0dea: shout-user87: That you griped about having to type `puts "PRIVMSG ..."` everywhere indicates that you should really learn some Ruby first.
[07:32:17] eam: well maybe this is the project which will teach it!
[07:32:31] shout-user87: V xabj fbzr ehol, V whfg unira'g zrffrq jvgu ertrkrf be fhofgvghgvba lrg.
[07:33:08] Ox0dea: Or methods, it seems. :P
[07:33:47] shout-user87: Jryy, zrgubqf... nera'g gurl onfvpnyyl jung shapgvbaf ner va bgure cebtenzzvat ynathntrf?
[07:34:26] johnmilton: has joined #ruby
[07:34:32] eam: Ox0dea: look what you started
[07:34:58] shout-user87: V'ir jevggra n grkg nqiragher tnzr va Ehol
[07:35:17] shout-user87: well, the beginning of one.
[07:35:31] Ox0dea: The beginning of one is one, and that's all there is to it.
[07:36:03] shout-user87: V'yy unfgrova vg
[07:36:25] nanoz: has joined #ruby
[07:36:42] selfadhesivefilm: has joined #ruby
[07:37:22] shout-user87: Actually, I'll google drive it.
[07:38:01] dionysus69: has joined #ruby
[07:38:56] hahuang61: has joined #ruby
[07:41:50] shout-user87: the pitiful thing
[07:42:03] shout-user87: uggcf://qevir.tbbtyr.pbz/sbyqreivrj?vq=0OkcBSHYMBXYfoIEXASARMRAKoIH&hfc=funevat
[07:46:39] Eiam_: has joined #ruby
[07:47:39] sandstrom: has joined #ruby
[07:48:25] CloCkWeRX: has joined #ruby
[07:52:39] karapetyan: has joined #ruby
[07:55:24] LoneHerm_: has joined #ruby
[07:56:59] darkxploit: has joined #ruby
[07:58:43] the_drow: has joined #ruby
[07:59:00] andrew: has joined #ruby
[08:03:15] shiver_: has joined #ruby
[08:04:11] UtkarshRay: has joined #ruby
[08:04:35] Jonah11_: has joined #ruby
[08:04:37] yardenbar: has joined #ruby
[08:04:50] sandstrom: has joined #ruby
[08:05:34] UtkarshRay: has joined #ruby
[08:07:16] duckpuppy: has joined #ruby
[08:07:52] CloCkWeRX: has joined #ruby
[08:10:23] s0n1c-: has joined #ruby
[08:10:35] s0n1c-: has joined #ruby
[08:12:32] pen: has joined #ruby
[08:12:52] dextertzu: has joined #ruby
[08:13:44] zacstewart: has joined #ruby
[08:15:23] mauricio: has joined #ruby
[08:17:05] s0n1c-__: has joined #ruby
[08:17:59] roshanavand: has joined #ruby
[08:18:55] s0n1c-___: has joined #ruby
[08:22:05] sandstrom: has joined #ruby
[08:22:55] Deck`: has joined #ruby
[08:27:08] akem: has joined #ruby
[08:28:26] MindfulMonk: has joined #ruby
[08:29:42] felltir: has joined #ruby
[08:31:16] zapata: has joined #ruby
[08:36:09] triangles: has joined #ruby
[08:36:19] firstdayonthejob: has joined #ruby
[08:37:31] selfadhesivefilm: has joined #ruby
[08:39:26] jgt4: has joined #ruby
[08:39:39] sandstrom: has joined #ruby
[08:40:42] ur5us: has joined #ruby
[08:41:12] Xeago: has joined #ruby
[08:41:16] TomyLobo: has joined #ruby
[08:42:37] PedramT: has joined #ruby
[08:43:42] nanoz]: has joined #ruby
[08:44:09] pawnbox: has joined #ruby
[08:44:20] PedramT: has joined #ruby
[08:44:29] DonOtreply: has joined #ruby
[08:45:01] Jackneill: has joined #ruby
[08:45:17] Jonah11_: has joined #ruby
[08:47:28] william3: has joined #ruby
[08:47:48] DoubleMalt: has joined #ruby
[08:50:19] the_drow: has joined #ruby
[08:52:57] phatypus: has joined #ruby
[08:54:21] the_drow: has joined #ruby
[08:55:16] askhat: has joined #ruby
[08:56:26] askhat: has joined #ruby
[08:56:53] sandstrom: has joined #ruby
[08:57:12] intrigueD: has joined #ruby
[08:59:30] LoneHermit: has joined #ruby
[09:00:23] shiver: has joined #ruby
[09:00:28] shout-user87: aopiapofiuasdfioupoiuadsf;alkjdasf;lj
[09:02:37] apeiros: shout-user87: that's an interesting language you speak there ;-)
[09:02:45] apeiros: is it catwalksoverkeyboard?
[09:03:07] shout-user87: vg vf ebg guvegrra
[09:03:32] apeiros: ok, so v=i, would suggest a rotation
[09:03:50] shout-user87: ebg guvegrra!
[09:04:22] shout-user87: this is me = guvf vf zr
[09:04:43] shout-user87: frr jung v qvq gurer?
[09:05:20] shout-user87: http://www.rot13.com
[09:05:36] baweaver: shout-user87: try and make it in ruby
[09:05:44] apeiros: why can't I never remember the right args to tr for that one? :-S
[09:05:57] shout-user87: s..tr 'a-z', 'n-za-m'
[09:06:02] shout-user87: s.tr 'a-z', 'n-za-m'
[09:06:12] baweaver: ACTION claps
[09:06:36] apeiros: but that gives garbage for your first line
[09:06:47] apeiros: so I guess that wasn't rot13
[09:07:37] Deck`: has joined #ruby
[09:07:38] apeiros: (but it means I actually do remember the right args - was just thrown off-track by that first non-rot13 message)
[09:07:41] shout-user87: what first line?
[09:08:06] shout-user87: that was hamsterrollsoverkeyboard
[09:08:34] apeiros: hah! close.
[09:08:41] shout-user87: .tr 'a-z', 'n-za-m'
[09:08:54] shout-user87: guvf vf ebg13?
[09:10:32] Ox0dea: >> require 'digest/bubblebabble'; Digest.bubblebabble 'this one is better'
[09:10:33] ruby[bot]: Ox0dea: # => "xitak-mupul-femok-zyrek-homyk-nosed-bimek-hetel-gynul-dexyx" (https://eval.in/514287)
[09:10:55] PedramT: has joined #ruby
[09:11:45] mhoungbo_: has joined #ruby
[09:11:58] shout-user87: umm. i speak for everyone when i say, wat?
[09:12:20] chouhoulis: has joined #ruby
[09:12:23] baweaver: oh, you've met Ox0dea then
[09:12:41] LoneHerm_: has joined #ruby
[09:12:54] Ox0dea: This is me IRL: http://i.imgur.com/IppKJ.jpg
[09:14:13] sandstrom: has joined #ruby
[09:15:08] zacstewart: has joined #ruby
[09:15:29] skweek: has joined #ruby
[09:15:56] Deck-: has joined #ruby
[09:19:32] mondok: has joined #ruby
[09:20:40] karapetyan: has joined #ruby
[09:21:50] the_drow: has joined #ruby
[09:22:07] PedramT: has joined #ruby
[09:23:29] symm-: has joined #ruby
[09:24:41] karapetyan: has joined #ruby
[09:26:14] raja: has joined #ruby
[09:27:00] arashb: has joined #ruby
[09:27:09] raja: hi there
[09:27:36] raja: what's uo?
[09:27:45] raja: what's up?
[09:27:59] radar[air]: ultima online. Good game from about a decade ago.'
[09:28:41] Zggb: has joined #ruby
[09:30:46] apeiros: Radar[air] seems to be up (in the air)
[09:31:17] radar[air]: West of India according to the map.
[09:31:22] radar[air]: On our way from Dubai to Brisbane
[09:31:22] sandstrom: has joined #ruby
[09:31:31] Ox0dea: Did you enjoy Dubai?
[09:31:40] radar[air]: Dubai is as Dubai is.
[09:31:55] Ox0dea: Tautologies are tautological.
[09:31:59] radar[air]: I think it's an ostentatious orgy of wealth. Others have their own opinions.
[09:32:06] Ox0dea: Sounds about right.
[09:32:12] UtkarshRay: has joined #ruby
[09:32:50] MindfulMonk: has joined #ruby
[09:34:12] radar[air]: I only ever layover in Dubai. I don't want to ever go there for any other reason.
[09:36:27] sftrabbit: has joined #ruby
[09:37:41] pen: has joined #ruby
[09:38:19] selfadhesivefilm: has joined #ruby
[09:39:05] FernandoBasso: has joined #ruby
[09:39:20] Ox0dea: Okay, but one can't help but appreciate the feat of engineering that is the Palm Jumeirah.
[09:40:28] radar[air]: Or the Burj Khalifa.
[09:40:37] Deck-: has joined #ruby
[09:42:16] quaristice: has joined #ruby
[09:44:02] kbni: Ox0dea, isn't a lot of that sinking?
[09:44:47] harly: has joined #ruby
[09:46:46] Ox0dea: kbni: That seems to be the case.
[09:48:39] sandstrom: has joined #ruby
[09:49:40] ziyadb: has joined #ruby
[09:52:12] vikas027: has joined #ruby
[09:52:20] nerium: has joined #ruby
[09:52:49] Ox0dea: At-Taubah 109: Is he, then, who founded his building on the fear of Allah and His pleasure better, or he who has founded his building on the brink of a tottering, water-worn bank which tumbled down with him into the fire of Hell?
[09:53:07] renderful: has joined #ruby
[09:53:51] baweaver: ACTION scratches head
[09:54:51] askhat: has joined #ruby
[09:55:15] Ox0dea: Googling "persian gulf volcano" brings up a 1990 article in the Orlando Sentinel.
[09:55:39] dextertzu: has joined #ruby
[09:56:16] harly_: has joined #ruby
[09:56:23] Deck-: has joined #ruby
[09:58:08] Ox0dea: baweaver: I knew there was something in the Bible about building on sand and figured I'd check the Qur'an for a similar parable, and there it was.
[09:58:36] moeabdol2: has joined #ruby
[10:00:26] Ox0dea: Extremely OT, to be sure, but hardly a head-scratcher?
[10:05:11] Domaldel: has joined #ruby
[10:05:37] zeroDivisible: has joined #ruby
[10:05:56] sandstrom: has joined #ruby
[10:06:44] whippythellama: has joined #ruby
[10:07:52] duckpuppy: has joined #ruby
[10:09:02] rbennacer: has joined #ruby
[10:09:13] Mon_Ouie: has joined #ruby
[10:09:42] karapetyan: has joined #ruby
[10:10:03] william3: has joined #ruby
[10:10:31] DoubleMalt: has joined #ruby
[10:11:28] flughafen_: has joined #ruby
[10:13:00] n00bDev: has joined #ruby
[10:13:57] Deck-: has joined #ruby
[10:15:12] dionysus69: has joined #ruby
[10:15:44] zacstewart: has joined #ruby
[10:21:52] Timberwo|f: has joined #ruby
[10:22:03] chouhoulis: has joined #ruby
[10:22:06] vdamewood: has joined #ruby
[10:22:36] guardian: has joined #ruby
[10:22:52] darkf: has joined #ruby
[10:23:07] sandstrom: has joined #ruby
[10:23:34] raja: has joined #ruby
[10:24:51] neanderslob: has joined #ruby
[10:25:56] platzhirsch: has joined #ruby
[10:27:11] Deck-: has joined #ruby
[10:31:12] william3: has joined #ruby
[10:31:41] yoongkang: has joined #ruby
[10:33:02] nodejunkie: has joined #ruby
[10:33:34] Xeago: has joined #ruby
[10:39:03] selfadhesivefilm: has joined #ruby
[10:39:24] nerium: has joined #ruby
[10:40:40] sandstrom: has joined #ruby
[10:40:43] yoongkang: has joined #ruby
[10:49:45] jgt4: has joined #ruby
[10:52:29] the_drow: has joined #ruby
[10:52:53] RegulationD: has joined #ruby
[10:53:07] dextertzu: has joined #ruby
[10:54:19] askhat: has joined #ruby
[10:56:34] krizio: has joined #ruby
[10:57:54] sandstrom: has joined #ruby
[10:59:22] sftrabbit: has joined #ruby
[11:02:05] baweaver: has joined #ruby
[11:02:14] p1k: has joined #ruby
[11:02:34] howdoi: has joined #ruby
[11:02:52] p1k: I'm trying to accept an ssl connection with the openssl module but ruby hangs completely (does not respond to sigint)
[11:03:25] p1k: strace shows it's looping endlessly on the read instruction: read(7, 0x55e31457cd00, 11) = -1 ENOTCONN (Transport endpoint is not connected)
[11:04:13] coderMe: has joined #ruby
[11:06:23] p1k: it could be I've made a mistake somewhere in the ssl setup - but the process does not respond to sigint or sigterm
[11:08:46] platzhirsch: has joined #ruby
[11:10:58] FirePowi: has joined #ruby
[11:11:21] FirePowi: Hello, I???m installing ruby2.1 (for Diaspora*) and I have that error : "ERROR: While executing gem ... (Gem::CommandLineError)\n Please specify at least one gem name (e.g. gem build GEMNAME)"
[11:12:00] FirePowi: (while running makepkg, with the PKGBUILD of ruby2.1-bundler of https://aur.archlinux.org/packages/ruby2.1-bundler/)
[11:13:15] yoongkang: has joined #ruby
[11:13:16] Zai00: has joined #ruby
[11:13:20] radar[air]: FirePowi: I recommend installing Ruby with chruby+ruby-install. Please try that and let me know how it goes. It works fine on all my machines and my friends' machines.
[11:13:42] n00bDev: has joined #ruby
[11:14:12] dextertzu: has joined #ruby
[11:14:28] nerium: has joined #ruby
[11:14:44] devbug: has joined #ruby
[11:15:11] sandstrom: has joined #ruby
[11:15:38] platzhirsch: has joined #ruby
[11:15:45] Deck-: has joined #ruby
[11:17:04] zacstewart: has joined #ruby
[11:17:12] FirePowi: Radar[air], well. I install chruby (and ruby-install) and I infor you on the news ;)-
[11:17:38] FooMunki: has joined #ruby
[11:18:01] tildes: has joined #ruby
[11:20:05] FirePowi: So I just do "ruby-install ruby 2.1" and "ruby-install ruby-bundler 2.1" ?
[11:21:16] radar[air]: just ruby-install ruby 2.1
[11:21:22] FirePowi: Ok thanks :-)
[11:21:23] radar[air]: then switch into that Ruby using chruby.
[11:21:28] ruby[bot]: Ubuntu installation guide for Ruby + Rails: http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/
[11:21:39] radar[air]: I have an Ubuntu guide which'll have pretty much the same steps as Arch
[11:22:48] chouhoulis: has joined #ruby
[11:23:05] FirePowi: Well. I'm waiting for ruby-install to be done with ruby 2.1 ;-)
[11:28:03] binaryplease: has joined #ruby
[11:28:57] askhat: has joined #ruby
[11:29:01] lswart: has left #ruby: ("ERC (IRC client for Emacs 24.5.1)")
[11:29:06] arashb: has joined #ruby
[11:29:24] roshanavand: has joined #ruby
[11:30:25] stardiviner: has joined #ruby
[11:31:11] raja: has joined #ruby
[11:31:30] Deck-: has joined #ruby
[11:31:55] jbrhbr: has joined #ruby
[11:37:13] roshanavand: has joined #ruby
[11:40:41] arlek: has joined #ruby
[11:41:36] sftrabbit: has joined #ruby
[11:47:14] Deck-: has joined #ruby
[11:48:47] Ishido: has joined #ruby
[11:49:01] trinaldi: has joined #ruby
[11:49:22] askhat: has joined #ruby
[11:51:18] Infra-Red: has joined #ruby
[11:53:51] decoponio: has joined #ruby
[11:54:18] aryaching: has joined #ruby
[11:54:33] dextertzu: has joined #ruby
[11:54:44] askhat: has joined #ruby
[11:56:14] tubbo: has joined #ruby
[11:56:37] Infra-Red: has joined #ruby
[11:56:53] selfadhesivefilm: has joined #ruby
[11:58:43] william3: has joined #ruby
[12:02:25] bonhoeffer: has joined #ruby
[12:02:58] Deck-: has joined #ruby
[12:07:10] TomyLobo: for a tiny one-window application, which gui toolkit do you recommend?
[12:07:30] TomyLobo: i found shoes, but that seems to come with ruby rather than being a gem i can add on
[12:07:36] last_staff: has joined #ruby
[12:07:40] radar[air]: FirePowi: How did it go?
[12:07:48] shevy: TomyLobo ruby-gnome
[12:08:02] TomyLobo: sorry, forgot to mention: for windows
[12:08:14] TomyLobo: and windows only, pretty much
[12:08:36] TomyLobo: still ruby-gnome?
[12:08:38] duckpuppy: has joined #ruby
[12:08:44] crazydiamond: has joined #ruby
[12:09:22] shevy: since you need only one window, you can use ruby-gtk
[12:09:58] TomyLobo: hmm i hope that doesnt come with a ton of dependencies that dont compile :)
[12:10:10] TomyLobo: or a horrible interface like the original gtk
[12:10:13] shevy: it is an .exe
[12:10:24] TomyLobo: oh, might as well use shoes then
[12:10:44] shevy: an old link is here http://prdownloads.sourceforge.net/ruby-gnome2/ruby-gnome2-0.16.0-1-i386-mswin32.exe?download
[12:11:02] shevy: I think it will still work but I have not tested it in a while.
[12:11:07] shevy: I think ruby-gnome includes ruby-gtk
[12:11:12] shevy: but you probably don't need the more gnome specific things
[12:11:28] raja: has joined #ruby
[12:12:16] askhat: has joined #ruby
[12:12:23] beast: has joined #ruby
[12:13:11] dlitvak: has joined #ruby
[12:13:22] mostlybadfly: has joined #ruby
[12:13:40] TomyLobo: ideally i wouldnt want anything to do with gnome at all :)
[12:14:15] shevy: you do know that you will write ruby code?
[12:14:30] n00bDev: has joined #ruby
[12:14:56] tknz: has joined #ruby
[12:15:42] TomyLobo: yeah. what does ruby have to do with gnome?
[12:16:28] shevy: what does any toolkit have to do with ruby?
[12:17:45] TomyLobo: well not much. the thing is, the stuff i want to do on the backend will be easy for me to do in ruby. but i dont want to spend days figuring out how to compile gtk and initialize a window
[12:17:52] Infra-Red: has joined #ruby
[12:17:53] shevy: https://rubygems.org/gems/gtk2 lists a few windows specific gems
[12:18:10] shevy: install it
[12:18:14] shevy: run hello world
[12:18:15] shevy: end of story
[12:18:37] shevy: https://rubygems.org/downloads/gtk2-3.0.7-x64-mingw32.gem
[12:18:47] Deck-: has joined #ruby
[12:18:55] shevy: I do not understand why you write "how to compile"
[12:20:09] shevy: there are a few different versions for shoes
[12:20:11] shevy: https://rubygems.org/search?utf8=%E2%9C%93&query=shoes
[12:20:20] shevy: "Green Shoes is one of colorful Shoes, written in pure Ruby with Ruby/GTK2."
[12:20:34] shevy: that one is the closest to the original one from _why - then there is one java/jruby variant
[12:20:52] Infra-Red: has joined #ruby
[12:21:21] shevy: which is probably https://github.com/shoes/shoes4
[12:22:09] shevy: hmm that one has a code of conduct :D
[12:22:48] shevy: and no screenshots :(
[12:23:00] TomyLobo: yeah i just found out there's also a shoes gem. for some reason i didnt find that before
[12:23:02] rickmasta: has joined #ruby
[12:23:03] TomyLobo: i'm using that
[12:23:31] chouhoulis: has joined #ruby
[12:23:41] shevy: ah https://pragtob.files.wordpress.com/2012/07/shoes_presentation.pdf has a few older screenshots
[12:24:15] shevy: I think the shoes gem is a placeholder
[12:24:18] shevy: like a stub
[12:24:27] shevy: or perhaps that was a few years ago
[12:24:46] shevy: the shoes API is quite nice
[12:24:57] shevy: Shoes.app do # imagine new line here, then button "Click me!" do
[12:26:02] shevy: if you use classical GUIs like qt/kde or gtk/gnome and the bindings to it in ruby, you end up having to do more manual stuff, such as .signal_connect or connecting slots (in qt) which is a bit weird
[12:26:16] shevy: in shoes it is: keypress do |key|
[12:27:28] shevy: guess I was wrong for shoes4 https://github.com/shoes/shoes4/wiki - while they require jruby, their spec is agnostic, or at the least they state so ... " we want there to be multiple backends for shoes -- maybe Qt, maybe GTK"
[12:28:27] TomyLobo: hmmm, i think i'll just go with a console script and rerun
[12:29:07] TomyLobo: and yes, the shoes api looks nice
[12:34:14] djbkd: has joined #ruby
[12:34:28] Deck-: has joined #ruby
[12:35:02] dlitvak: has joined #ruby
[12:38:11] shevy: Ox0dea looookie https://bugs.ruby-lang.org/issues/12056
[12:41:52] yoongkang: has joined #ruby
[12:42:14] sergey_makagon: has joined #ruby
[12:44:39] mdw: has joined #ruby
[12:45:40] dlitvak: has joined #ruby
[12:46:37] binaryplease: has joined #ruby
[12:47:51] shevy: quite interesting how code evolves: https://github.com/ruby/ruby/compare/trunk...nobu:feature/12043-NoMethodError%23private_call-p
[12:54:32] hypocotyl: has joined #ruby
[12:55:31] FirePowi: Radar[air], heh. Wait :D
[12:55:55] johnmilton: has joined #ruby
[12:57:43] selfadhesivefilm: has joined #ruby
[12:58:47] gheegh: has joined #ruby
[12:59:45] bonhoeffer: has joined #ruby
[13:04:00] baweaver: has joined #ruby
[13:04:14] yark: has joined #ruby
[13:04:56] DonOtreply: has joined #ruby
[13:09:09] mlehrer: has joined #ruby
[13:09:29] mlehrer_: has joined #ruby
[13:09:35] william3: has joined #ruby
[13:10:43] Domaldel: has joined #ruby
[13:11:27] askhat: has joined #ruby
[13:12:51] ElFerna: has joined #ruby
[13:14:19] fahrradflucht: has joined #ruby
[13:14:37] despai: has joined #ruby
[13:15:13] n00bDev: has joined #ruby
[13:17:54] p0wn3d: has joined #ruby
[13:18:23] zacstewart: has joined #ruby
[13:18:24] karapetyan: has joined #ruby
[13:18:29] binaryplease: has joined #ruby
[13:20:02] Infra-Red: has joined #ruby
[13:20:07] dlitvak: has joined #ruby
[13:23:16] ferr: has joined #ruby
[13:25:06] rodfersou: has joined #ruby
[13:25:35] chouhoulis: has joined #ruby
[13:26:59] william3: has joined #ruby
[13:29:18] coderMe_: has joined #ruby
[13:31:15] arashb: has joined #ruby
[13:31:21] mgrok: has joined #ruby
[13:31:44] futilegames: has joined #ruby
[13:33:50] FernandoBasso: has joined #ruby
[13:33:52] raja: has joined #ruby
[13:37:30] sandstrom: has joined #ruby
[13:37:45] Scripore: has joined #ruby
[13:38:47] nicoulaj: has joined #ruby
[13:39:53] codecop: has joined #ruby
[13:42:44] dlitvak_: has joined #ruby
[13:47:05] william3: has joined #ruby
[13:47:56] Deck-: has joined #ruby
[13:48:23] tildes: has joined #ruby
[13:50:32] sftrabbit: has joined #ruby
[13:53:18] s2013: has joined #ruby
[13:54:52] poguez_: has joined #ruby
[13:55:41] bonhoeffer: has joined #ruby
[13:56:10] Azulinho: has joined #ruby
[13:56:29] sergey_makagon: has joined #ruby
[13:58:34] selfadhesivefilm: has joined #ruby
[13:59:23] bonhoeffer: has joined #ruby
[14:01:36] einarj: has joined #ruby
[14:03:14] bonhoeffer: has joined #ruby
[14:03:42] Deck-: has joined #ruby
[14:05:00] skade: has joined #ruby
[14:05:20] sftrabbit: has joined #ruby
[14:06:53] PedramT: has joined #ruby
[14:07:26] tvw: has joined #ruby
[14:09:15] sandstrom: has joined #ruby
[14:09:23] duckpuppy: has joined #ruby
[14:09:43] stardiviner: has joined #ruby
[14:10:30] rbennacer: has joined #ruby
[14:11:12] askhat_: has joined #ruby
[14:11:44] moeabdol3: has joined #ruby
[14:12:03] mhoungbo_: has joined #ruby
[14:15:46] peeja: has joined #ruby
[14:16:02] n00bDev: has joined #ruby
[14:18:16] jgt4: has joined #ruby
[14:19:23] mdw: has joined #ruby
[14:19:25] Deck-: has joined #ruby
[14:20:02] zacstewart: has joined #ruby
[14:20:24] william3: has joined #ruby
[14:24:37] mdw7: has joined #ruby
[14:26:19] chouhoulis: has joined #ruby
[14:26:28] sandstrom: has joined #ruby
[14:27:06] PedramT: has joined #ruby
[14:27:08] adgtl: has joined #ruby
[14:28:28] adgtl: has joined #ruby
[14:28:35] the_drow: Hi guys, I recently deployed the Oj JSON parser to production which loads floating point numbers to BigDecimals by default. When I insert the hashes parsed by Oj to MongoDB I get an exception that says that BSON can't serialize BigDecimals. I can configure Oj to convert floating point numbers to float but I'm guessing that there's a performance penalty. Is there a better way to do this?
[14:29:26] raja: has joined #ruby
[14:31:38] coderMe: has joined #ruby
[14:32:36] dlitvak: has joined #ruby
[14:35:03] william3: has joined #ruby
[14:35:10] Deck-: has joined #ruby
[14:35:53] araujo: has joined #ruby
[14:37:24] krzkrz: has joined #ruby
[14:38:02] araujo: has joined #ruby
[14:38:06] sftrabbit: has joined #ruby
[14:38:48] rbennacer: has joined #ruby
[14:38:58] dfinninger: has joined #ruby
[14:39:23] RegulationD: has joined #ruby
[14:39:24] tAn: has joined #ruby
[14:39:33] william3: has joined #ruby
[14:40:02] sergey_makagon: has joined #ruby
[14:40:46] FirePowi: Radar[air], well. I installed chruby. But I only have chruby-exec available. And it doesn't work, asking for chruby???
[14:41:10] solocshaw: has joined #ruby
[14:43:43] coderMe: has joined #ruby
[14:43:43] sandstrom: has joined #ruby
[14:44:11] sftrabbit: has joined #ruby
[14:50:37] sdothum: has joined #ruby
[14:50:59] Deck-: has joined #ruby
[14:51:06] Jonah11_: has joined #ruby
[14:54:44] sgambino: has joined #ruby
[14:56:45] dlitvak: has joined #ruby
[14:59:22] selfadhesivefilm: has joined #ruby
[15:00:07] yoongkang: has joined #ruby
[15:04:59] baweaver: has joined #ruby
[15:06:06] arthropododo: has joined #ruby
[15:06:09] ysz: has joined #ruby
[15:06:38] Deck-: has joined #ruby
[15:09:09] ysz: I'm looking for binary installer for 2.3.0 for Windows :) latests I see on rubyinstaller is 2.2.4
[15:09:28] ysz: I need "official" one
[15:10:33] askhat: has joined #ruby
[15:11:37] karapetyan: has joined #ruby
[15:14:14] pushcx: ysz: There is no official binary for Windows, but Ruby Installer is recommended: http://rubyinstaller.org/downloads/
[15:14:36] pushcx: They don't yet have a 2.3 installer because the volunteer who maintains it was in a car accident: https://github.com/oneclick/rubyinstaller/issues/300
[15:15:19] selfadhesivefilm: has joined #ruby
[15:16:52] ysz: pushcx, oh dear hope he's okay
[15:18:01] n00bDev: has joined #ruby
[15:18:03] ysz: what are the major thins of 2.3? that fancy bytecode cache?
[15:18:12] ysz: I'm more concerned about VM
[15:22:22] moeabdol4: has joined #ruby
[15:22:23] Deck-: has joined #ruby
[15:24:04] shevy: what is the problem with windows + ruby?
[15:24:11] shevy: the build environment?
[15:24:15] shevy: I mean for a new 2.3
[15:24:44] davedev24: has joined #ruby
[15:25:15] ysz: shevy, nah, I hoped to get binary installer for stable and that's it
[15:25:32] shevy: yeah but you could compile one :)
[15:26:06] ysz: and theen i have to get build environment etc :-P
[15:26:41] shevy: this must be simpler
[15:26:43] dexter-tzu: has joined #ruby
[15:26:48] ysz: but anyways, I got myself 2.2.4 installer, and then rake-compiler already.. what's next.. devkit thing whatever that means... i think i could just rake compile 2.3 then :)
[15:26:54] shevy: I mean when you have ruby 2.2.4 available already
[15:26:58] shevy: all ruby scripts can work
[15:27:04] chouhoulis: has joined #ruby
[15:27:06] FernandoBasso: has joined #ruby
[15:27:11] ysz: I'm working on native extensions
[15:28:07] dlitvak_: has joined #ruby
[15:32:29] JohnBat26: has joined #ruby
[15:32:40] diffinity: has joined #ruby
[15:33:21] arashb: has joined #ruby
[15:34:16] themsay: has joined #ruby
[15:38:12] Deck-: has joined #ruby
[15:38:52] Scripore: has joined #ruby
[15:44:11] moeabdol: has joined #ruby
[15:46:21] despai: has joined #ruby
[15:47:26] lurch_: has joined #ruby
[15:49:54] Azulinho: has joined #ruby
[15:50:45] IrishGringo: has joined #ruby
[15:52:53] Deck-: has joined #ruby
[15:53:19] ESpiney: has joined #ruby
[15:53:42] Infra-Red: has joined #ruby
[15:55:18] dmr8: has joined #ruby
[15:55:47] infernix: has joined #ruby
[15:58:23] Zai00: has joined #ruby
[16:00:53] sftrabbit: has joined #ruby
[16:02:49] mdw: has joined #ruby
[16:03:39] arooni-mobile: has joined #ruby
[16:04:00] dlitvak: has joined #ruby
[16:04:44] flughafen_: has joined #ruby
[16:06:44] dlitvak_: has joined #ruby
[16:07:38] futilegames: has joined #ruby
[16:08:58] askhat: has joined #ruby
[16:10:08] duckpuppy: has joined #ruby
[16:10:44] IrishGringo_: has joined #ruby
[16:10:55] Infra-Red: has joined #ruby
[16:12:55] futilegames: has joined #ruby
[16:13:36] karapetyan: has joined #ruby
[16:15:46] futilegames: has joined #ruby
[16:17:36] BaroMeter: has joined #ruby
[16:18:09] tiagobarreto: has joined #ruby
[16:18:47] n00bDev: has joined #ruby
[16:18:56] Edulix: has joined #ruby
[16:19:58] mhoungbo_: has joined #ruby
[16:20:37] despai: has joined #ruby
[16:21:24] zacstewart: has joined #ruby
[16:24:38] solars: has joined #ruby
[16:26:02] mdw: has joined #ruby
[16:27:48] chouhoulis: has joined #ruby
[16:33:11] mhoungbo_: has joined #ruby
[16:35:17] PedramT: has joined #ruby
[16:37:21] sepp2k: has joined #ruby
[16:37:37] redasus: has joined #ruby
[16:38:32] redasus: has joined #ruby
[16:40:57] Abrin: has joined #ruby
[16:46:17] mdw: has joined #ruby
[16:46:36] DmitryBochkarev: has joined #ruby
[16:49:38] platzhirsch: has joined #ruby
[16:49:58] william3: has joined #ruby
[16:50:26] PedramT: has joined #ruby
[16:50:38] william3: has joined #ruby
[16:51:24] Macaveli: has joined #ruby
[16:53:47] dcunit3d: has joined #ruby
[16:56:02] mhoungbo_: has joined #ruby
[16:56:07] Ilyes512: has joined #ruby
[16:56:17] IrishGringo: has joined #ruby
[16:56:42] despai: has joined #ruby
[16:58:23] mhoungbo_: has joined #ruby
[16:58:32] lurch_: has joined #ruby
[16:58:50] dlitvak__: has joined #ruby
[16:58:57] nofacade: has joined #ruby
[16:59:02] fedexo: has joined #ruby
[16:59:13] selfadhesivefilm: has joined #ruby
[17:00:04] Limix: has joined #ruby
[17:00:21] PlasmaStar: has joined #ruby
[17:01:29] IrishGringo_: has joined #ruby
[17:01:56] lipoqil: I am trying do deploy with capistrano, but it's failing because fetch(:git_environmental_variables) returns nil, did you experience that?
[17:02:09] lipoqil: And??? did you fixed it somehow? :)
[17:02:48] karapetyan: has joined #ruby
[17:02:51] lipoqil: capistrano-3.4.0
[17:03:59] shevy: anyone of you has an idea how to simulate the "wget --spider" functionality in pure ruby? the wget --spider can be used to probe whether a remote URL would exist; I use this before automatically downloading programs in a set of scripts
[17:07:15] intrigueD: has joined #ruby
[17:07:15] selfadhesivefilm: has joined #ruby
[17:09:09] DubiousSquash: has joined #ruby
[17:09:52] DubiousSquash: has joined #ruby
[17:09:56] al2o3-cr: has joined #ruby
[17:10:58] kirun: has joined #ruby
[17:12:33] platzhirsch: has joined #ruby
[17:12:38] platzhirsch: has left #ruby: ()
[17:12:39] johnmilton: has joined #ruby
[17:13:25] astrobunny: has joined #ruby
[17:15:05] sankaber: has joined #ruby
[17:15:10] bluOxigen: has joined #ruby
[17:15:21] bluOxigen: has left #ruby: ()
[17:15:32] selfadhesivefilm: has joined #ruby
[17:15:48] sftrabbit: has joined #ruby
[17:15:58] symm-: has joined #ruby
[17:16:16] dlitvak: has joined #ruby
[17:16:51] Jonah11_: has joined #ruby
[17:18:40] Infra-Red: has joined #ruby
[17:18:40] zapata: has joined #ruby
[17:19:32] n00bDev: has joined #ruby
[17:19:37] despai: has joined #ruby
[17:20:12] lipoqil: Hmm, it looks like Sinatra does that evul
[17:22:57] apeiros: bot and website will be down for a bit. updating the server.
[17:23:03] diegoviola: has joined #ruby
[17:23:37] fuzzy: has joined #ruby
[17:25:41] pen: has joined #ruby
[17:26:48] SenpaiSilver: has joined #ruby
[17:27:59] ta: has joined #ruby
[17:28:35] chouhoulis: has joined #ruby
[17:29:08] apeiros: eh, actually that might happen some time later. didn't think dinner would be ready this early :D sorry.
[17:29:38] Ilyes512: has joined #ruby
[17:32:14] selfadhesivefilm: has joined #ruby
[17:32:39] ruby-lang087: has joined #ruby
[17:32:52] pwnd_nsfw: has joined #ruby
[17:33:25] ruby-lang087: Hi there, anyone here who has had experience running rbenv with gentoo/emerge?
[17:33:38] bonhoeffer: has joined #ruby
[17:34:35] karapetyan: has joined #ruby
[17:35:28] arashb: has joined #ruby
[17:36:43] mhoungbo_: has joined #ruby
[17:38:03] banister: has joined #ruby
[17:39:14] al2o3-cr: has joined #ruby
[17:40:12] intrigueD: has joined #ruby
[17:40:52] duckpuppy: has joined #ruby
[17:41:51] dmr8: has joined #ruby
[17:42:04] dfockler: has joined #ruby
[17:42:21] davedev24: has joined #ruby
[17:43:34] x77686d: has joined #ruby
[17:45:03] dlitvak: has joined #ruby
[17:45:41] peeja: has joined #ruby
[17:46:07] william3: has joined #ruby
[17:50:52] mondok: has joined #ruby
[17:51:45] einarj: has joined #ruby
[17:52:45] darkxploit: has joined #ruby
[17:53:05] ElFerna: has joined #ruby
[17:53:38] Kszegosz: has joined #ruby
[17:54:01] ysz: has joined #ruby
[17:54:22] Kszegosz: Hi guys. Could you help a ruby-beginner?
[17:55:15] davedev24: has joined #ruby
[17:55:25] ruby[bot]: Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
[17:55:36] DynamicMetaFlow: has joined #ruby
[17:55:40] davedev24: has joined #ruby
[18:00:05] Kszegosz: So, I'm writing to-do list program. Method delete_item doesn't work, it simply do nothing. That my code http://pastebin.com/cLcmkMsh
[18:00:07] ruby[bot]: Kszegosz: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/49671bfbcab7b7be9fb4
[18:00:07] ruby[bot]: Kszegosz: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[18:01:24] n00bDev: has joined #ruby
[18:03:17] dmmr: has joined #ruby
[18:05:00] the_drow: has joined #ruby
[18:05:01] Ox0dea: Kszegosz: https://eval.in/514427
[18:05:42] zast: has joined #ruby
[18:06:11] Ox0dea: Kszegosz: If you want #delete_item to be easier to use, you probably want to use #delete with a block to find the Item that matches the description.
[18:06:23] baweaver: has joined #ruby
[18:06:43] intrigueD: I reckon the item he is passing to delete_item has a different object_id, it looks the same (same description etc)
[18:06:50] intrigueD: We'd need to see the context of use
[18:07:56] Infra-Red: has joined #ruby
[18:08:00] Ox0dea: I suspect he wanted to be able to say `add_item(:foo)` and `delete_item(:foo)`.
[18:09:08] Infra-Red: has joined #ruby
[18:09:23] edwardly: has joined #ruby
[18:09:23] edwardly: has joined #ruby
[18:10:12] zacstewart: has joined #ruby
[18:12:11] Kszegosz: There is no more context. RIght now it's all. I want to delete items by the name of their instances.
[18:12:26] dima_: has joined #ruby
[18:12:34] Ox0dea: Kszegosz: They don't have names.
[18:15:28] camillo: has joined #ruby
[18:18:05] Infra-Red: has joined #ruby
[18:18:26] shlomo: has joined #ruby
[18:18:59] Infra-Red: has joined #ruby
[18:20:56] Domaldel: has joined #ruby
[18:21:31] mhoungbo_: has joined #ruby
[18:23:10] shevy: Kszegosz you need to find out the right item to delete
[18:23:56] dfinninger: has joined #ruby
[18:26:01] RegulationD: has joined #ruby
[18:26:09] dcunit3d: has joined #ruby
[18:26:11] arlek: has joined #ruby
[18:26:25] LoneHerm_: has joined #ruby
[18:27:12] ESpiney: has joined #ruby
[18:27:36] devbug: has joined #ruby
[18:27:46] Kszegosz: I think I know what you mean. I was trying to delete an item, by name of variable that contains it, which doesn't make sense :)
[18:28:08] zacstewart: has joined #ruby
[18:28:49] shevy: yeah .delete is very simple x = [1,2,3]; x.delete 3 # => [1, 2]
[18:29:15] shevy: just in your case it'll be slightly more complicated since you have special objects stored in @items
[18:29:17] chouhoulis: has joined #ruby
[18:29:26] ta: has joined #ruby
[18:29:41] Infra-Red: has joined #ruby
[18:29:41] bonhoeffer: has joined #ruby
[18:30:05] Ox0dea: >> a = [1,1,1]; a.delete 1; a # Oops?
[18:30:11] ruby[bot]: Ox0dea: # => [] (https://eval.in/514441)
[18:30:37] amclain: has joined #ruby
[18:31:30] selfadhesivefilm: has joined #ruby
[18:32:04] bonhoeffer: has joined #ruby
[18:33:15] Kszegosz: Thanks for your help :).
[18:34:58] ysz: has joined #ruby
[18:35:02] davedev24: has joined #ruby
[18:35:36] radar[air]: FirePowi: Apologies. I went to sleep :)
[18:35:43] radar[air]: FirePowi: I hope you got it working now.
[18:37:38] PedramT: has joined #ruby
[18:38:41] FirePowi: Radar[air], haha. In fact, I gave up :D
[18:40:01] s00pcan: has joined #ruby
[18:40:25] radar[air]: FirePowi: oh! :(
[18:42:39] jbrhbr: has joined #ruby
[18:42:40] Blaguvest: has joined #ruby
[18:43:21] tjohnson: has joined #ruby
[18:43:33] Jonah11_: has joined #ruby
[18:43:59] dc1: has joined #ruby
[18:45:00] s00pcan: has joined #ruby
[18:46:00] ferr: has joined #ruby
[18:46:28] futilegames: has joined #ruby
[18:46:33] roshanavand: has joined #ruby
[18:47:33] shadoi: has joined #ruby
[18:47:47] william3: has joined #ruby
[18:47:50] davedev24: has joined #ruby
[18:48:34] mdw: has joined #ruby
[18:49:30] jbrhbr1: has joined #ruby
[18:50:06] nofxx: has joined #ruby
[18:50:06] nofxx: has joined #ruby
[18:50:15] terminalrecluse: has joined #ruby
[18:51:17] dramagods: has joined #ruby
[18:51:18] roshanav_: has joined #ruby
[18:52:23] dmolina: has joined #ruby
[18:53:22] dmolina: has joined #ruby
[18:55:44] nfk: has joined #ruby
[18:58:12] d0t: has joined #ruby
[18:58:49] shout-user87: do you have a ruby qestion?
[18:59:17] dmr8: has joined #ruby
[19:01:06] DoubleMalt: has joined #ruby
[19:02:36] yoongkang: has joined #ruby
[19:03:03] IrishGringo: has joined #ruby
[19:05:12] kies^: has joined #ruby
[19:06:20] zacstewart: has joined #ruby
[19:11:20] tildes: has joined #ruby
[19:13:30] rbennacer: has joined #ruby
[19:14:02] shevy: I consider the method called .strip quite naughty, especially if you get impatient and use .strip!
[19:15:54] al2o3-cr: has joined #ruby
[19:17:16] Ox0dea: $ unzip; strip; touch; grep; finger; mount; fsck; more; yes; umount; sleep
[19:17:19] shadoi: has joined #ruby
[19:17:22] code2Learn: has joined #ruby
[19:18:03] dlitvak_: has joined #ruby
[19:19:44] patchedmonkey: has joined #ruby
[19:21:06] TomPeed: has joined #ruby
[19:21:24] ruby[bot]: has joined #ruby
[19:21:24] ChanServ: +o ruby[bot]
[19:23:08] mdw: has joined #ruby
[19:23:50] LoneHerm_: has joined #ruby
[19:24:35] Coraline: Ox0dea: do you really think that that's appropriate?
[19:24:42] ur5us: has joined #ruby
[19:24:44] dfinninger: has joined #ruby
[19:25:08] Ox0dea: It's either funny or something to be easily shrugged off.
[19:26:10] avenj: I thought it was just a brief shell tutorial, what are you implying?
[19:27:28] Ox0dea: avenj: Under that interpretation, please pretend I used `&&` instead of `;`; it's not the kind of pipeline you'd want to keep going on if one of the previous steps failed. :P
[19:28:11] Deck-: has joined #ruby
[19:28:24] SenpaiSilver: has joined #ruby
[19:28:25] karapetyan: has joined #ruby
[19:30:04] chouhoulis: has joined #ruby
[19:30:12] despai: has joined #ruby
[19:31:02] Papierkorb: Ox0dea: Please wait till tomorrow, my shipment of popcorn should have arrived by then
[19:31:14] Ox0dea: Papierkorb: The popcorn is a lie.
[19:35:05] A124: has joined #ruby
[19:37:40] arashb: has joined #ruby
[19:37:49] marr: has joined #ruby
[19:38:46] kirillzh: has joined #ruby
[19:39:09] shevy: The lie is a cake!
[19:39:12] zacstewa_: has joined #ruby
[19:40:48] Ox0dea: Coraline: What names would you give to the "characters" in that sequence of shell commands? And could you say which "actor" you believe is "speaking" at each step?
[19:41:06] Coraline: Ox0dea: I'm not playing this game with you. Just stop now.
[19:41:32] Ox0dea: Well, you're no fun.
[19:41:39] duckpuppy: has joined #ruby
[19:41:41] elifoster: has joined #ruby
[19:41:57] ruby-lang970: has joined #ruby
[19:42:59] Mon_Ouie: has joined #ruby
[19:43:07] rbennacer: has joined #ruby
[19:44:12] zacstewart: has joined #ruby
[19:46:12] symbol: has joined #ruby
[19:46:27] aswen: has joined #ruby
[19:46:29] mdw: has joined #ruby
[19:46:46] diegoviola: Coraline: grow a thick skin please
[19:47:10] Coraline: Pretty sure my implication to drop it was clear.
[19:48:08] mhoungbo_: has joined #ruby
[19:48:33] houhoulis: has joined #ruby
[19:48:44] apeiros: diegoviola: don't.
[19:49:22] william3: has joined #ruby
[19:49:43] Jonah11_: has joined #ruby
[19:50:22] dlitvak: has joined #ruby
[19:51:17] diegoviola: how do I enable colorized output with minitest tests?
[19:51:23] diegoviola: like how rspec does it
[19:52:32] Azulinho: has joined #ruby
[19:53:45] Ebok: has joined #ruby
[19:53:52] code2Learn: has joined #ruby
[19:54:21] Ox0dea: diegoviola: require 'minitest/pride' :)
[19:54:47] Jardayn: has joined #ruby
[19:55:12] intrigueD: has joined #ruby
[19:55:12] intrigueD: has joined #ruby
[19:55:17] davedev24: has joined #ruby
[19:55:39] Ox0dea: diegoviola: You'll probably find that that's not quite what you had in mind, in which case you might try minitest-rg.
[19:58:20] LoneHerm_: has joined #ruby
[19:59:22] william3: has joined #ruby
[20:01:37] PedramT: has joined #ruby
[20:09:13] cpup: has joined #ruby
[20:09:41] bb010g: has joined #ruby
[20:10:31] freezevee: has joined #ruby
[20:10:32] freezevee: can anyone help please http://stackoverflow.com/questions/35221886/export-foreman-workers-from-rails-app-to-upstart ?
[20:10:53] doublemalt_: has joined #ruby
[20:11:07] adaedra: ?crosspost
[20:11:07] ruby[bot]: Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
[20:11:10] shadoi: has joined #ruby
[20:11:16] BTRE: has joined #ruby
[20:11:35] apeiros: adaedra: I actually wondered whether pasting an SO link qualifies as telling that it's a crosspost
[20:11:58] adaedra: Posting it in both #ruby and #RoR qualifies at it imo.
[20:12:17] Aviio: has joined #ruby
[20:12:22] apeiros: probably I just grew to expect that to happen. I guess you're right :)
[20:12:26] adaedra: Because the problem of getting updates on how it evolves in other channels still holds true.
[20:14:17] Jonah11_: has joined #ruby
[20:14:59] PedramT: has joined #ruby
[20:15:03] mhoungbo_: has joined #ruby
[20:15:06] FooMunki: has joined #ruby
[20:16:40] freezevee: I apologise
[20:17:55] Cohedrin: has joined #ruby
[20:18:06] nodejunkie: has joined #ruby
[20:18:09] yoongkang: has joined #ruby
[20:19:47] sdothum: has joined #ruby
[20:21:13] shredding: has joined #ruby
[20:21:18] johnzorn: has joined #ruby
[20:23:01] zacstewart: has joined #ruby
[20:24:48] yoongkang: has joined #ruby
[20:24:52] volongato: has joined #ruby
[20:26:13] A124: has joined #ruby
[20:26:39] selfadhesivefilm: has joined #ruby
[20:27:21] CoderPuppy: has joined #ruby
[20:27:22] dling: has joined #ruby
[20:27:33] johnmilton: has joined #ruby
[20:27:57] Infra-Red: has joined #ruby
[20:29:19] Pathfinder: has joined #ruby
[20:30:42] sankaber: has joined #ruby
[20:30:50] chouhoulis: has joined #ruby
[20:31:32] jackjackdripper: has joined #ruby
[20:32:12] al2o3-cr: has joined #ruby
[20:32:22] PedramT: has joined #ruby
[20:33:30] ElFerna: has joined #ruby
[20:33:40] baweaver: has joined #ruby
[20:35:47] dramagods: has joined #ruby
[20:38:04] shevy: hmm I see this: .gsub(/%d6/ but I forgot what that means
[20:38:17] shevy: or does it have no special meaning?
[20:39:16] dfinninger: has joined #ruby
[20:40:35] Aviio: shevy: the /%d6/?
[20:40:49] unreal_: has joined #ruby
[20:41:04] shevy: I can't remember what I did there and I also did not document it :(
[20:41:49] Aviio: ive never come across it, is it literally looking for the string %d6 ? lol
[20:41:54] Ox0dea: Looks unintentional. :P
[20:42:18] Aviio: take a look at the unit tests around your code, they should tell you what its doing ;)
[20:43:18] ta: has joined #ruby
[20:43:48] ng_linux: has joined #ruby
[20:43:55] shevy: I need a three pair programming
[20:44:02] shevy: I code - someone else writes the documentation and the third person tests
[20:44:06] rmrrn: has joined #ruby
[20:44:06] rmrrn: has joined #ruby
[20:44:14] bronson: has joined #ruby
[20:44:29] Ox0dea: You sound like management material.
[20:44:37] sepp2k: has joined #ruby
[20:44:39] Aviio: Ox0dea: hahah
[20:45:00] shevy: hey! I still would write code!!!
[20:47:38] domgetter: has joined #ruby
[20:48:45] dfinning_: has joined #ruby
[20:50:02] Blaze_Boy: has joined #ruby
[20:52:32] DubiousSquash: has joined #ruby
[20:54:43] dling: has joined #ruby
[20:56:44] rmrrn: has joined #ruby
[20:56:44] rmrrn: has joined #ruby
[20:58:10] zarubin: has joined #ruby
[20:58:22] last_staff1: has joined #ruby
[20:59:23] nerium: has joined #ruby
[21:01:32] shout-user87: has joined #ruby
[21:01:54] darkxploit: has joined #ruby
[21:02:55] triangles2: has joined #ruby
[21:04:30] havenwood: has joined #ruby
[21:04:52] Ilyes512: has joined #ruby
[21:05:47] sts_: has joined #ruby
[21:05:55] bluntman: has joined #ruby
[21:06:09] DoubleMalt: has joined #ruby
[21:06:13] benlieb: has joined #ruby
[21:06:29] IanMalcolm: has joined #ruby
[21:06:33] zacstewart: has joined #ruby
[21:06:57] j2k: has joined #ruby
[21:08:08] gregf___: has joined #ruby
[21:10:00] devbug: has joined #ruby
[21:10:38] Frenk: has joined #ruby
[21:10:54] heftig: has joined #ruby
[21:10:58] Lightsword: has joined #ruby
[21:11:05] ndrst: has joined #ruby
[21:11:15] sorah: has joined #ruby
[21:12:41] Frenk: has left #ruby: ()
[21:13:59] dling`: has joined #ruby
[21:14:00] Hobbyboy: has joined #ruby
[21:16:08] Hobbyboy: has joined #ruby
[21:16:30] dlitvak: has joined #ruby
[21:17:56] jbrhbr: has joined #ruby
[21:18:47] robbyoconnor: has joined #ruby
[21:18:51] william3: has joined #ruby
[21:20:53] snapcase: has joined #ruby
[21:21:30] Spami: has joined #ruby
[21:22:45] lucasamorim: has joined #ruby
[21:24:05] Nanuq: has joined #ruby
[21:24:30] themsay2: has joined #ruby
[21:25:22] c355E3B: anyone know what algo ruby uses for `rand`?
[21:27:04] apeiros: c355e3b: mersenne twister
[21:27:24] RegulationD: has joined #ruby
[21:27:26] apeiros: why'd that be relevant, though?
[21:27:39] apeiros: it may change from any release to another
[21:27:48] davedev24: has joined #ruby
[21:28:22] SCHAAP137: has joined #ruby
[21:29:55] themsay: has joined #ruby
[21:31:31] chouhoulis: has joined #ruby
[21:31:32] mondok: has joined #ruby
[21:31:55] c355E3B: helping someone debug monte carlo simulations they wrote in ruby
[21:33:24] dtordable: has joined #ruby
[21:34:06] Ox0dea: c355e3b: So your question was really just whether Ruby uses a uniformly distributed PRNG?
[21:39:36] pawnbox: has joined #ruby
[21:39:47] arashb: has joined #ruby
[21:40:21] Aviio: am I going crazy?
[21:40:23] Aviio: if config_hash['randomized'] == 'true'
[21:40:33] Aviio: and the value in 'randomized' = 'true'
[21:40:39] aswen: has joined #ruby
[21:40:39] Aviio: but it doesnt evaluate as so?
[21:40:39] dlitvak: has joined #ruby
[21:41:10] Coraline: Aviio: code please
[21:41:20] zacstewart: has joined #ruby
[21:41:57] pdoherty: has joined #ruby
[21:42:25] shevy: the above code should work
[21:42:31] duckpuppy: has joined #ruby
[21:43:09] yoongkang: has joined #ruby
[21:43:35] Aviio: simplexml does it as an array
[21:45:56] Aviio: ugh that's silly
[21:46:53] shevy: welcome to XML!
[21:49:10] moei: has joined #ruby
[21:50:45] rmrrn: has joined #ruby
[21:50:45] rmrrn: has joined #ruby
[21:52:09] yfeldblum: has joined #ruby
[21:52:42] sandstrom: has joined #ruby
[21:54:10] robbyoconnor: has joined #ruby
[21:54:43] stevemackinnon: has joined #ruby
[21:55:34] yorickpeterse: welcome to weird XML libraries
[21:55:55] yfeldblum: has joined #ruby
[21:57:09] snapcase: has joined #ruby
[21:57:12] dfas: has joined #ruby
[21:57:13] apeiros: fwiw, it might have a legitimate reason to return it as an array
[21:58:03] astrofog: has joined #ruby
[21:58:32] despai: has joined #ruby
[21:59:49] yfeldblum: has joined #ruby
[22:00:07] Blaze_Boy: has joined #ruby
[22:00:17] svkurowski_: Does anyone know which methods carrierwave needs for file uploads? Like the 2 added here: http://stackoverflow.com/a/14904045/5684625
[22:00:32] ur5us: has joined #ruby
[22:00:45] platzhirsch: has joined #ruby
[22:04:58] karapetyan: has joined #ruby
[22:05:37] ur5us: has joined #ruby
[22:05:58] finisherr: has joined #ruby
[22:06:33] the_drow: has joined #ruby
[22:06:37] ur5us_: has joined #ruby
[22:06:40] Ilyes512: has joined #ruby
[22:07:02] diegoviola: has joined #ruby
[22:07:37] rmrrn: has joined #ruby
[22:07:37] rmrrn: has joined #ruby
[22:09:10] jbrhbr: has joined #ruby
[22:09:38] pawnbox: has joined #ruby
[22:10:24] c355E3B: svkurowski_: you may just want to read the code on that one
[22:11:37] Pathfinder_: has joined #ruby
[22:11:44] rmrrn: has joined #ruby
[22:11:44] rmrrn: has joined #ruby
[22:15:51] duoi: has joined #ruby
[22:16:23] futilegames: has joined #ruby
[22:16:52] wethu: has joined #ruby
[22:16:58] wethu: has joined #ruby
[22:19:24] platzhirsch: has joined #ruby
[22:19:24] yqt: has joined #ruby
[22:19:28] zacstewa_: has joined #ruby
[22:20:19] kirillzh: has joined #ruby
[22:20:54] snapcase: has joined #ruby
[22:21:41] svkurowski_: c355e3b: Thanks, will do L)(
[22:22:24] ysz: has joined #ruby
[22:23:17] naag: has joined #ruby
[22:23:52] volongato: has joined #ruby
[22:24:21] ElFerna: has joined #ruby
[22:24:48] bluOxigen_: has joined #ruby
[22:27:47] Ox0dea: svkurowski_: What is that?
[22:28:25] svkurowski_: It was supposed a ":)" but I'm still in the process of migrating to US keyboard and messed up
[22:29:14] Ox0dea: Ah, that makes sense. :P
[22:30:50] futilegames_: has joined #ruby
[22:31:58] LoneHerm_: has joined #ruby
[22:32:18] chouhoulis: has joined #ruby
[22:34:31] pen: has joined #ruby
[22:35:15] kith: has joined #ruby
[22:39:06] shevy: hmm... does anyone know off-hand... if I have a file in encoding X... and if I use open-uri to open a remote file, then save it locally... what encoding will the locally saved file have?
[22:39:55] shevy: the "file in encoding X", I meant a ruby .rb file with a specific # Encoding comment on top actually
[22:42:28] zenlot1: has joined #ruby
[22:42:45] Mia: has joined #ruby
[22:43:57] vF3hNGxc47h8: has joined #ruby
[22:45:14] volty: has joined #ruby
[22:45:15] ruby-lang408: has joined #ruby
[22:46:32] apeiros: shevy: the only thing the encoding comment does is tell ruby how to treat it when read as a source file. it doesn't do anything beyond that.
[22:46:38] rbennacer: has joined #ruby
[22:46:49] apeiros: i.e. it has no influence on what encoding the file actually is or how any other program (including programs written in ruby) will treat it
[22:47:22] Ropeney: has joined #ruby
[22:47:44] kies^: has joined #ruby
[22:47:58] ta: has joined #ruby
[22:48:22] volty: Enumerator#next, when inside loop { }, sends a break instead of raising 'stop iteration' ?
[22:48:50] apeiros: volty: a method can't "send break", so I doubt that. why do you ask?
[22:48:54] dlitvak: has joined #ruby
[22:49:03] volty: because I have it here
[22:49:07] apeiros: loop rescues StopIteration, maybe that gets you confused?
[22:49:32] volty: no, I didn 't know that loop rescues stopiteration
[22:49:41] apeiros: "I have it here" isn't as descriptive as you seem to think :)
[22:50:29] volty: I have the behaviour, though I didn't know about the roles of the actors
[22:50:44] apeiros: ?code volty
[22:50:45] ruby[bot]: volty: We can't help you without your code, please post it to https://gist.github.com
[22:51:06] volty: nothing to post. already cleared thx to apeiros
[22:51:40] apeiros: ah, somehow missed your line about not having known about rescuing. sorry :)
[22:51:42] volty: loop rescuing stopiteration is more than welcome
[22:52:28] apeiros: it's an interesting concept
[22:53:00] apeiros: but I'm conflicted about only loop rescuing it
[22:53:15] volty: yap. I was wondering where & why it breaks with so much grace ???- at least for my case
[22:53:38] volty: me too apeiros. that's why I came to ask about
[22:58:08] despai: has joined #ruby
[22:58:31] georgios: has joined #ruby
[22:59:10] Limix: has joined #ruby
[22:59:17] dlitvak: has joined #ruby
[23:00:13] georgios: has joined #ruby
[23:01:56] code2Learn: has joined #ruby
[23:01:57] johnmilton: has joined #ruby
[23:02:16] intrigueD: has joined #ruby
[23:04:15] harly: has joined #ruby
[23:05:26] davedev24: has joined #ruby
[23:06:13] karapetyan: has joined #ruby
[23:08:58] pawnbox: has joined #ruby
[23:11:44] ElFerna: has joined #ruby
[23:12:35] symm-: has joined #ruby
[23:14:38] toretore: has joined #ruby
[23:17:11] rbennacer: has joined #ruby
[23:19:34] despai: has joined #ruby
[23:23:38] karapetyan: has joined #ruby
[23:27:41] devFrederick: has joined #ruby
[23:30:20] TomPeed: has joined #ruby
[23:30:32] fedexo: has joined #ruby
[23:33:02] chouhoulis: has joined #ruby
[23:36:56] Abrin: has joined #ruby
[23:39:14] pawnbox: has joined #ruby
[23:39:19] Abrin2: has joined #ruby
[23:40:13] mhoungbo_: has joined #ruby
[23:41:25] zacstewart: has joined #ruby
[23:41:32] ur5us: has joined #ruby
[23:41:46] roshanavand: has joined #ruby
[23:41:50] Ebok: has joined #ruby
[23:43:10] duckpuppy: has joined #ruby
[23:46:03] nanoz: has joined #ruby
[23:47:06] elifoster: has joined #ruby
[23:50:14] ta: has joined #ruby
[23:51:25] stannard: has joined #ruby
[23:52:08] kriskropd: has joined #ruby
[23:53:57] bronson: has joined #ruby
[23:55:37] coderMe: has joined #ruby
[23:58:27] vdamewood: has joined #ruby