« Back to channel list

#ruby - 16 May 2016

« Back 1 day Forward 1 day »
[00:00:49] zacts: shevy: I'm at ch 13 / 15 of Head First Ruby, I think I'm going to finish it within the next few hours
[00:01:06] arlek: has joined #ruby
[00:01:09] zacts: I'm starting poodr tomorrow. making progress! (then I have to write a bunch of ruby apps)
[00:01:15] zacts: (nothing substitutes for that)
[00:01:32] yfeldblum: has joined #ruby
[00:01:41] Ropeney: has joined #ruby
[00:01:53] zacts: my summer college class starts tomorrow too, but I can do this. I'm optimistic
[00:03:40] jancel: has joined #ruby
[00:03:46] RegulationD: has joined #ruby
[00:03:56] stannard: has joined #ruby
[00:04:53] y3: has joined #ruby
[00:05:11] LoneHermit: has joined #ruby
[00:06:33] rkazak: has joined #ruby
[00:07:26] shevy: zacts haha... I am reading boring science related .pdf files right now. the sooner I finish with this boring crap the better
[00:09:49] jenrzzz: has joined #ruby
[00:18:49] stannard: has joined #ruby
[00:19:40] idefine: has joined #ruby
[00:22:11] idefine: has joined #ruby
[00:22:39] m_antis: has joined #ruby
[00:23:16] roamingdog: has joined #ruby
[00:27:30] bazzy: apeiros, https://gist.github.com/bazzinotti/41d5bad79e656442fd9e6d506fc5c774
[00:27:51] nerium: has joined #ruby
[00:28:25] nerium: Is there a way load dependencies depending on current Ruby version in gemspec?
[00:28:28] bazzy: need help on making it more idiomatic. Pay attention to calls to the Helper module from the end of the code (Hooks)
[00:29:05] Elvin: has joined #ruby
[00:31:13] jackjackdripper: has joined #ruby
[00:33:09] LaT0rtue: has joined #ruby
[00:34:16] pawnbox: has joined #ruby
[00:35:05] SubjectiveBias: has joined #ruby
[00:37:38] allcentury: has joined #ruby
[00:39:45] idefine: has joined #ruby
[00:42:48] Nawn: has joined #ruby
[00:46:19] Coldblackice: has joined #ruby
[00:49:42] PlasmaStar: has joined #ruby
[00:51:29] idefine: has joined #ruby
[00:57:22] Puffball: has joined #ruby
[00:58:41] Yzguy: has joined #ruby
[00:58:54] noobsu: has joined #ruby
[00:59:30] ramfjord: has joined #ruby
[01:01:45] bazzy: apeiros, ping
[01:02:01] domgetter: has joined #ruby
[01:02:59] domgetter: You here, shevy ?
[01:06:42] ekinmur: has joined #ruby
[01:09:07] wigust: has joined #ruby
[01:11:24] jenrzzz: has joined #ruby
[01:11:42] noobsu: has joined #ruby
[01:12:58] patie: has joined #ruby
[01:13:52] nerium: has joined #ruby
[01:14:35] jaguarmagenta: has joined #ruby
[01:14:56] idefine: has joined #ruby
[01:15:32] claw: http://paste.debian.net/684187/ can anybody tell me why this is slow ? is it my implementation or is it net-ssh ? i get almost 100% cpu usage. ( copies random data over sftp to a remote server ) i get 800-1000kB/s
[01:15:50] idefine: has joined #ruby
[01:16:28] halfamind: has joined #ruby
[01:16:56] claw: on 1Gbit ethernet. looks like the cpu is the bottleneck
[01:18:24] wigust: has joined #ruby
[01:21:49] rbennacer: has joined #ruby
[01:22:45] noobsu: has joined #ruby
[01:23:15] mtkd: has joined #ruby
[01:24:17] idefine: has joined #ruby
[01:26:12] skweek: has joined #ruby
[01:26:31] mynameisbrian: has joined #ruby
[01:26:37] A5101: has joined #ruby
[01:29:54] shevy: domgetter semi... sort halfway sleeping
[01:30:16] domgetter: lol I wanted to show you a new gem I made
[01:30:23] domgetter: https://github.com/domgetter/rapel
[01:30:51] domgetter: It's a multi-client, multi-runtime repl server, and I'm using it to send ruby expressions and print them out in vim
[01:31:00] TheMoonMaster: domgetter: In your readme, ```vim`
[01:31:04] TheMoonMaster: erm, ```viml maybe
[01:31:42] stardiviner: has joined #ruby
[01:32:30] shevy: hmm what does multi runtime mean?
[01:32:42] shevy: I may not understand it today though, will have to reread after sleep
[01:33:23] d0nn1e: has joined #ruby
[01:33:41] noobsu: has joined #ruby
[01:34:08] TheMoonMaster: shevy: I don't know either tbf.
[01:34:26] domgetter: shevy: it can manage different runtimes to evaluate incoming expressions. Well, not yet, but it would be able to, say, take an incoming javascript expression and send it to a node runtime
[01:34:36] RegulationD: has joined #ruby
[01:39:31] domgetter: TheMoonMaster: it was ```vim thanks :)
[01:39:54] xall: has joined #ruby
[01:40:05] nankyokusei: has joined #ruby
[01:40:13] oetjenj: has joined #ruby
[01:45:13] pawnbox: has joined #ruby
[01:46:37] domgetter: I was envious of the lisp and clojure folks who were sending forms to their nREPL servers and I figured we could set something up similar in Ruby
[01:50:10] zast: has joined #ruby
[01:51:04] cdg: has joined #ruby
[01:51:31] jancel: has joined #ruby
[01:51:52] idefine: has joined #ruby
[01:52:50] gambl0re: has joined #ruby
[01:53:11] gambl0re: which language is easier to learn, ruby or php, rails vs laravel
[01:55:16] nerium: Can anyone explain why it tries to checkout this commit? https://travis-ci.org/oleander/git-fame-rb/jobs/130475142
[01:55:25] ecksit: has joined #ruby
[01:58:10] gambl0re: has left #ruby: ()
[02:03:10] wnd: has joined #ruby
[02:09:42] Devalo: has joined #ruby
[02:10:22] stardiviner: has joined #ruby
[02:10:35] zacts: shevy: music sometimes helps me with boring reading
[02:10:46] zacts: and this pomodoro technique http://pomodorotechnique.com
[02:10:58] zacts: almost done with this ruby book! =)
[02:11:21] `tim`: has joined #ruby
[02:11:40] jenrzzz: has joined #ruby
[02:13:10] joelwallis: has joined #ruby
[02:13:38] joelwallis: Are Ruby blocks executed asynchronous?
[02:13:57] domgetter: joelwallis: no
[02:14:15] Devalo: has joined #ruby
[02:14:27] kgrz: has joined #ruby
[02:14:37] joelwallis: If I have a method call that receives a block, the lines below it will be executed only after that block gets executed?
[02:15:01] domgetter: joelwallis: yes
[02:15:24] joelwallis: domgetter, newbie here. btw, ty for helping!
[02:15:25] idefine_: has joined #ruby
[02:15:35] domgetter: An exception to this rule is the block you pass to Thread.new
[02:15:59] domgetter: But unless you're doing async explicitly, it will block, yes
[02:16:24] Devalo: has joined #ruby
[02:21:38] xall: has joined #ruby
[02:22:59] The_Phoenix: has joined #ruby
[02:23:34] The_Phoenix: has joined #ruby
[02:24:31] rkazak: has joined #ruby
[02:24:36] bazzy: I am dealing with a plugin system.. where each plugin can access a hash called `config` .. I'd like to implement some kind of access layer that defines which keys are required to exist so that I can raise errors when they don't .. i only have that concept and was wondering if it would interest anyone to flesh it out .. I of course will be figuring it out too based on response
[02:24:54] The_Phoenix: has joined #ruby
[02:25:53] bazzy: What I haven't figured out yet is if it's best to implement a new system which requires a redesign of this config hash accesses .. or if I can somehow "transparently" implement the layer
[02:26:08] The_Phoenix: has joined #ruby
[02:26:33] bazzy: Considering that per plugin class definition, the list of required and optional config hash keys will change
[02:27:13] The_Phoenix: has joined #ruby
[02:27:15] bazzy: The plugin config hash is based on a pre-existing framework .. I'm open to modifying it but preliminarily against it
[02:28:37] The_Phoenix: has joined #ruby
[02:30:13] The_Phoenix: has joined #ruby
[02:33:30] p1k: has joined #ruby
[02:33:44] bronson: has joined #ruby
[02:39:05] tmtwd: has joined #ruby
[02:42:52] idefine: has joined #ruby
[02:47:55] blackmesa: has joined #ruby
[02:48:02] yaewa: has joined #ruby
[02:49:32] rbennacer: has joined #ruby
[02:50:44] bruno-: has joined #ruby
[02:56:10] jaguarmagenta: has joined #ruby
[02:58:04] dsea: has joined #ruby
[02:58:34] czerasz: has joined #ruby
[02:59:40] chip_: has joined #ruby
[03:02:58] capsloth: has joined #ruby
[03:04:00] idefine: has joined #ruby
[03:05:16] capsloth: has left #ruby: ("Leaving")
[03:06:49] nerium: Is there a way to combine this into one? "%5s" % ("%.2f" % 1.0)
[03:07:47] codeurge: has joined #ruby
[03:09:37] Alex-_: has joined #ruby
[03:09:42] stardiviner: has joined #ruby
[03:10:10] Alex-_: has left #ruby: ()
[03:10:52] braincras: has joined #ruby
[03:12:20] jenrzzz: has joined #ruby
[03:12:21] jenrzzz: has joined #ruby
[03:13:09] arescorpio: has joined #ruby
[03:13:14] halfamind: has joined #ruby
[03:14:40] zast: has left #ruby: ()
[03:16:05] pawnbox: has joined #ruby
[03:16:43] gix: has joined #ruby
[03:19:59] idefine: has joined #ruby
[03:22:56] moeabdol: has joined #ruby
[03:28:38] jtd: has joined #ruby
[03:31:55] joneshf-laptop: has joined #ruby
[03:32:08] d0lph1n98: has joined #ruby
[03:34:24] statelesscode: has joined #ruby
[03:36:26] pawnbox: has joined #ruby
[03:37:42] lxsameer: has joined #ruby
[03:38:03] stannard: has joined #ruby
[03:38:16] pawnbox: has joined #ruby
[03:39:39] agent_white: has joined #ruby
[03:40:30] wnd: has joined #ruby
[03:40:41] zenlot: has joined #ruby
[03:41:45] idefine: has joined #ruby
[03:46:00] idefine: has joined #ruby
[03:48:43] johnny56_: has joined #ruby
[03:48:53] LoneHermit: has joined #ruby
[03:51:36] blackmesa: has joined #ruby
[03:53:58] jancel: has joined #ruby
[03:54:26] rickmasta: has joined #ruby
[03:56:52] roamingdog: has joined #ruby
[04:05:08] codeurge: has joined #ruby
[04:05:16] jokester: has joined #ruby
[04:06:52] pawnbox: has joined #ruby
[04:07:30] dionysus69: has joined #ruby
[04:10:43] jaguarmagenta: has joined #ruby
[04:10:49] jobewan: has joined #ruby
[04:11:58] hk238: has joined #ruby
[04:13:20] sarlalian: has joined #ruby
[04:13:59] jenrzzz: has joined #ruby
[04:15:53] idefine: has joined #ruby
[04:17:53] Devalo: has joined #ruby
[04:23:20] SubjectiveBias: has joined #ruby
[04:29:04] mynameisbrian: has joined #ruby
[04:29:57] mynameisbrian: if I do: c = Proc.new { |num| num * 2 }
[04:30:10] mynameisbrian: shouldn't I have to use: &c to pass it?
[04:30:22] mynameisbrian: for some reason I get an error
[04:30:37] dionysus69: has joined #ruby
[04:30:46] kareeoleez: has joined #ruby
[04:30:52] mynameisbrian: I can just pass it normally using c
[04:36:21] bronson: has joined #ruby
[04:37:51] Ropeney: mynameisbrian, I believe & is only required when passing blocks?
[04:38:31] mynameisbrian: I'm seeing tutorials saying to pass procs that way
[04:38:53] mynameisbrian: http://www.eriktrautman.com/posts/ruby-explained-blocks-procs-and-lambdas-aka-closures
[04:40:51] Ropeney: mynameisbrian http://www.tweetegy.com/2012/01/ruby-blocks-procs-and-lambdas/
[04:45:02] roamingdog: has joined #ruby
[04:45:53] d0lph1n98: has joined #ruby
[04:48:37] ledestin: has joined #ruby
[04:53:10] Cohedrin_: has joined #ruby
[04:53:37] blackmesa: has joined #ruby
[05:07:11] rhastra: has joined #ruby
[05:13:53] rhastra: has joined #ruby
[05:15:21] akiTendo: has joined #ruby
[05:16:49] jokester: has joined #ruby
[05:17:23] idefine: has joined #ruby
[05:19:25] jaiks1: has joined #ruby
[05:21:48] whathappens: has joined #ruby
[05:21:52] janebootydoe: has joined #ruby
[05:28:43] kareeoleez: has joined #ruby
[05:29:03] konsolebox: has joined #ruby
[05:30:39] roamingdog: has joined #ruby
[05:30:39] kareeoleez: has joined #ruby
[05:31:07] whathappens: has joined #ruby
[05:31:14] SilverKey: has joined #ruby
[05:33:06] johnDoe111: has joined #ruby
[05:35:53] mynameisbrian: Ropeney, if you're still there, thanks
[05:36:05] mynameisbrian: that link explained everything.
[05:36:30] mynameisbrian: passed it as first argument, and I see that the & is optional
[05:37:24] harry111: has joined #ruby
[05:37:28] coyo: has joined #ruby
[05:38:21] blackgoat: has joined #ruby
[05:38:28] rkazak: has joined #ruby
[05:41:10] raeoks: has joined #ruby
[05:41:49] nankyokusei: has joined #ruby
[05:48:56] kirillow: has joined #ruby
[05:48:57] duncannz: has joined #ruby
[05:49:46] duncannz: has joined #ruby
[05:51:19] roamingdog: has joined #ruby
[05:53:21] kirillow: could someone please take a look at this https://gist.github.com/anonymous/cc7ffd05bf8dd59b96a03bc23b2462db
[05:54:05] kirillow: and explain to me why index.slim is able to access @posts but layout.slim can not access @config?
[05:54:24] kirillow: `NoMethodError: undefined method `[]' for nil:NilClass`
[05:54:38] blackmesa: has joined #ruby
[05:54:59] havenwood: kirillow: An aside, but you're not closing those files. Consider `File.read` or the block form of `File.open` that's self-closing.
[05:55:08] terminalrecluse: has joined #ruby
[05:55:43] kirillow: thanks i will take a look
[05:56:10] havenwood: kirillow: `YAML.load` is the usual way to write it in the actual coad.
[05:56:45] sarlalian: has joined #ruby
[05:56:52] nischay: has joined #ruby
[06:00:36] beauby: has joined #ruby
[06:00:59] moeabdol: has joined #ruby
[06:01:49] beauby: Hi there. When building a gem, is there a recommended way to add "optional methods" (i.e. methods that will get defined *only* if some constant is defined at runtime (say ActionController for instance))?
[06:07:04] freija_: has joined #ruby
[06:08:52] xue: has joined #ruby
[06:09:43] navneet_: has joined #ruby
[06:11:12] kgrz: has joined #ruby
[06:11:47] emilkarl: has joined #ruby
[06:15:06] jenrzzz: has joined #ruby
[06:16:55] flughafen_: has joined #ruby
[06:19:06] yfeldblum: has joined #ruby
[06:19:21] Devalo: has joined #ruby
[06:19:57] freija_: has joined #ruby
[06:20:45] freija: has joined #ruby
[06:23:15] yqt: has joined #ruby
[06:24:32] hakunin_: has joined #ruby
[06:26:17] havenwood: beauby: You can just use an if statement with a normal `def` method.
[06:26:20] firstdayonthejob: has joined #ruby
[06:26:50] havenwood: >> if defined? ActionController; def kapow; :oomph end end
[06:26:52] ruby[bot]: havenwood: # => nil (https://eval.in/571978)
[06:28:05] M570: has joined #ruby
[06:37:35] astrobunny: has joined #ruby
[06:37:55] bronson: has joined #ruby
[06:38:16] freija_: has joined #ruby
[06:39:24] aganov: has joined #ruby
[06:39:31] jenrzzz: has joined #ruby
[06:39:31] jenrzzz: has joined #ruby
[06:39:55] tildes: has joined #ruby
[06:39:58] ponga: has joined #ruby
[06:43:02] beauby: havenwood: Right, that's what I did. Thanks for the answer.
[06:45:10] navneet_: has joined #ruby
[06:45:15] neanderslob: has joined #ruby
[06:53:04] freija_: has joined #ruby
[06:55:09] kgrz: has joined #ruby
[06:55:26] blackmesa: has joined #ruby
[06:56:12] freija_: has joined #ruby
[06:59:00] freija1: has joined #ruby
[07:00:47] Olipro_: has joined #ruby
[07:02:22] biberu: has joined #ruby
[07:02:28] jgt1: has joined #ruby
[07:06:21] tildes: has joined #ruby
[07:06:36] kareeoleez: Something like [*'aa'..'zz'] will generate all possible combinations from aa to zz. What If I want to add a number?
[07:07:13] kareeoleez: e.g. ab + 01 => a0, a1, b0, b1
[07:07:47] johnDoe111: has joined #ruby
[07:08:24] siovene: has joined #ruby
[07:08:44] Devalo: has joined #ruby
[07:09:48] zzak: [n0kada, irc.freenode.net] [*"a".."b"].product([*"0".."1"]).map(&:join)
[07:10:57] haxrbyte: has joined #ruby
[07:11:25] last_staff: has joined #ruby
[07:12:34] Radar: Nice :) I always forget about product.
[07:14:25] kareeoleez: zzak: awesome
[07:14:35] kareeoleez: I'll look up the .product
[07:14:43] kareeoleez: haven't used it ever
[07:15:00] tzica: has joined #ruby
[07:15:49] Coldblackice: has joined #ruby
[07:15:56] kareeoleez: zzak: but it adds always to the end
[07:16:03] Lytol: has joined #ruby
[07:16:41] kareeoleez: zzak: https://repl.it/CRJd
[07:17:04] kareeoleez: I guess I'll have to create something rather custom
[07:17:55] Vile`: has joined #ruby
[07:17:55] haxrbyte: has joined #ruby
[07:19:53] johnDoe111: has joined #ruby
[07:20:40] the_drow: has joined #ruby
[07:20:45] Radar: Well, yeah. Where do you expect it to add it?
[07:20:50] Radar: Do you want 0a and 1a too?
[07:20:53] kareeoleez: even ['a', 'b', '0', '1'].combination(2).to_a returns [["a", "b"], ["a", "0"], ["a", "1"], ["b", "0"], ["b", "1"], ["0", "1"]]
[07:21:03] kareeoleez: all possible ones
[07:21:15] kareeoleez: I am creating a rainbow table algorithm for fun
[07:22:15] The_Phoenix: has joined #ruby
[07:22:25] freija_: has joined #ruby
[07:22:36] Radar: >> [*"a".."c"].product([*"0".."9"]).flatten.combination(2).map(&:join)
[07:22:43] ruby[bot]: Radar: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
[07:22:50] Radar: yay I broke the bot :)
[07:22:56] Radar: https://repl.it/CRJd/1
[07:25:14] kareeoleez: Radar: https://repl.it/CRJd/2 added .uniq.sort
[07:25:22] kareeoleez: Radar: this is so awesome
[07:25:44] johnDoe111: has joined #ruby
[07:27:32] tzica: having this script https://exchange.nagios.org/directory/Plugins/System-Metrics/Networking/Martin/details can anyone help me with a fix ?
[07:28:37] tzica: I tend to believe that scripts gives error when a mtr line look like this 10. ??? because for most of examples I took it\s working
[07:28:54] cpup: has joined #ruby
[07:30:08] jancel: has joined #ruby
[07:32:28] anisha: has joined #ruby
[07:33:52] ravishankarjha: has joined #ruby
[07:34:29] johnDoe111^: has joined #ruby
[07:37:10] mark_66: has joined #ruby
[07:37:23] LoneHermit: has joined #ruby
[07:38:47] aufi: has joined #ruby
[07:42:28] Labaleine: has joined #ruby
[07:42:37] nankyokusei: has joined #ruby
[07:45:35] grs: has joined #ruby
[07:45:38] johnDoe111^: has joined #ruby
[07:45:47] nerium: has joined #ruby
[07:46:56] terlar: has joined #ruby
[07:48:09] schpn: has joined #ruby
[07:49:09] ferr: has joined #ruby
[07:50:22] codecop: has joined #ruby
[07:53:48] lsmola: has joined #ruby
[07:54:22] blingrang: has joined #ruby
[07:55:54] blingrang: has joined #ruby
[07:56:10] blackmesa: has joined #ruby
[07:56:52] vondruch: has joined #ruby
[07:57:51] navneet__: has joined #ruby
[08:00:36] roshanavand: has joined #ruby
[08:01:16] hightower3: Hey, what's the common way in Ruby to hash directory names like "abcdef" into "a/ab/abc/abcdef" ?
[08:05:30] Ravisun66: has joined #ruby
[08:06:37] Ravisun66: any help for multithreading?
[08:08:43] toretore: hightower3: that depends on what behavior you want
[08:09:21] hightower3: toretore, right, right, I mean is there a lib or something dealing with that and providing extra options
[08:09:31] hightower3: (the functionality itself, in the basic sense, is trivial of course)
[08:10:05] johnDoe111^: has joined #ruby
[08:11:06] moeSeth: has joined #ruby
[08:11:58] toretore: hightower3: i don't see why you would even want to introduce a dependency for something like that
[08:12:38] toretore: your goal is probably to store a lot of files and to avoid storing them all in the same directory?
[08:13:24] toretore: so you probably want the standard method of hashing the filename and then splitting that up into n levels of dirs
[08:14:52] toretore: d=Digest::SHA1.hexdigest(filename); path, name = File.join(d[0], d[1], d[2], d[3]), d[4..-1]
[08:16:35] Stan: has joined #ruby
[08:18:51] pawnbox: has joined #ruby
[08:20:05] roshanavand: has joined #ruby
[08:23:24] johnDoe111^^: has joined #ruby
[08:24:01] johnDoe111^^^: has joined #ruby
[08:24:40] johnDoe111^^^^: has joined #ruby
[08:24:54] Zarthus: Does anyone know of decent libraries for HTTP? I've been using Unirest for a while but the maintainer never pushes updates to rubygems.org so you'll be stuck asking your users to use git for the gem
[08:25:42] Zarthus: I've written my own solution myself but it's far less feature-istic and chokes at HTTP redirections :<
[08:26:22] M570`: has joined #ruby
[08:27:38] jaruga___: has joined #ruby
[08:28:52] Shashikant86: has joined #ruby
[08:31:52] pabloh: has joined #ruby
[08:32:17] kirillow: has joined #ruby
[08:32:34] TomyLobo: has joined #ruby
[08:32:58] tzica: can anyone help me with a fix for this script https://exchange.nagios.org/directory/Plugins/System-Metrics/Networking/Martin/details ? it uses mtr and I think the script is having problems with the lines having ??? - it means there is no additional route information. Script is working for most of examples only the ones with ??? throws error
[08:33:24] tzica: the fix in the comments does not works
[08:35:40] bluOxigen: has joined #ruby
[08:37:42] czerasz: has joined #ruby
[08:37:47] aharlan: has joined #ruby
[08:38:23] stannard: has joined #ruby
[08:38:34] startupality: has joined #ruby
[08:40:15] bronson: has joined #ruby
[08:42:49] johnDoe111: has joined #ruby
[08:42:49] Ropeney: has joined #ruby
[08:43:13] pawnbox: has joined #ruby
[08:52:28] bluOxigen: has joined #ruby
[08:55:01] marr: has joined #ruby
[08:55:28] nankyokusei: has joined #ruby
[08:55:41] whathappens: has joined #ruby
[08:57:21] blackmesa: has joined #ruby
[08:57:26] whathapp_: has joined #ruby
[08:59:02] lacce: has joined #ruby
[08:59:17] whathapp_: has joined #ruby
[08:59:57] d0lph1n98: has joined #ruby
[09:00:02] nighttime: has joined #ruby
[09:00:23] aupadhye: has joined #ruby
[09:00:27] nankyokusei: has joined #ruby
[09:01:01] whathappens: has joined #ruby
[09:02:22] johnDoe111: has joined #ruby
[09:02:52] whathapp_: has joined #ruby
[09:03:42] startupality: has joined #ruby
[09:04:00] nischay: has joined #ruby
[09:04:25] noobsu: has joined #ruby
[09:04:29] oetjenj: has joined #ruby
[09:04:37] whathapp_: has joined #ruby
[09:04:43] konsolebox: has joined #ruby
[09:06:23] whathappens: has joined #ruby
[09:08:12] whathapp_: has joined #ruby
[09:08:44] Zarthus: tzica: can you give me some example content of what you're comparing against?
[09:09:31] Zarthus: if I were to loosely guess the problem is in the #run_mtr method, but I don't have any idea what it's really for but I could verify if the regex can be improved
[09:09:59] whathapp_: has joined #ruby
[09:10:08] tzica: ./check_mtr -H www.google.com -c 2 is fine
[09:10:14] Guest70: has joined #ruby
[09:10:42] tzica: ./check_mtr -H www.nytimes.com -c 2 is not
[09:11:01] Hyuk: has joined #ruby
[09:11:03] lacce: has joined #ruby
[09:11:08] tzica: if |I run the mtr tool alone is like this
[09:11:22] Zarthus: (please use a pastebin if the content is large)
[09:11:36] Zarthus: i'm assuming the output content is what we're looking for
[09:11:46] whathappens: has joined #ruby
[09:12:19] johnDoe111^^: has joined #ruby
[09:12:25] Zarthus: just "doesn't work" doesn't tell me a lot
[09:12:33] workmad3: has joined #ruby
[09:13:35] whathapp_: has joined #ruby
[09:13:36] tzica: http://pastebin.com/2q4ei3xL
[09:13:37] ruby[bot]: tzica: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/36c42eda4c15b5418d6be7b62ca6cb66
[09:13:37] ruby[bot]: tzica: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[09:13:41] Hyuk: has left #ruby: ()
[09:13:52] Hyuk: has joined #ruby
[09:14:00] Zarthus: are you getting an error the moment ??? is identified?
[09:14:13] tzica: https://gist.github.com/anonymous/36c42eda4c15b5418d6be7b62ca6cb66
[09:14:33] tzica: I skipped 1-7 as not important
[09:14:42] Zarthus: yeah that's go
[09:14:44] tzica: number 10 is with ??
[09:15:03] johnDoe111^^: has joined #ruby
[09:15:23] whathapp_: has joined #ruby
[09:15:38] harry111: has joined #ruby
[09:16:56] startupality: has joined #ruby
[09:17:06] whathappens: has joined #ruby
[09:17:25] Zarthus: try something like https://gist.github.com/Zarthus/e882cc945418a698a0a9fcd588851604 - I haven't tested it myself and it's a petty hack
[09:17:29] tzica: Zarthus and the error when running for nytimes http://pasted.co/552bc421
[09:17:58] Zarthus: I am not sure if m.captures will contain ... nil regardless, it might
[09:18:09] Zarthus: ACTION is testing that right now, actually
[09:18:12] yfeldblum: has joined #ruby
[09:18:19] tzica: Zarthus: you changed only that "re" assignment ?
[09:18:32] Zarthus: line 9, 12-15
[09:18:57] Zarthus: yeah, it's not going to work
[09:18:58] whathapp_: has joined #ruby
[09:19:08] Zarthus: the regexp library fills in remainders with nil
[09:20:04] Zarthus: replace the if with m.captures.select { |m| !m.nil? }.count < 4
[09:20:05] gregf_: has joined #ruby
[09:20:36] Zarthus: er, also a different variable otherwise i'll overwrite the existing one # { |x| !x.nil? }
[09:20:45] whathapp_: has joined #ruby
[09:21:03] evidex: has joined #ruby
[09:22:11] madgen: has joined #ruby
[09:22:32] whathappens: has joined #ruby
[09:22:54] skade: has joined #ruby
[09:23:16] jgt1: has joined #ruby
[09:23:21] johnDoe111^^: has joined #ruby
[09:23:23] Zarthus: honestly I should have probably separated the regexes instead, or even just a simple String#include? would have sufficed
[09:24:19] whathapp_: has joined #ruby
[09:25:15] tzica: thanks for the help, it's bypassing the ??? question marks with both
[09:25:16] ravishankarjha: has joined #ruby
[09:25:36] tzica: the first if is working too
[09:25:44] nobitanobi: has joined #ruby
[09:26:04] whathapp_: has joined #ruby
[09:26:06] harry111: has joined #ruby
[09:26:21] Zarthus: if you want me to send in a proper pr I can do that
[09:26:45] tzica: the 2nd if truncates a bit the output
[09:26:50] moeabdol: has joined #ruby
[09:27:30] tzica: let me find some other hosts with route issues on the way(middle) and not at the end
[09:27:54] whathapp_: has joined #ruby
[09:27:58] harry111: ANICK harry222
[09:29:40] whathappens: has joined #ruby
[09:31:04] jaguarmagenta: has joined #ruby
[09:31:11] whathapp_: has joined #ruby
[09:31:43] tzica: Zarthus yes, this if m.captures.select { |xx| !xx.nil? }.count < 4 deletes the lines with ??? - not my intention - from network point of view means no route info, but still good info for me :)
[09:32:25] tzica: so I find this if m.captures.count < 4 fine
[09:32:39] Zarthus: tzica: oh, you can literally print out anything you want, it's just that I stopped it from erroring
[09:33:11] Zarthus: at the moment all it does is tell you it skips it because it doesn't know what to do with it
[09:33:23] Zarthus: (and it does tell you it encountered an ??? block)
[09:36:54] Devalo: has joined #ruby
[09:37:37] RegulationD: has joined #ruby
[09:37:57] blackmesa: has joined #ruby
[09:38:18] Gasher: has joined #ruby
[09:38:35] blaxter: has joined #ruby
[09:38:42] Devalo: has joined #ruby
[09:41:20] chipotle: has joined #ruby
[09:42:02] mdw: has joined #ruby
[09:42:14] koooge: has joined #ruby
[09:49:48] blackgoat: has joined #ruby
[09:53:45] johnDoe111^^: has joined #ruby
[09:55:42] Ishido: has joined #ruby
[09:59:33] qasaur: has joined #ruby
[10:01:40] startupality: has joined #ruby
[10:03:41] qasaur: has joined #ruby
[10:06:47] claw: can anybody confirm that net-sftp is really slow ? i have this test: http://paste.debian.net/684187/, It uploads random data to 'test-host' speed is 1000 kB/s max while cpu runs at 100%.
[10:07:33] claw: (on a 1 gigabit ethernet connection)
[10:08:07] antgel: has joined #ruby
[10:09:21] banister: has joined #ruby
[10:14:57] stardiviner: has joined #ruby
[10:17:47] johnDoe111^^^: has joined #ruby
[10:17:55] Devalo: has joined #ruby
[10:18:08] workmad3: claw: is the test host on the 1gb LAN?
[10:18:17] claw: workmad3: yes
[10:19:02] A124: has joined #ruby
[10:21:27] workmad3: claw: ok... it probably is slow, but I'm surprised it would be that much slower
[10:21:44] nankyokusei: has joined #ruby
[10:23:31] ujjain: error_without_bodytag = #{e.message}.sub! '<body>', '<removedbody>' - Can I use .sub with e.message?
[10:24:50] workmad3: claw: you should probably be doing (read.fdiv(time_passed)).fdiv(1024) for more accurate reporting (you're suffering from multiple truncations from integer division currently) but that doesn't account for reaching 1% of possible upload speed :/
[10:25:07] gregf_: has joined #ruby
[10:27:42] flughafen_: has joined #ruby
[10:28:28] noobsu: has joined #ruby
[10:28:46] jgt1: has joined #ruby
[10:30:00] grs: has joined #ruby
[10:30:19] johnDoe111: has joined #ruby
[10:31:25] claw: workmad3: yes even if its not accurate something realy wrong here
[10:32:35] der-landgraf: has joined #ruby
[10:33:31] johnDoe111: has joined #ruby
[10:35:35] johnDoe111^^^: has joined #ruby
[10:36:46] tagaulap: has joined #ruby
[10:38:03] johnDoe111: has joined #ruby
[10:40:43] johnDoe111: has joined #ruby
[10:43:59] lxsameer: has joined #ruby
[10:46:30] idefine: has joined #ruby
[10:47:33] jhass: ujjain: I'd refrain from sub! but sub should be no problem as it's a string
[10:47:36] pyon: has joined #ruby
[10:47:43] johnDoe111: has joined #ruby
[10:48:00] jhass: a bit weird to have HTML (?) in an exception in the first place though
[10:48:33] rodfersou: has joined #ruby
[10:48:43] diegoaguilar: has joined #ruby
[10:49:23] nchambers: has joined #ruby
[10:50:40] johnDoe111: has joined #ruby
[10:51:59] johnDoe111: has joined #ruby
[10:52:49] harry111: has joined #ruby
[10:52:51] skade: has joined #ruby
[10:54:11] harry111: has joined #ruby
[10:56:36] jgt2: has joined #ruby
[10:57:51] johnDoe111: has joined #ruby
[10:58:20] harry111: has joined #ruby
[10:58:55] d0lph1n98: has joined #ruby
[10:58:57] Biopandemic: has joined #ruby
[10:59:05] madgen: has joined #ruby
[10:59:31] tAn: has joined #ruby
[11:00:01] platzhirsch: has joined #ruby
[11:00:16] harry111: hello everyone
[11:02:32] harry222: ACTION waves hello
[11:04:42] emilkarl: has joined #ruby
[11:04:42] pyon: has joined #ruby
[11:08:06] nankyokusei: has joined #ruby
[11:12:43] blackmesa: has joined #ruby
[11:13:25] aupadhye: has joined #ruby
[11:19:18] deadnull_: has joined #ruby
[11:20:10] Devalo: has joined #ruby
[11:23:09] GodFather: has joined #ruby
[11:23:57] ldnunes: has joined #ruby
[11:25:52] ravishankarjha: has joined #ruby
[11:26:58] johnmilton: has joined #ruby
[11:30:29] sepp2k: has joined #ruby
[11:31:24] jgt3: has joined #ruby
[11:33:14] noobsu: has joined #ruby
[11:35:55] gregf: has joined #ruby
[11:36:11] nerium: has joined #ruby
[11:36:43] crameth: has joined #ruby
[11:38:26] RegulationD: has joined #ruby
[11:38:28] matp: has joined #ruby
[11:42:21] der-landgraf: has joined #ruby
[11:42:24] flughafen_: has joined #ruby
[11:43:36] govg: has joined #ruby
[11:44:13] noobsu: has joined #ruby
[11:46:09] j_mcnally: has joined #ruby
[11:46:51] d0lph1n98: has joined #ruby
[11:46:58] m_antis: has joined #ruby
[11:49:02] johnmilton: has joined #ruby
[11:49:07] johnny56: has joined #ruby
[11:50:06] ixti: has joined #ruby
[11:51:26] grs: has joined #ruby
[11:52:22] nankyokusei: has joined #ruby
[11:52:31] sdothum: has joined #ruby
[11:53:18] nadir: has joined #ruby
[11:54:55] |2701: has joined #ruby
[12:01:25] sinkensabe: has joined #ruby
[12:01:43] Hanmac: has joined #ruby
[12:03:06] flashpoint9: has joined #ruby
[12:04:08] jgt3: has joined #ruby
[12:06:12] sami: has left #ruby: ()
[12:07:13] spider-mario: has joined #ruby
[12:08:09] Weavel: has joined #ruby
[12:08:19] GodFather: has joined #ruby
[12:08:20] houhoulis: has joined #ruby
[12:09:06] aegis3121: has joined #ruby
[12:09:54] madgen: has joined #ruby
[12:10:22] djcp: has joined #ruby
[12:13:06] bauerbob: has joined #ruby
[12:14:48] qasaur: has joined #ruby
[12:15:34] synthroid: has joined #ruby
[12:15:38] shevy: yo Zarthus
[12:16:02] Yiota: has joined #ruby
[12:17:15] bauerbob: hi. i want to implement a method that can be called with a hash as well as key value pairs. some of the keys are mandatory, but :to is optional and it’s the only one that should not be in the variable where the rest of the hash/key-value-pairs are in? my gist works, but I guess there’s a more elegant solution in ruby. could you please have a look? https://gist.github.com/thorstenhirsch/30d305f553d5c5a30201308421a4e2fe
[12:18:41] apeiros: bauerbob: IMO don't do that. let the caller normalize the arguments. that'll be *a lot* cleaner.
[12:19:41] apeiros: if you insist on what I'd consider an ugly way: def something(hashargs=nil, id: default, foo: default, to: default); if hashargs; id = hashargs[:id]; …; end …
[12:19:44] Devalo: has joined #ruby
[12:20:15] apeiros: there are other ways, sacrificing different things.
[12:21:49] IrishGringo: has joined #ruby
[12:22:10] bauerbob: ok… well, you’re right, this was more or less a workaround, because i couldn’t find the place, where i call something() with key-value pairs instead of a hash
[12:22:28] Devalo: has joined #ruby
[12:22:49] bauerbob: guess i’ll stick to something(msg, to: nil)
[12:22:54] apeiros: it's called keyword arguments, not key value pairs ;-)
[12:23:40] nankyokusei: has joined #ruby
[12:24:15] gagrio: has joined #ruby
[12:27:27] blackgoat: has joined #ruby
[12:28:16] akiTendo: has joined #ruby
[12:29:38] shevy: how about... keyword pairs! or ... argument values!
[12:29:49] raeoks: has joined #ruby
[12:30:04] allcentury: has joined #ruby
[12:32:16] tAn: has joined #ruby
[12:36:24] ravishankarjha: has joined #ruby
[12:36:30] akiTendo: has joined #ruby
[12:37:20] mdw: has joined #ruby
[12:37:34] jancel: has joined #ruby
[12:39:25] Madplatypus: has joined #ruby
[12:40:08] Azure: has joined #ruby
[12:43:51] bronson: has joined #ruby
[12:45:54] umdstu: has joined #ruby
[12:46:10] labaleine_: has joined #ruby
[12:49:02] duoi: has joined #ruby
[12:49:36] gnufied: has joined #ruby
[12:51:35] |2701: has joined #ruby
[12:51:35] |2701: has joined #ruby
[12:52:47] kobain: has joined #ruby
[12:53:09] akiTendo: has joined #ruby
[12:55:13] sinkensabe: has joined #ruby
[12:55:38] Devalo: has joined #ruby
[12:55:57] Kus: has joined #ruby
[12:56:55] AnoHito_: has joined #ruby
[12:57:01] flashpoint9: has joined #ruby
[12:57:22] pawnbox: has joined #ruby
[12:57:37] monoprotic: has joined #ruby
[12:57:37] monoprotic: has joined #ruby
[12:58:19] pawnbox: has joined #ruby
[12:59:12] roamingdog: has joined #ruby
[12:59:50] hays: has joined #ruby
[13:00:08] j_mcnally: has joined #ruby
[13:00:10] iamvery: has joined #ruby
[13:00:39] halfamind: has joined #ruby
[13:01:00] jwang: has joined #ruby
[13:02:04] aupadhye: has joined #ruby
[13:02:08] tzica: can anyone help me again (had to upgrade mtr due to a bug) with a fix for this script https://exchange.nagios.org/directory/Plugins/System-Metrics/Networking/Martin/details ? the script is having problems with the lines having ???
[13:02:24] kareeole_: has joined #ruby
[13:02:43] tzica: good output: 9.|-- 72.52.48.197
[13:02:55] tzica: problematic: 10.|-- ??? 100.0 3 0.0 0.0 0.0 0.0 0.0
[13:04:23] roamingd_: has joined #ruby
[13:04:31] stannard: has joined #ruby
[13:05:49] sinkensabe: has joined #ruby
[13:06:54] tzica: running now on mtr 0.85
[13:07:37] Yiota: has joined #ruby
[13:09:15] ekinmur: has joined #ruby
[13:09:37] apeiros: tzica: I don't really understand your problem from your description
[13:11:20] sinkensabe: has joined #ruby
[13:12:19] tzica: apeiros : when runnint check_mtr script and the output contains a problematic line it throws:
[13:12:19] tzica: http://hastebin.com/zezewihati.vbs
[13:13:11] apeiros: nice, for some reason I can't resolve hastebin. downforeveryone confirms it's up, though.
[13:13:54] adaedra: you're too hasty.
[13:14:00] adaedra: hello #ruby.
[13:14:08] apeiros: using google dns even…
[13:14:19] toretore: parsing unix output lol
[13:14:34] toretore: i'm going to mention it every time
[13:15:22] tzica: http://pasted.co/14cd7d08 - this ?
[13:15:25] apeiros: ok, definitively a problem with google's dns as it seems. using isp's dns now and it resolves just fine
[13:15:26] roamingdog: has joined #ruby
[13:15:38] adaedra: why do you use Google DNS
[13:15:41] toretore: ?gist tzica
[13:15:41] ruby[bot]: tzica: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
[13:15:55] apeiros: tzica: and where's the code?
[13:16:15] eljimmy: has joined #ruby
[13:16:16] apeiros: tzica: or rather - can you make a small, reproducible example?
[13:16:34] apeiros: adaedra: because my isp's dns was horrible some time back
[13:16:38] tzica: just a moment, tryint to use gist.github.com then
[13:17:05] toretore: apeiros: it's this code: https://github.com/martin2110/check_mtr/blob/master/check_mtr#L52
[13:17:06] duoi: has joined #ruby
[13:17:13] sinkensabe: has joined #ruby
[13:17:29] toretore: basically a regex doesn't match when the expected output doesn't appear
[13:18:38] aegis3121: has joined #ruby
[13:18:41] apeiros: tzica: and the above "good output"/"problematic" is the input for your regex? literally like that?
[13:18:58] tzica: moment, I'm adding eveything to gist now
[13:19:54] cdg: has joined #ruby
[13:20:03] iamvery: has joined #ruby
[13:21:13] jwang: has joined #ruby
[13:21:59] pawnbox: has joined #ruby
[13:22:12] tax: has joined #ruby
[13:22:17] skalfyfan: has joined #ruby
[13:22:33] `tim`: has joined #ruby
[13:23:30] tzica: https://gist.github.com/livilu/7dd59beacd45931917c7e5deafca7a15
[13:24:01] gagrio: has joined #ruby
[13:24:13] tzica: at the end are the test
[13:24:52] apeiros: tzica: you could reduce your example to just the regex matching and the input lines. the rest of the script is just noise at this point.
[13:25:00] apeiros: just for future reference.
[13:25:27] swills: has joined #ruby
[13:25:29] tzica: re = /^\s*(\d*).\|--\s*(\S*).*?(\d*?.\d*?)%\s*.*?\d\s+(.*?)\s.*?$/
[13:25:42] GodFather: has joined #ruby
[13:26:41] apeiros: you can use pry (and/or rubular.com) to figure out where your regex needs to be amended
[13:26:46] apeiros: example for pry:
[13:26:59] apeiros: line = " 10.|-- ??? 100.0 2 0.0 0.0 0.0 0.0 0.0"
[13:27:14] apeiros: line[/^\s*(\d*).\s*/]
[13:27:23] ChiefAlexander: has joined #ruby
[13:27:36] apeiros: you'll see that that still matches. you can then add more parts of your regex and see when it starts to fail.
[13:27:50] IrishGringo: has joined #ruby
[13:29:15] malconis: has joined #ruby
[13:29:33] roshanavand: has joined #ruby
[13:30:17] malconis: has joined #ruby
[13:30:56] claw: workmad3: the cputime in net-sftp is consumed by the xor method of ctr. so speed is limited to the cpu
[13:30:58] kies: has joined #ruby
[13:31:46] apeiros: claw: interesting. do you have file/lineno of the implementation of it?
[13:32:32] jaguarmagenta: has joined #ruby
[13:32:40] claw: apeiros: https://github.com/net-ssh/net-ssh/blob/master/lib/net/ssh/transport/ctr.rb#L78
[13:33:05] apeiros: ok, they already use 64bit ints to do the xor
[13:33:14] apeiros: I wonder whether a tiny native method would help
[13:35:43] gtqgup: has joined #ruby
[13:37:52] tlaxkit: has joined #ruby
[13:38:01] d0nn1e: has joined #ruby
[13:38:14] claw: apeiros: http://f.666kb.com/i/d8zjv10dtdoyvnmz3.gif
[13:39:07] jhass: still quite a few array allocations in there though
[13:39:10] grs: has joined #ruby
[13:39:22] Yiota: has joined #ruby
[13:39:39] rbennacer: has joined #ruby
[13:40:02] kareeoleez: has joined #ruby
[13:40:34] rbennacer: has joined #ruby
[13:41:10] apeiros: zip will create a new array on each iteration
[13:41:27] CloCkWeRX: has joined #ruby
[13:41:40] apeiros: brb, will try to unthaw my (sadly weak) C-ruby-fu after.
[13:42:03] madgen: has joined #ruby
[13:42:32] allcentury: has joined #ruby
[13:42:44] irocksu: has joined #ruby
[13:43:39] irocksu: i have weird behavior with a gsub expression
[13:43:54] jhass: could try to see if s1 = s1.unpack("Q*"); s2 = s2.unpack("Q*"); Array.new(s1.size) {|i| s1[i]^s2[i] }.pack("Q*") makes a difference meanwhile
[13:43:57] hrsxpj: has joined #ruby
[13:44:05] kovim: has joined #ruby
[13:44:32] irocksu: i have string and want to escape ‘ with \’ to put the result in a database. unfortunately the result string seems broken.
[13:44:49] irocksu: "I Can't Sleep (J'ai pas sommeil) (1994)".gsub(/'/, "\\\'")
[13:45:07] irocksu: gives me: "I Cant Sleep (J'ai pas sommeil) (1994)t Sleep (Jai pas sommeil) (1994)ai pas sommeil) (1994)"
[13:45:36] toretore: >> "I Can't Sleep (J'ai pas sommeil) (1994)".gsub(/'/, "\\\\\\\\")
[13:45:36] kovim: has left #ruby: ()
[13:45:37] ruby[bot]: toretore: # => "I Can\\\\t Sleep (J\\\\ai pas sommeil) (1994)" (https://eval.in/572155)
[13:45:44] toretore: >> "I Can't Sleep (J'ai pas sommeil) (1994)".gsub(/'/, "\\\\\\")
[13:45:50] ruby[bot]: toretore: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
[13:46:12] karmatr0n: has joined #ruby
[13:46:16] toretore: >> "I Can't Sleep (J'ai pas sommeil) (1994)".gsub(/'/, "\\\\'")
[13:46:21] stannard: has joined #ruby
[13:46:22] ruby[bot]: toretore: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[13:46:53] toretore: anyway, i think the magic number is 4
[13:47:49] jhass: irocksu: no, you don't want to "escape to put into the database"
[13:47:55] jhass: irocksu: you want to use bind parameters
[13:48:13] toretore: > "i'm telling y'all it's sabotage".gsub(/'/, "\\\\\\0")
[13:48:13] toretore: => "i\\'m telling y\\'all it\\'s sabotage"
[13:48:31] CloCkWeRX: has joined #ruby
[13:48:38] irocksu: jhass: i actually want to escape it so i can use INSERT INTO… VALUES(‘result goes here’,…)
[13:48:48] jhass: irocksu: yeah no, you don't
[13:49:27] toretore: irocksu: any decent sql library has functionality to do this for you. you don't interpolate strings together and execute them as sql
[13:49:49] irocksu: this is a small import script
[13:49:58] irocksu: no production code
[13:50:09] SilverKey: has joined #ruby
[13:50:28] toretore: doesn't matter, do it properly
[13:50:43] Veejay: And using bind parameters and the proper library is actually much simpler
[13:50:46] Veejay: It's the lazy choice
[13:51:15] shevy: I like lazy
[13:52:18] ChiefAlexander: has joined #ruby
[13:53:01] irocksu: still this does not answer the question though :)
[13:53:08] irocksu: and 4 is wrong by the way
[13:53:09] duoi: has joined #ruby
[13:53:40] |ifei5good: has joined #ruby
[13:55:13] CloCkWeRX: has left #ruby: ()
[13:55:42] toretore: irocksu: your question has been correctly answered, and a better way has been shown
[13:55:52] qasaur: has joined #ruby
[13:56:20] Yiota: has joined #ruby
[13:57:08] startupality: has joined #ruby
[13:58:44] arpegius: has joined #ruby
[14:00:08] a346: has joined #ruby
[14:00:23] rkazak: has joined #ruby
[14:01:34] blackmesa: has joined #ruby
[14:02:05] BTRE: has joined #ruby
[14:04:44] emilkarl: has joined #ruby
[14:05:14] idle_task: has joined #ruby
[14:05:52] apeiros: claw: ok, native C method is 80x faster for a 10k string :)
[14:06:44] apeiros: I'll gist up the code
[14:09:34] mdw: has joined #ruby
[14:10:06] apeiros: claw: https://gist.github.com/apeiros/6e2b2ff645083c731235a7601df4e077
[14:10:45] apeiros: no guarantees that this code is correct, though. I only did a single comparison with xor! and that seemed to be correct.
[14:11:01] apeiros: but I'm pretty interested in how it changes your net-sftp experience.
[14:11:16] jancel: has joined #ruby
[14:12:52] mdw7: has joined #ruby
[14:13:44] allcentury: has joined #ruby
[14:14:16] apeiros: eh, heh, found https://github.com/fny/xorcist
[14:14:34] agent_white: has joined #ruby
[14:14:38] nando293921: has joined #ruby
[14:14:49] apeiros: IMO String#^ should just be in ruby core
[14:15:09] nando293921: has joined #ruby
[14:15:22] stardiviner: has joined #ruby
[14:15:32] perlgod: has joined #ruby
[14:16:18] claw: apeiros: stupid question: how to use it ?
[14:16:34] claw: make was fine but how to call it from ruby
[14:17:01] apeiros: require the resulting .so or .bundle by either putting it into a path in $LOAD_PATH, or by absolute path
[14:17:38] apeiros: e.g. I just did `pry -r /Users/apeiros/Documents/Development/Ruby/snippets/native_string_xor/ext/string_xor` (copy pasted the path of course :D)
[14:17:56] p1k: has joined #ruby
[14:18:08] apeiros: make sure you require ctr from net-sftp, then redefine it to use String#^
[14:18:18] apeiros: "foo" ^ "bar" # is how it's called
[14:18:52] araujo: has joined #ruby
[14:23:52] CoderPuppy: has joined #ruby
[14:24:07] apeiros: oh great, still had the ctr.rb file open in my browser. the method actually gets defined dynamically upon extend
[14:24:20] apeiros: I'd probably get a hold of the source-file you're loading and edit that.
[14:24:59] apeiros: I wonder why they chose to implement it that way. seems bad.
[14:26:32] dstarh: has joined #ruby
[14:26:48] jobewan: has joined #ruby
[14:26:51] davedev24: has joined #ruby
[14:27:56] nankyokusei: has joined #ruby
[14:27:58] startupality: has joined #ruby
[14:28:13] CloCkWeRX: has joined #ruby
[14:28:23] ftj: has joined #ruby
[14:28:33] jwren: has joined #ruby
[14:29:04] hydr8d: has joined #ruby
[14:29:28] Zarthus: Does TracePoint.new(:raise) also catch caught exceptions
[14:29:35] CloCkWeRX: has left #ruby: ()
[14:30:03] apeiros: Zarthus: try it?
[14:30:10] SilverKey: has joined #ruby
[14:31:21] claw: before: http://f.666kb.com/i/d8zjv10dtdoyvnmz3.gif
[14:31:21] claw: after: http://f.666kb.com/i/d8zl6llx66egwxuz3.gif
[14:31:54] apeiros: it'd be helpful if there were headers on those columns
[14:32:05] pawnbox_: has joined #ruby
[14:32:06] antgel: has joined #ruby
[14:32:30] claw: %Total %Self Total Self Wait Child Calls Name
[14:33:12] claw: they are just a the top of the page. ( ruby-prof gem )
[14:33:19] Zarthus: apeiros: yeah, it looks like that's the case.
[14:33:21] drptbl: has joined #ruby
[14:33:29] apeiros: claw: and your transfer datarate?
[14:33:35] Zarthus: I was really surprised to find windows registry errors in my error logs
[14:33:58] yqt: has joined #ruby
[14:34:58] claw: 2 times faster cpu still at 100%. that whole implementation of ctr is a problem
[14:35:09] polishdub: has joined #ruby
[14:35:49] guille_: has joined #ruby
[14:35:54] claw: #update still consumes 98.18% of the total cpu time
[14:36:04] apeiros: seems like #update is the next big fish
[14:36:39] guille_: has left #ruby: ()
[14:36:47] shevy: I like fish
[14:37:09] apeiros: double the bandwith is still piss poor. at least iirc that means you get 2Mbit/s on a 1000Mbit/s connection?
[14:37:33] apeiros: what kind of transfer rates do you get with a native sftp client?
[14:37:44] duoi: has joined #ruby
[14:38:49] apeiros: btw., why are the % columns empty except for #update?
[14:41:48] jancel: has joined #ruby
[14:43:06] claw: if native sftp client i get ~ 800Mbit/s
[14:43:23] claw: apeiros: dont know why the columns are empty its generated using ruby-prof
[14:43:31] zhunting: has joined #ruby
[14:43:59] apeiros: mhm, 800Mbit/s is about what I'd have expected
[14:44:25] Insti: has joined #ruby
[14:44:31] apeiros: now I wonder whether I should change some code at work, which uses net/sftp too to download ~300MB of data
[14:44:55] mdw: has joined #ruby
[14:45:31] claw: apeiros: depends on the sshd version you are connecting to. i think only the ctr implementation is such a mass ( which is default for current sshd )
[14:45:39] duoi: has joined #ruby
[14:45:42] mdw: has joined #ruby
[14:46:05] claw: nevermind i already tested arcfour128 which was faster but still at 100%cpu
[14:46:32] bronson: has joined #ruby
[14:46:59] claw: #increment_counter! is fun too
[14:47:03] SilverKey: has joined #ruby
[14:47:56] masaru-: has joined #ruby
[14:48:07] _guille: has joined #ruby
[14:48:43] davedev24: has joined #ruby
[14:50:11] davedev24: has joined #ruby
[14:50:48] _guille: has joined #ruby
[14:52:04] rippa: has joined #ruby
[14:52:58] frem_: has joined #ruby
[14:53:29] j_mcnally: has joined #ruby
[14:53:46] duoi: has joined #ruby
[14:53:59] Pupeno: has joined #ruby
[14:55:37] elifoster: has joined #ruby
[14:55:57] johnDoe111: has joined #ruby
[14:56:12] harry222: has joined #ruby
[14:59:47] RegulationD: has joined #ruby
[15:00:16] The_Phoenix: has joined #ruby
[15:01:02] `tim`: has joined #ruby
[15:01:11] The_Phoenix: has joined #ruby
[15:01:52] tzica: regexp question: how to catch both 100.0 and 50.0% ?
[15:01:55] jgt3: has joined #ruby
[15:02:11] The_Phoenix: has joined #ruby
[15:02:53] Kruppe: has joined #ruby
[15:03:42] eljimmy: has joined #ruby
[15:03:46] The_Phoenix: has joined #ruby
[15:03:54] xaxisx: has joined #ruby
[15:03:58] tzica: think I've done it with dots ...
[15:04:24] s00pcan: has joined #ruby
[15:04:53] apeiros: tzica: ? means optional. so %? is an optional %
[15:04:53] SilverKey: has joined #ruby
[15:05:01] The_Phoenix: has joined #ruby
[15:05:11] Peetooshock: has joined #ruby
[15:05:35] new_user: has joined #ruby
[15:05:58] The_Phoenix: has joined #ruby
[15:05:58] hobodave: has joined #ruby
[15:06:47] insanedreamer: has joined #ruby
[15:06:57] kies: has joined #ruby
[15:07:22] bim: has joined #ruby
[15:09:05] _guille: has joined #ruby
[15:09:10] chouhoulis: has joined #ruby
[15:09:21] wilbert: has joined #ruby
[15:11:07] chopin: has joined #ruby
[15:11:20] duoi: has joined #ruby
[15:11:41] Pupeno: has joined #ruby
[15:13:45] theRoUS`: has joined #ruby
[15:14:12] czerasz2: has joined #ruby
[15:14:47] wldcordeiro: has joined #ruby
[15:16:07] bluOxigen: has joined #ruby
[15:16:48] wrkrcoop: has joined #ruby
[15:17:23] jgt3: has joined #ruby
[15:18:20] eljimmy: has joined #ruby
[15:19:56] troter__________: has joined #ruby
[15:20:22] psf: has joined #ruby
[15:20:51] duoi: has joined #ruby
[15:21:14] jancel: has joined #ruby
[15:22:04] moeabdol: has joined #ruby
[15:22:46] new_user: Hi, i have problem with script. http://pastebin.com/1Ye2ZR8t (error) My script - http://pastebin.com/5TJ0chpj . How can i resolve this? Sorry for my english...
[15:22:48] ruby[bot]: new_user: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/887f9234a2cf387109f1546d11ebd684
[15:22:48] ruby[bot]: new_user: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
[15:24:25] blackmesa: has joined #ruby
[15:24:35] shevy: new_user put your full script content on a website please
[15:24:40] new_user: https://gist.github.com/anonymous/01d886204439f199da9e7d39a346f959
[15:24:44] bluOxigen: has joined #ruby
[15:29:37] flips: has joined #ruby
[15:29:39] new_user: i have caught exception script on 1016 entry, but this script https://gist.github.com/anonymous/6848d52cf5d61bf59a4d48a253162440 don't have any error...
[15:29:50] duoi: has joined #ruby
[15:29:51] blaxter: has joined #ruby
[15:30:15] synthroid: has joined #ruby
[15:31:39] toretore: new_user: what is the error?
[15:32:43] new_user: toretore, SQLite3::CantOpenException: unable to open database file (Sequel::DatabaseError)
[15:33:07] toretore: you are creating a new connection for each insert
[15:33:16] toretore: create one, then use that for each insert
[15:33:20] jaguarmagenta: has joined #ruby
[15:33:56] chouhoulis: has joined #ruby
[15:34:33] startupality: has joined #ruby
[15:35:13] RegulationD: has joined #ruby
[15:35:21] roger_rabbit: has joined #ruby
[15:35:42] flips: Hm, using rbenv and bundler, it's easy enough to manage dependencies etc. But how do you keep various installations from being bloated? (I'm used to Python's virtualenvs, where all I need is copied to that project dir.) When I develop a large project on my laptop, when I'm done with that, I'd like to clear out what's not needed. I guess I could remove all and do bundle install on the projects I'm working on ...
[15:35:45] flips: (?) Or am I missing an obvious better solution? :)
[15:35:50] new_user: toretore, thanks you very much.
[15:36:09] agent_white: toretore: Working with Sequel myself as well... so is it pretty much a good idea to create the DB connection outside of any namespace?
[15:36:31] agent_white: ie - Sequel.connect(){|db| #do all the things here using one connection}
[15:36:35] toretore: agent_white: it's a good idea not to create one for each query :P
[15:36:52] jhack: has joined #ruby
[15:36:55] toretore: but yes, probably, inject the connection into whatever needs it
[15:38:05] toretore: otherwise you'll have a class which "magically" knows how to get data from a db
[15:40:55] toretore: the best is probably to separate data retrieval and data processing entirely, i.e. `Sequel.connect{|db| db.query(q).map{|r| DataProcessor.new(r).result } }`
[15:42:39] nofacade: has joined #ruby
[15:45:56] kirun: has joined #ruby
[15:46:12] Guest38: has joined #ruby
[15:47:36] loincloth: has joined #ruby
[15:47:51] shibly: has joined #ruby
[15:48:14] shibly: has left #ruby: ()
[15:49:06] amclain: has joined #ruby
[15:49:11] masaru-: has joined #ruby
[15:49:22] duoi: has joined #ruby
[15:49:27] loincloth: has joined #ruby
[15:50:15] bluOxigen_: has joined #ruby
[15:51:29] Weavel: has joined #ruby
[15:52:50] lxsameer: has joined #ruby
[15:54:06] riobe: has joined #ruby
[15:55:15] bluOxigen: has joined #ruby
[15:55:16] whathappens: has joined #ruby
[15:55:43] mdw: has joined #ruby
[15:57:32] bluOxigen_: has joined #ruby
[15:58:09] [Butch]: has joined #ruby
[15:58:16] jwren: has joined #ruby
[15:58:38] RegulationD: has joined #ruby
[15:59:47] codeurge: has joined #ruby
[15:59:51] megallopy: has joined #ruby
[16:00:30] hobodave_: has joined #ruby
[16:02:47] Coldblackice: has joined #ruby
[16:03:39] aufi: has joined #ruby
[16:04:24] [Butch]_: has joined #ruby
[16:05:23] moeabdol: has joined #ruby
[16:05:39] smathy: has joined #ruby
[16:06:53] duoi: has joined #ruby
[16:08:24] symm-: has joined #ruby
[16:11:45] Dimik: has joined #ruby
[16:12:05] ramortegui: has joined #ruby
[16:13:00] Es0teric: has joined #ruby
[16:13:38] bougyman: has joined #ruby
[16:14:18] kgrz: has joined #ruby
[16:16:57] nando293921: has joined #ruby
[16:18:22] swills: has joined #ruby
[16:19:26] ramfjord: has joined #ruby
[16:20:46] loincloth: has joined #ruby
[16:20:55] robbyoconnor: has joined #ruby
[16:22:10] mistermocha: has joined #ruby
[16:25:13] blackmesa: has joined #ruby
[16:25:21] the_drow: has joined #ruby
[16:25:53] robbyoconnor: has joined #ruby
[16:26:37] noobsu: has joined #ruby
[16:26:56] bluOxigen: has joined #ruby
[16:26:59] sepp2k: has joined #ruby
[16:27:18] jackjackdripper: has joined #ruby
[16:27:22] mtkd: has joined #ruby
[16:28:05] aphprentice: has joined #ruby
[16:28:46] nankyokusei: has joined #ruby
[16:28:56] duoi: has joined #ruby
[16:29:14] the_drow: has joined #ruby
[16:30:04] jgt3: has joined #ruby
[16:30:38] arlek: has joined #ruby
[16:31:00] nareiber: has joined #ruby
[16:32:11] nando294021: has joined #ruby
[16:37:07] ruby[bot]: Peetooshock: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
[16:37:09] stannard: has joined #ruby
[16:37:35] `tim`: has joined #ruby
[16:38:11] ruby[bot]: Peetooshock: # => 2 (https://eval.in/572236)
[16:38:14] havenwood: Peetooshock: 2
[16:38:22] adgtl: has joined #ruby
[16:38:31] Lord_of_Life: has joined #ruby
[16:38:31] Lord_of_Life: has joined #ruby
[16:38:45] CJKinni: has joined #ruby
[16:39:01] Azure: has joined #ruby
[16:39:21] Gasher: has joined #ruby
[16:41:47] a346: has joined #ruby
[16:43:04] hightower3: has joined #ruby
[16:43:56] CJKinni`: has joined #ruby
[16:43:56] druonysus: has joined #ruby
[16:44:38] ChiefAlexander: has joined #ruby
[16:45:03] phrozen77: has joined #ruby
[16:45:28] duoi: has joined #ruby
[16:45:34] CJKinni: has joined #ruby
[16:48:36] bronson: has joined #ruby
[16:49:10] hobodave: has joined #ruby
[16:49:38] siovene: has joined #ruby
[16:49:49] freija1: has joined #ruby
[16:50:03] jancel: has joined #ruby
[16:50:23] pietr0: has joined #ruby
[16:50:32] rbennacer: has joined #ruby
[16:52:09] OTORelic: has joined #ruby
[16:52:15] blackmesa: has joined #ruby
[16:52:28] ledestin: has joined #ruby
[16:53:47] shinnya: has joined #ruby
[16:54:06] f4cl3y: has joined #ruby
[16:55:15] chouhoulis: has joined #ruby
[16:56:29] Tyrant_: has joined #ruby
[16:56:58] banister: has joined #ruby
[16:57:52] Tyrant_: are their rules here about prosective hires’?
[16:58:52] aegis3121: has joined #ruby
[16:59:05] Peetooshock: Tyrant_, welcome to the internet. no rules here.
[16:59:46] Tyrant_: lol, no welcome needed
[16:59:52] Tyrant_: im over 30
[17:00:05] Tyrant_: irc since 4th grade
[17:00:17] Tyrant_: but thank you
[17:00:55] Tyrant_: so i want to make about 10mil a day
[17:01:15] Peetooshock: Well, you can
[17:01:19] Tyrant_: i need scrapers
[17:01:37] araujo_: has joined #ruby
[17:01:44] Peetooshock: And some brains
[17:02:00] Tyrant_: we have them, team is small
[17:02:07] Tyrant_: i chose the best
[17:02:38] tomchapin: has joined #ruby
[17:02:49] Tyrant_: open for msg?
[17:03:19] lucidity: has joined #ruby
[17:04:47] bazzy: any gentoo users in here?
[17:05:02] lucidity: not currently
[17:05:08] lucidity: gentoo is pretty hardcore
[17:06:09] swills: has joined #ruby
[17:06:28] bazzy: well it's all based on asking the question how people play with ruby and their package manager...
[17:06:45] squigz: "I want to make 10m a day"
[17:06:47] squigz: don't we all
[17:07:20] new_user: has joined #ruby
[17:07:32] Cohedrin: has joined #ruby
[17:09:08] roshanavand1: has joined #ruby
[17:09:09] Guest38: has joined #ruby
[17:09:21] gregf_: i need to buy me a book someday, 'how to be a millionaire for a day'
[17:10:28] gregf_: for a million you'd prolly need another couple million in the bank *runs*
[17:11:04] gregf_: but then , you're already a millionaire... so why need another
[17:11:18] Papierkorb: because why not
[17:11:58] gregf_: steve jobs had his millions. *wonders how many of those he now has.. whereever he is...*
[17:13:02] idefine: has joined #ruby
[17:13:03] flughafen_: has joined #ruby
[17:13:32] tAn: has joined #ruby
[17:13:38] lucidity: i've been doing a lot of swift and php for work and i've been tinkering with ruby in my spare time...how do you think the transition from php to ruby will be?
[17:13:43] lucidity: (I really, really like Swift)
[17:14:04] bryanray: has joined #ruby
[17:14:07] Papierkorb: no idea what swift is. But the transition to ruby from PHP will be fabolous.
[17:14:30] Papierkorb: oh that apple lang
[17:14:43] codecop: has joined #ruby
[17:15:39] tomchapin: has joined #ruby
[17:15:39] kareeoleez: has joined #ruby
[17:16:36] moei: has joined #ruby
[17:16:43] lucidity: yeah it's pretty neat imo
[17:17:44] tao_: has joined #ruby
[17:18:12] SilverKey: has joined #ruby
[17:18:53] lapide_viridi: has joined #ruby
[17:20:05] firstdayonthejob: has joined #ruby
[17:21:04] CJKinni_: has joined #ruby
[17:22:06] madgen: has joined #ruby
[17:22:27] Pupeno: has joined #ruby
[17:22:48] bazzy: wait.. Steve Jobs faked his own death?
[17:22:49] skalfyfan: has joined #ruby
[17:24:10] RegulationD: has joined #ruby
[17:24:13] jamto11: has joined #ruby
[17:24:44] skalfyfan: has joined #ruby
[17:24:57] SilverKey: has joined #ruby
[17:26:18] araujo: has joined #ruby
[17:26:35] Mia: has joined #ruby
[17:26:36] Mia: has joined #ruby
[17:26:43] kareeoleez: has joined #ruby
[17:27:01] j_mcnally: has joined #ruby
[17:27:14] benzrf: lucidity: screw ruby - just learn haskell
[17:27:26] skalfyfan: has joined #ruby
[17:27:31] opentux: has joined #ruby
[17:28:10] Axy: has joined #ruby
[17:30:12] jancel: has joined #ruby
[17:30:20] weaksauce: lucidity ruby is nice. swift is nice. php is not so nice
[17:30:46] chosen1: has joined #ruby
[17:30:48] ytti: learving curve for purely functional is pretty steep
[17:30:59] ytti: but i wonder if that would be true for someone with 0 experience in programming
[17:31:02] ferr: has joined #ruby
[17:31:08] ytti: is it only hard, because it's so different
[17:31:11] ytti: or is it inherently hard
[17:31:29] skalfyfan: has joined #ruby
[17:31:35] eljimmy: has joined #ruby
[17:32:01] chouhoul_: has joined #ruby
[17:32:51] Pupeno: has joined #ruby
[17:34:08] jaguarmagenta: has joined #ruby
[17:34:17] ramfjord: has joined #ruby
[17:35:33] chouhoul_: has joined #ruby
[17:36:21] Pupeno_: has joined #ruby
[17:39:07] ruby[bot]: -bb Rasmusolle!*@*$#ruby-banned *!*@78-67-125-136-no247.tbcn.telia.com$#ruby-banned
[17:39:33] skalfyfan: has joined #ruby
[17:40:07] loincloth: has joined #ruby
[17:40:30] noobsu: has joined #ruby
[17:41:16] benzrf: ytti: i think it's harder to learn haskell from scratch than python from scratch, if by learn you mean "come to understand the semantics of, in a way that allows you to really understand what code does, and design systems"
[17:41:17] loincloth: has joined #ruby
[17:41:30] benzrf: flip haskell and python
[17:41:54] benzrf: i think it's harder to learn haskell from scratch than python from scratch, if by learn you mean "gain the ability to make your computer do things that are useful"
[17:42:10] benzrf: "without necessarily 100% understanding the conceptual stuff behind what you're doing"
[17:43:20] hahuang65: has joined #ruby
[17:44:20] err_ok: has joined #ruby
[17:44:31] govg: has joined #ruby
[17:44:56] shadeslayer: has joined #ruby
[17:45:30] mrgrieves: has joined #ruby
[17:46:35] duoi: has joined #ruby
[17:47:59] jwdunne: has joined #ruby
[17:48:03] jwdunne: has left #ruby: ("AndroIRC")
[17:48:10] jwdunne: has joined #ruby
[17:51:29] RegulationD: fwiw, one of the stated goals of "haskell book" is to teach haskell in a way that does not assume that you know another language. I can't really comment on how successful it is, but I appreciate the recognition that such assumptions were a part of most other learning materials.
[17:52:45] dopie: has joined #ruby
[17:53:10] the_drow: has joined #ruby
[17:54:11] dhollinger: has joined #ruby
[17:54:37] govg: has joined #ruby
[17:55:47] fr3d_ativista: has joined #ruby
[17:57:06] j_mcnally: has joined #ruby
[17:57:44] mdw: has joined #ruby
[17:59:43] kareeoleez: has joined #ruby
[18:00:33] domgetter: has joined #ruby
[18:00:34] davedev24: has joined #ruby
[18:00:46] nyuszika7h: has joined #ruby
[18:00:58] skalfyfan: has joined #ruby
[18:01:00] Devalo: has joined #ruby
[18:01:25] noobsu: has joined #ruby
[18:02:11] SilverKey: has joined #ruby
[18:02:20] ramfjord_: has joined #ruby
[18:02:46] skalfyfan: has joined #ruby
[18:04:13] SilverKey: has joined #ruby
[18:06:49] minimalism: has joined #ruby
[18:08:50] wilbert: has joined #ruby
[18:09:15] digitalfiz: has joined #ruby
[18:09:24] gregf: has joined #ruby
[18:10:02] digitalfiz: hey guys i am a devops dude trying to set up a travis build for a ruby app and was wondering is there a way to make the app not require the database when running unit tests?
[18:10:16] rkoller: has joined #ruby
[18:10:35] digitalfiz: err this is a rail app sorry might be a better channel for this
[18:11:15] blackmesa: has joined #ruby
[18:12:26] bauerbob: has joined #ruby
[18:12:55] ruby[bot]: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
[18:13:08] duoi: has joined #ruby
[18:13:15] digitalfiz: thanks @adaedra
[18:13:26] nareiber: digitalfiz https://github.com/zeisler/active_mocker
[18:13:40] nareiber: assuming you're using ar
[18:13:49] kareeoleez: has joined #ruby
[18:14:03] digitalfiz: yeah they are
[18:14:21] mdw: has joined #ruby
[18:14:31] jenrzzz: has joined #ruby
[18:15:37] emilkarl: has joined #ruby
[18:17:11] IrishGringo: has joined #ruby
[18:17:22] adgtl: has joined #ruby
[18:17:22] kasisnu: has joined #ruby
[18:18:28] pawnbox: has joined #ruby
[18:21:13] B1n4r10: has joined #ruby
[18:21:34] VeryBewitching: has joined #ruby
[18:21:43] Pupeno: has joined #ruby
[18:22:28] Devalo_: has joined #ruby
[18:23:12] kareeoleez: has joined #ruby
[18:23:35] jancel: has joined #ruby
[18:24:09] Guest31642: has joined #ruby
[18:24:11] bryanray: has joined #ruby
[18:24:35] Guest31642: has joined #ruby
[18:26:24] arlek: has joined #ruby
[18:26:25] bazzy: Radar, when going thru Ch.1 of Rails4 in Action .. I found routing "resource" to quite vague
[18:26:39] ChiefAlexander: has joined #ruby
[18:26:45] LoneHerm_: has joined #ruby
[18:26:56] bazzy: resources :purchases and what it exactly means
[18:27:07] bazzy: I can research it.. just felt like vocalizing
[18:29:40] nankyokusei: has joined #ruby
[18:30:43] beauby: has joined #ruby
[18:30:46] duoi: has joined #ruby
[18:31:13] bluOxigen_: has joined #ruby
[18:32:34] kareeoleez: has joined #ruby
[18:33:12] rbennacer: has joined #ruby
[18:33:38] SilverKey: has joined #ruby
[18:33:44] crdpink: has joined #ruby
[18:35:28] AndroidLoverInSF: has joined #ruby
[18:35:59] chipotle: has joined #ruby
[18:39:46] robbyoconnor: has joined #ruby
[18:40:28] Hates_: has joined #ruby
[18:42:57] AndroidLoverInSF: has joined #ruby
[18:45:08] celly: has joined #ruby
[18:45:13] robbyoconnor: has joined #ruby
[18:46:13] skalfyfan: has joined #ruby
[18:47:07] aegis3121: has joined #ruby
[18:47:49] edwinvdgraaf: has joined #ruby
[18:47:56] platzhirsch: has joined #ruby
[18:50:33] idefine: has joined #ruby
[18:50:34] chouhoulis: has joined #ruby
[18:50:59] kareeoleez: has joined #ruby
[18:51:25] bougyman_: has joined #ruby
[18:51:30] wigust: has joined #ruby
[18:52:05] blackmesa: has joined #ruby
[18:53:31] araujo_: has joined #ruby
[18:53:46] CJKinni: has joined #ruby
[18:54:11] elifoster: has joined #ruby
[18:55:12] Yiota_: has joined #ruby
[18:55:18] idefine: has joined #ruby
[18:55:44] araujo_: has joined #ruby
[18:56:20] CJKinni: has joined #ruby
[18:58:04] skalfyfan: has joined #ruby
[18:58:23] blaxter: has joined #ruby
[19:01:09] nweiderm_: has joined #ruby
[19:03:44] duoi: has joined #ruby
[19:05:23] edwinvdgraaf: has joined #ruby
[19:06:12] edwinvdgraaf: has joined #ruby
[19:06:17] dmr8: has joined #ruby
[19:06:29] kareeoleez: has joined #ruby
[19:09:07] edwinvdg_: has joined #ruby
[19:10:41] ctp: has joined #ruby
[19:10:46] tAn: has joined #ruby
[19:11:46] kareeoleez: has joined #ruby
[19:14:02] govg: has joined #ruby
[19:14:08] Eiam: has joined #ruby
[19:16:23] noobsu: has joined #ruby
[19:17:44] tao_: has joined #ruby
[19:18:42] skalfyfan: has joined #ruby
[19:19:54] prestorium: has joined #ruby
[19:20:16] jancel: has joined #ruby
[19:24:11] whathappens: has joined #ruby
[19:24:16] tAn: has joined #ruby
[19:24:28] yqt: has joined #ruby
[19:26:10] jamto11: has joined #ruby
[19:26:53] tubbo: so with el capitan, do i just have to append each gem install command with `-n/usr/local/bin` now or is there something i can add to gemrc?
[19:28:24] tao_: has joined #ruby
[19:29:05] pipework: tubbo: I just installed homebrew to my home directory under ~/.config/homebrew, but that's just me.
[19:29:33] pipework: Then I installed chruby and ruby-install, had to fork those to get them working right for an XDG_CONFIG_BASE directory install.
[19:30:07] chouhoulis: has joined #ruby
[19:30:33] allcentury: has joined #ruby
[19:31:17] GodFather: has joined #ruby
[19:31:56] pietr0: has joined #ruby
[19:32:17] jenrzzz: has joined #ruby
[19:32:22] celly: has joined #ruby
[19:33:27] tubbo: pipework: ahh ok, you reinstalled/moved homebrew from /usr/local to ~/.config/homebrew?
[19:33:47] tubbo: why did you install chruby and ruby-install? i already had them installed and they seemed to work
[19:34:01] pipework: tubbo: I installed it directly there.
[19:34:16] havenwood: tubbo: brew install chruby ruby-install #ftw
[19:34:17] tubbo: pipework: use less pronouns
[19:34:34] pipework: tubbo: I didn't move it from one place to another on my thing.
[19:34:37] pipework: It went straight in.
[19:34:49] tubbo: pipework: new machine?
[19:34:53] pipework: Directly in the place without being put somewhere else first
[19:34:55] tubbo: i didn't need to reinstall anything, it was nice
[19:35:05] pipework: tubbo: reinstalled OSX after formatting.
[19:35:20] joneshf-laptop: has joined #ruby
[19:35:39] skalfyfan: has joined #ruby
[19:35:40] pipework: Now I have a privileged user I don't use except when I trust/need something to work that won't otherwise.
[19:36:41] pipework: So my normal user typically has everything they want just to them that's not applicable for system-wide use in ~/.config/ and I've forked a lot of projects to get them to support XDG_CONFIG_HOME as the install location, but also came up with a lot of symlinks to preserve old behaviour until I remove the assumptive behaviours from all the projects.
[19:36:47] idefine_: has joined #ruby
[19:36:48] tubbo: the answer i was looking for was `gem: "--no-ri --no-rdoc --bindir /usr/local/bin"` in ~/.gemrc fwiw.
[19:37:02] pipework: My admin user has homebrew installed like normal, so I can install brew stuff as normal and execute it as my normal user.
[19:37:09] pipework: My normal user just can't write to /usr/local
[19:41:09] r0bby_: has joined #ruby
[19:41:49] kobain: has joined #ruby
[19:42:02] lxsameer: has joined #ruby
[19:42:52] kobain: has joined #ruby
[19:42:56] tao_: has joined #ruby
[19:43:55] spider-mario: has joined #ruby
[19:44:53] mago0: has joined #ruby
[19:46:47] r0bby_: has joined #ruby
[19:50:06] tAn: has joined #ruby
[19:50:15] elifoster: has joined #ruby
[19:50:26] shevy: let your normal user break free from the chains of slavery!
[19:50:55] pipework: shevy: trying to engineer some social for yourself?
[19:51:48] nankyokusei: has joined #ruby
[19:55:44] govg: has joined #ruby
[19:55:58] jhack: has joined #ruby
[19:58:02] r0bby_: has joined #ruby
[19:59:30] tekk: has joined #ruby
[20:00:37] pawnbox: has joined #ruby
[20:01:20] pawnbox: has joined #ruby
[20:01:23] jgt3: has joined #ruby
[20:01:42] m_antis: has joined #ruby
[20:02:13] vdamewood: has joined #ruby
[20:03:16] rbennacer: has joined #ruby
[20:05:38] arlek: has joined #ruby
[20:06:44] ctrlrsf: has joined #ruby
[20:07:10] flopsec: has joined #ruby
[20:07:30] masaru-: has left #ruby: ()
[20:07:53] pawnbox: has joined #ruby
[20:08:30] symm-: has joined #ruby
[20:08:47] Labaleine: has joined #ruby
[20:09:30] cpup: has joined #ruby
[20:10:11] pipework: shevy: Freedom from privacy!
[20:11:04] mbreedlove: has joined #ruby
[20:12:06] tAn: has joined #ruby
[20:14:31] jancel: has joined #ruby
[20:14:33] tAn: has joined #ruby
[20:14:48] stannard: has joined #ruby
[20:14:49] alxgsv: has joined #ruby
[20:15:13] zel: has joined #ruby
[20:15:22] cdg: has joined #ruby
[20:15:43] drewo: has joined #ruby
[20:18:34] Captain_Crow: has joined #ruby
[20:19:26] brunto: has joined #ruby
[20:19:53] tomchapin: has joined #ruby
[20:20:05] tAn: has joined #ruby
[20:22:11] jhack: has joined #ruby
[20:22:20] emptyflask: has joined #ruby
[20:24:44] perlgod_: has joined #ruby
[20:25:04] CoderPuppy: has joined #ruby
[20:25:08] blackgoat: has joined #ruby
[20:25:52] sj: has joined #ruby
[20:27:01] tao_: has joined #ruby
[20:27:56] skolman_: has joined #ruby
[20:28:29] sj: has joined #ruby
[20:28:56] idefine: has joined #ruby
[20:29:32] codecop: has joined #ruby
[20:30:10] perniciouscaffei: has joined #ruby
[20:30:45] Captain_Crow: is "shoes" still the most used gui library for ruby or is there something better now?
[20:31:24] xall: has joined #ruby
[20:31:39] govg: has joined #ruby
[20:31:48] rht: has joined #ruby
[20:32:59] djbkd: has joined #ruby
[20:33:14] jenrzzz: has joined #ruby
[20:34:50] OTORelic: has joined #ruby
[20:35:14] haxrbyte: has joined #ruby
[20:35:14] sneakerhax: has joined #ruby
[20:35:18] madgen: has joined #ruby
[20:35:29] Don_John: has joined #ruby
[20:38:08] pipework: Captain_Crow: Personally, and I don't really know for sure at all, but I think most people aren't doing gui's with ruby as much as they've moved to JS for those.
[20:39:18] ur5us: has joined #ruby
[20:39:25] djbkd: has joined #ruby
[20:40:01] skweek: has joined #ruby
[20:41:24] ringabela: has joined #ruby
[20:41:51] malconis: has joined #ruby
[20:45:08] Es0teric: has joined #ruby
[20:47:36] shevy: Captain_Crow I use ruby-gnome... but actually I am still sitting in gtk2, I am so lazy... gtk3 is supported though
[20:47:55] malconis: has joined #ruby
[20:50:56] psf: has joined #ruby
[20:56:47] madgen: has joined #ruby
[20:57:17] Captain_Crow: shevy, thanks i'll take a look at gtk3
[21:00:58] gnufied: has joined #ruby
[21:03:41] djbkd: has joined #ruby
[21:03:59] djbkd: has joined #ruby
[21:06:57] iamvery_: has joined #ruby
[21:08:15] Guest90636: has joined #ruby
[21:08:27] eljimmy: has joined #ruby
[21:08:41] nofxx: has joined #ruby
[21:08:53] nofxx: has joined #ruby
[21:08:55] whathappens: has joined #ruby
[21:09:15] howdoi: has joined #ruby
[21:09:21] qasaur: has joined #ruby
[21:09:52] jancel: has joined #ruby
[21:09:59] m_antis: has joined #ruby
[21:10:49] flashpoint9: has joined #ruby
[21:11:50] horaceheaven: has joined #ruby
[21:12:27] nerium: has joined #ruby
[21:14:09] wolffles: has joined #ruby
[21:15:00] eljimador: has joined #ruby
[21:16:13] wolffles: would this be considered bad practice? array.combination(2).find{|a,b| array[a] + array[b] == 0};rescue
[21:17:21] startupality: has joined #ruby
[21:17:22] cpup: has joined #ruby
[21:19:12] wolffles: if i used rescue to return nil?
[21:19:55] ChiefAlexander: has joined #ruby
[21:20:48] GodFather: has joined #ruby
[21:21:10] A124: has joined #ruby
[21:22:55] havenwood: wolffles: what error are you rescuing? why? are you really reading indexes from the Array? show example data?
[21:24:08] Mia: has joined #ruby
[21:24:08] Mia: has joined #ruby
[21:24:53] CoderPuppy: has joined #ruby
[21:25:10] mbreedlove: has joined #ruby
[21:25:26] wolffles: rescuing a typeError. examples would be array=[1,3,5] & array[1,3,5,-3]. and its just the indexes are the requirement for the practice.
[21:26:06] smathy: array[-3] won't raise an error.
[21:26:55] smathy: ...oh, you mean because of nil +
[21:27:12] Axy: has joined #ruby
[21:27:13] wrkrcoop: has joined #ruby
[21:27:13] smathy: Ok, that'll be a NoMethodError
[21:27:42] lucidity: has joined #ruby
[21:28:19] wolffles: this is what i get when array = [1,3,5] “TypeError: nil can't be coerced into Fixnum”
[21:28:55] smathy: Ah, you're right, when it's the array[b]
[21:28:59] smathy: ...you'll get both.
[21:29:02] mbreedlove: has joined #ruby
[21:29:13] kgrz: has joined #ruby
[21:29:42] iamvery__: has joined #ruby
[21:29:45] tomchapin: has joined #ruby
[21:29:46] wolffles: so i used rescue to escape it. just wondering if that is good practice cuz ive read some arguements online.
[21:29:46] smathy: To your original question, I'm still not really seeing what you're doing, you're using the values of the array as indexes into the array - seems very odd.
[21:30:19] jhack: has joined #ruby
[21:30:54] djbkd: has joined #ruby
[21:31:12] govg: has joined #ruby
[21:31:34] wolffles: yeah it was werid to me too but i found you can use the values to find the indices within the block, instead of using more methods to convert them to the index
[21:32:48] ma489: has joined #ruby
[21:33:05] skolman_: has joined #ruby
[21:33:06] mbreedlove: has joined #ruby
[21:33:31] smathy: wolffles, it's your code that's weird, I just can't grok the purpose of this code. You're using values that are seemingly arbitrary as indexes back into the same array, and *this* is the reason you're getting those `nil`s in the first place, are you sure you didn't want to be checking the values themselves? Ie. `.find {|a,b| a + b == 0 }` ?
[21:33:46] tlaxkit: has joined #ruby
[21:33:47] horaceheaven: has joined #ruby
[21:33:49] mbreedlove: has joined #ruby
[21:33:59] wolffles: its just one of those practice problems
[21:34:05] `tim`: has joined #ruby
[21:34:12] wolffles: here i have 3 different solutions
[21:34:14] wolffles: https://eval.in/572305
[21:35:16] pipework: wolffles: So you aren't using permutations and any? with a block?
[21:35:20] pipework: Cause that's what I'd do.
[21:35:32] jaguarmagenta: has joined #ruby
[21:36:17] smathy: wolffles, umm, that code isn't doing what you think it is.
[21:36:34] edwinvdgraaf: has joined #ruby
[21:36:44] smathy: wolffles, array.combination(2).find is NOT giving the indexes to your block, it's giving the values themselves.
[21:37:22] wolffles: believe it or not it passes the tests
[21:38:04] smathy: Accidentally, you want: (0...array.length).to_a.combination(2)
[21:38:25] wolffles: like i said i found out you can return indexes buy doing array[element] within the block
[21:38:28] pipework: wolffles: your tests need better cases then
[21:38:42] Caelum: has joined #ruby
[21:38:47] smathy: wolffles, you've misunderstood what's happening here.
[21:39:21] ryft: has joined #ruby
[21:39:34] iamvery_: has joined #ruby
[21:40:24] wolffles: pipework: permutation would return the same solution twice just reversed
[21:40:28] chipotle_: has joined #ruby
[21:40:33] wolffles: i dont need repeats
[21:40:55] smathy: The [1,3] you're getting is an accident because the result you want happens to be included in the array values you're passing in.
[21:41:48] smathy: Pass in the array: [0, 3, -1, -3] instead.
[21:42:19] BTRE: has joined #ruby
[21:42:30] smathy: ...and then change your code to mine and see the light: (0...array.length).to_a.combination(2).find{|a,b| array[a] + array[b] == 0}
[21:42:34] pipework: wolffles: If you got every permutation of pairings from an array and then called #any?{|(a,b)| a.+(b).eql?(0) }
[21:42:45] pipework: You could just use find though too
[21:43:03] yfeldblum: has joined #ruby
[21:44:10] binaryplease: has joined #ruby
[21:44:35] pipework: Could even paralulize it trivially
[21:44:55] smathy: paralulz it.
[21:45:00] ruby[bot]: havenwood: # => true (https://eval.in/572306)
[21:45:20] pipework: havenwood: They need the value if it's true, so .zero? yeah.
[21:45:21] havenwood: >> -0.negative?
[21:45:25] pipework: Much better than my silly stuff.
[21:45:27] ruby[bot]: havenwood: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
[21:46:34] iamvery__: has joined #ruby
[21:49:32] ledestin: has joined #ruby
[21:51:10] |ifei5g00d: has joined #ruby
[21:51:28] SilverKey: has joined #ruby
[21:52:42] nerium: Is there a way to run system commands without printing to stdout but still getting access to both output and status?
[21:52:56] bronson: has joined #ruby
[21:53:18] GregUK: has joined #ruby
[21:54:14] smathy: nerium, ``
[21:54:34] nerium: smathy: What?
[21:54:45] smathy: nerium, x = `ls`
[21:54:55] smathy: nerium, puts $?
[21:54:58] iamvery_: has joined #ruby
[21:55:11] nerium: Wont that print to stderr?
[21:55:28] ytti: pretty much never ever use ``, %x(), or system()
[21:55:55] nerium: ytti: Got any other recommendation?
[21:55:56] smathy: nerium, you asked "without printing to stdout" - did you mean stderr?
[21:56:02] ytti: use popen every time, so you can pass binary and arguments separately (execve, instead of system)
[21:56:16] nerium: I mean both, sorry
[21:56:26] ytti: this way it's safe, regardless of bad input
[21:56:38] ytti: and you don't have to rely being smarter than attacker on input validation
[21:56:51] ytti: an full control on stdout, stderr and return value
[21:57:27] ytti: it's shame all scripting languages make the correct way complicated and the wrong way simple
[21:57:28] nerium: ytti: Aha, that’s perfect
[21:58:25] ytti: sensible implamentation would do this by default
[21:58:28] Ballo: has joined #ruby
[21:58:33] ytti: out, err = %x(cmd, *args)
[21:58:38] ytti: sadly that is not so
[21:59:11] ytti: whole bunch of security issues caused by bad choices in language design
[22:00:39] mbreedlove: has joined #ruby
[22:01:05] Ballo: hello, I have a question: I have some objects which I want to run a method which returns true or false MyObj#test and also alter their state. If I have these objects in an array, is it possible to run all the .test methods and then return the list of altered objects if any one of them returns false?
[22:02:24] Ballo: ACTION ponders if he can do this with array#all if he changes the conditional
[22:02:52] LoneHermit: has joined #ruby
[22:03:07] Ballo: no, don't think so. I need the objects in their new state
[22:03:33] bobbycvi_: has joined #ruby
[22:03:36] Ballo: something like map, but returning the new state depending on the conditional
[22:04:59] jenrzzz_: has joined #ruby
[22:05:14] bobbycvi_: has joined #ruby
[22:06:25] patie: has joined #ruby
[22:09:41] OTORelic: has joined #ruby
[22:12:26] horaceheaven: has joined #ruby
[22:12:51] skolman_: has joined #ruby
[22:14:07] r0bby_: has joined #ruby
[22:14:14] wilsonc91: has joined #ruby
[22:14:33] wilsonc91: has joined #ruby
[22:15:07] zeroDi: has joined #ruby
[22:17:59] karmatr0n: has joined #ruby
[22:20:02] Ballo: something like: p [TestVOIPMount.new, TestErr.new].map { |t| return t.message if !t.test }
[22:20:37] Ballo: oh wait, it works. Have to remove the return an add a .concat
[22:20:51] havenwood: Ballo: Ruby doesn't have a Enumerable#select_map though one has been proposed: https://bugs.ruby-lang.org/issues/5663
[22:21:09] davedev24: has joined #ruby
[22:21:14] moeabdol: has joined #ruby
[22:21:21] havenwood: Ballo: Just an aside but Elixir has a filter_map that does just that: http://elixir-lang.org/docs/stable/elixir/Enum.html#filter_map/3
[22:21:23] smathy: ACTION throws a map {}.compact grenade in and runs
[22:21:26] vdamewood: has joined #ruby
[22:21:51] havenwood: Ballo: As mentioned ^ compact the nils away.
[22:21:57] Ballo: well, this appears to work:
[22:22:00] Ballo: [TestVOIPMount.new, TestErr.new].map { |t| t.message if !t.test }.compact.each {|t| p t}
[22:22:18] pipework: havenwood: I don't like the #itself method or whatever they came up with.
[22:22:29] Ballo: if there is a cleaner way I'm all ears
[22:22:37] pipework: I loved doing #select{self} but wanted to be able to do #select(&:self)
[22:22:51] havenwood: pipework: i actually like itself
[22:23:01] pipework: What I really wanted was a method that was like #truthy?
[22:23:09] havenwood: pipework: i liked the idea of giving itself an optional block for a map version or tap
[22:23:10] Labaleine: has joined #ruby
[22:23:16] pipework: havenwood: I think it's helpful in the context that I care about it being 'itself'.
[22:23:33] havenwood: >> self == itself
[22:23:34] ruby[bot]: havenwood: # => true (https://eval.in/572313)
[22:23:45] icedragon: itself is a thing? D:
[22:23:54] pipework: Yeah, but when I have a collection of objects and I want only truthy objects back, #itself doesn't convey that.
[22:24:20] pipework: I feel like #select { self } conveys the desire for truthiness better, unfortunately.
[22:24:33] icedragon: pipework: select(&:itself) ?
[22:24:36] havenwood: >> [:oh, :me, nil, :my].select &:itself
[22:24:37] ruby[bot]: havenwood: # => [:oh, :me, :my] (https://eval.in/572314)
[22:25:00] havenwood: compact of course
[22:25:43] pipework: IceDragon: I know what I can do, I just think itself is an ugly method to call
[22:26:08] icedragon: pipework: pfft, ugly method call he says, try dealing with camelCaseMethodNames in your ruby
[22:26:09] pipework: >> Object.method(:itself).owner
[22:26:10] ruby[bot]: pipework: # => Kernel (https://eval.in/572315)
[22:26:27] pipework: IceDragon: I settle for no one!
[22:26:27] havenwood: IceDragon: headlessCamels are an abomination
[22:26:30] icedragon: Now that gets my gears grinding
[22:26:45] icedragon: havenwood: Authorize.Net has it
[22:26:49] icedragon: and now I have to deal with it
[22:26:50] pipework: I want our naming convention to support plural ownership of plural things.
[22:26:55] pipework: users_blogs is too ambiguous
[22:28:45] |2701: has joined #ruby
[22:29:39] jenrzzz: has joined #ruby
[22:29:41] nankyokusei: has joined #ruby
[22:30:13] icedragon: pipework: Now that I think about it, are you using rails?
[22:30:40] pipework: IceDragon: I'm not using anything in this context.
[22:31:08] pipework: Though if we're just talking theoretically, I don't flip out about activesupport usage out of hand. :)
[22:31:12] sumobob: has joined #ruby
[22:31:22] icedragon: *raises finger to protest, changes mind and leaves the topic alone*
[22:31:39] icedragon: I was going to say you could do select(&:present?) if you hated itself so badly
[22:31:45] startupality: has joined #ruby
[22:31:47] iamvery__: has joined #ruby
[22:31:54] icedragon: but that would vape booleans and empty objects...
[22:32:04] rbennacer: has joined #ruby
[22:33:29] roshanavand1: has joined #ruby
[22:33:31] mwlang: has joined #ruby
[22:33:59] mooe: has joined #ruby
[22:36:33] droptone: has joined #ruby
[22:36:41] iamvery_: has joined #ruby
[22:36:45] pipework: IceDragon: '' isn't present, but is truthy
[22:37:18] zenlot6: has joined #ruby
[22:37:41] icedragon: yep, that's why it doesn't fit the use case
[22:37:45] pipework: Objects don't really need methods for truthiness, but they make things like select(&:truthy?) look nicer than select{|o| o} and select(&:itself), imo.
[22:40:20] havenwood: require 'active_support/core_ext/object/blank'; class Ninja; def empty?; :pocket_sand end end; Ninja.new.present? #=> false
[22:41:24] johnmilton: has joined #ruby
[22:44:16] Loss-up: has joined #ruby
[22:44:26] Loss-up: Hello Guys
[22:44:34] havenwood: Loss-up: hi there
[22:45:33] jenrzzz: has joined #ruby
[22:46:31] pipework: havenwood: not gonna set up object delegates for every object in the collection just so I can define a new method that'll respond with truthiness so I can remove all falsies. That's just mental masturbation.
[22:46:54] pawnbox: has joined #ruby
[22:47:08] havenwood: pipework: Ninja's aren't great role models.
[22:47:44] pipework: havenwood: Much like my father, never in sight when you want to take a swing at them.
[22:48:03] tAn: has joined #ruby
[22:49:17] ma489: has joined #ruby
[22:51:22] Radar: >> [[0,1], [0,0], [1,1], [1,0]].sort
[22:51:23] ruby[bot]: Radar: # => [[0, 0], [0, 1], [1, 0], [1, 1]] (https://eval.in/572317)
[22:54:38] ebbflowgo: has joined #ruby
[22:55:00] Es0teric: has joined #ruby
[22:56:37] emptyflask: has joined #ruby
[22:57:44] hightower2: has joined #ruby
[22:57:55] tAn: has joined #ruby
[22:58:36] allcentury: has joined #ruby
[22:59:06] johnmilton: has joined #ruby
[22:59:28] kasisnu: has joined #ruby
[22:59:32] jancel: has joined #ruby
[23:05:07] drewo: has joined #ruby
[23:05:48] GodFather: has joined #ruby
[23:06:26] rbennacer: has joined #ruby
[23:08:33] rkoller: has joined #ruby
[23:10:26] mynameisbrian: has joined #ruby
[23:11:09] Captain_Crow: has left #ruby: ()
[23:11:28] chip_: has joined #ruby
[23:12:03] grs: has joined #ruby
[23:14:12] r0bby_: has joined #ruby
[23:16:38] ebbflowgo: has joined #ruby
[23:17:08] morenoh149: has joined #ruby
[23:17:39] morenoh149: on osx how do I install ruby? I installed it with rvm but apparently openssl was missing (it's listed as installed via homebrew)
[23:17:57] pipework: morenoh149: ruby-install is pretty nice.
[23:18:00] pipework: I install it through homebrew.
[23:18:13] morenoh149: is ruby-install homebrew?
[23:18:22] havenwood: morenoh149: brew install chruby ruby-install
[23:18:38] pipework: morenoh149: https://brew.sh
[23:18:51] havenwood: morenoh149: http://ryanbigg.com/2015/06/mac-os-x-ruby-ruby-install-chruby-and-you/
[23:18:55] jancel: has joined #ruby
[23:19:58] hightower2: Hey, how do I make my Ruby script load rubygems, so that I can just execute ./script, instead of bundle exec ./script?
[23:21:11] pipework: hightower2: By using the bundler gem in your code to call the bundler programmatic interface.
[23:21:22] pipework: Bundler.setup and the such
[23:21:38] hightower2: oh ok great, thanks, I was trying to load 'rubygems'
[23:21:43] kies: has joined #ruby
[23:21:53] pipework: require 'bundler/setup' is a good hint for you to start with
[23:22:34] banister: has joined #ruby
[23:24:00] danostrowski: has joined #ruby
[23:24:10] dzivalli: has joined #ruby
[23:24:50] postmodern: has joined #ruby
[23:25:34] danostrowski: anyone know, when running JRuby apps, whether a thread pool of N or N+1 is best (when N is the number of CPUs available), generally?
[23:25:50] danostrowski: Or, that is, have an opinion and/or a relevant link. :)
[23:26:14] pipework: danostrowski: Measure, measure, measure. Depends on the scheduler and how well your kernel manages those things, so measure, measure, measure.
[23:26:20] dzivalli: /msg nickserv register dzivalli dzivalli@ya.ru
[23:26:31] havenwood: dzivalli: new password time!
[23:26:32] pipework: A safe start is 1.5x the number of cores
[23:26:43] pipework: havenwood: There wasn't a password tho
[23:26:45] havenwood: oh, that's reg not ident, good :)
[23:26:48] pipework: Just a misunderstanding of the...
[23:27:12] iamvery_: has joined #ruby
[23:27:49] koooge: has joined #ruby
[23:27:50] iamvery__: has joined #ruby
[23:29:21] dzivalli: /msg NickServ VERIFY REGISTER dzivalli hoihytyrphyg
[23:29:42] nando293921: has joined #ruby
[23:31:29] m_antis: has joined #ruby
[23:33:20] iamvery_: has joined #ruby
[23:34:43] havenwood: dzivalli: new password time!
[23:34:51] havenwood: I wasn't wrong, just early.
[23:35:15] pipework: You should dial it back on the clairvoyance.
[23:36:21] jaguarmagenta: has joined #ruby
[23:37:07] _aeris_: has joined #ruby
[23:37:24] whathapp_: has joined #ruby
[23:37:55] flashpoint9: has joined #ruby
[23:42:04] wigust: has joined #ruby
[23:43:35] roshanavand1: has joined #ruby
[23:44:34] Cohedrin: has joined #ruby
[23:45:39] bluOxigen: has joined #ruby
[23:47:33] wrkrcoop: has joined #ruby
[23:47:41] wrkrcoop: im having a problem calling a method on a module
[23:48:07] wrkrcoop: can i not just create a module, put a bunch of methods on it and call MyModule.myMethod?
[23:49:37] pipework: wrkrcoop: because eigenclass
[23:50:05] pipework: You're probably defining instance methods on a module, not module methods.
[23:52:25] ReK2: has joined #ruby
[23:56:44] blackmesa: has joined #ruby
[23:58:56] akiTendo: has joined #ruby