« Back to channel list

#ruby - 13 January 2018

« Back 1 day Forward 1 day »
[00:03:33] guille-moe: has joined #ruby
[00:08:54] r3kz: has joined #ruby
[00:09:26] JusticeFries: has joined #ruby
[00:09:28] Azure: has joined #ruby
[00:10:44] Paraxial: has joined #ruby
[00:14:01] jeffreylevesque: has joined #ruby
[00:17:37] Nahra: has joined #ruby
[00:18:24] jeffreylevesque_: has joined #ruby
[00:22:38] quobo: has joined #ruby
[00:22:40] eckhardt: has joined #ruby
[00:27:37] jeffreylevesque: has joined #ruby
[00:29:03] jtdoncas: has joined #ruby
[00:30:49] han`: has joined #ruby
[00:37:39] jrp93_2: has joined #ruby
[00:40:49] alfiemax: has joined #ruby
[00:43:04] guacamole: has joined #ruby
[00:43:04] guacamole: has joined #ruby
[00:43:12] jnyw: has joined #ruby
[00:45:09] orbyt_: has joined #ruby
[00:46:58] MaksimPinigin: has joined #ruby
[00:47:52] guacamole: has joined #ruby
[00:47:53] guacamole: has joined #ruby
[00:52:01] oetjenj: has joined #ruby
[00:52:48] oetjenj: has joined #ruby
[00:53:33] oetjenj: has joined #ruby
[00:54:11] jeffreylevesque_: has joined #ruby
[00:54:20] oetjenj: has joined #ruby
[00:55:06] oetjenj: has joined #ruby
[00:55:08] bronson: has joined #ruby
[00:55:52] oetjenj: has joined #ruby
[00:55:54] guacamole: has joined #ruby
[00:55:54] guacamole: has joined #ruby
[00:56:38] oetjenj: has joined #ruby
[00:57:25] oetjenj: has joined #ruby
[00:57:56] matchaw: has joined #ruby
[01:02:06] goatish: has joined #ruby
[01:06:13] jeffreylevesque: has joined #ruby
[01:08:44] guacamole: has joined #ruby
[01:08:44] guacamole: has joined #ruby
[01:09:10] Immune: has joined #ruby
[01:09:38] jrp93: has joined #ruby
[01:10:21] alfiemax: has joined #ruby
[01:12:29] techn1cs: has joined #ruby
[01:15:57] cdg: has joined #ruby
[01:20:34] orbyt_: has joined #ruby
[01:22:19] Bish: has joined #ruby
[01:30:30] GremL1N2: has joined #ruby
[01:36:35] guardianx: has joined #ruby
[01:54:36] kapil___: has joined #ruby
[01:56:01] dstrunk: has joined #ruby
[01:57:43] mtkd: has joined #ruby
[02:02:23] bmurt: has joined #ruby
[02:08:24] k0mpa: has joined #ruby
[02:09:31] chocoelho: has joined #ruby
[02:18:00] rich: has joined #ruby
[02:26:51] s3nd1v0g1us: has joined #ruby
[02:28:17] gizmore|2: has joined #ruby
[02:32:04] naprimer: has joined #ruby
[02:32:18] dstrunk: has joined #ruby
[02:32:38] Xiti: has joined #ruby
[02:38:17] alfiemax: has joined #ruby
[02:39:37] darkhanb: has joined #ruby
[02:47:54] cdg: has joined #ruby
[02:56:54] Immune: has joined #ruby
[02:56:54] bronson: has joined #ruby
[02:59:06] cagomez: has joined #ruby
[03:00:14] cadillac_: has joined #ruby
[03:00:20] uZiel: has joined #ruby
[03:00:32] jenrzzz: has joined #ruby
[03:00:32] jenrzzz: has joined #ruby
[03:01:56] PaulCapestany: has joined #ruby
[03:03:47] elphe: has joined #ruby
[03:06:17] PaulCapestany: has joined #ruby
[03:06:27] cdg: has joined #ruby
[03:07:44] orbyt_: has joined #ruby
[03:08:55] [Butch]: has joined #ruby
[03:09:48] Jameser: has joined #ruby
[03:12:07] Jameser: has joined #ruby
[03:13:26] [Butch]_: has joined #ruby
[03:14:24] helpa: has joined #ruby
[03:23:23] nowhere_man: has joined #ruby
[03:25:50] alfiemax: has joined #ruby
[03:26:55] MaksimPinigin: has joined #ruby
[03:31:56] Azure: has joined #ruby
[03:35:01] meesles: has joined #ruby
[03:39:25] ramfjord: has joined #ruby
[03:41:08] cadillac_: has joined #ruby
[03:45:03] ramfjord: has joined #ruby
[03:47:16] Immune: has joined #ruby
[03:47:44] dtzuzu: has joined #ruby
[03:53:08] ramfjord: has joined #ruby
[03:57:46] bronson: has joined #ruby
[03:59:26] ramfjord: has joined #ruby
[04:01:52] mtkd: has joined #ruby
[04:02:43] uZiel: has joined #ruby
[04:05:38] ramfjord: has joined #ruby
[04:13:33] ramfjord: has joined #ruby
[04:18:40] alfiemax: has joined #ruby
[04:19:39] ramfjord: has joined #ruby
[04:22:39] jrp93: has joined #ruby
[04:24:41] olspookishmagus: has joined #ruby
[04:25:55] ramfjord: has joined #ruby
[04:26:08] ghormoon: has joined #ruby
[04:26:22] fusta: has joined #ruby
[04:27:32] govg: has joined #ruby
[04:34:24] jtdoncas: has joined #ruby
[04:36:46] darkhanb: has joined #ruby
[04:40:09] oetjenj: has joined #ruby
[04:44:19] elphe: has joined #ruby
[04:44:52] phenom: has joined #ruby
[04:47:05] gix-: has joined #ruby
[04:56:24] ramfjord: has joined #ruby
[04:58:32] bronson: has joined #ruby
[05:05:43] eckhardt: has joined #ruby
[05:06:42] cdg: has joined #ruby
[05:07:29] Immune: has joined #ruby
[05:09:27] uZiel: has joined #ruby
[05:18:20] jtdoncas: has joined #ruby
[05:18:28] thejamespinto: has joined #ruby
[05:18:59] kies: has joined #ruby
[05:19:58] alfiemax: has joined #ruby
[05:20:37] dstrunk: has joined #ruby
[05:22:35] cschneid_: has joined #ruby
[05:31:35] cschneid_: has joined #ruby
[05:39:46] konsolebox: has joined #ruby
[05:59:19] bronson: has joined #ruby
[06:04:26] JusticeFries: has joined #ruby
[06:06:01] mtkd: has joined #ruby
[06:08:53] lembron: has joined #ruby
[06:08:54] uZiel: has left #ruby: ()
[06:11:35] alfiemax: has joined #ruby
[06:13:01] segy: has joined #ruby
[06:14:11] h99h9h88: has joined #ruby
[06:18:02] gigetoo: has joined #ruby
[06:21:44] jrp93_2: has joined #ruby
[06:25:21] jnyw: has joined #ruby
[06:26:48] cschneid_: has joined #ruby
[06:35:54] jrp93_3: has joined #ruby
[06:41:54] jrp93: has joined #ruby
[06:44:37] giraffe: has joined #ruby
[06:45:15] tpendragon: has joined #ruby
[06:45:27] xa0s_: has joined #ruby
[06:48:24] LocaMocha: has joined #ruby
[06:54:32] darkhanb_: has joined #ruby
[06:58:14] darkhanb: has joined #ruby
[06:58:44] r3kz: has joined #ruby
[07:00:10] bronson: has joined #ruby
[07:01:03] yeticry: has joined #ruby
[07:04:35] jtdoncas_: has joined #ruby
[07:06:40] cschneid_: has joined #ruby
[07:07:09] mjolnird: has joined #ruby
[07:08:25] elphe: has joined #ruby
[07:08:40] jtdoncas: has joined #ruby
[07:14:40] jrp93: has joined #ruby
[07:41:57] cschneid_: has joined #ruby
[07:55:01] rippa: has joined #ruby
[07:57:18] Immune: has joined #ruby
[08:00:08] MaksimPinigin: has joined #ruby
[08:01:21] bronson: has joined #ruby
[08:02:03] RougeR: has joined #ruby
[08:03:42] zautomata1: has joined #ruby
[08:11:31] clemens3: has joined #ruby
[08:17:33] alfiemax: has joined #ruby
[08:18:31] apparition: has joined #ruby
[08:21:06] tAn: has joined #ruby
[08:23:48] cschneid_: has joined #ruby
[08:31:07] zautomata1: has joined #ruby
[08:34:20] phaul: has joined #ruby
[08:41:12] tAn: has joined #ruby
[08:41:57] tAn: has joined #ruby
[08:42:21] han`: has joined #ruby
[08:42:46] tAn: has joined #ruby
[08:43:31] tAn: has joined #ruby
[08:46:03] alfiemax: has joined #ruby
[08:52:35] oetjenj: has joined #ruby
[08:54:02] alex``: has joined #ruby
[09:01:10] cschneid_: has joined #ruby
[09:02:08] bronson: has joined #ruby
[09:03:10] elphe: has joined #ruby
[09:18:03] blackmesa: has joined #ruby
[09:21:38] conta: has joined #ruby
[09:22:12] marr: has joined #ruby
[09:28:59] MrBismuth: has joined #ruby
[09:33:09] amatas: has joined #ruby
[09:36:20] amatas_: has joined #ruby
[09:37:16] cschneid_: has joined #ruby
[09:39:46] apparition: has joined #ruby
[09:40:31] milardovich: has joined #ruby
[09:42:04] cdg: has joined #ruby
[09:43:17] jnollette: has joined #ruby
[09:43:27] cdg_: has joined #ruby
[09:46:22] Guest79245: has joined #ruby
[09:47:09] belmoussaoui: has joined #ruby
[09:54:25] vondruch: has joined #ruby
[09:59:35] my123: has joined #ruby
[09:59:35] my123: has joined #ruby
[10:00:10] nopolitica: has joined #ruby
[10:02:58] bronson: has joined #ruby
[10:11:11] claudiuinberlin: has joined #ruby
[10:14:35] cschneid_: has joined #ruby
[10:24:56] bkxd: has joined #ruby
[10:27:57] bkxd: has joined #ruby
[10:33:02] nowhere_man: has joined #ruby
[10:34:50] bkxd: has joined #ruby
[10:35:48] bkxd: has joined #ruby
[10:37:26] vondruch: has joined #ruby
[10:40:16] Gnukpd: has joined #ruby
[10:44:19] Mia: has joined #ruby
[10:45:38] mtkd: has joined #ruby
[10:46:54] Ishido: has joined #ruby
[10:47:50] tomphp: has joined #ruby
[10:50:47] govg: has joined #ruby
[10:53:14] cschneid_: has joined #ruby
[10:56:24] jnollette: has joined #ruby
[10:58:55] blackmesa: has joined #ruby
[10:59:10] ams__: has joined #ruby
[11:01:47] tomphp: has joined #ruby
[11:03:46] bronson: has joined #ruby
[11:13:53] tobiasvl: parentheses are the classic example on non-regular language
[11:13:56] tobiasvl: pumping lemma etc
[11:14:05] tobiasvl: ok that was 12 hours ago
[11:21:39] alex``: has joined #ruby
[11:27:49] miskatonic: has joined #ruby
[11:33:17] TomyLobo: has joined #ruby
[11:38:23] cschneid_: has joined #ruby
[11:41:49] mikhael_k33hl: has joined #ruby
[11:43:22] dinfuehr: has joined #ruby
[11:46:14] mikhael_k33hl: is defining a close method for a singleton instance/class the best way to ensure database is closed? e.g. https://gist.github.com/marzdgzmn/e1f7797df4e429cc4b190a14b2e64b26
[11:48:55] Gnukpd: has joined #ruby
[11:49:39] atmosx: has joined #ruby
[11:50:57] foxxx0: has joined #ruby
[11:55:15] elphe: has joined #ruby
[11:55:55] quobo: has joined #ruby
[11:58:54] chat_: has joined #ruby
[11:58:57] cdg: has joined #ruby
[11:59:40] troulouliou_dev: has joined #ruby
[12:01:48] alfiemax: has joined #ruby
[12:03:07] dstrunk: has joined #ruby
[12:04:36] bronson: has joined #ruby
[12:05:49] plexigras: has joined #ruby
[12:06:19] troulouliou_div2: has joined #ruby
[12:08:34] leitz: has joined #ruby
[12:09:43] drewmcmillan: has joined #ruby
[12:18:29] olblak: has joined #ruby
[12:21:09] alfiemax_: has joined #ruby
[12:21:14] DTZUZO: has joined #ruby
[12:27:32] kkirsche: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[12:27:41] zautomata: has joined #ruby
[12:32:14] Riddell: has joined #ruby
[12:46:37] cschneid_: has joined #ruby
[12:50:15] MaksimPinigin: has joined #ruby
[12:53:16] alfiemax_: has joined #ruby
[12:56:52] Ishido: has joined #ruby
[13:00:28] guille-moe: has joined #ruby
[13:05:30] bronson: has joined #ruby
[13:09:51] AJA4350: has joined #ruby
[13:10:11] Jameser: has joined #ruby
[13:11:56] zapata: has joined #ruby
[13:17:38] Megamosaren: has joined #ruby
[13:18:55] kapil___: has joined #ruby
[13:21:36] dionysus69: has joined #ruby
[13:21:45] Jameser: has joined #ruby
[13:24:56] cschneid_: has joined #ruby
[13:28:03] Jameser: has joined #ruby
[13:35:24] cdg: has joined #ruby
[13:39:27] blackmesa: has joined #ruby
[13:44:57] cdg: has joined #ruby
[13:49:23] apeiros_: mikhael_k33hl: the best way is to have the method which opens the db take a block and have the close in its ensure part
[13:49:49] apeiros_: as in: def open; …do stuff to open the db…; yield; ensure; …do stuff to close the db…; end
[13:57:11] vichib: has joined #ruby
[14:06:42] bronson: has joined #ruby
[14:08:07] cschneid_: has joined #ruby
[14:09:06] dstrunk: has joined #ruby
[14:14:27] blackmesa: has joined #ruby
[14:20:53] KevinSjoberg: has joined #ruby
[14:21:49] Anantha: has joined #ruby
[14:21:51] dviola: has joined #ruby
[14:22:03] Anantha: how to create a fuse delay tweeting
[14:22:30] fmcgeough: has joined #ruby
[14:22:33] apeiros: hi Anantha. what's fuse delay tweeting?
[14:22:46] Anantha: making a tweet go delay
[14:22:56] Anantha: i will give u a example
[14:23:04] Anantha: can anyone create one for me
[14:23:20] Anantha: https://github.com/zwliew/fuse-delay-tweeting
[14:25:33] Anantha: pls help m
[14:26:00] apeiros: it seems all code you need is already there? not sure what exactly your problem is…
[14:26:07] Anantha: that is someones
[14:26:15] Anantha: i need to create something like that
[14:26:20] Anantha: and not to copy
[14:28:08] Anantha: can anyone create and give me the code
[14:29:40] mikhael_k33hl: apeiros: isn't that a bit too expensive having to open and close the db for each transaction?
[14:30:07] apeiros: mikhael_k33hl: nothing about that obligates you to open & close for each transaction
[14:30:16] apeiros: you can do multiple transactions while the db is open
[14:31:47] goatish: has joined #ruby
[14:33:28] Alex: has joined #ruby
[14:33:36] eohomegrownapps: has joined #ruby
[14:33:37] mikhael_k33hl: apeiros: so like what's the best practice for it? open and close for each transaction?
[14:33:43] eohomegrownapps: has left #ruby: ()
[14:33:59] apeiros: mikhael_k33hl: as usual, no silver bullets there.
[14:34:14] mikhael_k33hl: apeiros: I'd like to pickyour brain about it though :)
[14:34:26] apeiros: depends a lot on your use case. I think in most cases nothing is wrong to keep your connection open as long as your client lives.
[14:34:50] mikhael_k33hl: apeiros: Yeah, it'll be running as a daemon hehe
[14:39:26] halt: has joined #ruby
[14:40:37] jnollette: has joined #ruby
[14:41:45] blackmesa: has joined #ruby
[14:45:10] cschneid_: has joined #ruby
[14:46:05] pastorinni: has joined #ruby
[14:48:07] mikhael_k33hl: If I have a loop then I want to break from it when a condition is met and return a value how do I do that?
[14:55:56] Exagone313: Hi, is there a (shell) command to return the current "directory" version it will use for installing gems, e.g. "2.4.0" or "2.5.0"?
[14:56:11] apeiros: Exagone313: gem env
[14:56:31] Exagone313: nothing more scriptable?
[14:56:39] apeiros: mikhael_k33hl: depending on your situation, there might be a method which does what you want. else you can always assign the value to a variable.
[14:57:48] apeiros: Exagone313: gem env is yaml, so relatively easy to process
[14:58:00] apeiros: Exagone313: of course you can always look at the code it uses to generate its output
[14:58:09] Exagone313: gem env gemdir or gem env gempath are easier
[14:58:43] Exagone313: not sure about across systems, but for my case I don't need to care
[14:58:47] apeiros: …or check the commands help to find those, I guess :D
[14:59:50] vichib: has joined #ruby
[14:59:53] Exagone313: and in fact it was some kind of XY question, because I just need the result of gem env gempath
[15:00:12] Exagone313: just have to append /bin
[15:00:29] Exagone313: (for each path)
[15:01:07] zigzig: has joined #ruby
[15:04:37] k0mpa: has joined #ruby
[15:07:17] pastorin_: has joined #ruby
[15:07:26] bronson: has joined #ruby
[15:12:37] KevinSjoberg: has joined #ruby
[15:19:00] mtkd: has joined #ruby
[15:27:38] cschneid_: has joined #ruby
[15:34:45] tpendragon: has joined #ruby
[15:38:27] k0mpa: has joined #ruby
[15:41:17] cadillac_: has joined #ruby
[15:41:20] pabs: has joined #ruby
[15:45:07] ua: has joined #ruby
[15:45:57] alfiemax: has joined #ruby
[15:46:23] alfiemax: has joined #ruby
[15:46:54] belmoussaoui: has joined #ruby
[15:48:10] nickjj_: has joined #ruby
[15:49:35] KevinSjoberg: has joined #ruby
[15:51:09] cadillac_: has joined #ruby
[15:51:52] nickjj__: has joined #ruby
[15:59:18] haylon_: has joined #ruby
[16:00:17] cschneid_: has joined #ruby
[16:02:27] pabs: has joined #ruby
[16:05:04] desperek: has joined #ruby
[16:07:34] pabs: has joined #ruby
[16:08:29] bronson: has joined #ruby
[16:22:31] chocoelho: has joined #ruby
[16:25:49] raatiniemi: has joined #ruby
[16:25:59] blackmesa: has joined #ruby
[16:31:09] thejames_: has joined #ruby
[16:36:16] minimalism: has joined #ruby
[16:49:25] drewmcmillan: has joined #ruby
[16:50:06] oleo2: has joined #ruby
[16:54:11] herbert_: has joined #ruby
[16:54:55] chocoelho: has joined #ruby
[16:59:56] Tempesta: has joined #ruby
[17:00:02] Tempesta: has joined #ruby
[17:01:42] jottr: has joined #ruby
[17:08:59] bronson: has joined #ruby
[17:17:58] nicesignal: has joined #ruby
[17:22:08] pastorinni: has joined #ruby
[17:23:20] mtkd: has joined #ruby
[17:23:53] alfiemax: has joined #ruby
[17:24:45] belmoussaoui: has joined #ruby
[17:24:58] Vapez: has joined #ruby
[17:26:37] kiltzman: has joined #ruby
[17:27:30] Ishido: has joined #ruby
[17:28:03] kiltzman: has joined #ruby
[17:37:02] KevinSjoberg: has joined #ruby
[17:40:28] raynold: has joined #ruby
[17:40:31] oleo2: has joined #ruby
[17:40:57] KeyJoo: has joined #ruby
[17:42:34] alfiemax: has joined #ruby
[17:43:53] orbyt_: has joined #ruby
[17:50:44] johnpaul: has joined #ruby
[17:55:17] JusticeFries: has joined #ruby
[17:58:40] conta: has joined #ruby
[18:03:40] drewmcmillan: has joined #ruby
[18:04:39] alfiemax: has joined #ruby
[18:09:57] bronson: has joined #ruby
[18:10:15] jottr: has joined #ruby
[18:14:43] qooupapn: has joined #ruby
[18:15:08] oleo: has joined #ruby
[18:16:27] ur5us: has joined #ruby
[18:18:13] keyjoo_: has joined #ruby
[18:20:49] desperek: dear rubyist, how do i iterate one thing over and over again till the end?
[18:21:45] anisha: has joined #ruby
[18:22:25] Morrolan: has joined #ruby
[18:22:32] wnd: desperek, do you mean something like Enumerable#cycle?
[18:24:31] desperek: wnd, i think not really. let me explain what i am trying to do (this is related to rails <-> ActiveRecord), so i have a of X, and a has many of Xs - b,c,d. Each of them has their Xs and on and on...
[18:25:16] cdg: has joined #ruby
[18:25:19] desperek: let me draw it, also, i have an idea on how do i do it, but the problem is implementation
[18:29:10] desperek: https://0x0.st/sNe1.png
[18:30:41] canton7: and you want to walk that tree, in some order?
[18:31:55] desperek: canton7, yes, from top to the bottom (and note/make array or hash structure to tell which level is it)
[18:32:02] sameerynho: has joined #ruby
[18:32:34] desperek: canton7, i had an idea of creating a hash where key is upper and value is hash of lower Xs
[18:32:46] andrewir1: has joined #ruby
[18:32:53] andrewir1: has left #ruby: ()
[18:33:31] canton7: so you've already got the structure of the tree, and you want to walk it in a breadth-first way?
[18:34:35] nowhere_man: has joined #ruby
[18:34:49] desperek: canton7, yes (but it's based off rails relations, so i have no variable that contains all), whatever the breadth-first means.
[18:36:26] canton7: create a queue. Enqueue on the root of the tree. Then in a loop dequeue an element, process it, and enqueue its children
[18:38:08] desperek: canton7, is my hash thing idea of storing it a good idea?
[18:38:36] canton7: I'm not sure what you were trying to describe - I don't know what 'key' is
[18:38:40] ur5us: has joined #ruby
[18:39:27] desperek: canton7, well, if you have hash, then it'd be {parent => {child => {children => ... }}}
[18:40:33] lytol_: has joined #ruby
[18:41:44] apeiros: desperek: you can either programmatically walk the tree (proc which is called recursively), or you can use one of the ways devised to represent trees in databases
[18:42:01] DrCode: has joined #ruby
[18:42:03] canton7: hmm? surely it would be {parent => {left => ... right => ...}} ? since each item has two children
[18:42:07] apeiros: working in all relational databases e.g. would nested sets
[18:42:09] oetjenj: has joined #ruby
[18:42:13] desperek: canton7, well, then yes
[18:42:24] desperek: apeiros, what do you mean actually?
[18:42:38] apeiros: databases like oracle support recursive structures via a parent id, using the "connect by prior" statement
[18:42:49] canton7: and yeah, I'm not clear on how ActiveRecord ties into this - are you trying to represent the tree in a database?
[18:42:55] canton7: or in memory?
[18:43:08] apeiros: desperek: I actually mean what I said ;-) which part do you have difficulties with?
[18:43:22] desperek: with english
[18:43:33] apeiros: that's not really narrowing it down
[18:44:27] desperek: canton7, well, what i drew is some sort of mine database relations and records
[18:45:38] canton7: can you ask your original question again, with about 4x as many words?
[18:45:45] canton7: what problem are you actually trying to solve, exactly?
[18:45:58] desperek: canton7, I have a database and record in it, right?
[18:46:01] apeiros: desperek: https://gist.github.com/apeiros/71d13b09e01a333071bc3dfdee9f1845 - recursion by proc
[18:46:09] apeiros: note: untested, but should give you the idea
[18:46:11] desperek: This is a single table, and records are reffering eachother in on table
[18:46:41] apeiros: re nested set: nested sets are well documented on wikipedia. I'd just repeat the article, so I suggest you read up on it yourself.
[18:47:02] apeiros: re connect by prior: since that depends on your db, there's no point in discussing it before you revealed what db you use
[18:47:36] canton7: (I had a lot of fun with a closure table once - that worked surprisingly well)
[18:47:44] apeiros: nested sets are *tons* faster than doing the recursive variant, since it will be a single query
[18:47:50] KevinSjoberg: has joined #ruby
[18:47:56] desperek: apeiros, i use mysql (isnt it maintained by oracle?)
[18:48:12] apeiros: yes, mysql is owned by oracle now and IMO that means you should switch to maria ;-p
[18:48:35] apeiros: ok, I don't think mysql has an equivalent. I may be mistaken, though. I haven't used mysql in a decade.
[18:48:52] canton7: I don't think mysql supports recursive structures natively, no
[18:48:56] apeiros: but nested sets will work fine in mysql
[18:49:18] desperek: but refering to wikipedia, nested set is finite
[18:49:23] apeiros: canton7: it might via recursive CTE
[18:50:05] desperek: my set is finite but is limited to infinite
[18:50:21] davic: has left #ruby: ("Leaving")
[18:50:32] apeiros: desperek: oh, you've got cycles in your graph?
[18:50:42] canton7: if so, that wasn't in your drawing :P
[18:50:42] apeiros: so not truly a tree?
[18:51:01] desperek: apeiros, it is a tree, but it's infinite tree that's not predictable at all
[18:51:26] desperek: canton7, well, yes maybe, trying to represent infinite on drawing would be hard imo
[18:51:32] apeiros: a tree, stored in a database, necessarily is finite
[18:51:36] banisterfiend: has joined #ruby
[18:51:44] canton7: desperek, it can't actually have an infinite number of elements -- there's only so much storage in the world
[18:52:05] desperek: canton7, i was speaking theoretically
[18:52:22] desperek: let me tell you what i am really trying to do
[18:52:34] canton7: and as long as you have less than a trillion or so elements, nested set is going to be fine as a data structure...
[18:52:51] ur5us: has joined #ruby
[18:52:55] Zarthus: has joined #ruby
[18:53:06] desperek: So I have posts, and these posts can have replies, or be replies, I want to get all replies for the post canton7 apeiros
[18:53:19] apeiros: yes, that's not infinite.
[18:53:26] apeiros: arbitrarily large
[18:53:31] apeiros: but not infinite
[18:53:40] apeiros: and yes, nested set is fine for this
[18:53:43] canton7: closure table or nested set are both fine
[18:53:56] apeiros: especially since the structure of the tree will change much less often than it is read
[18:54:05] apeiros: ACTION needs to read up on closure table
[18:54:10] apeiros: wp article good?
[18:54:30] canton7: it looks a bit ugly to start, but it's got some really nice properties. Not having to modify the whole thing when you insert being one of them
[18:54:39] canton7: no idea what a good article is I'm afraid - I used them years ago
[18:55:15] desperek: now how do i implement it...
[18:55:25] desperek: and to be fair, i only thought of iterating it
[18:55:39] apeiros: looks like having a join table for the descendants?
[18:55:43] canton7: to be honest, there's probably a plugin to handle hierarchical data using nested set or closure table
[18:55:47] canton7: it's hardly an uncommon issue
[18:55:55] apeiros: desperek: there exist pre-done gems for nested set. probably same for closure table.
[18:56:05] desperek: which to use?
[18:56:08] apeiros: I've used awesome_nested_set in the past
[18:56:26] apeiros: but ask over in #rubyonrails for suggestions
[18:56:34] canton7: apeiros, yeah, there's a huge join table which has individual entries for a parent to each of its children, and a parent to each of its grandchildren, et
[18:56:48] apeiros: canton7: ok. not that ugly IMO
[18:57:22] canton7: well, there's an awful lot of entries in the join table
[18:57:29] canton7: but you can do a lot of operations quite easily using it
[18:57:39] desperek: ewh too hard ;-;
[18:58:06] canton7: what's too hard?
[18:58:29] apeiros: damn, almost said something which would have forced me to ban myself :o)
[18:58:35] Zarthus_: has joined #ruby
[18:58:38] desperek: canton7, trying to understand what are you trying to say actually, let me iterate over it :D
[18:58:49] canton7: ignore the discussion between me and apeiros
[19:00:13] miromanyth: has joined #ruby
[19:02:03] bathtub_shark: has joined #ruby
[19:06:46] desperek: canton7, can i have model as a hash key?
[19:08:02] desperek: that thing is too hard for me
[19:09:08] oleo: has joined #ruby
[19:09:17] ur5us: has joined #ruby
[19:10:41] pastorinni: has joined #ruby
[19:10:45] bronson: has joined #ruby
[19:15:47] Azure: has joined #ruby
[19:21:02] blackmesa: has joined #ruby
[19:22:01] drewmcmillan: has joined #ruby
[19:22:49] drewmcmi_: has joined #ruby
[19:25:49] drewmcmillan: has joined #ruby
[19:25:57] radialneon: has joined #ruby
[19:27:41] ur5us: has joined #ruby
[19:28:52] radialneon: Greetings. I'm a Debian 9 user and I have installed Ruby 2.5.0 with RVM (Debian ships with 2.3.3 and with ruby-build and rbenv I could only upgrade up to 2.4.0).
[19:29:19] cdg: has joined #ruby
[19:29:33] radialneon: Ruby 2.5.0 was compiled from source by the RVM because there were no available binaries for the distro.
[19:30:35] radialneon: Upon issuing a gem install command (with super-user), it fails to locate the 2.5.0 ruby-dev header files.
[19:31:02] alfiemax: has joined #ruby
[19:31:21] JusticeFries: has joined #ruby
[19:31:47] alfiemax_: has joined #ruby
[19:32:00] radialneon: I think the `gem` command is searching in the directory that should contain them if I had installed it with APT, but since I did with RVM, it fails because of that.
[19:32:21] radialneon: Ruby Gems version is 2.7.3
[19:36:17] radialneon: Output of Ruby Installation: https://gist.github.com/thervingi/396d36f9fffae70d97b3e44a36aecf3d
[19:36:26] radialneon: Output of Gem Installation Failure: https://gist.github.com/thervingi/5fdb668eb71bdfd83808c011871eadce
[19:41:42] radialneon: My email: daniel_nora@hotmail.com / Twitter: @iamdanielnora
[19:43:42] Immune: has joined #ruby
[19:46:33] cdg: has joined #ruby
[19:46:49] apeiros: radialneon: rvm is usually a user-install
[19:47:00] apeiros: so no super-user needed. or did you explicitly install it for root?
[19:47:46] blackmesa: has joined #ruby
[19:49:46] pppktz: has joined #ruby
[19:50:38] milardovich: has joined #ruby
[20:00:30] banisterfiend: has joined #ruby
[20:02:24] ule: Hey guys.. if you want to wire someone, which github profile would you appreatiate more? One with tons of simple examples on a good amount of languages, doesn't matter if it has relevant repositories or not, OR would you prefer to see someone having lets say 5 really good repositories (well documented, written etc)
[20:02:41] ule: My point is.. 100 repositories full of bullshit, or just 5 really good repositories?
[20:04:06] TheMoonMaster: ule: 5 good repos, and contributing back bugfixes on other repos
[20:04:15] TheMoonMaster: well documented issues on other repos are also a plus if I see them
[20:04:22] dyyylan: are you hiring someone for their ability to learn multiple things, or someone to write something large and specific
[20:05:08] dyyylan: im not sure github is the best example of someone's work either unless you're hiring someone for OSS
[20:05:15] ule: dyyylan: Some companies don't care about language, as long as the person shows they are able to learn new things and handle well new demands on the company
[20:05:32] dyyylan: rhetorical question :)
[20:05:40] ule: I've been seeing companies being more agnostics againts language recenyly
[20:05:56] quobo: has joined #ruby
[20:05:57] ule: TheMoonMaster: I see
[20:06:22] TheMoonMaster: It's almost a given that someone can jump between most languages if they're competent in at least 1 or 2 others
[20:06:45] ule: TheMoonMaster: that make sense
[20:07:19] ule: TheMoonMaster: I just wiped out all my repos. Made all private and now I'm gonna start selecting better what I should share publicly
[20:07:41] TheMoonMaster: most of mine are public
[20:07:51] TheMoonMaster: even the small meh ones
[20:08:07] TheMoonMaster: good employers often ask for a code sample in addition to scouring your gh
[20:08:30] ule: I had a bunch of trash from assembly to high level frameworks..but I was felling kind of bad recently because of the quality of the code there.. had some trash from 5 years old by the time I didn't know anything
[20:09:02] TheMoonMaster: I have some awful code from many years ago on there
[20:09:07] ule: TheMoonMaster: indeed
[20:09:09] TheMoonMaster: it's bad, but newer repos show how far I've come so I don't mind
[20:09:23] ule: TheMoonMaster: thats a good point as well
[20:09:38] ule: so as long as you have recent code with a good quality
[20:10:16] ule: I still don't know.. for example.. I had some "hello world" style of code I did using Scala maybe 3 years ago
[20:10:30] CJKinni: has joined #ruby
[20:10:44] TheMoonMaster: yeah, I don't have anything like that up on GH
[20:10:49] ule: it is just crap, so If I get a chance to work for a company that has their stack based on Scala, and they see my github
[20:10:57] ule: I'm screwed
[20:11:06] splargle: has joined #ruby
[20:11:11] ule: Even that now I would be able to write a much better code
[20:11:21] fmcgeough: has joined #ruby
[20:11:50] ule: so, I'm trying to avoid chances to lose an opportunity by killing all crappy code and sharing only relevant content
[20:12:05] dyyylan: if you have scala code on there you might want to make sure your profile picture is up to date with your beard shaved off and a t-shirt with no stains on it
[20:12:12] bronson: has joined #ruby
[20:12:50] guille-moe: has joined #ruby
[20:13:31] blackmesa1: has joined #ruby
[20:14:14] ule: dyyylan: out of curiosity, whats your view about ruby devs nowadays?
[20:14:32] ule: hipsters?
[20:14:56] TheMoonMaster: they're people who code
[20:15:08] dyyylan: i dunno, i like ruby but it it seems like im the only one :(
[20:15:15] CJKinni: has joined #ruby
[20:15:32] dyyylan: everyone in my circle seems to look at it like they looked at php a couple years ago
[20:15:42] ule: Agree, I came from PHP to Ruby, and now I really like ruby
[20:16:12] ule: I just don't understand all these trending love for Python and Javascript
[20:16:45] ule: I don't know what's gonna happen in the future.
[20:16:50] dyyylan: i am primarily a (frontend) js dev and i agree with you. i've been working on a side project in node and good lord is it immature
[20:17:15] TheMoonMaster: the "ruby and rails are dead" thing is way overhyped
[20:17:29] TheMoonMaster: tons of new projects are still using rails and tons of projects are still using rails
[20:17:30] dyyylan: wait it isn't dead? i thought everyone moved on to elixir/phoenix already
[20:17:31] ule: node is a joke, you install one lib and get 5GB of trash in your computer
[20:17:44] TheMoonMaster: elixir/phoenix has its own problems
[20:17:50] TheMoonMaster: like the joke that "contexts" are
[20:18:00] CJKinni: has joined #ruby
[20:18:21] Azure: has joined #ruby
[20:18:37] dyyylan: personally i moved back to php for all my own projects because of how amazing laravel is
[20:18:40] ule: I just watched a youtube video saying the top programming languages from Github(2017)
[20:18:53] ule: Surpriselly, we have JS, Python, Java, Ruby, PHP
[20:19:05] ule: but JS is like.. double the side of python
[20:19:06] TheMoonMaster: you couldn't pay me enough to go back to PHP
[20:19:14] TheMoonMaster: just not my jam
[20:19:34] dyyylan: it is quite nice now tbh
[20:19:35] ule: I tried Django some days ago.. and guys.. that crappy thing makes me love Rails even more
[20:19:40] jtdoncas: has joined #ruby
[20:19:49] TheMoonMaster: dyyylan: I don't think so
[20:19:58] ule: I still think Symfony kick Rails ass in some aspects by far
[20:20:19] dyyylan: the problem if you're looking for php jobs is that you will never work with modern php, you'll be fixing some ancient horribly coded mess, or writing wordpress extensions
[20:21:07] dyyylan: the whole reason i started learning rails was because i had to look for a new job and the php searches were scaring me :D
[20:23:16] ule: Im at the point where I stilll don't know if I should invest more in Ruby/Raiils or move to something else
[20:23:51] ule: I mean.. Nowadays, at least here where I live, there are few positions at PHP and Ruby. Probably the same amount of job opportunities
[20:24:03] dyyylan: what do you see the most of?
[20:24:15] ule: Sallary is becoming really well, because at least here, not everybody knows Ruby/Rails so sallary is really high
[20:25:03] ule: so.. its nice to get a decent sasllary, but at the same point I don't want to be without job, going to a search and see only a few opportunities, which is kind of scary
[20:25:40] ule: in other side, there are tons of Java jobs, but again, most of them to deal with legacy code
[20:26:23] ule: so it's the question that I will only gonna be able to get an answer after some years/time of experience
[20:31:37] oleo: has joined #ruby
[20:38:44] baweaver: ACTION wanders in
[20:39:21] nowhere_man: has joined #ruby
[20:42:54] cyberRodent_: has joined #ruby
[20:43:51] ur5us: has joined #ruby
[20:45:25] jeremy04: has joined #ruby
[20:51:18] mistergibson: has joined #ruby
[20:56:49] darkhanb: has joined #ruby
[21:03:57] nertzy: has joined #ruby
[21:04:26] cyberRodent: has joined #ruby
[21:07:00] jottr: has joined #ruby
[21:08:15] obr7_: has joined #ruby
[21:10:12] pastorinni: has joined #ruby
[21:12:59] bronson: has joined #ruby
[21:13:46] obr7_: Good evening, sir. An old deleted Redmine plugin has inserted two permissions into my Redmine: https://github.com/f0y/redmine_private_wiki/blob/f36984dea8eb48443127c4626d5e248108e366a6/init.rb#L30 -- How can I delete them?
[21:15:34] oleo2: has joined #ruby
[21:17:44] r3kz: has joined #ruby
[21:17:45] RougeR: has joined #ruby
[21:20:03] Immune: has joined #ruby
[21:24:12] eightlimbed: has joined #ruby
[21:28:24] mtkd: has joined #ruby
[21:30:30] blackmesa1: has joined #ruby
[21:35:09] sammi`: has joined #ruby
[21:38:08] tAn: has joined #ruby
[21:38:14] al2o3-cr: has joined #ruby
[21:39:08] jxv: has joined #ruby
[21:40:13] jeffreylevesque: has joined #ruby
[21:45:24] alfiemax: has joined #ruby
[21:53:16] justinfaler: has joined #ruby
[22:05:18] nadir: has joined #ruby
[22:05:33] tomphp: has joined #ruby
[22:09:38] NightMonkey: has joined #ruby
[22:09:57] LightStalker: has joined #ruby
[22:10:07] raynold: has joined #ruby
[22:11:20] jtdoncas: has joined #ruby
[22:13:50] bronson: has joined #ruby
[22:21:45] elcontrastador: has joined #ruby
[22:22:23] alfiemax: has joined #ruby
[22:24:58] jtdoncas: has joined #ruby
[22:32:09] nopolitica: has joined #ruby
[22:33:00] belmoussaoui: has joined #ruby
[22:37:24] jottr_: has joined #ruby
[22:38:30] raatiniemi: has joined #ruby
[22:38:34] quobo: has joined #ruby
[22:41:11] jtdoncas: has joined #ruby
[22:41:35] oleo: has joined #ruby
[22:42:13] CustosLimen: has left #ruby: ("Leaving")
[22:42:17] harmaahylje: has joined #ruby
[22:45:57] drewmcmillan: has joined #ruby
[22:45:57] jeffreylevesque: has joined #ruby
[22:50:27] z3uS: has joined #ruby
[22:51:34] plexigras: has joined #ruby
[22:53:53] Cyrus: has joined #ruby
[22:54:13] vyorkin: has joined #ruby
[22:57:30] jtdoncas: has joined #ruby
[22:58:41] nicesignal: has joined #ruby
[23:00:09] alfiemax: has joined #ruby
[23:00:23] ruby[bot]: has joined #ruby
[23:00:24] ChanServ: +o ruby[bot]
[23:02:38] radialneon: has joined #ruby
[23:03:21] harmaahylje: has joined #ruby
[23:09:49] MrBusiness: has joined #ruby
[23:10:28] k0mpa: has joined #ruby
[23:10:46] Azure: has joined #ruby
[23:11:00] jnyw: has joined #ruby
[23:11:09] cdg: has joined #ruby
[23:14:10] mikeiniowa: has joined #ruby
[23:14:39] bronson: has joined #ruby
[23:19:04] drewmcmillan: has joined #ruby
[23:21:46] jottr_: has joined #ruby
[23:29:07] ahrs: has joined #ruby
[23:31:55] oetjenj: has joined #ruby
[23:34:54] jtdoncas: has joined #ruby
[23:37:03] QualityAddict: has joined #ruby
[23:38:02] amatas: has joined #ruby
[23:42:29] mtkd: has joined #ruby
[23:43:26] mtkd: has joined #ruby
[23:45:24] obr7_: Nevermind, just remove the plugin as usual. In my case, the new plugin had created similarly sounding permissions that I thought at first belonged to the old plugin.
[23:49:19] splargle: has joined #ruby
[23:56:20] dviola: has joined #ruby