« Back to channel list

#ruby - 05 June 2017

« Back 1 day Forward 1 day »
[00:00:41] diego1: has joined #ruby
[00:01:16] jusa: has joined #ruby
[00:01:41] nesoi: I installed activesupport-4.2.6 but don't know which version of activerecord would go with that, or if that's the best idea
[00:01:45] nesoi: any hints?
[00:01:48] manveru: but that doesn't have yield_self nor the backtrace change... must be wrong :(
[00:01:54] manveru: found https://docs.ruby-lang.org/en/trunk/NEWS.html :)
[00:01:54] KillerFox: has joined #ruby
[00:01:55] wnd: has joined #ruby
[00:01:58] forgot: has joined #ruby
[00:02:01] havenwood: manveru: the nightly has those
[00:02:07] darix: nesoi: the activerecord with exactly the same version
[00:02:35] manveru: havenwood: yeah, was mostly curious, don't plan on running it
[00:03:09] nesoi: darix: should the same code which ran in 1.9.2 run in 2.0 or should I downgrade?
[00:03:14] nesoi: or upgrade to 2.2?
[00:03:27] darix: ruby is at 2.4 already
[00:03:42] nesoi: ok, or upgrade to 2.4?
[00:03:47] havenwood: nesoi: It'd probably be best to use 2.3.4 or 2.4.1. 1.9 is quite old at this point.
[00:03:54] ptx0: has joined #ruby
[00:03:58] nesoi: havenwood: will the code not run though?
[00:04:01] D9: has joined #ruby
[00:04:20] havenwood: nesoi: It will likely work unless there're gem deps stuck on 1.9 for whatever reason.
[00:04:22] havenwood: nesoi: See if the tests pass in 2.4?
[00:04:30] havenwood: nesoi: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you
[00:04:45] nesoi: ok, so what's the best way to get a version of 2.4 on my os x box?
[00:05:00] nesoi: I don't want to install rails actually
[00:05:01] havenwood: nesoi: check that ^ link for a tutorial
[00:05:08] havenwood: nesoi: don't do the `gem install rails` part
[00:05:09] Radar: nesoi: You can follow that link and stop before it installs Rails.
[00:05:22] nesoi: ok, cool, thanks
[00:05:28] Radar: The guy who wrote it is almost as smart and handsome as he is humble.
[00:05:42] nesoi: did you write it Radar? :)
[00:06:13] nesoi: ok, I will check it out and report back later
[00:06:43] enterprisey: has joined #ruby
[00:07:26] FastJack: has joined #ruby
[00:07:28] latemus: has joined #ruby
[00:08:44] herbmillerjr: has joined #ruby
[00:09:22] spheric: has joined #ruby
[00:12:49] Radar: Guaranteed to work or your money back
[00:13:13] choke: has joined #ruby
[00:13:35] Radar: I should say that I use it to set up all my machines too.
[00:14:07] Cohedrin: has joined #ruby
[00:15:32] DarrinStephens: has left #ruby: ()
[00:15:59] patarr: has joined #ruby
[00:19:12] d3d1rty: has joined #ruby
[00:20:02] texasmynsted: has joined #ruby
[00:21:41] BSaboia: has joined #ruby
[00:25:57] texasmynsted: has joined #ruby
[00:30:31] alveric1: has joined #ruby
[00:30:44] darix: updating my discourse package to 2.4 atm
[00:37:51] alveric1: has joined #ruby
[00:38:42] omab: has joined #ruby
[00:42:12] _whitelogger: has joined #ruby
[00:45:18] alveric1: has joined #ruby
[00:49:13] r3vDev: has joined #ruby
[00:51:32] nettoweb__: has joined #ruby
[00:51:42] nettoweb__: hello guys, Im trying to make puma restart on boot... but it's difficult. do you know some good article explaining how to do it?
[00:51:58] quazimodo: has joined #ruby
[00:52:38] alveric1: has joined #ruby
[00:57:25] texasmynsted: has joined #ruby
[01:03:30] havenwood: nettoweb__: What OS?
[01:04:22] havenwood: nettoweb__: Linux? A BSD?
[01:04:44] havenwood: nettoweb__: systemd
[01:04:59] havenwood: nettoweb__: http://www.mikeperham.com/2014/09/22/dont-daemonize-your-daemons/
[01:05:24] havenwood: nettoweb__: It's worth learning the systemd init system, since it ate Linux.
[01:06:15] DLSteve: havenwood, Linux is just a systemd extension.
[01:07:39] HoierM: has joined #ruby
[01:08:08] Jameser: has joined #ruby
[01:08:41] diego1: has joined #ruby
[01:09:13] charliesome: has joined #ruby
[01:10:41] sneakerhax: has joined #ruby
[01:12:01] nettoweb__: has joined #ruby
[01:14:28] enterprisey: has joined #ruby
[01:16:26] nettoweb__: has joined #ruby
[01:19:34] jackjackdripper: has joined #ruby
[01:20:00] nettoweb__: havenwood Im looking something about puma
[01:24:08] alveric1: has joined #ruby
[01:24:49] texasmynsted: has left #ruby: ()
[01:26:01] alveric1: has joined #ruby
[01:26:24] nesoi: has joined #ruby
[01:31:18] Jameser: has joined #ruby
[01:32:23] choke: has joined #ruby
[01:36:15] d^sh: has joined #ruby
[01:49:24] Paradox: has joined #ruby
[01:50:12] jackjackdripper: has joined #ruby
[01:55:53] Jameser: has joined #ruby
[01:56:00] nesoi: I have a require 'yaml' but gem install yaml finds nothing. What gem should I install for that?
[01:56:40] djbkd: has joined #ruby
[01:56:50] nesoi: also, gem install mysql fails
[01:57:13] havenwood: nesoi: YAML is in the stdlib. You have to install MySQL before you install the mysql gem.
[01:57:32] nesoi: I used to have mysql on here… let's see
[01:57:37] nesoi: thanks havenwood
[01:59:00] nesoi: yeah, mysql is on this machine
[01:59:17] nesoi: I can connect to it locally
[01:59:23] nesoi: but it's not in the path
[01:59:25] nesoi: is that required?
[02:00:35] havenwood: nesoi: Can you use the mysql2 gem? You're picking the dep?
[02:00:56] havenwood: nesoi: https://github.com/brianmario/mysql2
[02:01:01] dhollinger: has joined #ruby
[02:01:02] nesoi: havenwood: I don't know.. this code I'm trying to get running just has require 'mysql'
[02:02:20] havenwood: nesoi: So that's mysql not mysql2. The mysql gem has been unmaintained for several years.
[02:04:06] nesoi: I'm already trying to replace one API package, so it would be great if I didn't have to replace others at the same time and then try to figure out what's not working where
[02:04:23] PatrikasZvaigzde: has joined #ruby
[02:06:30] nesoi: mysql2 installed ok
[02:07:16] nesoi: using gem install mysql2
[02:11:09] cdg: has joined #ruby
[02:12:43] harfangk: has joined #ruby
[02:14:55] pen: has joined #ruby
[02:15:40] aidalgol: has joined #ruby
[02:16:55] patarr: has joined #ruby
[02:17:15] regaIfrog: has joined #ruby
[02:19:13] enterprisey: has joined #ruby
[02:20:25] genpaku: has joined #ruby
[02:23:41] regaIfrog: has joined #ruby
[02:26:04] aidalgol: I'm having trouble with rbenv and installing native gems. http://paste.debian.net/967217/
[02:27:05] havenwood: aidalgol: sudo apt-get install -y build-essential bison zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libffi-dev
[02:28:22] havenwood: aidalgol: ^ those are the ruby deps for debian
[02:28:47] havenwood: aidalgol: or there's a ruby-dev package
[02:30:25] havenwood: aidalgol: here's rbenv's ruby-build's recommendation: https://github.com/rbenv/ruby-build/wiki#suggested-build-environment
[02:35:58] whathappens: has joined #ruby
[02:39:17] jtdowney: has joined #ruby
[02:41:43] charliesome: has joined #ruby
[02:41:44] aidalgol: havenwood: I was missing some of those, but even after installing those pacakges, I still get the same error.
[02:42:35] havenwood: aidalgol: The error you're running into looks like it's from your system Ruby. You'd solve it by installing the ruby-dev package.
[02:42:45] aidalgol: oh dear, I think my system ruby installation may be interfering...
[02:42:49] havenwood: aidalgol: It's not the Ruby from rbenv/ruby-build.
[02:43:09] nettoweb__: has joined #ruby
[02:43:46] havenwood: aidalgol: Often with rbenv the issue is rehashing since they use shims. Maybe try: rbenv rehash
[02:43:48] ruby[bot]: Missing command under rbenv? Did you try `rbenv rehash`?
[02:44:21] aidalgol: I have something installed that depends on ruby, so I can't remove it.
[02:44:44] havenwood: aidalgol: Or if you want to tear it down and try again mixing things up a bit, here's a tutorial for ruby-install/chruby (instead of ruby-build/rbenv): http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you
[02:44:59] aidalgol: Nope, still happening.
[02:45:03] havenwood: aidalgol: Either rbenv or chruby should be able to play nice alongside system Ruby.
[02:45:12] aidalgol: I'm running ~/.rbenv/shims/gem but for somereason /usr/bin/ruby2.1 is being invoked.
[02:45:21] havenwood: aidalgol: I'm not as familiar with rbenv and there's no irc support channel but there are some users here, no doubt.
[02:46:19] havenwood: aidalgol: I'd personally recommend uninstalling rbenv and going with ruby-install/chruby if it's dev environment or just ruby-install to /usr/local if it's prod.
[02:48:20] havenwood: aidalgol: With rbenv drop the --user-install
[02:48:21] havenwood: aidalgol: same issue with?: gem install rsense
[02:48:37] havenwood: it's like the `gem` is your system Ruby, hrmmm
[02:49:19] havenwood: aidalgol: you're not using sudo?
[02:49:35] havenwood: aidalgol: just `gem install rsense` should work
[02:51:13] pen: has joined #ruby
[02:52:13] aidalgol: gem install rsense tries to install to /usr/local
[02:53:02] aidalgol: I don't have this issue when I'm in a project directory (i.e. a .ruby-version file is present)
[03:01:29] djbkd: has joined #ruby
[03:03:20] sspreitz: has joined #ruby
[03:14:50] Cohedrin: has joined #ruby
[03:18:18] aidalgol: It works when I set RBENV_VERSION
[03:29:35] gix: has joined #ruby
[03:33:25] jenrzzz: has joined #ruby
[03:34:01] AnoHito_: has joined #ruby
[03:41:50] cfec0b8d: has joined #ruby
[03:47:48] arescorpio: has joined #ruby
[03:51:10] _whitelogger: has joined #ruby
[04:00:14] _whitelogger: has joined #ruby
[04:08:05] ur5us: has joined #ruby
[04:08:22] quazimodo: has joined #ruby
[04:14:06] nesoi: havenwood: I installed mysql2
[04:14:07] nesoi: Successfully installed mysql2-0.4.6
[04:14:36] nesoi: but then when I do ruby Rakefile I get:
[04:14:42] nesoi: ../.gem/ruby/2.4.1/gems/mysql2-0.4.6/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError)
[04:14:49] nesoi: what do you think is going wrong?
[04:16:19] havenwood: nesoi: Seems it's not dynamically linking. See if SO answers help?: https://stackoverflow.com/questions/4546698/library-not-loaded-libmysqlclient-16-dylib-error-when-trying-to-run-rails-serv
[04:17:18] havenwood: nesoi: I'm just heading out the door. Someone else here can probably help though if you still can't get it linking.
[04:17:27] havenwood: Or I'll be around later.
[04:17:31] nesoi: thanks havenwood
[04:17:46] patarr: has joined #ruby
[04:17:47] havenwood: you're welcome. good luck!
[04:18:13] nesoi: hm. I don't have mysqlclient* in either directory
[04:19:27] Arahael: has joined #ruby
[04:19:39] nesoi: should I have /usr/lib/libmysqlclient* ?
[04:20:27] jenrzzz: has joined #ruby
[04:20:27] jenrzzz: has joined #ruby
[04:34:35] Puppet`: has joined #ruby
[04:36:36] kies: has joined #ruby
[04:46:12] Trynemjoel: has joined #ruby
[04:48:50] Cohedrin: has joined #ruby
[04:52:26] pen: has joined #ruby
[04:55:14] pen: has joined #ruby
[04:56:13] Polysics: has joined #ruby
[05:00:52] djbkd: has joined #ruby
[05:10:04] zenspider: nesoi: if you don't have the library, the gem couldn't have compiled and linked properly
[05:18:31] podlech: has joined #ruby
[05:25:37] jackjackdripper: has joined #ruby
[05:26:03] Arahael: Incidentially, libmysqlclient isn't necessarily in /usr/lib
[05:27:27] aupadhye: has joined #ruby
[05:35:59] dcluna: has joined #ruby
[05:48:03] govg: has joined #ruby
[05:49:50] aupadhye: has joined #ruby
[05:53:05] hosas: has joined #ruby
[05:53:50] anisha: has joined #ruby
[05:58:14] hosas: getting: Could not locate Gemfile
[05:58:14] hosas: I'm trying to install Open-publisher using: bundle install --binstubs --path=vendor, as instructed by the site (http://chrisanthropic.github.io/Open-Publisher-Documentation//documentation/installation.html)
[05:58:14] hosas: how do I fix this (I know nothing about ruby). Thanks
[06:06:02] djbkd: has joined #ruby
[06:15:25] lele: has joined #ruby
[06:15:55] roshanavand: has joined #ruby
[06:18:36] patarr: has joined #ruby
[06:19:52] dionysus69: has joined #ruby
[06:21:12] hosas: has left #ruby: ()
[06:22:49] taurgal: has joined #ruby
[06:22:49] Cohedrin: has joined #ruby
[06:23:47] mikecmpbll: has joined #ruby
[06:25:21] chouhoulis: has joined #ruby
[06:28:18] Polysics: has joined #ruby
[06:29:24] conta: has joined #ruby
[06:30:45] hfp: has joined #ruby
[06:31:15] hfp_work: has joined #ruby
[06:49:51] ytti: has joined #ruby
[06:50:01] wnd_: has joined #ruby
[06:50:10] dunk_: has joined #ruby
[06:50:10] andersh_: has joined #ruby
[06:50:11] mnemon: has joined #ruby
[06:50:11] majoh: has joined #ruby
[06:50:15] AnoHito: has joined #ruby
[06:50:16] nocaberi: has joined #ruby
[06:50:17] nowhere_man: has joined #ruby
[06:50:20] pmarreck: has joined #ruby
[06:50:21] iomotoko: has joined #ruby
[06:50:27] genpaku_: has joined #ruby
[06:50:32] seanh: has joined #ruby
[06:50:35] ewilliam___: has joined #ruby
[06:50:35] alveric1: has joined #ruby
[06:50:39] jimeh_: has joined #ruby
[06:50:43] latemus: has joined #ruby
[06:50:43] mrsolo: has joined #ruby
[06:50:45] Heero__: has joined #ruby
[06:50:46] avdi: has joined #ruby
[06:50:49] Tony-St4rk: has joined #ruby
[06:50:49] bcavileer: has joined #ruby
[06:50:52] mattwc: has joined #ruby
[06:50:53] lupine: has joined #ruby
[06:50:54] cstrahan: has joined #ruby
[06:50:56] gmcintire_: has joined #ruby
[06:50:58] troter__________: has joined #ruby
[06:51:10] lipoqil: has joined #ruby
[06:51:12] Majost: has joined #ruby
[06:51:23] myk267: has joined #ruby
[06:53:05] dgs: has joined #ruby
[06:53:13] conta: has joined #ruby
[06:53:47] hfp_work: has joined #ruby
[06:54:16] nofxxx: has joined #ruby
[06:54:54] jinie: has joined #ruby
[06:55:17] Vircung: has joined #ruby
[06:55:33] NightMonkey: has joined #ruby
[06:56:17] voltai[m]: has joined #ruby
[06:56:17] torarne: has joined #ruby
[06:56:19] Giphy[m]: has joined #ruby
[06:56:27] turt2live: has joined #ruby
[06:59:57] zipper: has joined #ruby
[07:06:05] jusa: has joined #ruby
[07:11:04] Mia: has joined #ruby
[07:11:05] Mia: has joined #ruby
[07:14:41] Tempesta_: has joined #ruby
[07:15:20] jenrzzz: has joined #ruby
[07:15:21] jenrzzz: has joined #ruby
[07:16:36] patarr: has joined #ruby
[07:24:07] laekur: has joined #ruby
[07:27:02] marr: has joined #ruby
[07:28:30] jenrzzz: has joined #ruby
[07:28:59] patarr: has joined #ruby
[07:29:09] aufi: has joined #ruby
[07:29:56] vondruch: has joined #ruby
[07:33:44] zipace: has joined #ruby
[07:38:42] charliesome: has joined #ruby
[07:39:31] bigkevmcd: has joined #ruby
[07:39:55] burgestrand: has joined #ruby
[07:41:09] ecuanaso: has joined #ruby
[07:41:31] jgt2: has joined #ruby
[07:43:35] normie1: has joined #ruby
[07:43:41] antgel: has joined #ruby
[07:46:09] dcluna: has joined #ruby
[07:49:56] mikecmpbll: has joined #ruby
[07:53:58] cfec0b8d: has joined #ruby
[07:54:56] LukyCZ: has joined #ruby
[07:56:34] LukyCZ: Hi, how would I limit input to a set range of characters (a, r, o, s) ? Example: I have a text game, and I have 4 options (1, 2, 3, 4). If the user inputs something else, do something. How could I do this ? Thanks
[07:59:52] govg: has joined #ruby
[08:01:13] jaruga________: has joined #ruby
[08:05:15] ahrs: has joined #ruby
[08:07:06] zipper: has left #ruby: ("WeeChat 1.8")
[08:10:20] piet_: has joined #ruby
[08:10:57] piet_: hey guys i need to understand some ruby but i dont know any, is there a tool for explaining what some syntax means or a quick way to look it up or something?
[08:13:58] ljarvis: pie__: not really, you want to know what something does without learning Ruby?
[08:14:12] flying: has joined #ruby
[08:14:27] piet_: almost xP
[08:14:36] ljarvis: I guess you'll want to hire someone
[08:14:42] piet_: well i never asked anything like this so i thought i might as well give it a try once
[08:15:52] lxsameer: has joined #ruby
[08:20:52] mikecmpbll: has joined #ruby
[08:24:58] mathys: has joined #ruby
[08:25:20] rohitpaulk: has joined #ruby
[08:30:22] alveric1: has joined #ruby
[08:34:20] Beams: has joined #ruby
[08:37:15] tomphp: has joined #ruby
[08:37:59] ddffg: has joined #ruby
[08:41:06] sarbs: has joined #ruby
[08:42:26] bkxd: has joined #ruby
[08:42:32] djbkd: has joined #ruby
[08:43:44] ur5us: has joined #ruby
[08:43:49] pen: has joined #ruby
[08:44:12] Silthias: has joined #ruby
[08:47:29] gil_: has joined #ruby
[08:47:29] gil_: has joined #ruby
[08:52:41] milardovich: has joined #ruby
[09:00:11] ferr1: has joined #ruby
[09:01:26] dhollin3: has joined #ruby
[09:02:53] apeiros: LukyCZ: you write a conditional construct, like: valid=false; until valid; valid=true; input = $stdin.gets&.chomp; case input; when "1"; …; else "Not a valid choide"; valid=false; end; end
[09:02:59] AnoHito_: has joined #ruby
[09:07:40] quazimodo: has joined #ruby
[09:09:10] chichou: has joined #ruby
[09:13:28] mikecmpbll: has joined #ruby
[09:14:16] apeiros: ?quickref pie__
[09:14:16] ruby[bot]: pie__: http://www.zenspider.com/ruby/quickref.html
[09:14:28] apeiros: that comes probably closest to what you're looking for
[09:14:39] tomphp: has joined #ruby
[09:14:57] apeiros: but yeah, it's difficult to look up syntax if you don't know what belongs together.
[09:15:08] apeiros: and also difficult if you don't know how it's called
[09:16:06] piet_: thanks, maybe it will help
[09:16:14] konsolebox: pie__: try learning ruby with some tutorial, and pry.
[09:16:47] piet_: konsolebox, im just a tiny bit frustrated because everything is skill trees all the way down, but thats what happens when you try to base off someone else's work.
[09:16:58] ringrong: has joined #ruby
[09:17:02] piet_: well, thats what happens when you dont either haha
[09:17:11] piet_: thats life
[09:18:17] cjhowe7: has joined #ruby
[09:19:47] bilal80: has joined #ruby
[09:23:38] piet_: has joined #ruby
[09:28:07] LukyCZ: apeiros: That looks... Complicated
[09:28:49] apeiros: LukyCZ: replace the ; with newlines and it'll look less complicated
[09:32:05] saneax: say I have this -
[09:32:05] saneax: rx = { :fox=>/^arm/, 'fox'=>[%r{AN(DO)$},/an(do)/i]}
[09:32:39] saneax: is this legit - rx[:fox][1] ?
[09:33:16] saneax: so, I think the statement rx[:fox][1] is wrong since the :fox hash has a regex and not an array?
[09:34:16] LukyCZ: What editor would you recommend ?
[09:38:13] matthewd: >> rx = { :fox=>/^arm/, 'fox'=>[%r{AN(DO)$},/an(do)/i]}; rx[:fox][1]
[09:38:14] ruby[bot]: matthewd: # => undefined method `[]' for /^arm/:Regexp (NoMethodError) ...check link for more (https://eval.in/811924)
[09:39:00] milardovich: has joined #ruby
[09:40:44] saneax: thanks matthewd
[09:40:51] saneax: makes sense
[09:42:15] biberu: has joined #ruby
[09:44:41] rohitpaulk: has joined #ruby
[09:46:51] workmad3: has joined #ruby
[09:47:50] apeiros: LukyCZ: sublime text
[09:48:43] apeiros: >> rx = { :fox=>/^arm/, 'fox'=>[%r{AN(DO)$},/an(do)/i]}; rx['fox'][1]
[09:48:44] ruby[bot]: apeiros: # => /an(do)/i (https://eval.in/811935)
[09:49:12] sarbs: has joined #ruby
[09:53:20] milardovich: has joined #ruby
[09:54:07] djbkd: has joined #ruby
[09:57:18] tomphp: has joined #ruby
[10:03:30] slima: has joined #ruby
[10:05:19] KeyJoo: has joined #ruby
[10:11:09] iomotoko: has joined #ruby
[10:11:23] yogg-saron: has joined #ruby
[10:11:23] djbkd: has joined #ruby
[10:12:35] LukyCZ: How to I know if the input is a string or a number ? I have a gets.to_f, and it equals 0 if a string is put in. I can do that if it equals 0 end the program, but I want to end the program only if it's a string
[10:14:00] ljarvis: %ri Kernel#Float
[10:14:05] ljarvis: &ri Kernel#Float
[10:14:05] `derpy: http://ruby-doc.org/core-2.4.1/Kernel.html#method-i-Float
[10:14:15] ljarvis: oh ruby-doc is still down, heh
[10:14:42] ljarvis: LukyCZ: Float(str) will convert to a float if it can, otherwise it'll raise an exception. You could catch the exception and quit gracefully
[10:14:50] ljarvis: >> Float("omg")
[10:14:51] ruby[bot]: ljarvis: # => invalid value for Float(): "omg" (ArgumentError) ...check link for more (https://eval.in/811960)
[10:19:06] brent__: has joined #ruby
[10:19:06] milardovich: has joined #ruby
[10:26:06] vuoto: has joined #ruby
[10:27:26] tomphp: has joined #ruby
[10:33:43] anisha_: has joined #ruby
[10:34:01] rgr: has joined #ruby
[10:36:28] rohitpaulk: has joined #ruby
[10:39:46] tomphp: has joined #ruby
[10:40:39] spiette: has joined #ruby
[10:42:03] tomphp: has joined #ruby
[10:43:06] Fernando-Basso: has joined #ruby
[10:47:50] tomphp: has joined #ruby
[10:51:55] TomyLobo2: has joined #ruby
[10:52:26] milardovich: has joined #ruby
[10:55:14] jgnagy: has joined #ruby
[10:57:01] chouhoulis: has joined #ruby
[10:58:45] psychicist__: has joined #ruby
[10:59:19] charliesome: has joined #ruby
[11:00:23] burgestrand: has joined #ruby
[11:01:36] BSaboia: has joined #ruby
[11:02:06] r3vDev: has joined #ruby
[11:04:32] ruby[bot]: How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
[11:04:41] zenspider: (for another channel, ignore me)
[11:06:48] charliesome: has joined #ruby
[11:15:11] _whitelogger: has joined #ruby
[11:28:23] Jameser: has joined #ruby
[11:32:10] romank: has joined #ruby
[11:32:48] nettoweb__: has joined #ruby
[11:35:04] HoierM: has joined #ruby
[11:36:50] GodFather: has joined #ruby
[11:42:10] _whitelogger: has joined #ruby
[11:49:51] im0nde: has joined #ruby
[11:50:28] charliesome: has joined #ruby
[11:53:23] anisha: has joined #ruby
[11:58:21] nanoz: has joined #ruby
[12:02:05] ldnunes: has joined #ruby
[12:02:55] djbkd: has joined #ruby
[12:06:25] synthroid: has joined #ruby
[12:06:56] dasher00: has joined #ruby
[12:14:57] quobo: has joined #ruby
[12:15:36] rohitpaulk: has joined #ruby
[12:25:10] pupsicle: has joined #ruby
[12:26:59] Silthias: has joined #ruby
[12:29:05] znz_jp: has joined #ruby
[12:30:52] ruurd: has joined #ruby
[12:33:56] unshadow: has joined #ruby
[12:34:51] unshadow: Hi Guys, a quick question, In OpenSSL how do I configure the key size for DH to use ? it seems I always get 1024 bit without a way to change it, cant find where to define it inside OpenSSL::SSL::SSLContext
[12:35:17] nanoz]: has joined #ruby
[12:35:36] ledestin: has joined #ruby
[12:37:30] r3vDev: has joined #ruby
[12:41:43] jjunior_: has joined #ruby
[12:42:07] djbkd: has joined #ruby
[12:42:39] djbkd: has joined #ruby
[12:44:36] djbkd_: has joined #ruby
[12:47:00] ledestin: has joined #ruby
[12:48:00] kke_: rubydoc.info has been down all day for me
[12:48:29] kke_: sorry ruby-doc.org
[12:49:34] elomatreb: kke_: Yesterday too, https://docs.ruby-lang.org/en/2.4.0/ has the same docs
[12:50:24] kke_: but google takes me to rubydoc :(
[12:50:41] nickjj: has joined #ruby
[12:51:02] tomphp: has joined #ruby
[12:51:38] hashrocket: has joined #ruby
[12:51:42] elomatreb: Depending on how you installed your Ruby you might have those docs installed locally too, try `ri` in terminal
[12:56:42] jgnagy: has joined #ruby
[12:58:59] romank: has joined #ruby
[13:00:02] BSAlb: has joined #ruby
[13:00:59] BSAlb: has joined #ruby
[13:01:18] Jameser: has joined #ruby
[13:01:57] cadillac_: has joined #ruby
[13:02:21] nettoweb__: has joined #ruby
[13:02:44] gilfoyle: has joined #ruby
[13:03:45] BSaboia: has joined #ruby
[13:04:05] cadillac__: has joined #ruby
[13:07:02] Jameser: has joined #ruby
[13:07:08] dionysus69: has joined #ruby
[13:19:57] chouhoulis: has joined #ruby
[13:21:40] nesoi: has joined #ruby
[13:23:02] atvin: has joined #ruby
[13:25:31] nadir: has joined #ruby
[13:29:49] petruff: has joined #ruby
[13:30:09] DLSteve: has joined #ruby
[13:30:14] centrx: has joined #ruby
[13:33:26] thulsa_legume[m]: has left #ruby: ("Kicked by @appservice-irc:matrix.org")
[13:33:58] DrCode: has joined #ruby
[13:35:42] griffindy: has joined #ruby
[13:39:21] stryek: has joined #ruby
[13:40:03] milardovich: has joined #ruby
[13:40:20] milardovich: has joined #ruby
[13:43:16] mwlang: has joined #ruby
[13:44:42] Jameser: has joined #ruby
[13:45:01] yehowyada: has joined #ruby
[13:47:07] vinmac: has joined #ruby
[13:47:23] vinmac: has left #ruby: ()
[13:51:16] pupsicle: unshadow: It's a parameter to the initializer https://apidock.com/ruby/OpenSSL/PKey/DH/new/class
[13:52:46] minimalism: has joined #ruby
[13:52:57] tomphp: has joined #ruby
[13:53:37] konsolebox: has joined #ruby
[13:53:38] cfec0b8d: has joined #ruby
[13:54:04] kke_: elomatreb: yes but it's not in my muscle memory :)
[13:54:27] kke_: i've clicked myself to rubydoc 10+ times this workday.
[13:54:42] kke_: but it's over now so perhaps the problem is solved tomorrow.
[13:56:43] gnufied: has joined #ruby
[13:59:31] psychicist__: has joined #ruby
[14:05:20] marr: has joined #ruby
[14:07:33] shinnya: has joined #ruby
[14:08:02] laekur: has joined #ruby
[14:11:22] rohitpaulk: has joined #ruby
[14:15:44] romank: has joined #ruby
[14:18:56] rohitpaulk: has joined #ruby
[14:18:56] yeticry: has joined #ruby
[14:20:07] tomphp: has joined #ruby
[14:20:34] piet_: has joined #ruby
[14:23:11] nesoi: has joined #ruby
[14:23:25] chichou: has joined #ruby
[14:23:54] BSaboia: has joined #ruby
[14:26:12] gregf_: has joined #ruby
[14:27:15] theunraveler: has joined #ruby
[14:28:00] nanoz]: has left #ruby: ("Leaving")
[14:36:42] patarr: has joined #ruby
[14:37:05] milardovich: has joined #ruby
[14:42:43] centrx: has joined #ruby
[14:45:13] chalkmonster: has joined #ruby
[14:45:44] jjaii9: has joined #ruby
[14:46:37] ResidentBiscuit: has joined #ruby
[14:46:58] DoubleMalt: has joined #ruby
[14:47:32] cschneid_: has joined #ruby
[14:47:55] ruurd: You could use Dash if you wanted to. It's admitted to the iOS appstore again too...
[14:48:05] tomphp: has joined #ruby
[14:49:17] LastWhisper____: has joined #ruby
[14:49:29] rohitpaulk: has joined #ruby
[14:49:39] tomphp: has joined #ruby
[14:52:10] choke: has joined #ruby
[14:52:27] rippa: has joined #ruby
[14:54:04] Rory: has joined #ruby
[14:58:03] nanoz: has joined #ruby
[14:58:36] nanoz: has left #ruby: ()
[15:02:20] hxegon: has joined #ruby
[15:05:11] chalkmonster: has joined #ruby
[15:10:38] blackwind_123: has joined #ruby
[15:13:26] Renich: has joined #ruby
[15:14:17] pupsicle: has joined #ruby
[15:14:22] pupsicle2: has joined #ruby
[15:14:33] synthroid: has joined #ruby
[15:14:45] jgnagy: has joined #ruby
[15:21:26] milardovich: has joined #ruby
[15:21:44] contradictioned: has joined #ruby
[15:24:18] tomphp: has joined #ruby
[15:24:21] nesoi: has joined #ruby
[15:24:27] JohnT: has joined #ruby
[15:27:41] dcunit3d: has joined #ruby
[15:29:05] pupsicle: has joined #ruby
[15:29:47] rohitpaulk: has joined #ruby
[15:30:25] sepp2k: has joined #ruby
[15:30:25] pupsicle: has joined #ruby
[15:30:59] JohnT: Does anyone have experience with the mail gem? I'm trying to extract attachments (pdfs). Code produces no errors, but when I try to open the pdfs they're corrupt/invalid.
[15:31:51] pupsicle: has joined #ruby
[15:33:14] matthewd: JohnT: What does the extracted file look like? Maybe you're pulling out the still-encoded body?
[15:37:11] JohnT: no, it looks like a valid pdf spec
[15:37:25] dcunit3d: has joined #ruby
[15:37:33] nankyokusei: has joined #ruby
[15:38:29] JohnT: oops, forgot the binary specifier on file open. that could explain it.
[15:40:15] elcontrastador: has joined #ruby
[15:41:09] JohnT: yep, works fine now. its always the simple stuff
[15:45:32] aufi: has joined #ruby
[15:46:51] haylon: has joined #ruby
[15:50:48] nettoweb__: has joined #ruby
[15:53:28] ascarter: has joined #ruby
[15:56:30] amclain: has joined #ruby
[15:57:15] brent__: has joined #ruby
[16:00:00] ascarter: has joined #ruby
[16:00:23] yeticry_: has joined #ruby
[16:02:01] marxarelli: has joined #ruby
[16:04:48] ascarter: has joined #ruby
[16:04:48] Renich: has joined #ruby
[16:08:37] Rory: has left #ruby: ()
[16:10:11] kies: has joined #ruby
[16:12:25] hxegon: ruby-doc is down noooooo
[16:13:49] cdg: has joined #ruby
[16:16:28] morfin: has joined #ruby
[16:16:29] dionysus69: has joined #ruby
[16:17:38] hobodave: has joined #ruby
[16:17:41] havenwood: has someone already emailed james@neurogami.com to let him know ruby-doc is down?
[16:18:03] dasher00: has joined #ruby
[16:18:24] matthewd: havenwood: He's aware: https://twitter.com/jamesbritt
[16:18:24] ljarvis: he's been working on it
[16:21:21] hxegon: alternative methods for looking up docs? I've been pretty spoiled with ruby-doc and pry-doc hasn't worked for me for a long time
[16:21:31] dcluna: has joined #ruby
[16:21:50] havenwood: https://www.jstorimer.com/blogs/workingwithcode/7766081-5-reasons-you-should-use-ri-to-read-ruby-documentation
[16:21:55] hxegon: thanks havenwood
[16:22:09] morfin: ri is a solution but i wish i can read them as HTML :( do not like read from console
[16:22:33] erry: has joined #ruby
[16:22:45] Mia: has joined #ruby
[16:22:45] Mia: has joined #ruby
[16:23:24] ljarvis: morfin: so generate rdoc locally from core and then open it up :)
[16:23:35] tomphp: has joined #ruby
[16:25:56] hxegon: oooo ri -i for interactive docs in cli
[16:26:23] nettoweb__: has joined #ruby
[16:26:46] Tempesta: has joined #ruby
[16:30:51] alveric1: has joined #ruby
[16:31:10] kies: has joined #ruby
[16:32:14] dngome[m]: has joined #ruby
[16:32:42] Eiam_: has joined #ruby
[16:37:20] nitric: has joined #ruby
[16:37:36] patarr: has joined #ruby
[16:38:01] [Butch]: has joined #ruby
[16:41:26] im0nde: has joined #ruby
[16:42:03] nettoweb__: has joined #ruby
[16:44:58] havenwood: hxegon: Docs in pry as well with: gem install pry-doc
[16:45:20] havenwood: Or from within irb: help
[16:45:27] hxegon: havenwood: I've tried that before, but it never seems to work for me. Ri is doing great though
[16:45:27] tomphp: has joined #ruby
[16:45:35] havenwood: hxegon: nice
[16:46:05] tomphp: has joined #ruby
[16:49:58] marxarelli: has joined #ruby
[16:52:40] Axy: has joined #ruby
[16:53:05] al2o3-cr: has joined #ruby
[16:53:32] rohitpaulk: has joined #ruby
[16:54:00] GGMethos: has joined #ruby
[16:55:41] DrCode: has joined #ruby
[16:55:45] nesoi: has joined #ruby
[16:55:56] hobodave: has joined #ruby
[16:56:51] BTRE: has joined #ruby
[17:03:54] stormbytes: has joined #ruby
[17:05:16] cdg: has joined #ruby
[17:09:51] taurgal: has joined #ruby
[17:13:10] Kug3lis: has joined #ruby
[17:13:58] filipechagas: has joined #ruby
[17:15:52] nesoi: I'm trying to port a previously working ruby program from Windows ruby 1.9.2 to OS X ruby 2.4.1. When I run the rakefile I get:
[17:15:54] nesoi: Rakefile:7:in `<main>': undefined method `task' for main:Object (NoMethodError)
[17:16:00] nesoi: any idea what to look at?
[17:16:23] apeiros: uh, how do you run that rakefile? o0
[17:16:32] apeiros: because task is defined by rake itself…
[17:17:46] nesoi: hm. ok so just run rake. I'm both rusty and also not experienced with this
[17:18:08] Mix4555: has joined #ruby
[17:18:24] nesoi: it doesn't find mysql support
[17:18:54] nesoi: and I can't gem install mysql because I get 10 warnings and 1 error when I try it
[17:18:55] dngome[m]: has left #ruby: ("User left")
[17:19:05] nesoi: thanks apeiros
[17:20:14] ruby[bot]: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[17:20:20] apeiros: nesoi: ^ paste your error/warning there
[17:20:32] apeiros: probably lacking the dev files (headers) for mysql
[17:23:33] mtkd: has joined #ruby
[17:24:05] nesoi: apeiros: https://gist.github.com/anonymous/01208062ea3b951dbcff0b45e5985301
[17:24:48] apeiros: you should use mysql2, not mysql
[17:25:06] apeiros: mysql gem has been unmaintained for >4y
[17:27:36] dviola: has joined #ruby
[17:28:15] havenwood: http://logs.ryanbigg.com/ruby?date=2017-06-05#6298131
[17:28:52] nesoi: thanks apeiros. I installed mysql2 and changed the rakefile's require to that, and this is what I get running rake https://gist.github.com/anonymous/196d0ff640e3d7cca2d6340e51818ca2
[17:29:20] apeiros: nesoi: you're in a rails app?
[17:29:40] nesoi: no, it's a little app which uses activerecord but it's not rails
[17:30:09] nesoi: just a very short program
[17:30:13] apeiros: "Make sure that the adapter in config/database.yml is valid. If you use an adapter other than 'mysql2'…"
[17:30:33] nesoi: right, so I installed mysql2 and changed the require in the Rakefile to mysql2
[17:30:39] nesoi: and that's the error I am getting
[17:30:42] apeiros: given that the error talks about "mysql_adapter", tells me you didn't configure the adapter correctly.
[17:31:18] nesoi: what else would I have to do other than installing mysql2 and changing the require to mysql2?
[17:31:21] apeiros: you still seem to tell AR to load the mysql adapter, instead of mysql2. since it's not rails, no idea how you do it.
[17:31:44] apeiros: as the error tells you, the config/database.yml (or whatever you use in its stead)
[17:32:03] jenrzzz: has joined #ruby
[17:32:10] nesoi: there is no database.yml in config
[17:32:18] apeiros: *sob*, it's your app
[17:32:35] nesoi: I didn't write that part of it though
[17:32:40] apeiros: rails uses config/database.yml. you have done something to substitute that in your app. a way to configure AR.
[17:33:04] apeiros: well, then ask whoever wrote it. I can't really help with custom written code. and even less so without seeing it.
[17:33:30] matthewd: A Rails *app* uses database.yml; a straight AR-using thing is probably setting the AR configuration directly
[17:33:49] apeiros: matthewd: which is what I wrote…
[17:33:53] matthewd: nesoi: Find the place it sets the database server hostname/username/password, and change the 'adapter' there
[17:34:16] nesoi: matthewd: cool, thanks
[17:34:20] nesoi: and thanks apeiros
[17:34:33] matthewd: apeiros: Yeah sorry, I only half read
[17:34:48] nesoi: I will work on this a bit later, and appreciate the hints!
[17:37:23] SeepingN: has joined #ruby
[17:37:23] cadillac__: has joined #ruby
[17:40:33] omab: has joined #ruby
[17:41:42] rgr_: has joined #ruby
[17:42:09] AgentVenom: has joined #ruby
[17:43:39] alveric1: has joined #ruby
[17:43:57] BSaboia: has joined #ruby
[17:48:58] nettoweb__: has joined #ruby
[17:49:41] DrCode: has joined #ruby
[17:49:49] tomphp: has joined #ruby
[17:51:06] Silthias1: has joined #ruby
[17:56:40] bvcosta: has joined #ruby
[17:58:22] jackjackdripper: has joined #ruby
[17:59:06] duderonomy: has joined #ruby
[17:59:12] romank: has joined #ruby
[17:59:33] tomphp: has joined #ruby
[17:59:51] mochiyoda_: has joined #ruby
[18:00:07] xenops: has joined #ruby
[18:00:55] jgt2: has joined #ruby
[18:03:55] romank: has joined #ruby
[18:04:35] pupsicle: has joined #ruby
[18:04:54] mikecmpbll: has joined #ruby
[18:05:08] arup_r: has joined #ruby
[18:06:01] jgnagy: has joined #ruby
[18:06:58] hobodave_: has joined #ruby
[18:08:06] nettoweb__: has joined #ruby
[18:08:16] __Yiota: has joined #ruby
[18:08:37] romank: has joined #ruby
[18:11:08] kt: has joined #ruby
[18:13:31] romank: has joined #ruby
[18:13:50] TvL2386_: has joined #ruby
[18:14:27] alveric1: has joined #ruby
[18:15:32] nofxxxx: has joined #ruby
[18:16:52] t-recx: has joined #ruby
[18:20:13] pankaj: has joined #ruby
[18:23:30] bruce_lee: has joined #ruby
[18:23:30] bruce_lee: has joined #ruby
[18:23:53] HoierM: has joined #ruby
[18:26:57] Cohedrin: has joined #ruby
[18:27:18] synthroid: has joined #ruby
[18:27:21] gnufied: has joined #ruby
[18:27:42] [H|E|X]: has joined #ruby
[18:28:48] nankyokusei: has joined #ruby
[18:29:31] perniciouscaffei: has joined #ruby
[18:29:58] Joufflu: has joined #ruby
[18:31:04] shortdudey123: has joined #ruby
[18:32:41] mahlon: has joined #ruby
[18:32:52] snath: has joined #ruby
[18:33:28] hahuang65: has joined #ruby
[18:33:30] vktec: has joined #ruby
[18:33:41] vktec: Is it possible to pass blocks to blocks?
[18:34:23] apeiros: def foo; yield(&@stored_block); end; foo { |&block| block.call }
[18:34:34] Cohedrin: has joined #ruby
[18:34:44] Kneecaps: has joined #ruby
[18:35:20] vktec: Can you yield from a block though? I've tried Proc.new { || yield 3 }.call { |x| puts x } without success
[18:36:08] apeiros: yield is a keyword which is scoped to the current method
[18:36:14] vktec: Oh. That's a shame
[18:36:15] apeiros: and blocks aren't methods
[18:36:41] apeiros: the other way round would be the bigger shame
[18:36:47] shortdudey123: has joined #ruby
[18:37:46] piet_: has left #ruby: ("Leaving")
[18:38:00] vktec: I guess being able to do stuff like def foo; @array.do { |x| yield x }; end is pretty handy
[18:38:39] maattdd: has joined #ruby
[18:38:39] apeiros: s/do/each/, but yes
[18:38:48] vktec: Uh, yeah. That
[18:39:02] vktec: Thanks for the help apeiros
[18:39:28] nofxxxx: has joined #ruby
[18:39:43] jgt2: has joined #ruby
[18:44:06] otherj: has joined #ruby
[18:45:07] cjhowe7: has joined #ruby
[18:45:33] SCHAPiE: has joined #ruby
[18:47:58] centrx: has joined #ruby
[18:47:58] centrx: has joined #ruby
[18:53:11] dcluna: has joined #ruby
[18:54:34] jackjackdripper1: has joined #ruby
[18:56:23] jackjackdripper: has joined #ruby
[18:56:45] jackjackdripper1: has joined #ruby
[18:59:20] [reed]: has joined #ruby
[18:59:20] [reed]: has joined #ruby
[19:02:02] tomphp: has joined #ruby
[19:06:27] iomotoko: has joined #ruby
[19:06:28] mahlon: has joined #ruby
[19:08:57] jane_booty_doe: has joined #ruby
[19:12:54] KeyJoo: has joined #ruby
[19:16:46] sepp2k: has joined #ruby
[19:17:50] zapata: has joined #ruby
[19:26:42] jenrzzz: has joined #ruby
[19:30:10] shinnya: has joined #ruby
[19:31:28] tomphp: has joined #ruby
[19:32:39] hobodave: has joined #ruby
[19:33:25] ivanskie--work: has joined #ruby
[19:33:45] ivanskie--work: how's it going every1
[19:34:22] havenwood: ivanskie--work: hi
[19:34:35] ivanskie--work: so.. i'm trying to download a file. using open-uri or the net/http.. it looked like it was basic auth, but i get response saying its anauthorized.
[19:35:15] dionysus69: has joined #ruby
[19:35:19] ivanskie--work: when a popup comes up asking for username/password... what else could it be? javascript based?
[19:35:56] ivanskie--work: it looks to be a standard dialog as if its basic auth. and i am certain the username/password i'm providing is correct.
[19:36:23] patarr: has joined #ruby
[19:37:02] ecuanaso: has joined #ruby
[19:37:28] ivanskie--work: https://s17.postimg.org/jpyqfiwgf/temps1.png
[19:39:51] ivanskie--work: https://gist.github.com/i5okie/6d0e60aa0e0356f4e43fc65b5be3d8f4
[19:40:35] centrx: ivanskie--work: Does that look like a window in your Windows?
[19:40:39] ivanskie--work: open-uri just saves empty files.. thats why i'm trying this net/http way to see what the problem is.
[19:40:40] centrx: or window manager
[19:40:50] centrx: ivanskie--work: So you are running Windows with the old-style theme?
[19:41:00] ivanskie--work: no its just old firefox
[19:41:14] ivanskie--work: i have to download 5 files from 22 devices..
[19:41:28] centrx: but like Windows 7 or Windows 10, by default they look different than that dialog box
[19:41:45] ivanskie--work: i'd say windows 7. its windows server 2008
[19:42:01] Otti: has joined #ruby
[19:42:15] pankaj: has joined #ruby
[19:43:19] pankaj_: has joined #ruby
[19:43:22] mlindahl: has joined #ruby
[19:43:40] centrx: ivanskie--work: I'm saying that window may not have been created by your OS. It may just be a fake window created by the site?
[19:43:56] mim1k: has joined #ruby
[19:44:33] webopsx: has joined #ruby
[19:44:51] tomphp: has joined #ruby
[19:46:04] ivanskie--work: possible. I do think it's basic auth, because there is no other content on the page loading that i see in dev tools, until I put in credentials
[19:46:54] ivanskie--work: better question i guess would be how can I test this
[19:48:11] Cohedrin: has joined #ruby
[19:48:20] elomatreb: Look at the request/response headers in your browser
[19:51:32] konsolebox: has joined #ruby
[19:54:57] dcluna: has joined #ruby
[19:56:09] oivanrodrigues: has joined #ruby
[19:56:29] oivanrodrigues: has left #ruby: ()
[19:56:41] vktec: has left #ruby: ("So long and thanks for all the fish")
[19:56:50] ivanskie--work: WWW-Authenticate
[19:57:54] ivanskie--work: https://s14.postimg.org/ekrjy1fap/123.png
[19:59:16] Kneecaps_: has joined #ruby
[19:59:18] ivanskie--work: ok i guess its not basic auth exactly
[20:01:39] BSAlb: has joined #ruby
[20:01:55] tomphp: has joined #ruby
[20:05:37] pankaj: has joined #ruby
[20:05:46] dionysus69: has joined #ruby
[20:07:26] taurgal: has joined #ruby
[20:08:11] al2o3-cr: ivanskie--work: i think you want digest auth
[20:09:43] mathys: has joined #ruby
[20:10:26] ivanskie--work: i'm guessing this gem should help http://docs.seattlerb.org/net-http-digest_auth/Net/HTTP/DigestAuth.html
[20:10:56] al2o3-cr: ivanskie--work: thats stdlib
[20:11:17] ivanskie--work: but this says otherwise https://github.com/drbrain/net-http-digest_auth ?
[20:11:52] al2o3-cr: ivanskie--work: require 'net/http/digest_auth'
[20:15:22] flying: has joined #ruby
[20:15:36] Cohedrin: has joined #ruby
[20:17:03] nettoweb__: has joined #ruby
[20:18:41] romank: has joined #ruby
[20:20:16] al2o3-cr: holy shit, what was i thinking. derp.
[20:21:38] Xakotu: has joined #ruby
[20:22:16] zenspider: al2o3-cr: clearly you were remembering webrick/httpauth/digestauth.rb :P
[20:23:15] al2o3-cr: most probably
[20:23:23] al2o3-cr: ACTION is not with it today
[20:23:46] nesoi: has joined #ruby
[20:25:04] plujon: has joined #ruby
[20:26:58] zenspider: can be fixed with coffee :P
[20:29:32] nankyokusei: has joined #ruby
[20:29:41] Otti: has joined #ruby
[20:32:18] ivanskie--work: looks like that's working. weeee
[20:33:09] dionysus69: has joined #ruby
[20:33:14] belmoussaoui: has joined #ruby
[20:33:20] Mia: has joined #ruby
[20:33:21] Mia: has joined #ruby
[20:34:56] djbkd: has joined #ruby
[20:36:10] mim1k: has joined #ruby
[20:36:27] ldnunes: has joined #ruby
[20:36:39] belmoussaoui: has joined #ruby
[20:37:33] ecuanaso: has joined #ruby
[20:38:11] BSaboia: has joined #ruby
[20:39:11] myk267: has left #ruby: ("Leaving")
[20:40:23] marxarelli: has joined #ruby
[20:41:59] iomotoko: has joined #ruby
[20:43:46] jackjackdripper: has joined #ruby
[20:44:11] iomotoko: has joined #ruby
[20:45:22] hobodave_: has joined #ruby
[20:46:57] ecuanaso: has joined #ruby
[20:53:09] kies: has joined #ruby
[20:53:12] plujon: [].include? # <- is the performance for this defined? E.g. O(n), O(log n), O(1) ?
[20:54:45] agent_white: has joined #ruby
[20:54:59] iomotoko: has joined #ruby
[20:56:06] Cohedrin: has joined #ruby
[20:57:44] elomatreb: plujon: I don't know about Array, but if you're worried about that performance you could try a Set instead, which uses as a Hash to lookup members in nearly (?) constant time
[20:59:45] zenspider: plujon: that should be O(0) since it is empty
[21:00:15] plujon: elomatreb: Thanks; I was going to convert array to a hash for guaranteed O(1). But I didn't think (or know) about Set.
[21:00:42] canton7: I'd be very surprised if Array#include? wasn't O(n), and Set#include? wasn't O(1)
[21:01:12] zenspider: I'm still surprised that people worry about speed these days
[21:01:15] ur5us: has joined #ruby
[21:01:36] jenrzzz: has joined #ruby
[21:01:36] jenrzzz: has joined #ruby
[21:04:06] plujon: ACTION confirmed [].include? has O(n) performance using my ruby
[21:06:43] zenspider: yup yup. it's just a for loop
[21:07:05] iomotoko: has joined #ruby
[21:09:27] iomotoko: has joined #ruby
[21:10:42] patr0clus: has joined #ruby
[21:11:56] patr0clus: has joined #ruby
[21:12:12] jgnagy: has joined #ruby
[21:14:44] patr0clus: has joined #ruby
[21:16:30] contradictioned: has joined #ruby
[21:16:51] Kug3lis: has joined #ruby
[21:18:32] cdg: has joined #ruby
[21:19:24] iomotoko: has joined #ruby
[21:20:18] zenspider: I'm guarding on all bang methods, []=, concat, and replace. Cwhat sneaky mutators are there in Array?
[21:20:23] dcluna: has joined #ruby
[21:23:19] elomatreb: (and friends)
[21:23:38] ljarvis: there's loads :(
[21:25:12] ooc: has joined #ruby
[21:25:15] ooc: has left #ruby: ()
[21:26:29] VladGh: has joined #ruby
[21:27:08] jenrzzz: has joined #ruby
[21:27:08] jenrzzz: has joined #ruby
[21:27:10] ascarter: has joined #ruby
[21:27:16] jgt2: has joined #ruby
[21:27:17] mtkd: has joined #ruby
[21:27:39] tomphp: has joined #ruby
[21:28:37] synbit: has joined #ruby
[21:29:43] zenspider: oooh. shift I already guard... I need to wrap up unshift/pop/push
[21:31:05] impi0us: has joined #ruby
[21:31:18] impi0us: has left #ruby: ()
[21:31:24] ecuanaso: has joined #ruby
[21:32:12] jenrzzz_: has joined #ruby
[21:38:31] kies: has joined #ruby
[21:39:23] marxarelli: has joined #ruby
[21:50:17] cyphase: has joined #ruby
[21:54:05] mim1k: has joined #ruby
[21:54:18] enterprisey: has joined #ruby
[21:55:40] HoierM: has joined #ruby
[22:01:43] tomphp: has joined #ruby
[22:06:08] ecuanaso: has joined #ruby
[22:08:14] Cohedrin: has joined #ruby
[22:11:06] jenrzzz: has joined #ruby
[22:11:06] jenrzzz: has joined #ruby
[22:12:20] marr: has joined #ruby
[22:13:21] cjhowe7: has joined #ruby
[22:17:37] ascarter: has joined #ruby
[22:19:12] bkxd: has joined #ruby
[22:23:29] davidmichaelkarr: has joined #ruby
[22:28:00] jgt2: has joined #ruby
[22:30:30] nankyokusei: has joined #ruby
[22:34:46] jenrzzz: has joined #ruby
[22:36:16] centrx: has joined #ruby
[22:41:06] nettoweb__: has joined #ruby
[22:42:30] jenrzzz: has joined #ruby
[22:43:59] dviola: has joined #ruby
[22:44:02] snath: has left #ruby: ("Leaving")
[22:48:04] al2o3-cr1: has joined #ruby
[23:03:40] al2o3-cr: has joined #ruby
[23:07:29] jenrzzz: has joined #ruby
[23:07:29] jenrzzz: has joined #ruby
[23:13:16] bkxd: has joined #ruby
[23:16:21] t-recx: has joined #ruby
[23:20:58] Kug3lis: has joined #ruby
[23:23:41] jgt2: has joined #ruby
[23:30:48] chopin: has joined #ruby
[23:36:27] centrx: has joined #ruby
[23:36:27] centrx: has joined #ruby
[23:44:00] ziyangtian: has joined #ruby
[23:44:42] jenrzzz: has joined #ruby
[23:44:42] jenrzzz: has joined #ruby
[23:44:56] centrx: has joined #ruby
[23:44:56] centrx: has joined #ruby
[23:48:37] jackjackdripper: has joined #ruby
[23:51:01] brent__: has joined #ruby
[23:54:10] alveric2: has joined #ruby
[23:59:39] centrx: has joined #ruby
[23:59:39] centrx: has joined #ruby