« Back to channel list

#ruby - 04 July 2016

« Back 1 day Forward 1 day »
[00:01:01] isberg: has joined #ruby
[00:03:56] tristanp: has joined #ruby
[00:03:56] Arcaire: why would they rewrite it just so it's in the same language?
[00:04:16] Yzguy: they wouldn't it would be dumb to at this point
[00:04:28] Yzguy: but it would be cool if it were a single binary
[00:04:40] harfangk: has joined #ruby
[00:04:49] Yzguy: and not have it's own packaged ruby, etc.
[00:06:33] Oclair_: has joined #ruby
[00:07:58] memorasus: has joined #ruby
[00:10:31] ghr: has joined #ruby
[00:11:20] rbennacer: has joined #ruby
[00:11:55] Ropeney: has joined #ruby
[00:14:16] astrobunny: has joined #ruby
[00:14:58] Rodya_: has joined #ruby
[00:16:50] l4v2: has joined #ruby
[00:19:37] eljimmy: has joined #ruby
[00:19:42] agent_white: has joined #ruby
[00:20:32] rbennacer: has joined #ruby
[00:20:39] agent_white: Evenin' folks
[00:22:22] Yzguy: any luck @anth0ny_
[00:22:43] anth0ny_: Yzguy: sorry, I should have reported back. upgrading Vagrant did the trick. thanks!
[00:22:56] pontiki: Yzguy: check out otto, it's also in go
[00:23:03] isberg: has joined #ruby
[00:23:14] Rodya_: has joined #ruby
[00:23:15] Yzguy: oh ya, otto. I forgot about that. I was at Hashiconf when they announced it
[00:23:17] pontiki: looks like what they'll be replacing vagrant with
[00:23:46] Yzguy: they announced some product this year, not sure what it was
[00:24:48] zacts: has joined #ruby
[00:26:57] Oog: has joined #ruby
[00:27:33] slackbotgz: has joined #ruby
[00:28:02] ghr: has joined #ruby
[00:29:15] zacts: hello rubyists
[00:29:24] Yzguy: you guys use anything for application performance monitoring?
[00:29:44] rbennacer: has joined #ruby
[00:31:04] phredus: I have ongoing confusion about "bidist use flag" # These settings were set by the catalyst build script that automatically: USE="bindist mmx sse sse2". since original install I have had various issues and it was suggested at different times to go from bindist to -bindist to +bindist to No bidist at all, so I dont know if I should have it or not or?. Could someone shed some light on this subject please, thank you in advance
[00:31:29] charliesome: has joined #ruby
[00:31:41] phredus: Oops! sorry wrong channel, my apologies -------------------->
[00:31:58] harfangk: has joined #ruby
[00:32:03] Yzguy: I was gonna say haha
[00:32:06] Yzguy: way over my head
[00:35:15] pontiki: projects i've been on basically use NewRelic and call it a day
[00:36:29] pontiki: there's one i used for checking sql requests in development, called Bullet
[00:36:56] pontiki: it's not really performance checking, just checking for N+1 issues and the like
[00:37:05] Yzguy: I have a subscription to new relic so I use that a lot
[00:37:32] ghr: has joined #ruby
[00:37:35] pontiki: it's good to use
[00:37:56] pontiki: i'm not sure it's something that actually helps in performance analysis
[00:38:46] pontiki: it is a good thing to tell you "hey, this part is going rapidly pear-shaped"
[00:38:57] Yzguy: I'm actually an SRE, so I do more infrastructure than development, so I don't know much about what to look for
[00:39:13] pontiki: sorry, what's "SRE" ?
[00:39:20] Yzguy: Site Reliability Engineer
[00:39:50] pontiki: you do reliability modeling?
[00:40:45] Yzguy: no, just a lot of system administration, cloud stuff, automation, etc
[00:42:11] ascarter: has joined #ruby
[00:43:33] rbennacer: has joined #ruby
[00:44:06] chipotle: has joined #ruby
[00:46:29] solocshaw: has joined #ruby
[00:47:17] pawnbox: has joined #ruby
[00:48:24] devbug: has joined #ruby
[00:49:03] TheWhip_: has joined #ruby
[00:49:13] snath: has joined #ruby
[00:50:04] ghr: has joined #ruby
[00:50:52] chipotle_: has joined #ruby
[00:52:51] snath: has left #ruby: ()
[00:54:14] musl: has joined #ruby
[00:56:19] deecross: has joined #ruby
[00:56:27] mello: has joined #ruby
[00:56:38] ur5us: has joined #ruby
[00:57:07] rbennacer: has joined #ruby
[01:00:16] SilverKey: has joined #ruby
[01:00:30] roamingdog: has joined #ruby
[01:01:14] astrobunny: has joined #ruby
[01:02:14] chipotle: has joined #ruby
[01:03:44] smathy: has joined #ruby
[01:04:01] DanielI: has left #ruby: ("*does an epic flip into the nothingness*")
[01:04:34] ghr: has joined #ruby
[01:06:17] rbennacer: has joined #ruby
[01:07:28] phantummm: has joined #ruby
[01:10:21] astrobun_: has joined #ruby
[01:10:28] phantummm: has joined #ruby
[01:10:31] vdamewood: has joined #ruby
[01:10:51] nadir: has joined #ruby
[01:10:57] blackmesa: has joined #ruby
[01:14:04] ghr: has joined #ruby
[01:14:45] houhoulis: has joined #ruby
[01:15:53] millerti: has joined #ruby
[01:16:51] ur5us: has joined #ruby
[01:17:32] ekinmur: has joined #ruby
[01:19:13] tummy: has joined #ruby
[01:19:37] bluOxigen: has joined #ruby
[01:20:19] rbennacer: has joined #ruby
[01:22:22] phantummm: has joined #ruby
[01:24:21] der-landgraf: has joined #ruby
[01:24:36] openstruct: has joined #ruby
[01:25:12] gareeoliz: has joined #ruby
[01:25:14] openstruct: Are there any resources for looking up the big O notation for ruby core methods? (e.g. Enumerable#min)
[01:25:56] tristanp: has joined #ruby
[01:27:05] ghr: has joined #ruby
[01:29:19] CloCkWeRX: has joined #ruby
[01:30:15] UnKnOwN|: has joined #ruby
[01:32:34] ramfjord: has joined #ruby
[01:33:12] isberg: has joined #ruby
[01:36:06] nettoweb: has joined #ruby
[01:37:05] ghr: has joined #ruby
[01:38:45] pawnbox: has joined #ruby
[01:40:39] karapetyan: has joined #ruby
[01:43:03] isberg_: has joined #ruby
[01:43:21] mello: has joined #ruby
[01:43:40] ensyde__: has joined #ruby
[01:43:45] coffeecupp: has joined #ruby
[01:46:51] rkazak: has joined #ruby
[01:47:06] ghr: has joined #ruby
[01:48:29] anth0ny_: has joined #ruby
[01:52:24] rbennacer: has joined #ruby
[01:53:21] coffeecupp: has joined #ruby
[01:55:04] LoneHermit: has joined #ruby
[01:56:37] ghr: has joined #ruby
[01:57:53] JeanCarloMachado: has joined #ruby
[01:58:08] nofxx: has joined #ruby
[01:58:32] araujo_: has joined #ruby
[02:00:10] isberg: has joined #ruby
[02:02:16] MrBusiness3: has joined #ruby
[02:03:43] openstruct: has joined #ruby
[02:05:14] Es0teric: has joined #ruby
[02:05:28] davedev24: has joined #ruby
[02:05:54] Es0teric: has joined #ruby
[02:07:37] arescorpio: has joined #ruby
[02:08:54] blackgoat: has joined #ruby
[02:09:37] ghr: has joined #ruby
[02:13:45] NeverDie: has joined #ruby
[02:13:48] isberg: has joined #ruby
[02:14:07] NeverDie: Is it just me or is this an accurate representation of Rails developers? http://ww3.hdnux.com/photos/10/42/73/2240234/7/920x920.jpg
[02:14:43] pawnbox: has joined #ruby
[02:14:49] pontiki: i wouldn't know, i've never seen one
[02:15:12] rbennacer: has joined #ruby
[02:15:45] blackmesa: has joined #ruby
[02:15:57] ss_much: has joined #ruby
[02:19:57] deecross: has joined #ruby
[02:19:58] Arcaire: NeverDie: lol
[02:20:08] ghr: has joined #ruby
[02:21:33] Emmanuel_Chanel: has joined #ruby
[02:21:58] enterprisey: has joined #ruby
[02:24:05] phantummm: has joined #ruby
[02:28:55] rbennacer: has joined #ruby
[02:30:49] roamingdog: has joined #ruby
[02:32:08] ghr: has joined #ruby
[02:34:11] NeverDie: has joined #ruby
[02:35:19] dsea: has joined #ruby
[02:35:22] NeverDie: has joined #ruby
[02:35:52] anth0ny_: has joined #ruby
[02:36:33] snath: has joined #ruby
[02:36:39] anth0ny_: has joined #ruby
[02:38:17] rbennacer: has joined #ruby
[02:42:46] freerobby: has joined #ruby
[02:43:41] davedev24: has joined #ruby
[02:45:31] NeverDie: has left #ruby: ("http://radiux.io/")
[02:46:39] ghr: has joined #ruby
[02:49:38] Meow-J: has joined #ruby
[02:50:57] rkazak: has joined #ruby
[02:52:08] rbennacer: has joined #ruby
[02:57:08] TheWhip: has joined #ruby
[02:57:10] ghr: has joined #ruby
[02:58:25] TheWhip: has joined #ruby
[02:59:03] malconis: has joined #ruby
[03:01:07] rbennacer: has joined #ruby
[03:01:21] TheWhip: has joined #ruby
[03:06:07] anth0ny_: has joined #ruby
[03:06:31] nankyoku_: has joined #ruby
[03:07:51] coffeecupp: has joined #ruby
[03:08:47] ghr: has joined #ruby
[03:10:23] rbennacer: has joined #ruby
[03:15:48] dc4: has joined #ruby
[03:17:03] blackmesa: has joined #ruby
[03:17:26] aries_liuxueyang: has joined #ruby
[03:18:09] modality12: has joined #ruby
[03:18:15] kent\n: has joined #ruby
[03:18:15] kent\n: has joined #ruby
[03:18:35] phantummm: has joined #ruby
[03:18:53] modality12: Hey, could anybody answer a sequel question for me? I asked on the sequel irc, but I think it may be a bit slow right now.
[03:19:10] gix: has joined #ruby
[03:19:33] rbennacer: has joined #ruby
[03:19:48] crdpink2: has joined #ruby
[03:20:04] modality12: I'm already feeling really dumb for asking, but how would I do something like (Object A) -- HAS MANY --> (Obj B) -- HAS MANY --> (Obj C), and get all of the object Cs that an Object A has? Like, what association helper? What options?
[03:20:41] ghr: has joined #ruby
[03:21:27] dsea: compare them in a loop and return the shared values
[03:24:22] modality12: I mean, I can do object_a.object_bs.map(&:object_cs).flatten
[03:24:45] modality12: But Isn't there some sort of query that can be generated for that using the helpers, rather than iterating in code/
[03:25:09] coffeecupp: has joined #ruby
[03:26:46] dsea: why would you do that instead of using a builting
[03:26:49] dsea: *builtin
[03:28:22] modality12: Right, that's my question. There's a one_to_many I'm using for A to B and from B to C. But is there one I can put in A that'll leverage the chain of foreign keys?
[03:28:23] modality12: In ActiveRecord it's just a single has_many cs, through: bs
[03:28:36] modality12: ^ That being in A
[03:30:41] ghr: has joined #ruby
[03:31:07] kavanagh: has joined #ruby
[03:32:51] KetoEater: has joined #ruby
[03:32:52] rbennacer: has joined #ruby
[03:33:25] dsea: I'm confused by the question if you have something that's already doing it why do you want to change the way your doing it
[03:33:32] dsea: is performance a problem in the current way?
[03:34:09] Nawn: has joined #ruby
[03:34:25] modality12: No, I currently don't. Well, that flatten example would work, but it's doing work that the database is optimized for doing
[03:35:44] CloCkWeRX: has joined #ruby
[03:37:21] dsea: Why would you do it in code over doing it in the DB
[03:37:27] dsea: or is that what you want
[03:37:37] dsea: code to query the db to do the work for you
[03:37:59] modality12: Right, that's why I wanted to use the helpers; they generate effecient sql queries
[03:38:06] modality12: I think I may have found something...
[03:39:18] sdothum: has joined #ruby
[03:40:19] Devalo: has joined #ruby
[03:40:42] ghr: has joined #ruby
[03:41:39] dsea: https://github.com/TylerRick/active_record_ignored_attributes
[03:41:41] dsea: like that
[03:42:02] rbennacer: has joined #ruby
[03:44:57] Rodya_: has joined #ruby
[03:45:47] rickmasta: has joined #ruby
[03:46:07] dsea: apparently he found his answer... I'm wondering if that gem is what he was looking for though....
[03:47:28] pawnbox: has joined #ruby
[03:50:34] mistermocha: has joined #ruby
[03:50:57] Arcaire: So Kernel#` and Kernel#exec don't play well with Sidekiq. Any recommendations?
[03:51:05] Arcaire: Kernel#spawn?
[03:51:12] rbennacer: has joined #ruby
[03:53:07] steve: has joined #ruby
[03:53:13] ghr: has joined #ruby
[03:56:03] Rodya_: has joined #ruby
[03:57:04] JoshGlzBrk: has joined #ruby
[03:59:44] iMadper: has joined #ruby
[04:00:21] rbennacer: has joined #ruby
[04:02:43] ghr: has joined #ruby
[04:03:06] pawnbox: has joined #ruby
[04:03:07] gareeoliz: has joined #ruby
[04:03:46] jenrzzz: has joined #ruby
[04:07:48] moei: has joined #ruby
[04:08:00] hk238: has joined #ruby
[04:09:34] rbennacer: has joined #ruby
[04:10:58] dc4: has joined #ruby
[04:13:14] ghr: has joined #ruby
[04:13:37] gareeoliz: has joined #ruby
[04:14:38] mistermocha: has joined #ruby
[04:14:41] Yzguy: has joined #ruby
[04:17:31] roamingd_: has joined #ruby
[04:17:42] rbennacer: has joined #ruby
[04:18:42] azor: has joined #ruby
[04:19:34] blackmesa: has joined #ruby
[04:20:34] zacstewart: has joined #ruby
[04:24:49] ghr: has joined #ruby
[04:25:43] Bugboy1028: has joined #ruby
[04:26:47] snath: has joined #ruby
[04:28:36] Guest43: has joined #ruby
[04:29:10] sebstrax: has joined #ruby
[04:30:09] ascarter: has joined #ruby
[04:31:06] Devalo: has joined #ruby
[04:33:04] isberg: has joined #ruby
[04:33:19] ferr: has joined #ruby
[04:39:48] jaguarma_: has joined #ruby
[04:41:14] LoneHerm_: has joined #ruby
[04:41:54] dc4: has joined #ruby
[04:42:22] deecross: has joined #ruby
[04:43:46] ghr: has joined #ruby
[04:45:53] UnKnOwN|: has joined #ruby
[04:50:13] longfeet: has joined #ruby
[04:51:13] jzigmund: has joined #ruby
[04:53:16] ghr: has joined #ruby
[04:54:00] jenrzzz: has joined #ruby
[04:56:24] coffeecupp: has joined #ruby
[05:00:07] pawnbox: has joined #ruby
[05:01:44] alfiemax: has joined #ruby
[05:03:17] ghr: has joined #ruby
[05:06:35] JoshGlzBrk: has joined #ruby
[05:06:50] dminuoso: has joined #ruby
[05:10:33] tummy: has joined #ruby
[05:12:47] ghr: has joined #ruby
[05:13:52] alfiemax: has joined #ruby
[05:14:02] TheWhip: has joined #ruby
[05:14:34] zacts: has joined #ruby
[05:14:37] ascarter: has joined #ruby
[05:16:44] karapetyan: has joined #ruby
[05:16:57] conta: has joined #ruby
[05:17:32] rbennacer: has joined #ruby
[05:22:40] Ropeney: has joined #ruby
[05:24:48] ghr: has joined #ruby
[05:24:57] tristanp: has joined #ruby
[05:26:34] LoneHerm_: has joined #ruby
[05:26:35] rbennacer: has joined #ruby
[05:26:43] dc4: has joined #ruby
[05:31:25] CloCkWeRX: has joined #ruby
[05:32:55] blackmesa: has joined #ruby
[05:34:18] ghr: has joined #ruby
[05:34:37] anth0ny_: has joined #ruby
[05:35:33] alfiemax: has joined #ruby
[05:35:42] rbennacer: has joined #ruby
[05:35:48] pawnbox: has joined #ruby
[05:36:24] phredus: I just started using chruby and ruby-install and things are good, I don't want to screw things up. What is the prefered method to install rails?
[05:36:27] zapata: has joined #ruby
[05:38:08] jzigmund: has joined #ruby
[05:41:56] c0mrad3: has joined #ruby
[05:44:02] glrrf: has joined #ruby
[05:44:54] rbennacer: has joined #ruby
[05:46:21] ghr: has joined #ruby
[05:46:36] jishankai: has joined #ruby
[05:49:17] dminuoso: has joined #ruby
[05:49:30] ishe_ua: has joined #ruby
[05:50:01] last_staff: has joined #ruby
[05:50:18] glrrf: has left #ruby: ("WeeChat 1.5")
[05:50:55] Guest43: has joined #ruby
[05:55:11] deecross: has joined #ruby
[05:55:49] ghr: has joined #ruby
[05:56:46] mistermo_: has joined #ruby
[05:56:47] agent_white: The method defined by your gem/ruby manager; do what chruby does.
[05:57:10] tvw: has joined #ruby
[05:57:47] jaguarmagenta: has joined #ruby
[05:59:07] rbennacer: has joined #ruby
[05:59:51] pontiki: has joined #ruby
[06:00:10] memorasus: has joined #ruby
[06:00:13] xlegoman: has joined #ruby
[06:02:50] dc4: has joined #ruby
[06:03:24] raeoks: has joined #ruby
[06:03:30] nando293921: has joined #ruby
[06:03:34] gareeoliz: has joined #ruby
[06:03:47] errakeshpd: has joined #ruby
[06:04:09] gareeoliz: has joined #ruby
[06:04:23] burgestrand: has joined #ruby
[06:04:40] errakeshpd: I have one ruby script (paytm) <form action="enerate_checksum.rb">, ruby file is getting download when the form is submitted, what is the way to execute the script when form submit.
[06:05:23] pontiki: you want to execute a standalone ruby script?
[06:06:28] pontiki: you will need to treat it as a CGI script, i'd guess
[06:06:40] pontiki: i haven't done anything like that in over decade
[06:07:44] vdamewood: has joined #ruby
[06:08:16] rbennacer: has joined #ruby
[06:08:21] anisha: has joined #ruby
[06:09:36] edwinvdgraaf: has joined #ruby
[06:11:51] errakeshpd: https://github.com/Paytm-Payments/Paytm_Web_Sample_Kit_Ruby/blob/master/samplekit/generate_checksum.rb is the ruby file
[06:12:31] pontiki: read the nginx dox for how to execute a CGI script, that's all i got
[06:13:13] errakeshpd: ok Thank you.
[06:15:53] ghr: has joined #ruby
[06:17:27] rbennacer: has joined #ruby
[06:19:46] blackmesa: has joined #ruby
[06:22:05] charliesome: has joined #ruby
[06:25:21] ghr: has joined #ruby
[06:27:49] craigp: has joined #ruby
[06:28:14] conta: has joined #ruby
[06:28:41] User458764: has joined #ruby
[06:31:13] rbennacer: has joined #ruby
[06:31:28] deecross: has joined #ruby
[06:31:31] dminuoso: has joined #ruby
[06:32:44] blaxter: has joined #ruby
[06:33:42] symm-: has joined #ruby
[06:35:51] ghr: has joined #ruby
[06:36:38] LoneHermit: has joined #ruby
[06:38:23] dionysus69: has joined #ruby
[06:40:28] cyphase: has joined #ruby
[06:44:20] deecross: has joined #ruby
[06:45:00] rbennacer: has joined #ruby
[06:45:38] memorasus: has joined #ruby
[06:46:22] ghr: has joined #ruby
[06:48:01] aganov: has joined #ruby
[06:49:41] rbennacer: has joined #ruby
[06:54:56] anquegi: has joined #ruby
[06:55:06] voodoofish430: has joined #ruby
[06:55:53] ghr: has joined #ruby
[06:56:13] ruby-lang268: has joined #ruby
[06:56:28] codecop: has joined #ruby
[06:57:21] voodoofish430: has joined #ruby
[06:59:36] n1x-nz: has joined #ruby
[06:59:53] dminuoso: has joined #ruby
[06:59:55] agent_white: has joined #ruby
[07:01:58] coffeecupp: has joined #ruby
[07:04:43] mark_66: has joined #ruby
[07:07:53] ghr: has joined #ruby
[07:08:09] harfangk_: has joined #ruby
[07:09:01] postmodern: has joined #ruby
[07:09:26] chipotle: has joined #ruby
[07:09:40] nankyokusei: has joined #ruby
[07:11:08] Hounddog: has joined #ruby
[07:13:19] TomyWork: has joined #ruby
[07:16:16] charliesome: has joined #ruby
[07:18:06] charliesome: has joined #ruby
[07:19:23] User458764: has joined #ruby
[07:20:08] deecross: has joined #ruby
[07:20:13] Abonec: has joined #ruby
[07:20:21] ur5us: has joined #ruby
[07:20:24] ghr: has joined #ruby
[07:20:26] blake: has joined #ruby
[07:20:37] blake: what is generally preferred? JSON or YAML/?
[07:21:09] raldu: JSON is supposed to be more widely used
[07:21:14] pawnbox: has joined #ruby
[07:21:22] dminuoso: blake: It depends on what you want to use it for.
[07:21:30] dminuoso: blake: If you want something human readable then don't use JSON.
[07:21:51] blake: It's just for saving the state of my object as they are
[07:21:52] raldu: yeah, YAML is perfect for configuration files, for example
[07:22:02] lxsameer: has joined #ruby
[07:22:15] dminuoso: blake: You can even use plain ruby Marshal!
[07:22:30] dminuoso: If you do not care about human readability or interoperability with say JavaScript.
[07:22:35] blake: hmm I see
[07:23:04] antgel: has joined #ruby
[07:25:12] LoneHerm_: has joined #ruby
[07:25:54] jenrzzz: has joined #ruby
[07:26:28] rbennacer: has joined #ruby
[07:27:31] pawnbox: has joined #ruby
[07:30:39] Xeago_: has joined #ruby
[07:32:25] ghr: has joined #ruby
[07:32:46] bigkevmcd: has joined #ruby
[07:33:17] eGGshke: has joined #ruby
[07:35:29] iMadper`: has joined #ruby
[07:36:51] deecross: has joined #ruby
[07:39:13] vondruch: has joined #ruby
[07:39:41] rbennacer: has joined #ruby
[07:39:54] Macaveli: has joined #ruby
[07:39:58] Bish: has joined #ruby
[07:40:27] burgestrand: has joined #ruby
[07:42:30] ghr: has joined #ruby
[07:42:45] naftilos76: has joined #ruby
[07:44:30] vondruch: has joined #ruby
[07:44:39] rbennacer: has joined #ruby
[07:45:10] alfiemax: has joined #ruby
[07:47:19] anisha: has joined #ruby
[07:47:37] burgestrand: has joined #ruby
[07:49:25] errakeshpd: has joined #ruby
[07:49:25] multi_io: has joined #ruby
[07:49:34] conta: has joined #ruby
[07:49:47] ngw: has joined #ruby
[07:52:26] ghr: has joined #ruby
[07:52:34] blaxter: has joined #ruby
[07:53:59] Lumpy: has joined #ruby
[07:54:27] adgtl: has joined #ruby
[07:58:36] wigust: has joined #ruby
[08:01:56] ghr: has joined #ruby
[08:04:50] marr: has joined #ruby
[08:06:25] Silthias: has joined #ruby
[08:06:46] errakeshpd: has joined #ruby
[08:07:23] rbennacer: has joined #ruby
[08:09:00] emilkarl: has joined #ruby
[08:10:13] jaruga___: has joined #ruby
[08:11:38] kareeoleez: has joined #ruby
[08:12:13] ghr: has joined #ruby
[08:12:42] devbug: has joined #ruby
[08:13:18] Couch: has joined #ruby
[08:13:29] nofxx: has joined #ruby
[08:14:43] bigkevmcd: has joined #ruby
[08:15:22] snowy: has joined #ruby
[08:15:36] snowy: has joined #ruby
[08:15:40] Oclair: has joined #ruby
[08:16:51] pLaToOn: has joined #ruby
[08:17:55] jaruga___: has joined #ruby
[08:18:23] Xeago_: has joined #ruby
[08:22:32] wigust: has joined #ruby
[08:24:22] wigust: has joined #ruby
[08:25:42] wigust: has joined #ruby
[08:26:04] jaruga___: has joined #ruby
[08:30:22] rbennacer: has joined #ruby
[08:31:42] unshadow: has joined #ruby
[08:32:04] wigust: has joined #ruby
[08:32:40] bigkevmcd: has joined #ruby
[08:35:25] timmow: has joined #ruby
[08:35:40] blackmesa: has joined #ruby
[08:36:50] wigust: has joined #ruby
[08:39:38] rbennacer: has joined #ruby
[08:39:59] edwinvdgraaf: has joined #ruby
[08:41:37] wigust: has joined #ruby
[08:43:26] jaguarmagenta: has joined #ruby
[08:45:13] wigust: has joined #ruby
[08:47:52] conta: has joined #ruby
[08:48:52] rbennacer: has joined #ruby
[08:49:17] bigkevmcd: has joined #ruby
[08:50:13] tvw: has joined #ruby
[08:50:31] jenrzzz: has joined #ruby
[08:50:31] jenrzzz: has joined #ruby
[08:50:57] houhoulis: has joined #ruby
[08:51:14] duncannz: has joined #ruby
[08:52:58] karapetyan: has joined #ruby
[08:56:00] mark_66: has joined #ruby
[08:58:01] rbennacer: has joined #ruby
[09:00:09] coffeecupp: has joined #ruby
[09:00:26] agent_white: has joined #ruby
[09:01:04] astrobunny: has joined #ruby
[09:02:30] astrobunny: has joined #ruby
[09:02:40] rbennacer: has joined #ruby
[09:03:50] Sashimi: has joined #ruby
[09:03:52] wigust_: has joined #ruby
[09:04:17] pLaTo0n: has joined #ruby
[09:04:47] yardenbar: has joined #ruby
[09:06:51] wigust: has joined #ruby
[09:07:09] alfiemax: has joined #ruby
[09:07:37] wigust: has joined #ruby
[09:08:48] wigust: has joined #ruby
[09:10:28] nankyokusei: has joined #ruby
[09:11:50] Silthias: has joined #ruby
[09:12:25] lxsameer: has joined #ruby
[09:14:14] charliesome: has joined #ruby
[09:16:42] Hyuk: has joined #ruby
[09:17:36] cyphase: has joined #ruby
[09:17:47] harfangk: has joined #ruby
[09:17:59] pawnbox: has joined #ruby
[09:18:07] coffeecupp: has joined #ruby
[09:19:34] TriOptimum: has joined #ruby
[09:20:00] pandaant: has joined #ruby
[09:20:40] rbennacer: has joined #ruby
[09:27:35] agent_white: has joined #ruby
[09:28:52] hipertracker: has joined #ruby
[09:29:51] rbennacer: has joined #ruby
[09:30:18] hipertracker: Anybody knows how to disable strict ssl for rubygems under Windows 7? Node and npm can disable it in the config. Is anything similar for rubygems?
[09:32:37] pmyjavec: has joined #ruby
[09:32:58] jokke: i'm trying to write a module method that dynamically defines methods on the caller
[09:33:24] jokke: it defines them on the callee though.. :/
[09:35:16] dminuoso: hipertracker: Instead of disabling SSL, how about you tell us what your problem is so we can find a proper solution instead?
[09:36:07] anquegi: has joined #ruby
[09:36:49] dminuoso: jokke: Are you using binding_of_caller?
[09:37:18] conta1: has joined #ruby
[09:37:45] dminuoso: Other than that I do not see a way you could do it.
[09:37:52] pawnbox: has joined #ruby
[09:38:23] dminuoso: Unless you a) pass the object itself, or b) require a block argument to be passed.
[09:39:15] burgestrand: has joined #ruby
[09:39:43] maloik: has joined #ruby
[09:41:08] tomphp: has joined #ruby
[09:42:23] hipertracker: dminuoso: my corporate proxy has some issues with ssl. It looks like it captures all ssl traffic as a man in the middle. Anyway, ssl works badly. I have the latest Ruby installed but I can’t update or install any gem because it can't connect with rubygems server using https.
[09:42:52] harfangk: has joined #ruby
[09:43:46] rbennacer: has joined #ruby
[09:45:37] wigust: has joined #ruby
[09:46:35] darix: hipertracker: so fix the proxy or install the CA cert for the corporate proxy on your machine
[09:46:39] darix: so that ruby can reach it
[09:49:02] Oog: has joined #ruby
[09:52:43] User458764: has joined #ruby
[09:53:00] rbennacer: has joined #ruby
[09:53:07] hipertracker: darix: do I have to? I’d like to switch it off, like I did for Node.
[09:53:29] wigust: has joined #ruby
[09:53:55] hipertracker: I have no access to the proxy settings. I have very limited access to even my PC box.
[09:54:16] darix: and then you forget to switch it back on when you are elsewhere with your laptop and someone just MITM your stuff. :)
[09:54:25] itguru: has joined #ruby
[09:54:59] darix: well you can switch your rubygems.org source to http
[09:55:04] darix: but i wouldnt recommend it
[09:56:59] pickandmix: has joined #ruby
[09:57:03] pickandmix: hi! anyone knows [1,3,5,7].inject(0) {|sum, element| sum+element} mean?
[09:57:08] pickandmix: I don't get what the | | do.
[09:57:16] adaedra: it's the block parameters
[09:57:32] pickandmix: oh wait what? parameter?
[09:57:46] pickandmix: so what's the sum+element for then?
[09:57:52] pickandmix: the parameter as well?
[09:58:12] adaedra: `def method(sum, element)` for a method, `{|sum, element| ... }` for a block
[09:58:35] adaedra: sum+element is the code of the block
[09:59:00] pickandmix: These are iterators?
[09:59:03] wigust: has joined #ruby
[09:59:45] adaedra: These what?
[10:00:04] pickandmix: I don't know, I'm reading up on "Implementing Iterators" and that line came up
[10:00:07] pickandmix: made me so confused lol.
[10:00:28] adaedra: You don't know about blocks?
[10:01:00] pickandmix: maybe I might have missed something.
[10:01:40] adaedra: inject is a method that takes a block, which is a bit of code you pass to the method to be executed by it
[10:01:58] adaedra: in your snippet, it is the part between {}
[10:02:07] rbennacer: has joined #ruby
[10:02:17] adaedra: inject will then call your block several times, setting each time `sum` and `element`
[10:02:33] pickandmix: So iterators are basically methods that call a block?
[10:02:37] pickandmix: wtf i'm talking
[10:02:46] pickandmix: yeah that's what i mean.
[10:03:05] platzhirsch: has joined #ruby
[10:03:17] adaedra: yes and no
[10:05:09] marr: has joined #ruby
[10:06:30] aries_liuxueyang: has joined #ruby
[10:06:36] dminuoso: pickandmix: If you are familiar with SQL terminology, then consider inject to be an aggregation. It reduces a set to a single value, the block and arguments allow you to specify how.
[10:07:09] dminuoso: pickandmix: #reduce is probably a better alias since it is a bit more clear on what it does.
[10:08:11] pickandmix: dminuoso: #reduce?
[10:08:38] Nahra: has joined #ruby
[10:08:57] adgtl_: has joined #ruby
[10:09:00] gregf_: pickandmix: its like recursively adding stuff(in this case numbers)
[10:09:01] wigust: has joined #ruby
[10:09:20] gregf_: >> [*1..10).reduce(:+) # same as what you wrote
[10:09:21] ruby[bot]: gregf_: # => /tmp/execpad-c98a3ed9735c/source-c98a3ed9735c:2: syntax error, unexpected ')', expecting ']' ...check link for more (https://eval.in/600080)
[10:09:29] gregf_: >> [*1..10].reduce(:+) # same as what you wrote
[10:09:30] ruby[bot]: gregf_: # => 55 (https://eval.in/600081)
[10:09:53] gregf_: >> [*1..10].inject(0){ |sum, v| sum + v } # see
[10:09:54] ruby[bot]: gregf_: # => 55 (https://eval.in/600082)
[10:10:33] pickandmix: O.O I'm really confused now
[10:10:45] dminuoso: pickandmix: it "reduces" some enumerable collection to a single value. :)
[10:10:50] pickandmix: Wait! I'm gonna read back on the Blocks & Iterators and then read what you guys said
[10:10:54] Ropeney: has joined #ruby
[10:10:55] pickandmix: Hopefully it will all make sense by then.
[10:11:02] dminuoso: Oh I think I jumped too far ahead.
[10:11:23] wigust: has joined #ruby
[10:11:36] dminuoso: pickandmix: Enumerable#reduce is just an alias for Enumerable#inject. :)
[10:11:40] pickandmix: Just wanna ask, is it a retarded to think that I can finish a 800 page Ruby book in 2 days?
[10:11:52] dminuoso: pickandmix: You probably can and have learned nothing.
[10:12:01] pickandmix: what should I do?
[10:12:06] gregf_: pickandmix: def add arr, sum, &bl;if (arr.size > 0); sum = bl.call(sum,arr.shift); add(arr, sum, &bl);else; sum;end;end;add([*1..10], 0, &(proc { |s,v| s+ v })) # this is what it does. might overwhelm you at the start
[10:12:07] dminuoso: Read it slowly, and experiment.
[10:12:08] pickandmix: I don't wanna like read and forget
[10:12:17] dminuoso: pickandmix: Read it slowly, apply what you read, try things out.
[10:12:23] wigust: has joined #ruby
[10:12:28] pickandmix: Should I like work on it with 'irb' on the side
[10:12:35] dminuoso: pickandmix: Ideally at the beginning get pry (or use irb if you really prefer) - so you can quickly test out things interatively.
[10:12:43] ruby[bot]: Pry, the better IRB, provides easy object inspection `ls`, `history`, viewing docs `?`, viewing source `$`, syntax highlighting and other features (see `help` for more). Put `binding.pry` in your source code for easy debugging. Install Pry (https://pryrepl.org/): gem install pry pry-doc
[10:13:01] pickandmix: I use irb because it's a simple console. Normal times I would just vim and rb file.rb
[10:13:12] dminuoso: pry is as simple but has way more things at its disposal.
[10:13:18] dminuoso: If you just started, you might as well start with pry directly.
[10:13:43] pickandmix: dminuoso: right.
[10:13:48] pickandmix: I'll get to thaat right now
[10:13:56] pickandmix: Thanks so much all of you. Really appreciate it.
[10:16:00] rbennacer: has joined #ruby
[10:16:11] A124: has joined #ruby
[10:24:54] DoubleMalt: has joined #ruby
[10:25:01] rbennacer: has joined #ruby
[10:25:07] wigust: has joined #ruby
[10:26:20] wigust: has joined #ruby
[10:30:25] max1: has joined #ruby
[10:30:48] harfangk: has joined #ruby
[10:33:47] jenrzzz: has joined #ruby
[10:33:47] jenrzzz: has joined #ruby
[10:33:49] bithon: has joined #ruby
[10:38:34] rbennacer: has joined #ruby
[10:39:27] benlieb: has joined #ruby
[10:39:51] chip_: has joined #ruby
[10:40:40] yqt: has joined #ruby
[10:44:11] jaguarmagenta: has joined #ruby
[10:44:26] ReK2: has joined #ruby
[10:44:53] Guest63284: has joined #ruby
[10:45:10] sdothum: has joined #ruby
[10:45:18] ReK2GnULinuX: has joined #ruby
[10:45:18] ReK2GnULinuX: has joined #ruby
[10:45:52] alfiemax: has joined #ruby
[10:51:22] rodfersou: has joined #ruby
[10:52:29] rbennacer: has joined #ruby
[10:53:00] ur5us: has joined #ruby
[10:53:12] seth: has joined #ruby
[10:55:29] mkosaki: has joined #ruby
[10:55:45] joonty: has joined #ruby
[10:56:22] flughafen_: has joined #ruby
[10:57:09] rbennacer: has joined #ruby
[10:59:12] mtaw: has joined #ruby
[10:59:15] mtaw1: has joined #ruby
[10:59:35] toretore: has joined #ruby
[11:06:22] rbennacer: has joined #ruby
[11:06:29] Xeago_: has joined #ruby
[11:07:11] nadir: has joined #ruby
[11:09:28] sepp2k: has joined #ruby
[11:10:15] charliesome: has joined #ruby
[11:10:58] User458764: has joined #ruby
[11:11:20] nankyokusei: has joined #ruby
[11:13:06] max1: has joined #ruby
[11:15:07] emilkarl: has joined #ruby
[11:16:50] harfangk: has joined #ruby
[11:17:12] roshanavand: has joined #ruby
[11:19:00] ojab: has joined #ruby
[11:19:37] jishankai: has joined #ruby
[11:20:05] rbennacer: has joined #ruby
[11:21:48] Xeago_: has joined #ruby
[11:25:57] ych: has joined #ruby
[11:28:33] huyderman_: has joined #ruby
[11:29:52] conta: has joined #ruby
[11:31:42] Some-body_: has joined #ruby
[11:31:47] Xeago_: has joined #ruby
[11:33:29] jaruga___: has joined #ruby
[11:33:43] rbennacer: has joined #ruby
[11:35:13] blackmesa: has joined #ruby
[11:36:43] johnmilton: has joined #ruby
[11:37:21] giz|work: has joined #ruby
[11:38:05] ElFerna: has joined #ruby
[11:38:21] pontiki: has joined #ruby
[11:39:13] deecross: has joined #ruby
[11:39:15] blackgoat: has joined #ruby
[11:40:56] itguru1: has joined #ruby
[11:44:01] dionysus69: has joined #ruby
[11:44:40] itguru: has joined #ruby
[11:47:06] Hanmac: has joined #ruby
[11:47:26] rbennacer: has joined #ruby
[11:51:00] JeanCarloMachado: has joined #ruby
[11:51:10] joonty: has joined #ruby
[11:51:58] GodFather_: has joined #ruby
[11:53:00] binaryplease1: has joined #ruby
[11:54:27] alfiemax: has joined #ruby
[11:54:35] johnmilton: has joined #ruby
[11:56:43] rbennacer: has joined #ruby
[11:56:51] ruby-lang669: has joined #ruby
[11:57:20] genpaku: has joined #ruby
[11:57:36] ruby-lang669: I want to download latest version 2.4 of ruby. Where can I download the binary version for windows
[11:57:50] yokel: has joined #ruby
[11:57:58] jhass: I don't think anybody prepared such a thing yet
[11:58:00] benlieb: has joined #ruby
[11:58:58] ruby-lang669: I think ruby lang developers should have a test binary version for such newer release as PHP website did with their releases
[12:00:27] jhass: let's be honest, windows is not Ruby's main target
[12:01:05] jhass: and on other platforms updating existing build scripts or packages is easy enough
[12:01:52] ruby-lang669: hi Jhass, so apparently linux is the best platform to learn ruby, is it correct?
[12:02:16] jhass: it makes a bunch of things easier, yes. OS X is fine too
[12:03:04] bigkevmcd: has joined #ruby
[12:03:16] dminuoso: ruby-lang669: Learning Ruby you can do on Windows too, as long as you stay away from gems with native extensions.
[12:03:31] dminuoso: (Which already greatly limits the amount of gems available to you)
[12:03:38] gigetoo: has joined #ruby
[12:04:35] dminuoso: ruby-lang669: But if you insist on trying out the newest Ruby features, feel free to toy around: http://svn.ruby-lang.org/repos/ruby/trunk
[12:06:07] ruby-lang669: oh okay thank dminuoso. I'm a freshman in Ruby, I just want to discover new features in version 2.4
[12:07:25] dminuoso: ruby-lang669: https://bugs.ruby-lang.org you can use this to track new features in Ruby.
[12:07:40] dminuoso: But if you are a freshmen, then trying out the newest edge features might not be the best idea.
[12:07:58] dminuoso: Particularly because you may not even understand the need or context for some of them.
[12:08:26] blaxter: has joined #ruby
[12:09:18] ybart: has joined #ruby
[12:09:37] ruby-lang669: thanks dminuoso
[12:09:53] ybart: When I have a single-line function that is "return a.nil? && b" why does it return b and not true/false?
[12:10:12] rbennacer: has joined #ruby
[12:10:14] tobiasvl: _bart: well, is a nil?
[12:10:41] tobiasvl: it returns b because b is truthy, I assume
[12:11:10] ybart: tobiasvl: b is truthy, but does it only return truthy if both a is nil and b is truthy?
[12:11:22] Sashimi: has joined #ruby
[12:11:23] bigkevmcd: has joined #ruby
[12:11:34] gearnode: has joined #ruby
[12:11:44] ybart: tobiasvl: I guess (a.nil? && b) would be true/false?
[12:11:49] karapetyan: has joined #ruby
[12:11:54] tobiasvl: it would be b
[12:11:57] tobiasvl: assuming a is nil
[12:12:27] ytti: nil && false => nil
[12:12:33] ytti: false && nil => false
[12:12:47] ytti: in all other cases, it returns the value of first
[12:13:03] ybart: oh OK I never realised
[12:13:06] ytti: uhh value of second
[12:13:23] dminuoso: _bart: The only way to get a true/false is either your method returns it, or you coerce it using !!
[12:13:23] ybart: value of the last I guess? In case of a && b && c
[12:13:48] dminuoso: _bart: so if you want the truth value, use !!(a.nil? && b)
[12:14:02] jaguarmagenta: has joined #ruby
[12:14:05] ytti: but why would you care about explicit boolean
[12:14:14] ytti: when truthy acts as boolean in all but explicit contexts
[12:14:18] ytti: and why would you match explicitly?
[12:14:45] ybart: ytti: in my case it doesn't matter, but I guess sometimes this matters when you want to store just a true/false
[12:14:46] dminuoso: ytti: There can be many reasons. Perhaps its the end of a .foo? method
[12:15:12] ybart: dminuoso: in the case of a foo? method, does it have to be explicit true/false there though?
[12:15:13] dminuoso: ytti: Also hiding implementation details can be a really useful thing.
[12:15:20] dminuoso: _bart: That is the convention anyway.
[12:15:23] ytti: anyhow if x&&y is not true, and only one of them is not true, then that is returned, be it false or nil
[12:15:32] ytti: if both are not true, then the first is returned
[12:15:40] ytti: if both are true, then the last is returned
[12:15:44] ytti: surprisingly complex behaviour
[12:15:52] ytti: but not smething that has even mattered in my code
[12:16:40] pontiki: ytti: most languages work like this. it's called "early return"
[12:16:44] dumdedum: has joined #ruby
[12:16:45] JeanCarloMachado: has joined #ruby
[12:16:46] ybart: it didn't matter in my code either, but since it's a foo? method I'm considering !!
[12:17:17] dminuoso: _bart: You definitely should then, otherwise you are leaking implementation details.
[12:17:30] ytti: pontiki, how is is early return in the first example
[12:17:32] ybart: ytti: yes it means you don't have to evaluate stuff when the clause outcome is already determined anyway
[12:17:49] ytti: pontiki, never mind, it is
[12:17:51] ybart: dminuoso: yes I agree thanks
[12:18:43] dc4: has joined #ruby
[12:19:27] rbennacer: has joined #ruby
[12:20:09] Kedare: has joined #ruby
[12:21:42] pawnbox: has joined #ruby
[12:24:59] diegoviola: has joined #ruby
[12:25:28] xvesjj: has joined #ruby
[12:28:44] ldnunes: has joined #ruby
[12:28:44] rbennacer: has joined #ruby
[12:31:25] Ropeney: has joined #ruby
[12:31:44] pickandmix: has joined #ruby
[12:31:54] alfiemax: has joined #ruby
[12:33:17] prestorium: has joined #ruby
[12:33:40] Zarthus: does anyone know where to find a complete list of all flags ruby regex supports
[12:34:00] nettoweb: has joined #ruby
[12:34:03] dminuoso: Zarthus: The documentation?
[12:34:28] dminuoso: Zarthus: http://ruby-doc.org/core-2.3.1/Regexp.html
[12:34:33] dminuoso: It has a complete list of all flags.
[12:34:38] dminuoso: You can also use ri if you prefer.
[12:34:48] Zarthus: where do you see the list of flags?
[12:35:00] l4v2: has joined #ruby
[12:35:02] adaedra: here: http://ruby-doc.org/core-2.3.1/Regexp.html#class-Regexp-label-Options
[12:35:26] dminuoso: adaedra: That //o flag is so bizarre...
[12:35:38] Zarthus: are there really only four flags
[12:36:24] dminuoso: Zarthus: If you feel the documentation is holding out on you (it sometimes is), then refer to the source code.
[12:36:39] pawnbox: has joined #ruby
[12:36:41] dminuoso: But I feel that the Regexp documentation might be the most complete documentation in all of Ruby.
[12:37:14] millerti: has joined #ruby
[12:37:20] anquegi_: has joined #ruby
[12:37:22] Zarthus: I am just a bit disappointed now, is all :P
[12:37:38] Zarthus: thought there might be unicode or DOTALL flags somewhere
[12:37:54] adaedra: well, actually
[12:37:57] adaedra: >> ('a'..'z').select { |f| begin; eval("//#{f}"); true; rescue SyntaxError; false; end }
[12:37:58] ruby[bot]: adaedra: # => ["e", "i", "m", "n", "o", "s", "u", "x"] (https://eval.in/600180)
[12:38:37] Zarthus: yeah, that's more around my expectations
[12:39:04] adaedra: most of them are immediatly dropped tho
[12:39:07] ruby[bot]: adaedra: # => // (https://eval.in/600181)
[12:39:16] dminuoso: adaedra: At least thats what Ruby would like you to think.
[12:39:26] dminuoso: ACTION is digging through the source for this
[12:40:02] adaedra: good luck.
[12:40:26] adaedra: >> //.encoding
[12:40:27] ruby[bot]: adaedra: # => #<Encoding:US-ASCII> (https://eval.in/600182)
[12:40:57] adaedra: >> /é/.encoding
[12:40:58] ruby[bot]: adaedra: # => #<Encoding:UTF-8> (https://eval.in/600183)
[12:41:08] hosttor: has joined #ruby
[12:41:12] adaedra: ah, here it is for unicode, it's auto-detected, but I suppose you can change it.
[12:42:08] dminuoso: adaedra: https://github.com/ruby/ruby/blob/ruby_2_3/re.c#L331-L355
[12:42:24] dminuoso: Those seem to be those "magical ones".
[12:42:28] rbennacer: has joined #ruby
[12:42:35] ponga: has joined #ruby
[12:42:46] dminuoso: So Zarthus, there are indeed flags for encodings not listed in that section.
[12:43:06] interki: has joined #ruby
[12:44:09] anquegi: has joined #ruby
[12:44:45] adaedra: I would go with prudence with undocumented options though.
[12:49:49] anth0ny_: has joined #ruby
[12:49:59] blackmesa: has joined #ruby
[12:52:49] bigkevmcd: has joined #ruby
[12:52:55] mkosaki: has joined #ruby
[12:54:22] anth0ny_: has joined #ruby
[12:55:37] anth0ny_: has joined #ruby
[12:56:10] jhack: has joined #ruby
[12:56:14] rbennacer: has joined #ruby
[12:57:19] rbennacer: has joined #ruby
[12:59:07] Kus: has joined #ruby
[12:59:22] Mekkis: has joined #ruby
[12:59:33] aryaching: has joined #ruby
[13:00:18] ponga: has joined #ruby
[13:02:14] anquegi: has joined #ruby
[13:02:14] ramortegui: has joined #ruby
[13:03:26] tAn: has joined #ruby
[13:04:59] eljimmy: has joined #ruby
[13:08:47] A124: Some docs are poor. Like Zlib. When searching google the first hit that did show me how was this instead of the regular docs: http://opensource.apple.com//source/ruby/ruby-79/ruby/ext/zlib/doc/zlib.rd
[13:09:43] pawnbox: has joined #ruby
[13:10:04] User458764: has joined #ruby
[13:10:54] UnKnOwN|: has joined #ruby
[13:11:29] adaedra: hmm. http://ruby-doc.org/stdlib-2.3.1/libdoc/zlib/rdoc/Zlib/Inflate.html#method-i-sync_point-3F
[13:12:08] freerobby: has joined #ruby
[13:12:12] nankyokusei: has joined #ruby
[13:13:50] bigkevmcd: has joined #ruby
[13:14:32] A124: Haha, anyways. One thing I noticed is that deflate inflate gives different output somehow.
[13:14:45] aupadhye: has joined #ruby
[13:15:00] A124: I expect it to be encoding problem, but still.
[13:15:15] xaxisx: has joined #ruby
[13:15:24] anth0ny_: has joined #ruby
[13:15:40] aryaching: has joined #ruby
[13:16:00] adaedra: Different compression settings?
[13:16:25] nando293921: has joined #ruby
[13:16:27] EXCHGR: has joined #ruby
[13:16:43] A124: Nah, UTF-8 input, ASCII-8 output
[13:17:32] A124: After forcing UTF-8 they are equal. So good on that. I am using dictionary for compression. Amazed it is not documented better. Not sure if it was in 1.8/1.9
[13:17:34] xaxisx: has joined #ruby
[13:18:52] bigkevmcd: has joined #ruby
[13:19:01] bluOxigen: has joined #ruby
[13:19:27] jaruga___: has joined #ruby
[13:19:45] xaxisx: has joined #ruby
[13:19:59] fclausen: has joined #ruby
[13:20:36] jaruga___: has joined #ruby
[13:21:21] A124: In nutshell: When compressing: create deflate, set dict, put data, finish, close.
[13:21:55] max1: has joined #ruby
[13:22:09] A124: When decompressing: create inflate, attempt decompress, raises need_dict, provide dict, provide (more) data, finish, close.
[13:22:25] bkxd: has joined #ruby
[13:22:59] nando293921: has joined #ruby
[13:23:05] A124: And a trick to speed it up is to provide header that says "was compressed with dictionary" without providing any data.
[13:23:18] A124: As you will have to provide the data again after you provide the dictionary.
[13:25:42] k13nox: has joined #ruby
[13:27:26] pmyjavec: has joined #ruby
[13:29:31] harfangk: has joined #ruby
[13:30:14] pawnbox: has joined #ruby
[13:32:50] blackmesa: has joined #ruby
[13:34:53] bigkevmcd: has joined #ruby
[13:37:11] UnKnOwN|: has joined #ruby
[13:37:19] Rauke: has joined #ruby
[13:39:00] xaxisx_: has joined #ruby
[13:39:07] jaruga___: has joined #ruby
[13:39:44] Rauke: if I have a string that looks like an array, e.g. '[89, "March", "Apples"]' how do i turn it into an array?
[13:42:25] xubunto: has joined #ruby
[13:42:31] biberu: has joined #ruby
[13:43:53] Es0teric: has joined #ruby
[13:44:18] mdw: has joined #ruby
[13:44:38] canton7: Rauke, is it, in fact, json?
[13:44:46] canton7: it looks like json - if it actually is, parse it as json
[13:45:42] xaxisx: has joined #ruby
[13:46:06] Rauke: canton7: no, it's just a string output from another script
[13:46:24] A124: The dangerous way: eval
[13:46:38] canton7: Rauke, do you control the other script?
[13:46:42] chip_: has joined #ruby
[13:46:54] canton7: and if it only ever looks like what you pasted, it's good enough to call it json, and parse it as json :P
[13:46:56] nfk: has joined #ruby
[13:47:39] Rauke: it would be easier to rewrite the other script, I agree, but there is data in the file now
[13:48:48] bigkevmcd: has joined #ruby
[13:48:56] canton7: how did you construct the string in the other script?
[13:50:43] Rauke: it's basically a log file of user actions, so not easy to reconstruct - I guess I should just strip the [] off each line and use split
[13:50:53] canton7: how did you generate the string?
[13:51:06] canton7: (split is dangerous - what if a string contains a comma?)
[13:52:14] Rauke: it's ok, all the items are file names, integers or paths - no commas
[13:52:27] jhass: Rauke: you're not answering the question though
[13:52:42] jhass: is it just Array#to_s or Array#inspect or...?
[13:52:47] isberg: has joined #ruby
[13:53:20] shinnya: has joined #ruby
[13:53:41] davedev24: has joined #ruby
[13:53:51] Rauke: jhass: it was just writing temporary variables to a file using concatenation and (at the time cleverly) wrapping them in brackets
[13:54:02] ocbtec: has joined #ruby
[13:54:19] diego2: has joined #ruby
[13:54:48] jhass: Rauke: how did you end up with quotes if it's just String#+ or string interpolation?
[13:55:16] canton7: Rauke, again, if you've basically reinvented json, then just use the json parser to parse it
[13:55:23] jhass: did you do %Q(["#{path}", #{id}]) or what?
[13:55:30] canton7: Rauke, from what you've described, your format is identical to json, in which case parsing it as json is fine
[13:55:58] Rauke: jhass: nothing that clever, just lots of backslashes
[13:56:08] Rauke: canton7: thanks, I'll try that
[13:56:22] irregular: has joined #ruby
[13:59:28] xaxisx_: has joined #ruby
[13:59:45] bigkevmcd: has joined #ruby
[14:00:42] irregular: Hi guys, I'm trying to install dislocker http://askubuntu.com/questions/617950/use-windows-bitlocker-encrypted-drive-on-ubuntu-14-04-lts this requires ruby-dev (for ubuntu), which I've installed but I'm also using rvm https://rvm.io/ I think this is causing problems with the `make` step for installing dislocker, I get the error negative integer implicitly converted to unsigned type http://pastebin.com/TGz0SxYe
[14:00:42] ruby[bot]: irregular: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
[14:01:14] Rauke: it works, thanks all!
[14:01:17] jhack: has joined #ruby
[14:01:32] irregular: Hi guys, I'm trying to install dislocker http://askubuntu.com/questions/617950/use-windows-bitlocker-encrypted-drive-on-ubuntu-14-04-lts this requires ruby-dev (for ubuntu), which I've installed but I'm also using rvm https://rvm.io/ I think this is causing problems with the `make` step for installing dislocker, I get the error negative integer implicitly converted to unsigned type
[14:01:32] irregular: https://gist.github.com/garvinguan/3711e80a293c606628723d71278cc6e6
[14:01:35] pLaToOn: has joined #ruby
[14:02:40] xaxisx: has joined #ruby
[14:02:55] sdothum: has joined #ruby
[14:03:57] c0mrad3: has joined #ruby
[14:04:48] jhass: irregular: did you set any MAKEFLAGS, CFLAGS, LDFLAGS or CXXFLAGS yourself?
[14:06:59] xaxisx_: has joined #ruby
[14:07:36] irregular: jhass:I did not set any of those
[14:07:57] irregular: the install.txt just says `cmake .` then `make`
[14:08:05] jhass: are they perhaps set nonetheless? check env
[14:08:15] mrodrigues: has joined #ruby
[14:08:26] jaruga___: has joined #ruby
[14:08:47] blaxter: has joined #ruby
[14:09:18] irregular: jhass:you're right they are all unset
[14:09:27] irregular: how would I know what I should set them to?
[14:09:36] jenrzzz: has joined #ruby
[14:10:05] jhass: nothing, I was rather suspecting you might have them set to something the project didn't expect
[14:10:07] jhass: like -Wall
[14:11:59] jhass: irregular: did you see the second paragraph here? https://github.com/Aorimn/dislocker/blob/master/INSTALL.md#if-you-are-not-on-macosx
[14:13:16] irregular: jhass:do you mean running the cmake -D WARN_FLAGS:STRING="-Wall -Wextra" .? I did but that throws a different error
[14:13:53] jhass: well that might be progress?
[14:14:04] irregular: a.c:1:29: fatal error: mbedtls/version.h: No such file or directory
[14:14:04] irregular: #include <mbedtls/version.h> and many `string sub-command REPLACE requires at least four arguments`
[14:14:11] bigkevmcd: has joined #ruby
[14:14:26] irregular: jhass:could be progress but I don't know how to tackle either
[14:14:38] the_drow: has joined #ruby
[14:14:56] bigkevmcd: has joined #ruby
[14:15:26] Carella: has joined #ruby
[14:15:31] jhass: looks like you're missing mbedtls headers?
[14:15:31] alfiemax: has joined #ruby
[14:16:25] jhack: has joined #ruby
[14:16:35] jhass: https://github.com/Aorimn/dislocker/blob/master/INSTALL.md#mbedtls-200
[14:17:33] nando293921: has joined #ruby
[14:17:45] irregular: looks like it. thought that would come from sudo apt-get install libpolarssl-dev
[14:18:00] irregular: I didn't read that section yet since it was under uninstalling, let me try that
[14:18:49] xaxisx_: has joined #ruby
[14:19:21] carella_: has joined #ruby
[14:20:06] nando293921: has joined #ruby
[14:20:10] dc4: has joined #ruby
[14:21:55] xaxisx: has joined #ruby
[14:23:41] randomVikingDude: has joined #ruby
[14:24:17] xaxisx: has joined #ruby
[14:24:36] macsteps: has joined #ruby
[14:25:06] randomVikingDude: has left #ruby: ()
[14:25:36] nadir: has joined #ruby
[14:27:10] spiette: has joined #ruby
[14:27:24] JeanCarloMachado: has joined #ruby
[14:28:04] xaxisx_: has joined #ruby
[14:29:44] naftilos76: has joined #ruby
[14:30:42] irregular: well, I made a lot of progress. `make` gets me to [ 87%] Built target dislocker
[14:30:42] irregular: Linking C executable dislocker-bek
[14:30:42] irregular: libdislocker.so.0.6.1: undefined reference to `mbedtls_sha256' but this probably shouldn't be in the ruby chat, thanks for the help jhass!
[14:33:15] rbennacer: has joined #ruby
[14:39:54] rikkipitt: has joined #ruby
[14:40:12] randomVikingDude: has joined #ruby
[14:43:31] dminuoso: has joined #ruby
[14:43:43] darkxploit: has joined #ruby
[14:43:55] jaguarmagenta: has joined #ruby
[14:44:25] futilegames: has joined #ruby
[14:45:32] urbanmonk: has joined #ruby
[14:47:50] voodoofish4301: has joined #ruby
[14:48:30] rippa: has joined #ruby
[14:48:36] dgynn: has joined #ruby
[14:49:05] wigust: has joined #ruby
[14:49:45] DaniG2k: has joined #ruby
[14:50:52] aryaching: has joined #ruby
[14:51:28] blackmesa: has joined #ruby
[14:51:59] nettoweb: has joined #ruby
[14:52:01] araujo: has joined #ruby
[14:52:02] xubunto: has left #ruby: ("Leaving")
[14:52:33] ekinmur: has joined #ruby
[14:54:46] bruce_lee: has joined #ruby
[14:54:59] User458764: has joined #ruby
[15:01:27] fumck: has joined #ruby
[15:02:05] marens: has joined #ruby
[15:02:47] joonty: has joined #ruby
[15:04:12] pawnbox: has joined #ruby
[15:04:20] alnewkir1: has joined #ruby
[15:04:52] Drakx_: has joined #ruby
[15:04:54] freeze: has joined #ruby
[15:05:27] LiquidIn1ect: has joined #ruby
[15:06:19] connor_g1odwolf: has joined #ruby
[15:06:43] Xeago_: has joined #ruby
[15:07:04] daemoen_: has joined #ruby
[15:07:33] mrodrigu1s: has joined #ruby
[15:08:05] Phanes-: has joined #ruby
[15:08:09] WebDawg: has joined #ruby
[15:08:21] xaxisx: has joined #ruby
[15:09:04] tekku: has joined #ruby
[15:09:28] Log1x_: has joined #ruby
[15:09:39] TheWhip: has joined #ruby
[15:09:58] bokayio: has joined #ruby
[15:10:12] icedp: has joined #ruby
[15:10:25] toretore: has joined #ruby
[15:10:32] joconcepts: has joined #ruby
[15:10:41] Phanes: has joined #ruby
[15:10:53] millerti: has joined #ruby
[15:11:15] joconcepts: has joined #ruby
[15:11:40] sunya7a_: has joined #ruby
[15:11:44] Adam_FrVancouver: has joined #ruby
[15:12:26] xaxisx: has joined #ruby
[15:13:07] nankyokusei: has joined #ruby
[15:14:25] xaxisx: has joined #ruby
[15:17:50] xaxisx_: has joined #ruby
[15:21:09] millerti: has joined #ruby
[15:22:44] millerti: has joined #ruby
[15:24:20] harfangk: has joined #ruby
[15:25:12] mkosaki: has joined #ruby
[15:25:54] alxgsv: has joined #ruby
[15:26:04] nankyokusei: has joined #ruby
[15:27:33] macsteps: has joined #ruby
[15:28:40] millerti: has joined #ruby
[15:29:43] xaxisx_: has joined #ruby
[15:30:40] SilverKey: has joined #ruby
[15:30:47] dionysus69: has joined #ruby
[15:32:32] bmaland: has joined #ruby
[15:32:38] rkazak: has joined #ruby
[15:34:13] arajakul: has joined #ruby
[15:34:51] houhoulis: has joined #ruby
[15:38:28] xlegoman: has joined #ruby
[15:40:39] nankyokusei: has joined #ruby
[15:40:58] kareeoleez: has joined #ruby
[15:44:34] macsteps: has joined #ruby
[15:44:39] spudowiar: has joined #ruby
[15:47:49] karapetyan: has joined #ruby
[15:48:48] User458764: has joined #ruby
[15:48:50] wigust: has joined #ruby
[15:49:36] mokha: has joined #ruby
[15:50:31] blaxter: has joined #ruby
[15:51:09] ddffg: has joined #ruby
[15:51:20] mokha: has joined #ruby
[15:51:39] nankyokusei: has joined #ruby
[15:52:34] jaruga___: has joined #ruby
[15:53:09] jaruga___: has joined #ruby
[15:53:19] pawnbox: has joined #ruby
[15:54:19] terminalrecluse: has joined #ruby
[16:02:04] GodFather_: has joined #ruby
[16:04:53] roshanavand: has joined #ruby
[16:04:54] dennisvennink: has joined #ruby
[16:06:32] nettoweb: has joined #ruby
[16:07:38] blaxter: has joined #ruby
[16:09:44] giz|work: has joined #ruby
[16:10:54] mark_66: has left #ruby: ("PART #RubyOnRails :PART #elixir-lang :PART #crystal-lang :PING 1467648654")
[16:12:36] symm-: has joined #ruby
[16:13:21] dionysus69: has joined #ruby
[16:17:30] tristanp: has joined #ruby
[16:20:16] burgestrand: has joined #ruby
[16:21:27] kies: has joined #ruby
[16:21:30] Vingador: has joined #ruby
[16:26:57] TomyLobo: has joined #ruby
[16:27:58] bmurt: has joined #ruby
[16:28:53] nankyokusei: has joined #ruby
[16:29:24] tomphp: has joined #ruby
[16:30:36] blaxter: has joined #ruby
[16:32:32] yqt: has joined #ruby
[16:33:09] Hyuk: has joined #ruby
[16:35:27] SCHAAP137: has joined #ruby
[16:35:32] houhoulis: has joined #ruby
[16:39:06] ytti: 19:38 < yukihiro_matz> [c5] I didn't get 10/10. sigh. link: Ruby or Rails?:
[16:39:07] ytti: 19:38 < yukihiro_matz> https://t.co/6utSH4iDGN <railshurts.com/quiz/>
[16:39:35] darkxploit: has joined #ruby
[16:40:42] rubiot658: has joined #ruby
[16:40:59] mokha: has joined #ruby
[16:41:00] blaxter: has joined #ruby
[16:41:01] chris2: never seriously using rails helped :P
[16:41:54] edwardly: has joined #ruby
[16:41:54] edwardly: has joined #ruby
[16:42:58] ramfjord: has joined #ruby
[16:43:28] mokha: has joined #ruby
[16:43:32] rubiot658: can someone explane the advantages of ruby 2.2 over 2.1 to me?
[16:44:36] jaguarmagenta: has joined #ruby
[16:44:55] McSoFake_: has joined #ruby
[16:48:32] deecross: has joined #ruby
[16:49:05] Sashimi: has joined #ruby
[16:49:21] dc4: has joined #ruby
[16:49:58] UnKnOwN|: has joined #ruby
[16:50:30] bmurt: has joined #ruby
[16:51:28] dminuoso: has joined #ruby
[16:51:52] SCHAAP137: has joined #ruby
[16:52:06] pawnbox: has joined #ruby
[16:52:26] giz|work: has joined #ruby
[16:52:54] jhass: not within 90 seconds, no
[16:56:32] jhass: weird how it sometimes links to apidock and sometimes to api.rubyonrails.org
[16:57:31] tristanp_: has joined #ruby
[16:58:04] UnKnOwN|: has joined #ruby
[16:58:05] jhass: but yeah, 10/10
[16:59:14] jhack: has joined #ruby
[17:00:25] wigust_: has joined #ruby
[17:01:19] banisterfiend: has joined #ruby
[17:03:18] wigust: has joined #ruby
[17:03:39] enterprisey: has joined #ruby
[17:05:28] ule: has joined #ruby
[17:06:22] tristanp: has joined #ruby
[17:07:05] shinnya: has joined #ruby
[17:09:18] dc4: has joined #ruby
[17:10:35] tristanp_: has joined #ruby
[17:11:19] conta: has joined #ruby
[17:11:28] deecross: has joined #ruby
[17:12:25] wigust: has joined #ruby
[17:13:18] wigust: has joined #ruby
[17:14:21] arajakul1: has joined #ruby
[17:14:22] prestorium: hi. I'm trying to read a pem file: OpenSSL::X509::Certificate.new File.binread '/etc/puppetlabs/puppet/ca/requests/client-cert.pem', but I'm getting OpenSSL::X509::CertificateError: nested asn1 error
[17:14:50] prestorium: I googled for the exception without success. How can I debug it? I can open the certificate using openssl cli
[17:15:13] jhass: prestorium: what's the cli command that works?
[17:15:30] prestorium: jhack, openssl req -noout -text -in <cert>
[17:15:43] jhass: well that's for reading CSRs
[17:16:05] jhass: openssl x509 -noout -text -in <cert> would be the equivalent to your ruby code
[17:16:12] prestorium: hm... So, I'm trying to read something different? :( sorry, I'm pretty noob about that
[17:16:42] jhass: /requests/ in the path hints it's intended to be a CSR too
[17:16:48] prestorium: jhass, and what's the ruby version of the command?
[17:17:03] prestorium: jhass, OpenSSL::X509::Request ?
[17:17:16] C0deMaver1ck: has left #ruby: ("Leaving")
[17:17:23] C0deMaver1ck: has joined #ruby
[17:17:28] firstdayonthejob: has joined #ruby
[17:17:33] prestorium: jhass, thanks
[17:19:15] karapetyan: has joined #ruby
[17:21:35] fclausen: has joined #ruby
[17:23:38] wigust: has joined #ruby
[17:26:59] wigust_: has joined #ruby
[17:27:17] aryaching: has joined #ruby
[17:31:22] BTRE: has joined #ruby
[17:32:17] joonty: has joined #ruby
[17:33:30] sdothum: has joined #ruby
[17:36:02] wigust: has joined #ruby
[17:36:12] hipertracker: has joined #ruby
[17:36:21] miskatonic: has joined #ruby
[17:36:52] ibma: has joined #ruby
[17:37:02] LoneHerm_: has joined #ruby
[17:38:54] ule: has joined #ruby
[17:39:04] JoshGlzBrk: has joined #ruby
[17:39:39] MrBusiness2: has joined #ruby
[17:40:01] blackmesa: has joined #ruby
[17:40:37] roshanavand: has joined #ruby
[17:41:55] symm-: has joined #ruby
[17:43:00] darkxploit: has joined #ruby
[17:45:45] craigp: has joined #ruby
[17:46:44] ghr: has joined #ruby
[17:47:35] pawnbox: has joined #ruby
[17:47:57] codecop: has joined #ruby
[17:48:00] conta: has joined #ruby
[17:48:43] wigust: has joined #ruby
[17:51:41] wigust: has joined #ruby
[17:52:58] deecross: has joined #ruby
[17:54:39] memorasus: has joined #ruby
[17:58:18] User458764: has joined #ruby
[17:59:15] ghr: has joined #ruby
[17:59:41] Ishido: has joined #ruby
[18:00:02] l4v2: has joined #ruby
[18:00:23] BTRE: has joined #ruby
[18:02:09] wigust: has joined #ruby
[18:02:50] houhoulis: has joined #ruby
[18:03:33] wigust: has joined #ruby
[18:03:47] ascarter: has joined #ruby
[18:06:08] giz|work|2: has joined #ruby
[18:06:21] wigust: has joined #ruby
[18:08:40] greenhat|: has joined #ruby
[18:09:07] wigust: has joined #ruby
[18:09:56] greenhat|: has joined #ruby
[18:11:08] jenrzzz: has joined #ruby
[18:12:38] wigust: has joined #ruby
[18:12:53] dennisvennink: has joined #ruby
[18:14:15] ghr: has joined #ruby
[18:15:24] ascarter: has joined #ruby
[18:16:34] dennisvennink: has joined #ruby
[18:16:41] kaleido: has joined #ruby
[18:22:16] ferr: has joined #ruby
[18:22:27] roshanavand: has joined #ruby
[18:23:11] wigust: has joined #ruby
[18:23:46] ghr: has joined #ruby
[18:24:35] fraktalize: has joined #ruby
[18:25:29] macsteps: has joined #ruby
[18:25:51] wigust: has joined #ruby
[18:26:04] fraktalize: Hello! I have some issues with installing a ruby gem on Debian. In the installation instructions I am told to run rails g spree:install, however when I run rails g I only get the Rails help message... Any ideas on what might be going on?
[18:28:23] Papierkorb: fraktalize: Try asking in #spree (or their non-IRC chat channel if they have one) or #RubyOnRails
[18:29:06] fraktalize: Thank you, Papierkorb
[18:29:55] pontiki: has joined #ruby
[18:30:42] ascarter: has joined #ruby
[18:31:17] mtkd: has joined #ruby
[18:31:58] zeroDi: has joined #ruby
[18:32:23] wigust: has joined #ruby
[18:33:46] kareeoleez: has joined #ruby
[18:34:18] pLaToOn: has joined #ruby
[18:35:11] hosttor: has joined #ruby
[18:35:28] benlieb: has joined #ruby
[18:36:02] wigust: has joined #ruby
[18:36:17] ghr: has joined #ruby
[18:39:00] dionysus69: has joined #ruby
[18:41:27] Yzguy: has joined #ruby
[18:42:54] kareeoleez: has joined #ruby
[18:45:21] jaguarmagenta: has joined #ruby
[18:45:47] ghr: has joined #ruby
[18:47:48] tomphp: has joined #ruby
[18:48:20] RushPL: has joined #ruby
[18:49:02] defaultnick: has joined #ruby
[18:53:06] ascarter: has joined #ruby
[18:53:59] defaultnick: has joined #ruby
[18:55:18] ghr: has joined #ruby
[18:58:21] Axsuul: has joined #ruby
[18:58:56] macsteps: has joined #ruby
[18:59:22] nettoweb: has joined #ruby
[19:00:52] kareeoleez: has joined #ruby
[19:01:53] wigust: has joined #ruby
[19:02:45] vuoto: has joined #ruby
[19:04:16] LoneHerm_: has joined #ruby
[19:04:48] ghr: has joined #ruby
[19:07:04] davedev24: has joined #ruby
[19:10:20] Jardayn: has joined #ruby
[19:10:32] kareeoleez: has joined #ruby
[19:11:44] lxsameer: has joined #ruby
[19:13:26] floatingpoint: has joined #ruby
[19:14:29] macsteps: has joined #ruby
[19:15:15] Xeago: has joined #ruby
[19:15:19] ghr: has joined #ruby
[19:15:46] yqt: has joined #ruby
[19:16:54] Rush: has joined #ruby
[19:17:59] symm-: has joined #ruby
[19:19:00] kareeoleez: has joined #ruby
[19:20:09] elifoster: has joined #ruby
[19:20:53] pawnbox: has joined #ruby
[19:21:26] Illya_: has joined #ruby
[19:22:00] skade: has joined #ruby
[19:22:49] fclausen: has joined #ruby
[19:24:17] ekinmur: has joined #ruby
[19:25:19] ghr: has joined #ruby
[19:28:39] shinnya: has joined #ruby
[19:28:54] RenatoSilva: has joined #ruby
[19:31:27] jaruga___: has joined #ruby
[19:31:49] CybrGhost: has joined #ruby
[19:32:17] dikaio: has joined #ruby
[19:32:32] banisterfiend: has joined #ruby
[19:33:52] Yzguy: has joined #ruby
[19:33:58] ramfjord: has joined #ruby
[19:35:20] ghr: has joined #ruby
[19:39:00] kareeoleez: has joined #ruby
[19:39:36] bmurt: has joined #ruby
[19:40:09] ruby-lang343: has joined #ruby
[19:41:42] kareeoleez: has joined #ruby
[19:44:51] ghr: has joined #ruby
[19:52:24] yfeldblum: has joined #ruby
[19:52:34] Madplatypus: has joined #ruby
[19:55:20] nettoweb: has joined #ruby
[19:55:21] ghr: has joined #ruby
[19:55:48] rbennacer: has joined #ruby
[19:57:46] nettoweb: has joined #ruby
[20:03:18] enterprisey: has joined #ruby
[20:03:25] alfiemax: has joined #ruby
[20:06:51] Coldblackice: has joined #ruby
[20:06:52] drptbl: has joined #ruby
[20:07:22] ghr: has joined #ruby
[20:08:28] macsteps: has joined #ruby
[20:08:58] RenatoSilva: has left #ruby: ("http://renatosilva.net - Pidgin++ | Pidgin Social | WinUtils | ColorMake | EasyOptions | Pactoys")
[20:14:36] ekinmur: has joined #ruby
[20:15:01] nettoweb: has joined #ruby
[20:18:53] ghr: has joined #ruby
[20:19:49] last_staff: has joined #ruby
[20:19:53] chopin: has joined #ruby
[20:22:36] Dimik: has joined #ruby
[20:23:15] blackmesa: has joined #ruby
[20:30:23] ghr: has joined #ruby
[20:32:36] sleepee: has joined #ruby
[20:33:04] solars: has joined #ruby
[20:33:05] benlieb: has joined #ruby
[20:34:11] ramfjord: has joined #ruby
[20:34:43] vondruch: has joined #ruby
[20:37:14] ldnunes_: has joined #ruby
[20:38:18] karapetyan: has joined #ruby
[20:38:44] demophoon: has joined #ruby
[20:39:54] ghr: has joined #ruby
[20:40:01] ekinmur: has joined #ruby
[20:41:30] pawnbox: has joined #ruby
[20:43:36] nando293921: has joined #ruby
[20:43:59] wigust: has joined #ruby
[20:45:17] iamvery: has joined #ruby
[20:49:04] wigust: has joined #ruby
[20:50:30] nettoweb: has joined #ruby
[20:51:16] elifoster: has joined #ruby
[20:51:24] ghr: has joined #ruby
[20:51:48] roamingdog: has joined #ruby
[20:54:20] sucks: has joined #ruby
[20:54:40] banisterfiend: has joined #ruby
[20:55:16] davedev24: has joined #ruby
[21:00:40] voodoofish430: has joined #ruby
[21:01:02] ghr: has joined #ruby
[21:03:04] nankyokusei: has joined #ruby
[21:05:11] skade: has joined #ruby
[21:07:32] brianpWins: has joined #ruby
[21:10:26] ghr: has joined #ruby
[21:11:47] ur5us: has joined #ruby
[21:13:53] sepp2k: has joined #ruby
[21:15:33] jenrzzz: has joined #ruby
[21:15:33] jenrzzz: has joined #ruby
[21:15:38] GodFather_: has joined #ruby
[21:19:56] ghr: has joined #ruby
[21:21:36] floatingpoint: has joined #ruby
[21:23:36] fclausen: has joined #ruby
[21:24:45] perturbation: has joined #ruby
[21:25:21] blackmesa: has joined #ruby
[21:29:27] ghr: has joined #ruby
[21:29:45] macsteps: has joined #ruby
[21:32:13] blackmesa: has joined #ruby
[21:32:44] firstdayonthejob: has joined #ruby
[21:35:47] Bugboy1028: has joined #ruby
[21:37:49] kobain: has joined #ruby
[21:39:27] voodoofish4301: has joined #ruby
[21:40:12] tAn: has joined #ruby
[21:40:39] Bugboy1028: has joined #ruby
[21:41:20] phredus: Evening, I installed chruby and ruby-install, is it safe to delete the folders that were extracted from the tar.gz files? are they just for the installation or do they need to be kept for the apps to run correctly?
[21:42:02] KnownSyntax_: has joined #ruby
[21:43:21] SCHAAP137: has joined #ruby
[21:47:28] ghr: has joined #ruby
[21:50:31] bmurt: has joined #ruby
[21:52:02] rkazak: has joined #ruby
[21:52:48] calmchaos: has joined #ruby
[21:53:35] shevy: I think it has installed into some other file path like your home dir
[21:55:16] Azure: has joined #ruby
[21:55:26] LoneHerm_: has joined #ruby
[21:55:42] tAn: has joined #ruby
[21:56:58] ghr: has joined #ruby
[21:58:14] yfeldblum: has joined #ruby
[21:59:44] JeremyM_: has joined #ruby
[22:00:19] Guest43: has joined #ruby
[22:00:20] Guest43: has joined #ruby
[22:01:00] jaruga___: has joined #ruby
[22:02:53] spudowiar: has joined #ruby
[22:02:58] erlend: has joined #ruby
[22:04:33] floatingpoint: has joined #ruby
[22:05:34] Yzguy: has joined #ruby
[22:06:29] ghr: has joined #ruby
[22:08:09] hahuang61: has joined #ruby
[22:08:38] terminalrecluse: has joined #ruby
[22:08:47] phredus: shevy: thanks for responding, yes, it installs into /usr/local/share/ and the extracted files are on my ~/ I just want to make sure the directory/folder/files in home are not going to be needed in the future bere I delete them, I gues I could rename or move and test. Thank you
[22:10:01] KnownSyntax_: has joined #ruby
[22:12:17] firstdayonthejob: has joined #ruby
[22:15:07] Coldblackice_: has joined #ruby
[22:15:43] cisco: has joined #ruby
[22:16:27] davedev24: has joined #ruby
[22:20:30] ghr: has joined #ruby
[22:21:13] chipotle_: has joined #ruby
[22:22:09] memorasus1: has joined #ruby
[22:27:55] chipotle: has joined #ruby
[22:29:13] Coldblackice: has joined #ruby
[22:29:41] phredus: I dont understand what I need to do to fix rails server fails https://gist.github.com/phredus/fde744925b293200af1b72ed253d7e7e
[22:30:12] dikaio: has joined #ruby
[22:30:38] phredus: is this the right place for this question? should I post it at #RubyonRails?
[22:30:47] jhass: phredus: install nodejs or add gem "therubyracer" to your Gemfile
[22:31:11] jhass: it's tolerable but it's certainly #RubyOnRails territory already ;)
[22:31:44] loocash1: has joined #ruby
[22:32:04] phredus: pretty green here, other than using my os package manager is there something else to install nodejs? like gem install nodejs?
[22:32:18] roamingdog: has joined #ruby
[22:32:30] ghr: has joined #ruby
[22:32:45] phredus: actully the question should be is nodejs a gem?
[22:34:03] zenlot: has joined #ruby
[22:34:12] phredus: jhass: I am using chruby and ruby install and trying to keep my os out of the equation as much as possible
[22:34:53] bmurt: has joined #ruby
[22:36:10] loocash: has joined #ruby
[22:36:15] ramfjord: has joined #ruby
[22:37:22] mistermocha: has joined #ruby
[22:38:42] dc4: has joined #ruby
[22:39:03] loocash: has joined #ruby
[22:40:04] loocash: has joined #ruby
[22:41:55] jhass: nodejs is not a gem
[22:42:04] loocash: has joined #ruby
[22:43:18] solocshaw: has joined #ruby
[22:44:31] ghr: has joined #ruby
[22:45:57] loocash: has joined #ruby
[22:45:59] fclausen: has joined #ruby
[22:46:40] jaguarmagenta: has joined #ruby
[22:48:30] giz|work: has joined #ruby
[22:49:16] floatingpoint: has joined #ruby
[22:50:24] firstdayonthejob: has joined #ruby
[22:50:52] solocshaw: has joined #ruby
[22:51:20] phredus: jhass: yes , "gem install nodejs" was to explain what I am looking for. Is there something in the ruby or ruby on rails realm for installing nodejs?
[22:51:42] jhass: no that I'm aware of
[22:51:54] jhass: please pay attention to my initial answer, there's an "or"
[22:53:57] phredus: jhass: Yes I did see it, I will go with my package manage for nodeks, thank you
[22:54:30] phredus: jhass: on the or the rubyracer is a gem correct?
[22:55:34] phredus: if I install nodejs I wont have to deal with this issue in the future, if I use the rubyracer, will I have to install it everytime this issue comes up?
[22:55:54] pickandmix: has joined #ruby
[22:55:57] jhass: you have to add it to each apps Gemfile
[22:56:21] jhass: whether you actually have to rebuilt it each time, depends a bit on your setup
[22:56:31] Sammichmaker: has joined #ruby
[22:59:50] phredus: jhass: yeah, it sound like nodejs is a more of a permanent fix, and I hear nodejs mentioned a lot so it seems to me it is used often in the ruby and rails world, I dont think I am ready to tackle the set up neede to work with the "depens on your setup" yet, I think I will just use nodejs for now and if needed I can switch it later when I have a better understanding.
[23:00:35] phredus: jhass: thank you for your help
[23:02:02] ghr: has joined #ruby
[23:04:11] nankyokusei: has joined #ruby
[23:07:25] arescorpio: has joined #ruby
[23:12:34] hahuang65: has joined #ruby
[23:15:27] johnny56_: has joined #ruby
[23:16:33] minimalism: has joined #ruby
[23:17:32] ghr: has joined #ruby
[23:19:19] Es0teric: has joined #ruby
[23:20:49] itguru: has joined #ruby
[23:21:35] al2o3-cr: has joined #ruby
[23:22:09] solars: has joined #ruby
[23:22:44] lupine: a lot of ruby people jumped ship to nodejs when they found ruby going too slow, or when it stopped being cool
[23:23:09] lupine: i've never been a JS fan myself :/
[23:24:17] C0deMaver1ck: Ruby is the new Perl
[23:27:03] ghr: has joined #ruby
[23:27:20] ytti: i don't think so
[23:27:26] ytti: that would be grand
[23:27:31] ytti: but it looks like python is the new perl
[23:27:40] C0deMaver1ck: I would agree with that
[23:27:54] ytti: i dislike that, because i'd rather program in ruby
[23:28:13] ytti: but when ever companies provide some API library to interface with their stuff
[23:28:21] ytti: python tends to be first one out, and often only one
[23:28:44] shevy: C0deMaver1ck it is better than perl!
[23:28:59] C0deMaver1ck: I also agree with that
[23:29:11] shevy: python is the big dog on top now
[23:29:33] ytti: oh yes, python is way better than perl
[23:29:45] ytti: heck without ruby, i probably owuldn't even be smart enough to complain about this situation
[23:29:57] C0deMaver1ck: yeah I started doing more compsci work for fun and had to move to python for personal projects
[23:30:05] C0deMaver1ck: not a lot of scientific libs in Ruby
[23:30:15] ytti: same in networking world
[23:30:17] ytti: all python
[23:30:31] ytti: and lot of die hard python fans who dislike ruby as toy language
[23:30:47] ytti: who almost invariably write terrible imperative python
[23:30:48] skweek: has joined #ruby
[23:31:11] C0deMaver1ck: the reason I learned Ruby instead of Python a few years ago was because 2.x vs 3.x, pip vs easy_install vs pypi
[23:31:16] C0deMaver1ck: Ruby had 1.8.7 and gems
[23:31:19] C0deMaver1ck: so much simpler
[23:31:22] ytti: ruby made me lot better python programmer
[23:31:41] shevy: python is the new BORG
[23:32:26] giz|work: has joined #ruby
[23:32:44] roamingdog: has joined #ruby
[23:33:28] brianpWins_: has joined #ruby
[23:33:39] ytti: generally i feel like ruby has way poorer brand/image than python
[23:33:51] ytti: python brad is far more professional
[23:34:11] ytti: i think part of that branding problem is rails, but without rails ruby might not even exist anymore
[23:34:40] ytti: but anyone who i've talked with, who knows both languages, considers ruby the better designed langauge
[23:35:18] coffeecupp: has joined #ruby
[23:35:24] C0deMaver1ck: strong meta programming, everything is an overloadable operator is awesome
[23:35:28] C0deMaver1ck: for instance this https://github.com/C0deMaver1ck/pipe/blob/master/spec/pipe_spec.rb#L19
[23:35:51] C0deMaver1ck: have fun implementing something like that in Python without diving into the interpreter
[23:35:52] ytti: python has tons of features whch seem hacky and taped-on
[23:36:03] ytti: and has lot less pure OO model
[23:36:33] GodFather_: has joined #ruby
[23:36:44] C0deMaver1ck: it'll all be over in 20 years anyway when every language can target Web Assembly /s
[23:36:49] ytti: not to mention how poor the standard library is, writing rust seems sometimes faster
[23:37:05] ytti: because of things it has in standard for vectors, slices and iterators
[23:37:21] sucks: has joined #ruby
[23:37:23] ytti: of course shouldn't hold standard library against the language itself
[23:37:29] ytti: but it has direct affect on my productivity
[23:39:02] mistermocha: has joined #ruby
[23:43:31] zacts: has joined #ruby
[23:45:14] Sashimi: has joined #ruby
[23:45:41] zacts: hello rubyists
[23:46:54] baweaver: ytti: Most of our ops code is Ruby, don't forget Chef is a thing.
[23:47:13] flashpoint9: has joined #ruby
[23:48:46] ytti: i don't like chef/puppet/ansible/salt in fundamental level
[23:48:53] koooge: has joined #ruby
[23:49:27] baweaver: then what do you like?
[23:49:33] ytti: i like fundamentally concept of static machines, no need to write complicated pieces of software to enforce soft compliency guarantees
[23:49:58] baweaver: how many servers do you have to deal with?
[23:50:04] ytti: in practice, always new machine, never change running system
[23:50:28] ytti: i don't work with server professionally, or even write code professionally
[23:50:54] baweaver: because with AWS / other providers it tends to be new systems all around and Chef is used heavily for that
[23:50:56] ytti: static machine is hard guarantee, with much less work
[23:50:58] baweaver: as well as the others.
[23:51:08] baweaver: you still have to write a provisioner
[23:51:17] ytti: ok, fair enough
[23:51:32] ytti: i should have elaborated, i don't have problem with chef/puppet/ansible/salt for that use-case
[23:51:41] ytti: only when you start mucking about with running system
[23:51:43] baweaver: then it's a matter of managing various commonalities, dependencies, and other bits.
[23:51:57] baweaver: that I would agree can be dangerous.
[23:52:24] baweaver: but at the same time, the power to do so is not inherently bad.
[23:53:00] User458764: has joined #ruby
[23:53:21] baweaver: especially when you need to test the dang things live and something is slightly off.
[23:53:30] baweaver: or there's an emergency fix needed
[23:53:44] baweaver: or various other one offs that make me admittedly cringe
[23:54:05] baweaver: then again that's hopefully what ChefSpec and ServerSpec are used for
[23:54:09] jenrzzz: has joined #ruby
[23:54:09] jenrzzz: has joined #ruby
[23:56:05] JeanCarloMachado: has joined #ruby
[23:56:08] baweaver: at scale though this is a notoriously hard problem, and something I would never want to write myself if possible.
[23:57:42] C0deMaver1ck: have fun rebuilding your entire system from the ground up with your immutable running systems when things like heartbleed are made public
[23:58:18] C0deMaver1ck: for me Chef/Ansible/Salt make that much more bearable
[23:58:46] UnKnOwN|: has joined #ruby
[23:58:57] baweaver: That's a non-issue when used as a provisioner.
[23:59:09] C0deMaver1ck: it was mostly directed at ytti
[23:59:10] baweaver: systems should be immutable whenever possible.
[23:59:22] KnownSyntax_: has joined #ruby