« Back to channel list

#ruby - 09 October 2017

« Back 1 day Forward 1 day »
[00:01:36] edward_: has joined #ruby
[00:21:44] enterprisey: has joined #ruby
[00:35:37] knight33: has joined #ruby
[00:36:34] cdg: has joined #ruby
[00:37:51] Cohedrin_: has joined #ruby
[00:46:07] bronson: has joined #ruby
[00:54:53] blackmesa1: has joined #ruby
[00:55:59] xevious: matthewd: Thanks for the help earlier. I went with rbenv.
[00:56:47] AnoHito_: has joined #ruby
[01:02:30] mostlybadfly: has joined #ruby
[01:03:12] BTRE: has joined #ruby
[01:10:28] ThomasQM: has joined #ruby
[01:14:11] marcux: has joined #ruby
[01:26:46] marcux: has joined #ruby
[01:26:48] kt: has joined #ruby
[01:30:16] wutschkef: has joined #ruby
[01:34:03] xevious: has left #ruby: ("http://quassel-irc.org - Chat comfortably. Anywhere.")
[01:37:36] ineb: has joined #ruby
[01:40:05] ineb: (middle endian)
[01:40:19] baweaver: Yeah, you'll get along just fine here
[01:42:25] paradisaeidae: has joined #ruby
[01:42:30] paradisaeidae_: has joined #ruby
[01:44:13] Nilium: ACTION has troubling flashbacks.
[01:44:38] d^sh: has joined #ruby
[01:47:44] pilne: has joined #ruby
[01:50:50] BTRE: has joined #ruby
[01:52:45] gizmore: has joined #ruby
[02:06:57] hfp_work: has joined #ruby
[02:11:06] danman: has joined #ruby
[02:11:50] wutschkef: has joined #ruby
[02:15:51] jtdoncas: has joined #ruby
[02:21:06] rrichardsr3: has joined #ruby
[02:22:03] ineb: my auto away script does go away after a certain amount of time but then never comes back
[02:22:18] ineb: until i manually say so. well.
[02:24:44] thomasv314: has joined #ruby
[02:27:31] Mon_Ouie: has joined #ruby
[02:28:35] jaruga: has joined #ruby
[02:38:16] cschneid_: has joined #ruby
[02:47:13] bronson: has joined #ruby
[02:48:56] cdg: has joined #ruby
[02:53:17] ahrs: has joined #ruby
[03:00:09] cadillac_: has joined #ruby
[03:02:53] enterprisey: has joined #ruby
[03:12:16] enterprisey_: has joined #ruby
[03:17:52] alfiemax: has joined #ruby
[03:20:14] rakm: has joined #ruby
[03:20:27] rakm: has left #ruby: ()
[03:21:15] gix: has joined #ruby
[03:24:35] Lyubo1: has joined #ruby
[03:26:41] spencer90: has joined #ruby
[03:27:33] spencer90: naive question: im looking for general ways to correlate data and look for patterns over time using ruby
[03:27:47] spencer90: is this more of a python-esque task?
[03:28:29] spencer90: i'm not quite sure if this is classified as data mining..
[03:28:38] tamouse__: it's not really specific to any particular language, spencer90, although some lanuages have more libraries availalble for some things than others
[03:28:51] spencer90: tamouse__: right
[03:29:03] spencer90: to be honest, im not sure if what i am trying to do is classified as "data mining"
[03:29:08] tamouse__: time-series stuff in particular lends itself to R
[03:29:19] spencer90: or just more of searching for patterns in data
[03:29:42] spencer90: or maybe its machine learning im looking for
[03:29:46] tamouse__: there's absolutely no reason you can work out algos in ruby
[03:29:52] spencer90: tamouse__: good call, ill look into R
[03:29:56] tamouse__: cannot* (sheesh!)
[03:44:50] Lyubo1: has joined #ruby
[03:46:41] millerti: has joined #ruby
[03:52:25] baweaver: ohai pontiki (tamouse__)
[03:52:47] baweaver: I have a fun problem I may use for interviews later (if I'm feeling evil)
[03:54:58] tamouse__: hihi baweaver
[03:55:22] tamouse__: hehe, just talking interview questions over in #reactjs, baweaver
[03:55:37] cdg: has joined #ruby
[03:55:41] baweaver: ooo, got a general one for you then on React
[03:56:16] tamouse__: these were great questions, entirely language agnostic
[04:05:44] gnufied: has joined #ruby
[04:07:41] wutschkef: has joined #ruby
[04:08:19] rrichardsr3: has joined #ruby
[04:16:19] Dimik: has joined #ruby
[04:16:40] uZiel: has joined #ruby
[04:27:12] _whitelogger: has joined #ruby
[04:28:45] LastWhisper__: has joined #ruby
[04:28:53] LastWhisper__: anyone around still ?
[04:31:12] knight33: has joined #ruby
[04:36:33] DTZUZO: has joined #ruby
[04:39:44] cschneid_: has joined #ruby
[04:42:37] bruno-_: has joined #ruby
[04:44:33] alex``: has joined #ruby
[04:48:51] bronson: has joined #ruby
[05:08:27] wutschkef: has joined #ruby
[05:09:13] rrichardsr3: has joined #ruby
[05:09:42] danielpclark: has joined #ruby
[05:16:57] reber: has joined #ruby
[05:29:07] rrichardsr3: has joined #ruby
[05:29:46] wutschkef: has joined #ruby
[05:36:56] biberu: has joined #ruby
[05:37:58] danman: has joined #ruby
[05:38:51] danman: has joined #ruby
[05:39:36] Ishido: has joined #ruby
[05:39:41] danman: has joined #ruby
[05:40:32] danman: has joined #ruby
[05:41:16] danman: has joined #ruby
[05:43:10] ferr: has joined #ruby
[05:46:53] ozzloy: has joined #ruby
[05:47:52] aupadhye: has joined #ruby
[05:47:55] rabajaj: has joined #ruby
[05:51:09] anisha: has joined #ruby
[05:54:34] serhart: has joined #ruby
[05:55:57] dminuoso_: has joined #ruby
[05:56:56] ur5us: has joined #ruby
[06:04:08] armyriad: has joined #ruby
[06:08:26] aufi: has joined #ruby
[06:10:46] rrichardsr3: has joined #ruby
[06:11:57] snickers: has joined #ruby
[06:23:31] andikr: has joined #ruby
[06:26:34] snickers: has joined #ruby
[06:26:51] dminuoso_: has joined #ruby
[06:35:19] elsevero: has joined #ruby
[06:36:07] quobo: has joined #ruby
[06:37:18] Mon_Ouie: has joined #ruby
[06:37:49] ShekharReddy: has joined #ruby
[06:42:48] djbkd: has joined #ruby
[06:43:56] conta: has joined #ruby
[06:47:36] rt: has joined #ruby
[06:49:48] bronson: has joined #ruby
[06:49:52] phaul: has joined #ruby
[06:50:10] friday: has joined #ruby
[06:52:35] jordanm: has joined #ruby
[06:55:10] olspookishmagus: has joined #ruby
[06:56:43] wutschkef: has joined #ruby
[07:07:35] hs366: has joined #ruby
[07:11:45] ur5us: has joined #ruby
[07:16:00] mjolnird: has joined #ruby
[07:16:29] mjolnird: has joined #ruby
[07:23:58] claudiuinberlin: has joined #ruby
[07:27:17] ta: has joined #ruby
[07:28:54] __Yiota: has joined #ruby
[07:28:55] agent_white: has joined #ruby
[07:33:39] mark_66: has joined #ruby
[07:35:45] __Yiota: has joined #ruby
[07:41:50] vondruch: has joined #ruby
[07:46:07] vondruch: has joined #ruby
[07:47:48] KevinSjoberg: has joined #ruby
[07:47:58] ldepandis: has joined #ruby
[07:51:03] dminuoso_: has joined #ruby
[07:57:53] bigkevmcd: has joined #ruby
[07:57:59] ta: has joined #ruby
[08:00:17] astrobunny: has joined #ruby
[08:00:59] Doow: has joined #ruby
[08:02:59] dminuoso_: has joined #ruby
[08:08:09] shinnya: has joined #ruby
[08:10:20] tgragnato: has joined #ruby
[08:11:48] Beams: has joined #ruby
[08:13:10] astrobunny: has joined #ruby
[08:20:30] Silthias: has joined #ruby
[08:26:39] wutschkef: has joined #ruby
[08:27:50] guille-moe: has joined #ruby
[08:28:09] mim1k: has joined #ruby
[08:29:08] Beams_: has joined #ruby
[08:29:52] paranoicsan: has joined #ruby
[08:34:53] Silthias: has joined #ruby
[08:36:07] ta: has joined #ruby
[08:36:56] lxsameer: has joined #ruby
[08:37:14] marr: has joined #ruby
[08:37:54] kt: has joined #ruby
[08:41:06] cschneid_: has joined #ruby
[08:43:02] elsevero: has joined #ruby
[08:45:14] sleetdrop: has joined #ruby
[08:45:45] TomyWork: has joined #ruby
[08:46:14] claudiuinberlin: has joined #ruby
[08:47:09] neon_icon: has joined #ruby
[08:47:57] cadillac_: has joined #ruby
[08:48:20] kliq: has joined #ruby
[08:50:29] blackmesa: has joined #ruby
[08:50:37] bronson: has joined #ruby
[08:55:00] Beams: has joined #ruby
[08:55:38] adlerdias: has joined #ruby
[08:56:16] ur5us: has joined #ruby
[08:59:28] devil_tux: has joined #ruby
[09:03:35] guardianx: has joined #ruby
[09:04:26] workmad3: has joined #ruby
[09:05:30] burgestrand: has joined #ruby
[09:05:50] marr123: has joined #ruby
[09:06:46] burgestrand: has joined #ruby
[09:11:05] reber_: has joined #ruby
[09:13:10] basket: has joined #ruby
[09:16:28] consti: has joined #ruby
[09:17:44] consti: has joined #ruby
[09:20:50] sleetdrop: has joined #ruby
[09:31:21] harfangk: has joined #ruby
[09:32:57] sajinmp: has joined #ruby
[09:37:03] jinie: has joined #ruby
[09:37:06] blackmesa: has joined #ruby
[09:44:02] ur5us: has joined #ruby
[09:46:43] mr_sourcerer: has joined #ruby
[09:52:46] Emmanuel_Chanel: has joined #ruby
[10:02:10] djbjd: has joined #ruby
[10:02:46] roshanavand: has joined #ruby
[10:03:07] claudiuinberlin: has joined #ruby
[10:03:32] alfiemax: has joined #ruby
[10:04:47] rrichardsr3: has joined #ruby
[10:06:28] elsevero_: has joined #ruby
[10:12:47] Beams: has joined #ruby
[10:13:57] charliesome: has joined #ruby
[10:15:25] Trynemjoel: has joined #ruby
[10:20:15] tvw: has joined #ruby
[10:21:17] dinfuehr: has joined #ruby
[10:22:17] kliq: has joined #ruby
[10:27:20] neon_iconstar: has joined #ruby
[10:27:37] GodFather: has joined #ruby
[10:28:30] Beams: has joined #ruby
[10:29:45] alfiemax: has joined #ruby
[10:33:13] burgestrand: has joined #ruby
[10:34:20] FahmeF: has joined #ruby
[10:34:45] guardianx: has joined #ruby
[10:40:41] GodFather: has joined #ruby
[10:44:15] guardianx: has joined #ruby
[10:46:07] GodFather_: has joined #ruby
[10:51:59] bronson: has joined #ruby
[10:53:42] neon_iconstar: has joined #ruby
[10:54:42] Mon_Ouie: has joined #ruby
[10:55:53] charliesome: has joined #ruby
[10:56:41] FastJack: has joined #ruby
[10:57:10] KevinSjoberg: has joined #ruby
[11:00:44] Beams: has joined #ruby
[11:08:51] zarubin1: has joined #ruby
[11:11:23] mtkd: has joined #ruby
[11:17:39] Defenestrate: has joined #ruby
[11:17:39] Defenestrate: has joined #ruby
[11:17:49] jtdoncas: has joined #ruby
[11:18:26] KevinSjoberg: has joined #ruby
[11:22:12] kliq: has joined #ruby
[11:25:11] workmad3: has joined #ruby
[11:26:26] zarubin2: has joined #ruby
[11:30:21] tcopeland: has joined #ruby
[11:31:03] Beams: has joined #ruby
[11:33:46] rabajaj: has joined #ruby
[11:36:11] bruno-: has joined #ruby
[11:36:30] neon_icon: has joined #ruby
[11:40:29] fmcgeough: has joined #ruby
[11:41:18] claudiuinberlin: has joined #ruby
[11:41:36] DTZUZO: has joined #ruby
[11:49:01] ldnunes: has joined #ruby
[11:51:50] johno84: has joined #ruby
[11:52:00] Quentinius: has joined #ruby
[11:52:43] claudiuinberlin: has joined #ruby
[11:54:03] jrafanie: has joined #ruby
[12:03:27] synthroid: has joined #ruby
[12:03:37] ta: has joined #ruby
[12:04:47] synthroid: has joined #ruby
[12:05:37] blackmesa: has joined #ruby
[12:11:05] morfin: has joined #ruby
[12:11:32] morfin: anybody know does rspec save changed value in let if i change it in some it block?
[12:17:13] Beams: has joined #ruby
[12:17:20] claudiuinberlin: has joined #ruby
[12:17:25] ayonkhan: has joined #ruby
[12:18:31] wutschkef: has joined #ruby
[12:19:48] Genya_: has joined #ruby
[12:23:02] mson: has joined #ruby
[12:23:07] Alaura: has joined #ruby
[12:25:59] cdg: has joined #ruby
[12:27:18] fmcgeough: has joined #ruby
[12:28:36] InfinityFye: has joined #ruby
[12:41:42] vtx: has joined #ruby
[12:42:14] dionysus69: has joined #ruby
[12:42:31] cschneid_: has joined #ruby
[12:43:00] vtx: hi guys, if i have a hash of three hashes, and each sub hash contains an oid hash, whose path is [:_id][:oid][:str], how can i extract only this value from all three hashes, into an array?
[12:46:25] claudiuinberlin: has joined #ruby
[12:46:40] paranoicsan: has joined #ruby
[12:46:49] bogdan: has joined #ruby
[12:48:36] anisha_: has joined #ruby
[12:49:36] mim1k: has joined #ruby
[12:51:25] rikkipitt: has joined #ruby
[12:53:01] bronson: has joined #ruby
[12:53:47] al2o3-cr: vtx: gist the hash.
[12:56:08] vtx: al2o3-cr: https://gist.github.com/anonymous/2f9bfc9f7634df6e2a364e9794ff855a so the path names are different here, but i essentially want to extract the [“_id”][”$id”][“$oid”] from each of the three hashes
[12:56:25] al2o3-cr: ok, let me take a look
[12:58:17] Beams: has joined #ruby
[13:03:23] al2o3-cr: vtx: a.map { |h| h.dig("_id", "$id", "$oid") } this should do it
[13:04:04] cschneid_: has joined #ruby
[13:05:10] tsglove: has joined #ruby
[13:10:21] al2o3-cr: vtx: does that help?
[13:11:03] vtx: al2o3-cr: yes! thanks very much :)
[13:11:29] al2o3-cr: vtx: ok, yw :)
[13:12:30] uZiel: has joined #ruby
[13:13:54] rrichard_: has joined #ruby
[13:18:15] jtdoncas: has joined #ruby
[13:19:16] workmad3: has joined #ruby
[13:27:09] dionysus69: has joined #ruby
[13:27:42] Mon_Ouie: has joined #ruby
[13:28:38] rfoust: has joined #ruby
[13:29:09] marcux: has joined #ruby
[13:29:49] Genya_: has joined #ruby
[13:30:31] Lyubo1: has joined #ruby
[13:33:18] andikr: has joined #ruby
[13:33:19] dionysus69: has joined #ruby
[13:37:37] jrafanie: has joined #ruby
[13:38:06] DLSteve: has joined #ruby
[13:38:10] uZiel: has joined #ruby
[13:39:58] blackmesa: has joined #ruby
[13:41:07] vondruch: has joined #ruby
[13:52:18] txdv: has joined #ruby
[13:53:11] sysvalve: has joined #ruby
[13:53:46] claudiuinberlin: has joined #ruby
[13:55:30] dionysus69: has joined #ruby
[13:56:14] milardovich: has joined #ruby
[13:59:43] dionysus69: has joined #ruby
[14:04:46] thomasv314: has joined #ruby
[14:04:54] Rapture: has joined #ruby
[14:07:02] Beams: has joined #ruby
[14:14:20] GodFather_: has joined #ruby
[14:16:23] rikkipitt: has joined #ruby
[14:23:31] blackmesa: has joined #ruby
[14:25:07] dinfuehr: has joined #ruby
[14:26:36] Coming: has joined #ruby
[14:26:54] GodFather_: has joined #ruby
[14:27:28] ResidentBiscuit: has joined #ruby
[14:31:10] wutschke1: has joined #ruby
[14:33:00] Beams: has joined #ruby
[14:37:18] jphase: has joined #ruby
[14:37:46] SteenJobs: has joined #ruby
[14:38:16] bigkevmcd: has joined #ruby
[14:38:21] orbyt_: has joined #ruby
[14:38:36] Bish: has joined #ruby
[14:38:37] cschneid_: has joined #ruby
[14:39:05] fChanX: has joined #ruby
[14:45:04] imode: has joined #ruby
[14:45:20] FahmeF: has joined #ruby
[14:46:07] johno84: has joined #ruby
[14:47:01] alex``: has joined #ruby
[14:47:31] jrafanie: has joined #ruby
[14:50:18] madhatter: has joined #ruby
[14:51:36] rikkipitt: has joined #ruby
[14:52:21] dviola: has joined #ruby
[14:53:17] troys: has joined #ruby
[14:53:56] bronson: has joined #ruby
[14:54:26] dminuoso_: has joined #ruby
[14:56:20] rippa: has joined #ruby
[14:57:19] johno84: has joined #ruby
[14:58:56] polishdub: has joined #ruby
[14:59:19] synthroid: has joined #ruby
[14:59:31] techn1cs: has joined #ruby
[14:59:31] techn1cs: has joined #ruby
[14:59:51] claudiuinberlin: has joined #ruby
[15:00:07] fChanX: Hello. Does anyone know why I can't seem to install anything at all with gem? Just installed it.
[15:00:32] jrafanie_: has joined #ruby
[15:00:35] rob_: fChanX: what error do you get
[15:01:14] fChanX: "ERROR: Failed to build gem native extension."
[15:01:25] rob_: fChanX: what distribution are you using
[15:01:53] rob_: it's trying to compile some code but it's failing, do you have the build-essentials package installed (with apt) ?
[15:03:18] fChanX: Yup "build-essential is already the newest version."
[15:03:38] rob_: you need to find out what the compile error is, then
[15:03:50] fChanX: Ok, thanks for helping.
[15:03:57] havenwood: fChanX: What gem with C-exts are you failing to install?
[15:03:59] rob_: but it'll be a missing lib or headers or something
[15:04:53] havenwood: fChanX: sudo apt-get install ruby-full
[15:05:09] Puffball: has joined #ruby
[15:06:09] fChanX: Trying it now. I have no idea what C-exts are sorry :p
[15:06:14] fChanX: Thank you too.
[15:06:32] jtdoncas: has joined #ruby
[15:08:35] __Yiota: has joined #ruby
[15:08:56] mahlon: has joined #ruby
[15:09:26] Beams: has joined #ruby
[15:11:33] GodFather: has joined #ruby
[15:12:26] cadillac__: has joined #ruby
[15:14:51] Mon_Ouie: has joined #ruby
[15:15:02] milardovich: has joined #ruby
[15:16:53] selim: has joined #ruby
[15:17:24] fChanX: I still can't seem to resolve it for now lol I will be ok though, I can use apt for now and get to practicing. ;)
[15:20:01] Asher: has joined #ruby
[15:21:19] Beams: has joined #ruby
[15:22:06] fChanX: Thanks anyway. :)
[15:22:54] al2o3-cr: has joined #ruby
[15:24:08] SteenJobs: has joined #ruby
[15:27:07] blackmesa1: has joined #ruby
[15:29:17] cagomez: has joined #ruby
[15:32:15] cdg: has joined #ruby
[15:33:28] cagomez: I know the Builder pattern has a class with a Build() method. but what is the pattern called for a class that only has a .call() method?
[15:33:56] Beams: has joined #ruby
[15:34:11] SteenJobs: has joined #ruby
[15:35:25] fChanX: has left #ruby: ()
[15:36:35] thomasv314: has joined #ruby
[15:38:37] EXCHGR: middleware?
[15:39:27] DTZUZO: has joined #ruby
[15:41:01] blackmesa1: has joined #ruby
[15:41:51] dminuoso_: has joined #ruby
[15:42:00] cagomez: exchgr: I think classes with .call() are called Service objects. but I'm not sure what that pattern is (eg if it has a name)
[15:45:23] EXCHGR: what's the context where "call" is defined?
[15:45:28] rabajaj: has joined #ruby
[15:45:37] Beams: has joined #ruby
[15:48:33] MrSparkle: has joined #ruby
[15:48:45] bmurt: has joined #ruby
[15:49:08] havenwood: exchgr: You could call it a "template method" pattern. Rack pattern. ;-P
[15:49:24] havenwood: exchgr: oops, responded to wrong person
[15:49:31] EXCHGR: no worries
[15:49:42] EXCHGR: yeah i'm thinking that i've only really seen "call" in a rack middleware context
[15:50:13] EXCHGR: there's also Method#call
[15:50:36] EXCHGR: http://ruby-doc.org/core-2.4.2/Method.html#method-i-call
[15:53:06] havenwood: Logger as well.
[15:58:38] wutschkef: has joined #ruby
[15:59:11] alfiemax: has joined #ruby
[15:59:27] Beams: has joined #ruby
[16:01:13] milardovich: has joined #ruby
[16:03:48] jphase: has joined #ruby
[16:05:30] TomyLobo: has joined #ruby
[16:06:56] charliesome_: has joined #ruby
[16:06:57] jphase_: has joined #ruby
[16:08:42] blackmesa1: has joined #ruby
[16:11:04] orbyt_: has joined #ruby
[16:14:09] jordanm: has joined #ruby
[16:14:49] mson: has joined #ruby
[16:15:34] dminuoso1: has joined #ruby
[16:22:02] [Butch]: has joined #ruby
[16:22:18] dviola: has joined #ruby
[16:23:41] ldnunes: has joined #ruby
[16:27:58] claudiuinberlin: has joined #ruby
[16:35:15] moei: has joined #ruby
[16:35:34] minimalism: has joined #ruby
[16:44:48] kliq: has joined #ruby
[16:54:26] MarkBilk_: has joined #ruby
[16:55:06] bronson: has joined #ruby
[16:56:13] eckhardt: has joined #ruby
[17:01:55] FahmeF: has joined #ruby
[17:04:35] moei: has joined #ruby
[17:06:04] bkxd: has joined #ruby
[17:06:35] guille-moe: has joined #ruby
[17:07:15] Asher: has joined #ruby
[17:08:08] devil_tux: has joined #ruby
[17:09:43] amirite: has joined #ruby
[17:14:01] Asher: has joined #ruby
[17:16:53] kliq: has joined #ruby
[17:16:58] mtkd: has joined #ruby
[17:18:01] paranoicsan: has left #ruby: ()
[17:23:11] jrafanie: has joined #ruby
[17:23:58] whippythellama: has joined #ruby
[17:24:11] jphase: has joined #ruby
[17:27:25] ElDoggo: has joined #ruby
[17:28:37] mim1k: has joined #ruby
[17:29:27] blackmesa: has joined #ruby
[17:29:40] naftilos76: has joined #ruby
[17:31:41] jphase: has joined #ruby
[17:33:56] FahmeF: has joined #ruby
[17:36:21] eckhardt: has joined #ruby
[17:37:12] Cohedrin_: has joined #ruby
[17:42:17] jamesaxl: has joined #ruby
[17:43:01] cschneid_: has joined #ruby
[17:44:19] ur5us: has joined #ruby
[17:48:47] paranoicsan: has joined #ruby
[17:49:03] jamesaxl: has joined #ruby
[17:49:26] Quentinius: has joined #ruby
[17:50:42] ldepandis: has joined #ruby
[17:50:43] Dimik: has joined #ruby
[17:54:12] orbyt_: has joined #ruby
[17:54:55] nofxxx: has joined #ruby
[18:02:18] statelesscode: has joined #ruby
[18:04:12] mim1k: has joined #ruby
[18:05:44] weaksauce: has joined #ruby
[18:06:18] kies: has joined #ruby
[18:07:32] ixti: has joined #ruby
[18:09:27] synthroid: has joined #ruby
[18:09:44] halt: has joined #ruby
[18:11:04] guille-moe: has joined #ruby
[18:13:24] gigetoo: has joined #ruby
[18:13:49] FrostCandy: has joined #ruby
[18:15:09] mim1k: has joined #ruby
[18:15:48] Quentinius: has joined #ruby
[18:16:43] simmaniac: has joined #ruby
[18:19:02] bkxd: has joined #ruby
[18:19:16] neon_icon: has joined #ruby
[18:21:00] ShalokShalom: has joined #ruby
[18:22:07] zachk: has joined #ruby
[18:22:46] dminuoso_: has joined #ruby
[18:24:01] bkxd: has joined #ruby
[18:25:59] cagomez: has joined #ruby
[18:27:10] ramfjord: has joined #ruby
[18:29:23] uZiel: has joined #ruby
[18:32:32] ramfjord: has joined #ruby
[18:34:48] conta3: has joined #ruby
[18:41:10] Dry_Lips: has left #ruby: ("Leaving")
[18:41:20] Cohedrin_: has joined #ruby
[18:41:31] amirite: has joined #ruby
[18:45:55] theRoUS: has joined #ruby
[18:46:51] blackmesa: has joined #ruby
[18:56:02] bronson: has joined #ruby
[19:00:18] jtdoncas: has joined #ruby
[19:01:31] mim1k: has joined #ruby
[19:08:55] konsolebox: has joined #ruby
[19:14:09] charliesome: has joined #ruby
[19:14:10] rabajaj: has joined #ruby
[19:16:17] jinie: has joined #ruby
[19:17:26] Rapture: has joined #ruby
[19:23:39] Guest97372: has joined #ruby
[19:25:11] jenrzzz: has joined #ruby
[19:25:11] jenrzzz: has joined #ruby
[19:26:22] elsevero: has joined #ruby
[19:26:36] cagomez: has joined #ruby
[19:27:01] conta3: has joined #ruby
[19:27:42] rrichardsr3: has joined #ruby
[19:27:44] postmodern: has joined #ruby
[19:28:16] jamesaxl: has joined #ruby
[19:31:05] eckhardt: has joined #ruby
[19:33:11] ElDoggo: has joined #ruby
[19:34:57] ur5us: has joined #ruby
[19:35:42] Nobun: has joined #ruby
[19:36:01] Nobun: please, help me on embedding ruby... I'm starting to become crazy.
[19:37:23] Nobun: this is the lastest attempt I did: http://dpaste.com/0Z4ZDZJ
[19:37:45] ahrs: has joined #ruby
[19:37:54] postmodern: has joined #ruby
[19:38:16] Nobun: but I'm having a strange error message: main.cpp:80:61: error: invalid conversion from ‘VALUE (*)(VALUE) {aka long unsigned int (*)(long unsigned int)}’ to ‘VALUE (*)(...) {aka long unsigned int (*)(...)}’ [-fpermissive]
[19:38:17] Nobun: rb_define_method(rbCoreVxa, (char *)"projdir", cv_pjdir, 0);
[19:39:58] kies: has joined #ruby
[19:44:20] ResidentBiscuit: has joined #ruby
[19:44:45] ResidentBiscuit: has joined #ruby
[19:45:12] ResidentBiscuit: has joined #ruby
[19:48:31] claudiuinberlin: has joined #ruby
[19:49:39] amirite: has joined #ruby
[19:52:41] ta: has joined #ruby
[19:54:05] kliq: has joined #ruby
[19:55:13] matthewd: Nobun: What's "strange" about it? Those types aren't implicitly convertible.
[19:55:49] Nobun: all examples I saw about rb_define_method, matthewd
[19:56:00] Nobun: in all those examples I see it is
[19:56:47] matthewd: C++ isn't C
[19:56:55] Nobun: VALUE (global value), "method_name_string_identifier", VALUE function, number_of_expected_argument_of_function)
[19:57:12] Nobun: but with extern "C" should be compatibile
[19:57:37] Nobun: at least this method work when embedding python and lua (wich are c scripting languages too)
[19:58:41] Nobun: don't understand why It should not work with ruby O.o
[19:58:43] matthewd: Googling "c++ embed ruby" finds me: https://github.com/Igknighted/RubyEmbedded/blob/master/class_example/class.cpp#L33
[19:59:15] theRoUS: has joined #ruby
[20:01:27] cdg: has joined #ruby
[20:03:29] whippythellama: has joined #ruby
[20:04:43] Nobun: I'm applying the suggested changes
[20:04:52] Nobun: (typedef etc)
[20:05:49] teatime: can I ask a question... and no this isn't meant to be helpful, I'm just curious
[20:05:59] teatime: does (char *)"some string" do anything
[20:06:11] teatime: even in C++ isn't "" just a char * ?
[20:06:23] Nobun: nope, teatime
[20:06:51] Nobun: if you don't use that syntax, you have a compilation warning "deprecated conversion" or something similar
[20:07:11] Nobun: don't remember now the exact warning
[20:07:17] dviola: has joined #ruby
[20:07:32] teatime: I guess "" is a const char const * or whatever, maybe that matters
[20:07:46] Nobun: thank, matthewd. Using that typedef and that change in rb_define_method allowed the application to be compiled
[20:09:10] Nobun: however, teatime, in this case I could avoid the explicit cast... I am in an extern "C" block... in this case the compiler warning seems not trigger
[20:09:47] Nobun: so you were partially right (I didn't remember this, verified removing the explicit cast)
[20:11:49] leah2: has joined #ruby
[20:15:01] claudiuinberlin: has joined #ruby
[20:16:07] Nobun: hmm... the application returned a segmentation fault :/
[20:16:27] Nobun: matthewd: do you think it could be related on using c++ ?
[20:16:47] Nobun: this is the test.rb that the cpp application is running
[20:17:42] Nobun: http://dpaste.com/0CVW3X0
[20:20:58] orbyt_: has joined #ruby
[20:23:11] d5sx43: has joined #ruby
[20:31:56] d5sx43: has joined #ruby
[20:31:58] marr: has joined #ruby
[20:32:38] cdg: has joined #ruby
[20:32:59] matthewd: Nobun: I doubt it's C++ specific
[20:33:23] matthewd: Nobun: Have you tried an empty .rb instead?
[20:33:38] Nobun: nope... I will try now
[20:35:15] Nobun: hmm even if "test.rb" is empty, the segmentation fault occurs
[20:36:31] ledestin: has joined #ruby
[20:36:51] Nobun: test.rb is, obliouvsly, in the same directory as binary executable
[20:38:11] Nobun: and the failure occurs when ruby_run_node is executed (tested commenting temporary part of code until segmentation occurred again)
[20:38:44] matthewd: I guess I'd suggest further comparing with that example we found
[20:39:11] cagomez: has joined #ruby
[20:39:34] burgestrand: has joined #ruby
[20:40:32] Nobun: you mean... trying to compile that example as is and see what it happen?
[20:40:50] matthewd: Or just make your code look more like that
[20:41:26] Nobun: first I will try to run that code as-is
[20:41:40] matthewd: There's more than one way to do things, of course... but if you're not sure which part is causing it to misbehave, getting closer to something that (presumably) is known to work seems a viable start
[20:42:37] imode: has joined #ruby
[20:44:17] Nobun: that example, as is, worked
[20:47:36] d5sx43: has joined #ruby
[20:50:24] Nobun: I though that is I use rb_define_module("x")
[20:50:41] Nobun: would be work like "module X"
[20:50:51] GodFather: has joined #ruby
[20:52:30] Nobun: http://dpaste.com/1PMFDDX
[20:52:57] Nobun: with this little changes and with a little change in test.rb --> Example::SimpleMethod()
[20:53:13] Nobun: it says: undefined method `SimpleMethod' for Example:Module
[20:53:39] elsevero: has joined #ruby
[20:54:37] matthewd: That's equivalent to `module Example; def SimpleMethod; ..; end; end`, which you also can't call like that
[20:55:36] Nobun: hmm... why not?
[20:55:56] Nobun: checking... but I remembered I use module that way... wait a moment
[20:56:03] matthewd: It's defining an instance method
[20:56:54] bronson: has joined #ruby
[20:57:25] orbyt_: has joined #ruby
[21:00:51] Nobun: I did a (working) ruby script this way: http://dpaste.com/2WMKSK6
[21:01:11] Nobun: that script could run successfully the function "funct" from my module
[21:01:16] Azure: has joined #ruby
[21:01:37] Nobun: but you said it should be run, so perhaps there is something I'm understanding wrong
[21:01:48] Nobun: it should be wrong *
[21:02:20] matthewd: That's not the same as the example I gave
[21:03:59] Nobun: so How could I change it in "self.SimpleMethod" for module Example? O.o
[21:09:12] jrafanie: has joined #ruby
[21:10:40] blackmesa1: has joined #ruby
[21:10:44] Nobun: hmm perhaps I found the answer...
[21:12:24] Nobun: I have to replace rb_define_method with rb_define_module_function
[21:12:28] Nobun: and now works
[21:12:31] ElDoggo: has joined #ruby
[21:14:58] cdg_: has joined #ruby
[21:18:03] milardovich: has joined #ruby
[21:18:27] conta1: has joined #ruby
[21:23:04] chrisgopher: has joined #ruby
[21:24:25] Emmyrules: has joined #ruby
[21:25:46] ResidentBiscuit: has joined #ruby
[21:26:11] ResidentBiscuit: has joined #ruby
[21:26:36] ResidentBiscuit: has joined #ruby
[21:26:51] Emmyrules: has left #ruby: ("Closing Window")
[21:27:01] ResidentBiscuit: has joined #ruby
[21:27:26] ResidentBiscuit: has joined #ruby
[21:27:51] ResidentBiscuit: has joined #ruby
[21:28:16] ResidentBiscuit: has joined #ruby
[21:28:41] ResidentBiscuit: has joined #ruby
[21:28:57] adaedra: !fixconn ResidentBiscuit
[21:29:06] ResidentBiscuit: has joined #ruby
[21:29:20] chouhoulis: has joined #ruby
[21:29:31] ResidentBiscuit: has joined #ruby
[21:29:33] devil_tux: has joined #ruby
[21:29:42] adaedra: !fixcon ResidentBiscuit
[21:29:42] ruby[bot]: +bb ResidentBiscuit!*@*$#ruby-fix-your-connection *!*@unaffiliated/residentbiscuit$#ruby-fix-your-connection
[21:31:03] Freshnuts: has joined #ruby
[21:38:45] dviola: has joined #ruby
[21:39:33] mim1k: has joined #ruby
[21:50:48] amirite: has joined #ruby
[21:51:51] dmtd: has joined #ruby
[21:59:00] gusrub: has joined #ruby
[21:59:22] ElDoggo: has joined #ruby
[22:00:57] Asher: has joined #ruby
[22:03:16] perniciouscaffei: has joined #ruby
[22:10:11] nofxx: has joined #ruby
[22:23:20] jenrzzz: has joined #ruby
[22:23:20] jenrzzz: has joined #ruby
[22:24:10] theRoUS: has joined #ruby
[22:32:33] eckhardt: has joined #ruby
[22:42:12] amirite: has joined #ruby
[22:47:49] serhart: has joined #ruby
[22:49:05] chmurifree: has joined #ruby
[22:49:16] orbyt_: has joined #ruby
[22:51:31] FahmeF: has joined #ruby
[22:51:32] shinnya: has joined #ruby
[22:53:08] marcux: has joined #ruby
[22:54:38] tcopeland: has joined #ruby
[22:58:14] bronson: has joined #ruby
[22:58:51] neon_icon: has joined #ruby
[22:59:07] gusrub: has joined #ruby
[23:03:04] jenrzzz: has joined #ruby
[23:03:04] jenrzzz: has joined #ruby
[23:05:27] thinkpad: has joined #ruby
[23:06:02] rfoust: has joined #ruby
[23:06:50] amirite: has joined #ruby
[23:15:57] gusrub: has joined #ruby
[23:18:54] marcux_: has joined #ruby
[23:29:56] reaVer: has joined #ruby
[23:35:33] charliesome: has joined #ruby
[23:45:05] GodFather: has joined #ruby
[23:46:15] goyox86: has joined #ruby
[23:46:42] Coming: has joined #ruby
[23:46:43] cdg: has joined #ruby
[23:46:50] postmodern: am i missing something, or does setting `ndots:` for Resolv::DNS.new, cause it to always return zero results
[23:46:54] postmodern: https://gist.github.com/anonymous/bb0caae4ec6b757cf30f26bc3f610133
[23:47:17] postmodern: however `$ host -N 1 twitter.com` works as expected
[23:55:41] jenrzzz_: has joined #ruby
[23:55:43] mim1k: has joined #ruby
[23:55:48] amirite: has joined #ruby