« Back to channel list

#ruby - 20 March 2019

« Back 1 day Forward 1 day »
[00:04:00] orbyt_: has joined #ruby
[00:24:58] s2013: has joined #ruby
[00:34:46] Renich: has joined #ruby
[00:40:56] Renich: has joined #ruby
[00:49:07] houhoulis: has joined #ruby
[01:01:25] kapil____: has joined #ruby
[01:04:48] Azure: has joined #ruby
[01:14:06] gell5: has joined #ruby
[01:16:21] grilix: has joined #ruby
[01:20:46] m27frogy: has joined #ruby
[01:31:23] iMadper`: has joined #ruby
[01:37:50] arescorpio: has joined #ruby
[01:50:46] Renich: has joined #ruby
[01:55:52] francisco: has joined #ruby
[01:59:25] orbyt_: has joined #ruby
[02:22:12] tdy2: has joined #ruby
[02:29:54] bjpenn: has joined #ruby
[02:35:49] tdy3: has joined #ruby
[02:53:10] dviola: has joined #ruby
[02:59:04] Swyper: has joined #ruby
[03:04:44] iMadper: has joined #ruby
[03:31:44] teej: has joined #ruby
[03:34:35] postmodern: has joined #ruby
[03:41:53] mangold: has joined #ruby
[03:56:08] gigetoo: has joined #ruby
[03:59:49] segy: has joined #ruby
[04:00:34] bambanx: has joined #ruby
[04:10:44] braincrash: has joined #ruby
[04:11:43] sauvin: has joined #ruby
[04:23:08] moei: has joined #ruby
[04:24:31] Nicmavr: has joined #ruby
[04:41:17] mic_mac: has joined #ruby
[04:47:51] mic_mac: has joined #ruby
[04:51:09] Devalo: has joined #ruby
[05:21:58] bjpenn: has joined #ruby
[05:42:02] mic_mac: has left #ruby: ()
[05:42:12] mic_mac: has joined #ruby
[05:45:29] dviola: has joined #ruby
[06:06:06] Renich_: has joined #ruby
[06:06:54] reber: has joined #ruby
[06:08:09] reber: has joined #ruby
[06:10:19] marz_d`ghostman: has joined #ruby
[06:11:37] marz_d`ghostman: I'm working on an old rails project. Regarding this snippet https://gist.github.com/marzdgzmn/6b13cb8147c857d30f58b44c7a25497c Is this a ruby thing or a rails thing? Cause I'm testing it on irb and I'm getting an undefined method error
[06:15:33] laaron: has joined #ruby
[06:19:43] i1nfusion: has joined #ruby
[06:20:23] aufi: has joined #ruby
[06:20:42] skwurl: has joined #ruby
[06:20:56] skwurl: hey fairly active around here?
[06:23:23] hightower2: has joined #ruby
[06:23:29] conta: has joined #ruby
[06:23:45] skwurl: working on sinatra app here. if i use datamapper.auto_migrate!, is it still necessary to use .finalize
[06:29:56] Devalo: has joined #ruby
[06:32:25] nowhere_man: has joined #ruby
[06:39:07] mangold: has joined #ruby
[06:40:51] Devalo: has joined #ruby
[06:46:24] gigetoo: has joined #ruby
[07:04:32] Dbugger: has joined #ruby
[07:10:57] aufi_: has joined #ruby
[07:15:05] r3m: has joined #ruby
[07:22:04] clemens3: has joined #ruby
[07:22:33] hahuang6|: has joined #ruby
[07:30:56] i1nfusion: has joined #ruby
[07:49:35] jmcgnh: has joined #ruby
[07:50:30] voidwatch: has joined #ruby
[07:53:48] _joes_: has joined #ruby
[07:57:48] grr12314: has joined #ruby
[08:00:47] clemens3: has joined #ruby
[08:01:39] andikr: has joined #ruby
[08:05:19] SeepingN: has joined #ruby
[08:08:00] laaron: has joined #ruby
[08:09:12] Noxilex: has joined #ruby
[08:14:20] schleppel: has joined #ruby
[08:20:25] TomyWork: has joined #ruby
[08:30:10] pabs: has joined #ruby
[08:31:39] suukim: has joined #ruby
[08:33:00] stooj: has joined #ruby
[08:39:40] alexeev_: has joined #ruby
[08:42:04] mangold: has joined #ruby
[08:42:20] ur5us: has joined #ruby
[08:47:04] hightower2: has joined #ruby
[08:53:30] segy: has joined #ruby
[09:00:39] ur5us: has joined #ruby
[09:01:05] GodFather: has joined #ruby
[09:12:46] dan64: has joined #ruby
[09:14:54] leftylink: marz_d`ghostman: it doesn't look to me like anything in there is specifically rails
[09:16:21] alem0lars: has joined #ruby
[09:16:49] leftylink: &>> class C; attr_accessor :foo end; a = C.new; b = C.new; b.foo = 17; a.send("foo=", b.send("foo")); a.foo # marz_d`ghostman
[09:16:51] rubydoc: # => 17 (https://carc.in/#/r/6j54)
[09:20:46] nakuku: has joined #ruby
[09:23:38] mikecmpbll: has joined #ruby
[09:25:37] alem0lars_: has joined #ruby
[09:39:19] ellcs: has joined #ruby
[09:43:38] bjpenn: has joined #ruby
[09:48:12] themsay: has joined #ruby
[09:51:41] dar123: has joined #ruby
[09:53:36] deathwishdave: has joined #ruby
[09:55:19] Swyper: has joined #ruby
[09:56:42] gregf_: has joined #ruby
[10:00:26] remi: has joined #ruby
[10:01:28] Swyper: has joined #ruby
[10:07:58] conta: has joined #ruby
[10:14:21] ebbflowgo: has joined #ruby
[10:20:58] _joes_: has joined #ruby
[10:23:19] bjpenn: has joined #ruby
[10:25:01] Swyper: has joined #ruby
[10:25:02] dionysus69: has joined #ruby
[10:31:11] Furai: has joined #ruby
[10:31:24] Swyper: has joined #ruby
[10:41:29] ferr: has joined #ruby
[10:53:04] InfinityFye: has joined #ruby
[10:54:53] mangold: has joined #ruby
[10:58:01] mangold: has joined #ruby
[10:58:09] bjpenn: has joined #ruby
[11:00:28] InfinityFye: has left #ruby: ("Leaving")
[11:01:04] Cork: is it possible to alias a private method?
[11:05:25] phaul: Cork: https://gist.github.com/phaul/a9f60c44c381f62a21e1c44af51e250d
[11:09:08] conta: has joined #ruby
[11:16:33] Swyper: has joined #ruby
[11:33:02] fercell: has joined #ruby
[11:34:38] bjpenn: has joined #ruby
[11:34:47] fercell: has left #ruby: ()
[11:37:52] laaron: has joined #ruby
[11:42:32] _joes_: has joined #ruby
[11:45:21] dionysus69: any ideas how BigDecimal "0.00626962" can become "0.006269620000000001" stored in rails pg decimal column?
[11:52:02] ldnunes: has joined #ruby
[11:54:20] themsay: has joined #ruby
[11:58:29] hightower2: has joined #ruby
[11:59:53] laaron: has joined #ruby
[12:03:54] Cork: dionysus69: most likely cause of floating point in the decimal column
[12:05:20] Cork: phaul: hmm interesting... i get method undefined when i try
[12:05:26] Cork: ACTION digs deeper...
[12:06:36] _joes_: has joined #ruby
[12:07:04] alexeev: has joined #ruby
[12:09:03] AJA4350: has joined #ruby
[12:11:14] bjpenn: has joined #ruby
[12:35:01] alexeev: has joined #ruby
[12:44:29] alexeev: has joined #ruby
[12:44:32] bjpenn: has joined #ruby
[12:46:00] Azure: has joined #ruby
[12:51:31] dviola: has joined #ruby
[12:54:02] Swyper: has joined #ruby
[12:54:35] griffindy: has joined #ruby
[12:55:42] bmurt: has joined #ruby
[13:02:18] noark9: has joined #ruby
[13:03:46] ubuntuisloved: has joined #ruby
[13:08:55] _joes_: has joined #ruby
[13:15:42] ubuntuisloved: has left #ruby: ("Textual IRC Client: www.textualapp.com")
[13:16:35] bjpenn: has joined #ruby
[13:22:25] lucasb: has joined #ruby
[13:38:39] griffindy: has joined #ruby
[13:47:22] dionysus69: Cork: meaning? I didn't really understand what is it caused by
[13:47:40] alexeev: has joined #ruby
[13:47:52] Cork: dionysus69: the database most likely stores the data as a floating point
[13:47:58] Cork: causing floating point errors
[13:48:37] dionysus69: ahh, I thought BigDecimal converted the input to string by default
[13:48:59] dionysus69: I didnt know BigDecimal(0.1) and BigDecimal("0.1") were different
[13:49:23] Cork: dionysus69: it does, (kinda) but it isn't bigdecimal cuasing the erorr
[13:49:38] Cork: databases has floating points too
[13:49:58] Cork: so depending on the column type you use, and the accuracy of that type you can get errors from there too
[13:50:03] dionysus69: just checked with factory bot just now, if I save dec as a string, it doesn't get that trailing dust
[13:50:18] dionysus69: the type is decimal, scale is 16
[13:50:32] dionysus69: precision 32
[13:51:48] Cork: dionysus69: you might want to have a read at this https://dev.mysql.com/doc/refman/5.7/en/precision-math-decimal-characteristics.html
[13:51:48] bjpenn: has joined #ruby
[13:52:01] Cork: posgress has a similar page if you use that
[13:52:17] dionysus69: ok I ll find pg one, thanks!
[13:53:21] Emmanuel_Chanel: has joined #ruby
[13:53:41] dionysus69: oh, decimal is name in rails, pg col type turns out is numeric(32,16)
[14:01:00] deathwishdave: has joined #ruby
[14:01:20] segy: has joined #ruby
[14:05:06] dviola: has joined #ruby
[14:06:03] alexeev: Is BigDecimal(0.1) and BigDecimal("0.1") are different? Why?
[14:06:17] NeilCarvalho: has joined #ruby
[14:06:36] Cork: 0.1 is a floating value in ruby
[14:06:41] Cork: so you get the floating point error
[14:06:46] Cork: "0.1" isn't
[14:07:16] Cork: so ya, you never want a dot value that isn't a tring given to BigDecimal
[14:08:36] mangold: has joined #ruby
[14:09:13] t0xik: has joined #ruby
[14:12:04] hightower2: has joined #ruby
[14:14:01] ferr: has joined #ruby
[14:23:02] reber: has joined #ruby
[14:24:09] waheedi: has joined #ruby
[14:24:24] conta: has joined #ruby
[14:26:16] Swyper: has joined #ruby
[14:29:38] bjpenn: has joined #ruby
[14:31:43] dviola: has joined #ruby
[14:37:51] RedSnarf: has joined #ruby
[14:40:46] cyberarm: has joined #ruby
[14:50:52] brool: has joined #ruby
[14:53:18] rippa: has joined #ruby
[14:54:37] mangold: has joined #ruby
[14:55:53] Swyper: has joined #ruby
[15:02:25] Swyper: has joined #ruby
[15:04:18] bjpenn: has joined #ruby
[15:04:46] Nicmavr: has joined #ruby
[15:04:56] Rapture: has joined #ruby
[15:05:09] hightower2: has joined #ruby
[15:05:18] grilix: has joined #ruby
[15:16:00] grilix: has joined #ruby
[15:19:59] sergio_101: has joined #ruby
[15:21:53] sergio_101: has left #ruby: ()
[15:22:57] polishdub: has joined #ruby
[15:28:13] cyberarm: has joined #ruby
[15:31:20] Renich: has joined #ruby
[15:37:08] dar123: has joined #ruby
[15:37:49] za1b1tsu: has joined #ruby
[15:39:14] dviola: has joined #ruby
[15:42:38] Swyper: has joined #ruby
[15:43:41] bjpenn: has joined #ruby
[15:53:02] nowhere_man: has joined #ruby
[15:53:53] al2o3-cr: &fake Faker::Beer.brand
[15:53:57] alem0lars: has joined #ruby
[15:54:09] al2o3-cr: hmmm, tasty!
[15:55:47] stooj: has joined #ruby
[15:59:31] iNs: has joined #ruby
[16:00:34] Blaguvest: has joined #ruby
[16:04:16] deathwishdave: has joined #ruby
[16:06:53] dviola: has joined #ruby
[16:06:55] orbyt_: has joined #ruby
[16:09:12] Inline: has joined #ruby
[16:11:22] Azure: has joined #ruby
[16:18:48] Dbugger: has joined #ruby
[16:20:04] Renich: has joined #ruby
[16:26:22] Swyper: has joined #ruby
[16:27:04] llua: has joined #ruby
[16:27:24] keden: &fake Faker::Beer.brand
[16:27:24] rubydoc: Stella Artois
[16:28:34] _joes_: has joined #ruby
[16:31:05] Swyper: has joined #ruby
[16:35:41] polishdub: has joined #ruby
[16:43:57] Fr4n: has joined #ruby
[16:45:22] Swyper: has joined #ruby
[16:51:33] i1nfusion: has joined #ruby
[16:53:11] ua: has joined #ruby
[16:56:17] CrazyEddy: has joined #ruby
[16:56:56] za1b1tsu: has joined #ruby
[16:58:19] [Butch]: has joined #ruby
[17:01:47] dinfuehr_: has joined #ruby
[17:09:34] grilix: has joined #ruby
[17:13:43] dinfuehr: has joined #ruby
[17:17:46] joast: has joined #ruby
[17:18:06] Swyper: has joined #ruby
[17:23:10] deathwishdave: has joined #ruby
[17:25:46] bjpenn: has joined #ruby
[17:28:26] Swyper: has joined #ruby
[17:28:44] Renich_: has joined #ruby
[17:33:32] jottr: has joined #ruby
[17:38:17] dinfuehr_: has joined #ruby
[17:39:18] deathwishdave: has joined #ruby
[17:42:57] Swyper: has joined #ruby
[17:48:30] Noxilex: has joined #ruby
[17:54:27] insu: has joined #ruby
[17:57:40] hightower2: has joined #ruby
[17:58:29] Devalo: has joined #ruby
[17:59:35] Swyper: has joined #ruby
[18:05:01] Tempesta: has joined #ruby
[18:12:30] NeilCarvalho: has joined #ruby
[18:13:16] ravenous_: has joined #ruby
[18:16:08] Renich_: has joined #ruby
[18:16:27] zachk: has joined #ruby
[18:18:05] zachk: has joined #ruby
[18:19:36] zachk: has joined #ruby
[18:20:07] Azure: has joined #ruby
[18:20:08] zachk: has joined #ruby
[18:20:30] zachk: has joined #ruby
[18:21:15] deathwishdave: has joined #ruby
[18:26:24] gix: has joined #ruby
[18:27:16] orbyt_: has joined #ruby
[18:29:33] Swyper: has joined #ruby
[18:33:03] bmurt: has joined #ruby
[18:33:11] manveru: has joined #ruby
[18:33:32] BuildTheRobots: has joined #ruby
[18:33:36] dar123: has joined #ruby
[18:34:19] G: has joined #ruby
[18:34:35] zipkid: has joined #ruby
[18:34:37] mikecmpbll: has joined #ruby
[18:35:01] jhill: has joined #ruby
[18:35:21] teej: has joined #ruby
[18:37:52] dumptruckman: has joined #ruby
[18:39:26] Fire-Dragon-DoL: has joined #ruby
[18:40:08] SeepingN: has joined #ruby
[18:44:01] za1b1tsu: has joined #ruby
[18:45:59] strmpnk: has joined #ruby
[18:53:33] c0dec: has joined #ruby
[18:57:19] cow[moo]: has joined #ruby
[18:59:13] postmodern: has joined #ruby
[19:07:24] kapil____: has joined #ruby
[19:08:54] englishm_: has joined #ruby
[19:20:23] themsay: has joined #ruby
[19:23:36] r3m: has joined #ruby
[19:31:38] cd: has joined #ruby
[19:32:04] waheedi: has joined #ruby
[19:53:21] IGnorAND: Hi, I'm trying to parse a html page with nokogiri. I want an array where x is 3 - 23 and only the uneven numbers. @parse_page.css(".moduletable_rates").css(".rate-info").children[1].children[x].children[5].inner_text
[19:55:12] waheedi: IGnorAND: is that one question or two?
[19:55:40] IGnorAND: waheedi: My question is how do I get the array
[19:56:07] IGnorAND: map doesn't work since not all elements have a children[5]
[19:56:26] phaul: &>> ((3..23) % 2).to_a
[19:56:30] rubydoc: # => [3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23] (https://carc.in/#/r/6j7s)
[19:56:32] Fridtjof: has joined #ruby
[19:56:46] tAn: has joined #ruby
[19:57:55] phaul: &>> 3.step(to:23, by: 2).to_a
[19:57:56] rubydoc: # => [3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23] (https://carc.in/#/r/6j7u)
[19:58:04] havenwood: IGnorAND: children[3..23]
[19:58:17] havenwood: oh, uneven (odd), gotcha
[19:59:49] IGnorAND: phaul: I was able to do (3..23).step(2).to_a
[19:59:55] Devalo: has joined #ruby
[20:00:01] IGnorAND: phaul: but I have no clue how to place that in stead of the x
[20:00:39] havenwood: IGnorAND: how about mapping?
[20:00:42] havenwood: IGnorAND: #flat_map
[20:07:59] Inline: has joined #ruby
[20:08:04] IGnorAND: havenwood: it still seems to take all numbers
[20:08:18] IGnorAND: I'll go read the doc a bit
[20:09:21] Devalo: has joined #ruby
[20:11:14] leftylink: wasn't sure what was meant by "it" in "it still seems to take all numbers", so if you didn't find an answer from the docs, maybe some example code
[20:13:32] ur5us: has joined #ruby
[20:15:21] hahuang65_: has joined #ruby
[20:18:24] rindolf: has joined #ruby
[20:18:49] al2o3-cr: hi, rindolf :)
[20:19:02] rindolf: al2o3-cr: sup?
[20:19:15] al2o3-cr: all good brotha!
[20:21:44] al2o3-cr: IGnorAND: is inner_text supposed to be inner_html?
[20:22:08] IGnorAND: al2o3-cr: don't think it matters
[20:23:22] al2o3-cr: nope, it doesn't
[20:23:39] hahuang65: has joined #ruby
[20:23:56] IGnorAND: leftylink: the map function goes through every element of the array. I want @parse_page.css(".moduletable_rates").css(".rate-info").children[1].children[3].children[3].inner_text, @parse_page.css(".moduletable_rates").css(".rate-info").children[1].children[5].children[3].inner_text, @parse_page.css(".moduletable_rates").css(".rate-info").children[1].children[7].children[3].inner_text etc
[20:25:14] code_zombie: has joined #ruby
[20:25:17] tAn: has joined #ruby
[20:25:21] al2o3-cr: IGnorAND: then iterate over it; (3..23).flat_map { |x| @parse_page.css(".moduletable_rates").css(".rate-info").children[1].children[x].children[3].inner_text }
[20:25:49] al2o3-cr: (2..23).step(2) ...
[20:26:43] anothertorusr: has joined #ruby
[20:31:01] al2o3-cr: IGnorAND: ?
[20:33:25] phaul: &>> ((3 .. 7) % 2).map { |x| "some.complicated.stuff[#{x}]" }.join(' ')
[20:35:34] m27frogy: has joined #ruby
[20:35:35] al2o3-cr: phaul: what happened?
[20:36:01] leftylink: *waves* what happened? / nothing link, we were just about to have a feast
[20:37:26] al2o3-cr: &fake Faker::Beer.brand
[20:37:38] Swyper: has joined #ruby
[20:37:46] al2o3-cr: oh, pinged timed out :(
[20:37:46] phaul: kernel panic
[20:38:03] phaul: openbsd. don't ask
[20:39:56] al2o3-cr: phaul: we pray for you :p
[20:40:57] al2o3-cr: i sing a little prayer for phaul lol
[20:40:58] m27frogy: has joined #ruby
[20:41:22] rubydoc: has joined #ruby
[20:41:56] phaul: &fake Faker::Beer.brand
[20:42:00] rubydoc: Pabst Blue Ribbon
[20:42:06] phaul: that will do
[20:45:59] al2o3-cr: &fake Faker::Beer.brand
[20:46:09] al2o3-cr: that stuff is shit!
[20:46:18] phaul: never heard of it
[20:46:39] phaul: ah irish lager
[20:47:14] rindolf: phaul: wow
[20:47:33] mikecmpbll: has joined #ruby
[20:47:35] phaul: &>> ((3 .. 7) % 2).map { |x| "some.complicated.stuff[#{x}]" }.join(' ') # IGnorAND
[20:47:36] rubydoc: # => "some.complicated.stuff[3] some.complicated.stuff[5] some.complicated.stuff[7]" (https://carc.in/#/r/6j8j)
[20:49:16] al2o3-cr: phaul: i think it's brewed by guinness
[20:53:15] cthulchu: has joined #ruby
[20:58:34] noboruma_: has joined #ruby
[21:00:22] anothertorusr: has joined #ruby
[21:00:29] al2o3-cr: &fake Faker::Crypto.sha2
[21:00:29] rubydoc: parser error at position 0 around `f'
[21:00:40] al2o3-cr: &fake Faker::Crypto.md5
[21:00:40] rubydoc: parser error at position 0 around `f'
[21:02:17] phaul: number in method name. We had the exact same bug with class names.
[21:02:23] phaul: ACTION sigh
[21:02:37] rubydoc: parser error at position 0 around `r'
[21:11:14] Devalo: has joined #ruby
[21:13:06] zachk: has joined #ruby
[21:14:38] rubydoc: has joined #ruby
[21:15:13] phaul: &fake Faker::Crypto.sha2
[21:15:13] rubydoc: No suitable faker found. The list is at https://github.com/stympy/faker with the restriction that I need Classname.methodname.
[21:15:22] phaul: &fake Faker::Crypto.md5
[21:15:22] rubydoc: 02a7e855dd279b6d7b371fd6c7d28111
[21:15:58] IGnorAND: al2o3-cr: ow, I didnt think of that. (3..23).step(2).map { |x| @parse_page.css(".moduletable_rates").css(".rate-info").children[1].children[x].children[1].inner_text } works amazing
[21:16:20] IGnorAND: al2o3-cr: I was trying to place the (3..23).step(2) after map {}
[21:21:22] m27frogy: has joined #ruby
[21:21:31] TvL2386: has joined #ruby
[21:28:04] deathwishdave: has joined #ruby
[21:30:48] al2o3-cr: &fake Faker::WorldCup.team
[21:30:52] rubydoc: Saudi Arabia
[21:31:55] al2o3-cr: phaul: it can't do method calls can it?
[21:34:30] phaul: no, https://github.com/phaul/yarr/blob/7c04e83a6f75ce93d99e535179aca20794b72aad/lib/yarr/command/fake.rb#L18
[21:35:20] ivanskie: has joined #ruby
[21:35:21] phaul: hopefully I haven't put in any security holes with this. class_name, method_name are just strings from the parser
[21:36:49] al2o3-cr: phaul: security holes?
[21:37:15] waheedi: has joined #ruby
[21:37:16] phaul: like inject `rm -rf /`
[21:37:29] al2o3-cr: phaul: nah, bro.
[21:38:42] phaul: one has to be cautious ...
[21:38:59] al2o3-cr: seriously, nothing to be worried about
[21:43:02] al2o3-cr: phaul: that won't do shit anyway these days.
[21:44:55] Devalo: has joined #ruby
[21:56:58] laaron: has joined #ruby
[21:57:21] phaul: &>> Class.send("x `ls -l` y")
[21:57:22] rubydoc: stderr: -e:2:in `<main>': undefined method `x `ls -l` y' for Class:Class (NoMethodError) (https://carc.in/#/r/6j93)
[22:01:39] laaron: has joined #ruby
[22:04:49] Brainium: has joined #ruby
[22:07:22] laaron: has joined #ruby
[22:08:12] bambanx: has joined #ruby
[22:11:19] anothertorusr: has joined #ruby
[22:15:20] laaron: has joined #ruby
[22:21:47] Eiam: has joined #ruby
[22:22:34] j6p: has joined #ruby
[22:23:38] duderonomy: has joined #ruby
[22:31:34] uplime: this might be a silly question, but if your app needs to create a system user, is there a more ruby/rails way than just sticking a shellscript in the project root and having that user run it beforehand?
[22:40:10] al2o3-cr: uplime: just run as root then drop privs?
[22:40:32] uplime: al2o3-cr: what does that have to do with creating the user?
[22:41:05] al2o3-cr: create user first
[22:41:54] al2o3-cr: uplime: why would you create a user in a script?
[22:41:54] uplime: yes, thats what i asked
[22:42:07] uplime: because its a user for the app, not a normal user
[22:42:11] dviola: has joined #ruby
[22:42:26] zenspider: uplime: WHY would you have it IN the app?
[22:42:41] uplime: zenspider: i'm asking where i should have it
[22:42:51] al2o3-cr: uplime: create it first.
[22:43:14] zenspider: I wouldn't provide ANYTHING. Just say it is a requirement. Let them decide what is right for their OS
[22:43:14] uplime: create the user before creating the user?
[22:43:52] zenspider: otherwise you're asking for trouble, because every OS is just slightly different
[22:43:55] al2o3-cr: sorry, uplime
[22:44:09] uplime: i only need to support posix
[22:44:14] uplime: so its just adduser
[22:44:17] uplime: np al2o3-cr
[22:44:34] uplime: erm, not adduser, i'd have to look up the command
[22:45:11] zenspider: uplime: every time a nerd says "just", they're massively underestimated something
[22:46:22] al2o3-cr: just add two sugars to that coffee
[22:47:32] zenspider: eg... OSX is posix. There is no useradd.
[22:47:51] zenspider: guaranteed these aren't all the same for adding users: AIX, HP-UX, IRIX, EulerOS, macOS, Solaris, Tru64, UnixWare, QNX Neutrino, Inspur K-UX, INTEGRITY
[22:48:34] zenspider: also interesting that linux is only listed as mostly posix... yet I think most ppl think of it is a fully
[22:48:58] griffindy: has joined #ruby
[22:49:09] uplime: i know linux isn't POSIX complete, also you are correct, i thought useradd was indeed posix
[22:49:14] uplime: guess im mistaken
[22:49:27] uplime: i'll leave it up to the packagers then
[22:50:40] al2o3-cr: uplime: maybe, there isn't then
[22:51:13] al2o3-cr: doesn't actually looks like there is.
[22:51:20] uplime: yeah, i was sorely mistaken
[22:51:22] uplime: glad i asked first
[22:52:00] al2o3-cr: yeah, got me too that one.
[23:12:13] NeilCarvalho: has joined #ruby
[23:13:50] miah: there are no user management tools in posix afaik. https://pubs.opengroup.org/onlinepubs/9699919799/utilities/contents.html
[23:15:41] miah: newgrp is in there. maybe there is another list
[23:15:46] Renich: has joined #ruby
[23:16:54] laaron: has joined #ruby
[23:17:54] miah: amazing how varied it is http://bhami.com/rosetta.html
[23:19:42] al2o3-cr: newgrp is posix?
[23:21:21] D9: has joined #ruby
[23:21:35] miah: ya im confused at that too lol
[23:23:20] zenspider: yeah. it is a mess.
[23:23:39] zenspider: just never try to automate it... otherwise you reinvent puppet/chef/ansible/hell
[23:24:04] miah: been there done that (and i work for chef)
[23:24:35] miah: mostly im confused that there is no su or equivilent in there, but we have newgrp.
[23:25:36] miah: possibly related to how people used the systems previously compared to now, more group usage probably. i dont see very complex groups anymore
[23:26:03] miah: but ive never really "used" newgrp either, just good group permissions
[23:33:43] hphhphhphhphhphh: has joined #ruby
[23:34:26] t0x: has joined #ruby
[23:45:35] dar123: has joined #ruby
[23:54:28] dinfuehr: has joined #ruby