« Back to channel list

#ruby - 06 September 2018

« Back 1 day Forward 1 day »
[00:01:35] akem: has joined #ruby
[00:04:22] Emmanuel_Chanel: has joined #ruby
[00:07:01] johnny56: has joined #ruby
[00:11:59] cagomez: has joined #ruby
[00:13:41] tdy: has joined #ruby
[00:16:49] apeiros_: has joined #ruby
[00:29:25] nicesignal: has joined #ruby
[00:39:32] jenrzzz: has joined #ruby
[00:41:20] jenrzzz: man, I feel like I really accomplished something when I get a ruby segfault
[00:44:03] jenrzzz: oooh yay I managed to get a SystemStackError instead
[00:44:18] jenrzzz: seems like this bug except with my factories: https://bugs.ruby-lang.org/issues/9505
[00:50:25] jkprg: has joined #ruby
[00:51:36] alicef: has joined #ruby
[00:55:04] adam_: has joined #ruby
[01:00:32] Guest58115: has joined #ruby
[01:01:49] mroutis: has joined #ruby
[01:05:41] jottr: has joined #ruby
[01:07:36] psmolen: has joined #ruby
[01:08:12] xt233: has joined #ruby
[01:10:10] jtperreault: has joined #ruby
[01:10:18] Nightmare: has joined #ruby
[01:11:36] apeiros_: has joined #ruby
[01:12:39] xuanrui: has joined #ruby
[01:19:27] mahlon: has joined #ruby
[01:22:18] c0ncealed2: has joined #ruby
[01:28:19] argoneus: has joined #ruby
[01:32:12] cagomez: has joined #ruby
[01:33:48] jtperreault: has joined #ruby
[01:45:14] esrse: has joined #ruby
[02:00:05] mroutis: has joined #ruby
[02:01:38] jkprg: has joined #ruby
[02:06:25] apeiros_: has joined #ruby
[02:11:10] knight33: has joined #ruby
[02:17:57] nikivi: has joined #ruby
[02:34:50] duderonomy: has joined #ruby
[02:47:47] dbz: has joined #ruby
[02:50:52] dbz: has joined #ruby
[02:51:11] orbyt_: has joined #ruby
[02:53:31] dbz: has joined #ruby
[02:55:34] brandoncc: has joined #ruby
[03:01:13] apeiros_: has joined #ruby
[03:01:17] Guest58115: has joined #ruby
[03:06:28] jottr: has joined #ruby
[03:10:40] braincrash: has joined #ruby
[03:13:46] SuperTux88: has joined #ruby
[03:16:56] jkprg: has joined #ruby
[03:20:01] duderonomy: has joined #ruby
[03:32:42] dbz: has joined #ruby
[03:38:02] dellavg_: has joined #ruby
[03:39:13] gtramontina: has joined #ruby
[03:42:30] nikivi: has joined #ruby
[03:55:15] BTRE: has joined #ruby
[03:57:56] bauruine: has joined #ruby
[04:11:58] DTZUZO: has joined #ruby
[04:27:28] dbz: has joined #ruby
[04:40:22] pabs: has joined #ruby
[04:42:54] MoritaShinobu: has joined #ruby
[04:49:40] SeepingN: has joined #ruby
[05:00:27] reber: has joined #ruby
[05:03:52] v01d4lph4: has joined #ruby
[05:07:26] jottr: has joined #ruby
[05:10:50] sauvin: has joined #ruby
[05:15:28] Azure|dc: has joined #ruby
[05:24:28] apeiros_: has joined #ruby
[05:31:30] Fusl: has joined #ruby
[05:34:11] Fusl: anyone on who can help me with some ruby weirdness? i tried to google and search through manual pages, documentation but couldnt find whats going on here: i have a variable with a string "nameserver" thats parsed from a json manifest in chef for a recipe i'm writing. part of it is this: `Chef::Log.debug("PRE1: #{nameserver.is_a?(String)} #{nameserver.class}")`. the nameserver variable is indeed a string in
[05:34:12] Fusl: json, but whenever i execute this recipe, i get this as result: `[2018-09-06T05:12:53+00:00] DEBUG: PRE1: false String`. how can nameserver be both of class string but not be a string at the same time?
[05:38:00] graphene: has joined #ruby
[05:43:42] jp: has joined #ruby
[06:09:30] roshanavand: has joined #ruby
[06:11:55] aupadhye: has joined #ruby
[06:14:11] havenwood: Fusl: I can show you a contrived example for how to make that oddity happen, but I don't get why it's happening in your case.
[06:15:24] havenwood: >> class Foo; def class; String end end; foo = Foo.new; [foo.is_a?(String), foo.class]
[06:15:26] ruby[bot]: havenwood: # => [false, String] (https://eval.in/1054607)
[06:18:55] havenwood: Fusl: Can you show the code where `nameserver` is defined? What do you get for?: nameserver.public_methods(false)
[06:20:46] havenwood: Fusl: I'm assuming it's also false, but double check?: nameserver.instance_of?(String)
[06:21:04] Fusl: yeah, instance_of was also false, i tried that already
[06:21:23] Fusl: am actually trying to figure out why it doesnt work at all anymore even though i rolled all changes back :$
[06:28:14] Fusl: i figured it out
[06:29:00] Fusl: higher up in the code i used to do this:
[06:29:01] Fusl: class String
[06:29:01] Fusl: def is_int?
[06:29:02] Fusl: !!(self =~ /\A[-+]?[0-9]+\z/)
[06:29:22] Mike11: has joined #ruby
[06:29:33] Fusl: that apparently makes all strings no longer an instance of String
[06:30:06] Fusl: replacing that prototype function with a normal function fixed it ¯\_(ツ)_/¯
[06:31:09] morfin: has joined #ruby
[06:31:32] morfin: holy crap - bundle install gave me HTML output lol
[06:47:38] morfin: anybody can help me with builduing mysql2? I need somehow to specify libiconv(-liconv)
[06:51:11] dionysus69: has joined #ruby
[06:54:37] RougeR: has joined #ruby
[06:54:44] ellcs: has joined #ruby
[06:56:01] morfin: i need to pass ldflags to gem somehow
[06:56:36] aufi: has joined #ruby
[06:59:41] apeiros_: has joined #ruby
[07:03:41] graphene: has joined #ruby
[07:07:35] morfin: and again gem install mysql2 -v '0.5.2' -- --with-ldflags="-L/usr/local/lib"
[07:07:53] aufi_: has joined #ruby
[07:08:10] jottr: has joined #ruby
[07:12:31] aufi: has joined #ruby
[07:15:54] lomex: has joined #ruby
[07:22:26] anikras: has joined #ruby
[07:24:28] anikras: Hi, I would like to comment this code: https://pastebin.com/bmqWVpM4
[07:24:28] ruby[bot]: anikras: 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
[07:26:54] apeiros_: anikras: ok, so you stated your intent. do you also have a question?
[07:27:05] anikras: I tried to use to comment <%=begin and =end%>
[07:27:06] anikras: https://gist.github.com/jafamo/05a7eaf3d2bd80f798b8226cde8d264d
[07:27:36] anikras: I tried to use to comments # but it still not working
[07:28:07] apeiros: begin/end won't be usable as they are required to be at the very beginning of a code line and templating languages usually don't cover such requirements.
[07:28:34] apeiros: <%# comment %> should work
[07:34:30] DarthGandalf: has joined #ruby
[07:35:12] anikras: apeiros, thanks !!!
[07:39:19] akem: has joined #ruby
[07:40:55] sysvalve: has joined #ruby
[07:41:32] schneider: has joined #ruby
[07:47:58] dbz: has joined #ruby
[07:48:16] yohji: has joined #ruby
[07:58:33] gtramont_: has joined #ruby
[08:00:01] apeiros__: has joined #ruby
[08:00:04] mikecmpbll: has joined #ruby
[08:06:34] jottr: has joined #ruby
[08:10:34] dbz: has joined #ruby
[08:10:51] Guest58115: has joined #ruby
[08:14:42] ams__: has joined #ruby
[08:14:47] renzhi: has joined #ruby
[08:22:55] bak1an: has joined #ruby
[08:30:29] schneider: has joined #ruby
[08:30:52] apeiros_: has joined #ruby
[08:45:53] marz_d`ghostman: has joined #ruby
[08:54:08] Beams: has joined #ruby
[08:54:21] Nicmavr: has joined #ruby
[09:07:57] mapass_sk: has joined #ruby
[09:13:09] tristanp: has joined #ruby
[09:13:36] mapass_sk: has left #ruby: ()
[09:14:24] marz_d`ghostman: I'm using Builder::XmlMarkup.new(:indent => 8) to generate report. Is there a better alternative for it though?
[09:16:45] ruby[bot]: "Best" and "better" are subjective. Try to use a different term.
[09:17:41] apeiros_: !fact ed better "Best" and "better" are subjective. Try to use a different term, or try to qualify what would make one thing better than the other.
[09:17:41] ruby[bot]: apeiros_: I stand corrected that better is "Best" and "better" are subjective. Try to use a different term, or try to qualify what would make one thing better than the other.
[09:18:56] marz_d`ghostman: apeiros: something that could format an email that would be consistent
[09:19:20] marz_d`ghostman: apeiros: I'm sending it to a ticketing system, and it appears the format changes though
[09:19:21] apeiros: I'm honestly quite lost on the connection between an xml builder and email formatting…
[09:20:27] marz_d`ghostman: apeiros: I'm using it to format an email though: https://gist.github.com/marzdgzmn/fa7501a880686b282eeddb194123f5be
[09:22:30] apeiros: I usually use slim (https://github.com/slim-template/slim) to generate HTML
[09:23:31] catbusters: has joined #ruby
[09:33:22] marz_d`ghostman: hmmm, i don't how to start using this with just ruby and not rails, hahaha. anyway thanks dude I'll give this a shot, seems pretty cool
[09:37:04] Bish: woah.. any chance somebody played with selnium webdrivers & proxies?
[09:38:32] gregf_: has joined #ruby
[09:42:07] gtramontina: has joined #ruby
[09:44:44] gtramont_: has joined #ruby
[09:59:20] anubhav996: has joined #ruby
[10:05:47] bak1an: has joined #ruby
[10:08:38] bak1an: has joined #ruby
[10:28:12] graphene: has joined #ruby
[10:58:47] Bish: why is selenium such a pain in the ass
[10:59:47] nfk: has joined #ruby
[10:59:49] discopatrick: has joined #ruby
[11:02:05] gtramontina: has joined #ruby
[11:07:10] Puffball: has joined #ruby
[11:07:57] gtramontina: has joined #ruby
[11:11:53] aupadhye: has joined #ruby
[11:14:05] lomex: has joined #ruby
[11:14:09] armyriad: has joined #ruby
[11:14:55] tristanp: has joined #ruby
[11:15:46] wojnar: has joined #ruby
[11:15:55] Ropeney: has joined #ruby
[11:17:53] kapil___: has joined #ruby
[11:23:28] clorisu: has joined #ruby
[11:30:16] AJA4350: has joined #ruby
[11:31:51] gtramontina: has joined #ruby
[11:42:36] gtramontina: has joined #ruby
[11:54:21] lomex: has joined #ruby
[12:09:25] lomex: has joined #ruby
[12:15:34] tristanp: has joined #ruby
[12:19:28] mello: has joined #ruby
[12:30:57] bmurt: has joined #ruby
[12:32:53] lomex: has joined #ruby
[12:35:45] Sylario: has joined #ruby
[12:36:31] lomex: has joined #ruby
[12:42:30] aupadhye: has joined #ruby
[12:46:32] lomex: has joined #ruby
[12:50:14] apeiros_: has joined #ruby
[12:53:29] aufi: has joined #ruby
[12:57:28] thy0: has joined #ruby
[13:03:07] thy0: has joined #ruby
[13:04:01] aupadhye: has joined #ruby
[13:16:48] Rapture: has joined #ruby
[13:19:00] bak1an_: has joined #ruby
[13:24:08] knight33: has joined #ruby
[13:27:31] marz_d`ghostman: So with slim, what's the difference between the layout and the content?
[13:27:59] Fusl: has joined #ruby
[13:35:37] marz_d`ghostman: So how do I pass a local variable to a slim template? https://gist.github.com/marzdgzmn/3b2668db8c05f1064e45cb17022c8984
[13:43:03] andikr: has joined #ruby
[13:43:18] aupadhye: has joined #ruby
[13:50:15] mikecmpbll: has joined #ruby
[13:53:42] AJA4350: has joined #ruby
[13:56:36] jackofll45668: has joined #ruby
[13:59:55] Inline: has joined #ruby
[14:01:30] Inline: has joined #ruby
[14:13:47] MoritaShinobu: has joined #ruby
[14:15:30] darix: marz_d`ghostman: you are not in #slim
[14:16:05] marz_d`ghostman: darix: doesn't matter, no channel for it anyway. hehehe, was just hoping someone has used it here :)
[14:17:04] jjman: has left #ruby: ("WeeChat 1.6")
[14:27:34] duderonomy: has joined #ruby
[14:45:43] graphene: has joined #ruby
[14:52:00] SuperLag: has joined #ruby
[14:56:42] SuperLag: has joined #ruby
[14:57:22] SuperL4g: has joined #ruby
[15:00:29] rippa: has joined #ruby
[15:03:24] jane_booty_doe: has joined #ruby
[15:03:46] gr33n7007h1: has joined #ruby
[15:03:59] Dbugger: has joined #ruby
[15:08:08] sariyar: has joined #ruby
[15:08:43] kapil___: has joined #ruby
[15:11:34] dbz: has joined #ruby
[15:19:27] GodFather: has joined #ruby
[15:22:41] magellanicloud: has joined #ruby
[15:22:49] Mark22kk: has joined #ruby
[15:23:56] v01d4lph4: has joined #ruby
[15:24:14] desperek: has joined #ruby
[15:26:29] Mark22k: has joined #ruby
[15:27:56] apeiros_: has joined #ruby
[15:32:06] Mark22kk: Client: HexChat 2.14.2 • OS: Microsoft Windows 10 Home (x64) • CPU: Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (3.20GHz) • Memory: 15.9 GiB Total (11.7 GiB Free) • Storage: 205.1 GiB / 698.5 GiB (493.4 GiB Free) • VGA: Intel(R) HD Graphics 530 • Uptime: 5d 19h 21m 56s
[15:32:19] graphene: has joined #ruby
[15:34:39] orbyt_: has joined #ruby
[15:35:05] Mark22kk: I'm new here
[15:35:15] havenwood: Mark22k: hi
[15:36:28] Mark22kk: I love Ruby. It's such a nice elegant and simple programming language!
[15:37:31] Mark22kk: I'm from Germany. I'm still learning English, that's why I use Google Translate. That's why my english may not be that good.
[15:38:20] apeiros_: Mark22kk: that's fine. note that there's also a german ruby channel :)
[15:39:00] Mark22kk: I have, but here are more users.
[15:42:55] gtramontina: has joined #ruby
[15:50:54] knight33: has joined #ruby
[15:52:02] doubledup: has joined #ruby
[15:53:05] doubledup: has joined #ruby
[15:53:10] chrisarcand: has joined #ruby
[15:54:35] cagomez: has joined #ruby
[15:56:24] eckhardt: has joined #ruby
[15:57:22] j0bk: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[15:57:55] orbyt_: has joined #ruby
[16:07:29] clemens3: has joined #ruby
[16:10:44] rootsudo: has joined #ruby
[16:12:56] dviola: has joined #ruby
[16:14:28] thejs: has joined #ruby
[16:18:19] Mark22kk: has joined #ruby
[16:22:47] Mark22k: has joined #ruby
[16:23:46] Mark22k: has left #ruby: ()
[16:24:23] tdy: has joined #ruby
[16:24:29] Mark22k: has joined #ruby
[16:31:06] brandoncc: has joined #ruby
[16:33:34] Lloyd: has left #ruby: ()
[16:36:57] mikecmpbll: has joined #ruby
[16:39:38] akem: has joined #ruby
[16:43:38] mroutis: has joined #ruby
[16:49:39] knight33: has joined #ruby
[16:51:09] Cork: has joined #ruby
[16:59:27] v01d4lph4: has joined #ruby
[16:59:46] orbyt_: has joined #ruby
[17:05:24] savolla: has joined #ruby
[17:08:36] chrisarcand: has joined #ruby
[17:10:42] Emmanuel_Chanel: has joined #ruby
[17:19:16] mikecmpbll: has joined #ruby
[17:22:28] Freshnuts: has joined #ruby
[17:26:52] nowhere_man: has joined #ruby
[17:31:41] dellavg_: has joined #ruby
[17:36:08] Fr4n: has joined #ruby
[17:36:10] nowhere_man: has joined #ruby
[17:41:48] hays_: has joined #ruby
[17:42:15] hays_: if I have a file that is opened by an object, is there a way to make sure the file is closed properly upon Ctrl-C, etc
[17:42:29] mattwc: has joined #ruby
[17:42:30] hays_: want to make sure output is flushed, etc if an exception rolls through
[17:47:19] jottr: has joined #ruby
[17:52:00] bmurt: has joined #ruby
[17:52:26] akemot: has joined #ruby
[17:53:04] knight33: has joined #ruby
[17:53:08] eckhardt: has joined #ruby
[17:58:11] unreal: has joined #ruby
[18:02:45] ShekharReddy: has joined #ruby
[18:13:33] cek: has joined #ruby
[18:14:10] cek: > (GIL). It's a lock around the execution of Ruby code.
[18:14:48] cek: often see this around on internets. But why the heck would it be related to ruby code only, isn't GIL locking C functions/extensions , too?
[18:15:34] cek: best thing they often use to describe is Array#<< , but it's a C, not ruby code.
[18:20:14] tdy: has joined #ruby
[18:33:26] Guest58115: has joined #ruby
[18:33:55] redlegion: has joined #ruby
[18:40:02] thejs: has joined #ruby
[18:43:04] duderonomy: has joined #ruby
[18:43:26] Guest58115: has joined #ruby
[18:43:26] jottr: has joined #ruby
[18:48:42] Puffball: has joined #ruby
[18:48:44] magellanicloud: has joined #ruby
[18:49:35] duderonomy: has joined #ruby
[18:52:08] duderonomy: has joined #ruby
[18:53:33] Guest58115: has joined #ruby
[18:58:55] graphene: has joined #ruby
[19:02:59] skryking: has joined #ruby
[19:03:14] Guest58115: has joined #ruby
[19:15:26] filipechagas: has joined #ruby
[19:23:35] sameerynho: has joined #ruby
[19:29:44] manveru: has joined #ruby
[19:34:06] Nicmavr: has joined #ruby
[19:34:17] TheBloke: has joined #ruby
[19:40:23] duderonomy: has joined #ruby
[19:44:18] gtramontina: has joined #ruby
[19:44:53] rootsudo: has joined #ruby
[19:51:06] savolla: has joined #ruby
[20:19:53] lenqbit: has joined #ruby
[20:23:52] phenom: has joined #ruby
[20:45:04] Fr4n: has joined #ruby
[20:46:31] Fr4n: has joined #ruby
[20:48:06] tdy: has joined #ruby
[20:59:23] Fusl: has joined #ruby
[21:00:35] gtramontina: has joined #ruby
[21:03:29] cek: has joined #ruby
[21:03:37] raggi: has joined #ruby
[21:03:47] pwillard: has joined #ruby
[21:06:01] apeiros_: has joined #ruby
[21:06:54] Guest58115: has joined #ruby
[21:08:37] ellcs: has joined #ruby
[21:22:24] phenom: has joined #ruby
[21:24:31] orbyt_: has joined #ruby
[21:25:56] armyriad: has joined #ruby
[21:28:17] thy0_: has joined #ruby
[21:31:24] LiftLeft2: has joined #ruby
[21:33:01] LiftLeft3: has joined #ruby
[21:51:56] mroutis: has joined #ruby
[21:56:29] dionysus69: has joined #ruby
[21:57:33] gr33n7007h: has joined #ruby
[22:05:07] beowuff: has joined #ruby
[22:08:04] beowuff: has joined #ruby
[22:08:12] thy0_: has joined #ruby
[22:19:08] gtramontina: has joined #ruby
[22:24:57] grvgr: has joined #ruby
[22:31:58] orbyt_: has joined #ruby
[22:33:00] gtramontina: has joined #ruby
[22:33:12] thy0: has joined #ruby
[22:46:36] mistergibson: has joined #ruby
[22:55:30] ramfjord: has joined #ruby
[23:03:17] armyriad: has joined #ruby
[23:07:34] Guest58115: has joined #ruby
[23:14:02] lomex: has joined #ruby
[23:26:23] gtramontina: has joined #ruby
[23:43:54] orbyt_: has joined #ruby
[23:52:45] cagomez: has joined #ruby
[23:57:03] brkkyk: has joined #ruby
[23:58:40] brkkyk: any thoughts about ruby 3?