« Back to channel list

#ruby - 19 November 2018

« Back 1 day
[00:00:54] jhass: has joined #ruby
[00:08:38] howdoicomputer: has joined #ruby
[00:35:57] jcalla: has joined #ruby
[00:38:16] cd: has joined #ruby
[00:51:59] queip: has joined #ruby
[00:58:37] asphyxia: has joined #ruby
[01:02:15] nchambers: has joined #ruby
[01:10:59] chouhoulis: has joined #ruby
[01:21:13] sgen: has joined #ruby
[01:40:13] chihhsin: has joined #ruby
[01:40:57] Guest24308: has joined #ruby
[01:47:04] queip: has joined #ruby
[02:08:55] Freshnuts: has joined #ruby
[02:10:30] Freshnuts: has joined #ruby
[02:21:01] Exuma: has joined #ruby
[02:27:47] jrhorn424: has joined #ruby
[02:29:15] jrhorn424: has joined #ruby
[02:50:05] esrse: has joined #ruby
[02:52:12] queip: has joined #ruby
[03:00:23] jrhorn424: has joined #ruby
[03:02:30] bmurt: has joined #ruby
[03:05:29] dinfuehr: has joined #ruby
[03:06:16] nertzy: has joined #ruby
[03:07:18] Fusl: has joined #ruby
[03:22:09] themsay: has joined #ruby
[03:29:28] elphe: has joined #ruby
[03:35:09] Nicmavr: has joined #ruby
[04:06:15] ivanskie: has joined #ruby
[04:10:04] braincrash: has joined #ruby
[04:14:10] ivanskie: has joined #ruby
[04:19:36] arescorpio: has joined #ruby
[04:21:39] bairyn: has joined #ruby
[04:25:47] MoritaShinobu: has joined #ruby
[04:38:03] nima_m: has joined #ruby
[04:52:00] asphyxia: has joined #ruby
[05:04:56] ChatCodingLab: has joined #ruby
[05:06:13] cliluw: has joined #ruby
[05:06:28] nima_m: has joined #ruby
[05:17:46] nima_m: has joined #ruby
[05:21:55] nicesignal: has joined #ruby
[05:33:12] tdy: has joined #ruby
[05:53:49] rawrg: has joined #ruby
[06:03:02] marz_d`ghostman: has joined #ruby
[06:04:02] ChatCodingLab: has joined #ruby
[06:09:09] nima_m: has joined #ruby
[06:19:36] nima_m: has joined #ruby
[06:33:28] jaddison: has joined #ruby
[06:36:31] nima_m: has joined #ruby
[06:39:43] jrhorn424: has joined #ruby
[06:41:26] aufi: has joined #ruby
[06:44:49] luhn: has joined #ruby
[06:53:56] conta: has joined #ruby
[06:54:39] jrhorn424: has joined #ruby
[07:09:37] elphe: has joined #ruby
[07:10:09] marmotini_: has joined #ruby
[07:11:48] marmotini_: has joined #ruby
[07:12:01] roshanavand: has joined #ruby
[07:14:04] marmotini_: has joined #ruby
[07:15:19] marmotini_: has joined #ruby
[07:16:48] marmotini_: has joined #ruby
[07:17:24] dionysus69: has joined #ruby
[07:18:20] marmotini_: has joined #ruby
[07:20:29] marz_d`ghostman: I'm trying to test the format of logger, is there like a test specific stream I can use instead of a file?
[07:22:18] marmotini_: has joined #ruby
[07:28:51] roshanavand: has joined #ruby
[07:40:03] lomex: has joined #ruby
[07:40:22] marmotini_: has joined #ruby
[07:51:44] queip: has joined #ruby
[07:59:06] DTZUZO: has joined #ruby
[08:05:09] whysthatso: has joined #ruby
[08:06:33] marmotini_: has joined #ruby
[08:08:39] JamieD: has joined #ruby
[08:12:20] clemens3: has joined #ruby
[08:14:09] jcarl43: has joined #ruby
[08:16:21] marmotini_: has joined #ruby
[08:17:51] marmotini_: has joined #ruby
[08:22:30] venmx: has joined #ruby
[08:23:41] burgestrand: has joined #ruby
[08:25:36] whysthatso: has joined #ruby
[08:31:40] elphe: has joined #ruby
[08:33:12] phaul: has joined #ruby
[08:50:24] marmotini_: has joined #ruby
[08:51:50] vondruch: has joined #ruby
[08:52:21] queip: has joined #ruby
[08:53:19] gix: has joined #ruby
[08:56:05] JamieD: has joined #ruby
[08:57:47] lomex: has joined #ruby
[09:01:11] elphe: has joined #ruby
[09:03:08] apparition: has joined #ruby
[09:09:57] roshanavand: has joined #ruby
[09:14:37] roshanavand: has joined #ruby
[09:18:41] themsay: has joined #ruby
[09:21:55] themsay: has joined #ruby
[09:24:09] sameerynho: has joined #ruby
[09:26:53] themsay: has joined #ruby
[09:28:28] keden: has joined #ruby
[09:35:33] marmotini_: has joined #ruby
[09:36:08] Guest24308: has joined #ruby
[09:38:40] pskosinski: has joined #ruby
[09:39:32] jmcgnh: has joined #ruby
[09:43:05] BH23: has joined #ruby
[09:46:32] leah2: has joined #ruby
[09:49:58] queip: has joined #ruby
[09:52:34] themsay: has joined #ruby
[09:55:50] aufi: has joined #ruby
[09:56:46] lomex: has joined #ruby
[09:57:28] roshanavand: has joined #ruby
[10:01:04] dhollin3: has joined #ruby
[10:01:20] venmx: has joined #ruby
[10:03:27] BH23: has joined #ruby
[10:11:54] roshanavand: has joined #ruby
[10:20:31] roshanavand: has joined #ruby
[10:26:41] za1b1tsu: has joined #ruby
[10:34:52] Iambchop: marz_d`ghostman: not "test specific", but look at StringIO?
[10:35:52] c0ncealed4: has joined #ruby
[10:37:40] yohji: has joined #ruby
[10:37:59] dviola: has joined #ruby
[10:42:19] lomex: has joined #ruby
[10:44:43] roshanavand: has joined #ruby
[10:53:21] themsay: has joined #ruby
[10:53:34] queip: has joined #ruby
[10:58:45] jordila: has joined #ruby
[11:12:23] nowhere_man: has joined #ruby
[11:15:10] GodFather: has joined #ruby
[11:16:18] jrhorn424: has joined #ruby
[11:24:14] marmotini_: has joined #ruby
[11:39:20] Paraxial: has joined #ruby
[11:40:40] AJA4350: has joined #ruby
[11:41:48] Spitfire: has joined #ruby
[11:43:15] nertzy: has joined #ruby
[11:43:17] roshanavand: has joined #ruby
[11:45:53] raggi: has joined #ruby
[11:48:05] aufi: has joined #ruby
[11:50:06] roshanavand: has joined #ruby
[12:14:52] Danielss89: has joined #ruby
[12:17:37] thinkpad: has joined #ruby
[12:18:38] marmotini_: has joined #ruby
[12:26:46] Guest61808: has joined #ruby
[12:35:18] LinuxKnight: has joined #ruby
[12:37:01] roshanavand: has joined #ruby
[12:37:02] ur5us: has joined #ruby
[12:40:16] Guest61808: has joined #ruby
[12:42:57] yohji: has joined #ruby
[12:46:33] gregf_: has joined #ruby
[12:53:47] queip: has joined #ruby
[12:58:16] roshanavand: has joined #ruby
[13:00:36] keden: has joined #ruby
[13:00:46] JamieD: has joined #ruby
[13:01:01] marz_d`ghostman: Iambchop: thanks I'll look into it
[13:06:39] nowhere_man: has joined #ruby
[13:07:50] hiroaki: has joined #ruby
[13:08:00] GodFather: has joined #ruby
[13:09:28] TheBloke: has joined #ruby
[13:17:31] vondruch_: has joined #ruby
[13:20:51] roshanavand: has joined #ruby
[13:29:45] bmurt: has joined #ruby
[13:37:16] bmurt: has joined #ruby
[13:38:08] maximjaffe: has joined #ruby
[13:42:43] keden: has joined #ruby
[13:43:15] crankhar1er: has joined #ruby
[13:50:14] vonfry: has joined #ruby
[13:59:49] vondruch_: has joined #ruby
[14:03:26] jcalla: has joined #ruby
[14:04:20] roshanavand: has joined #ruby
[14:04:59] alan_w: has joined #ruby
[14:05:39] Paraxial: has joined #ruby
[14:11:13] discopatrick: has joined #ruby
[14:15:29] Nicmavr: has joined #ruby
[14:17:31] crankhar1er: has joined #ruby
[14:22:45] awkwords: has joined #ruby
[14:31:04] paulscoder: has joined #ruby
[14:31:06] donofrio: has joined #ruby
[14:39:59] jsc: has joined #ruby
[14:48:21] RougeR: has joined #ruby
[14:48:38] RougeR: hello, has anyone got experience running resque/resque scheduler with docker
[14:52:36] rippa: has joined #ruby
[15:00:26] daemonwrangler: has joined #ruby
[15:01:46] Guest61808: has joined #ruby
[15:01:57] arup_r: has joined #ruby
[15:12:42] Rapture: has joined #ruby
[15:15:35] keden: has joined #ruby
[15:17:38] cmckee: has joined #ruby
[15:21:54] troulouliou_div2: has joined #ruby
[15:22:46] vondruch: has joined #ruby
[15:23:22] kaleido: has joined #ruby
[15:26:50] akaiiro: has joined #ruby
[15:28:09] keden: has joined #ruby
[15:29:04] GodFather: has joined #ruby
[15:30:15] arup_r: has joined #ruby
[15:30:37] Inline: has joined #ruby
[15:34:06] Inside: has joined #ruby
[15:38:55] tuor: has joined #ruby
[15:38:59] dviola: has joined #ruby
[15:40:22] akaiiro: has joined #ruby
[15:53:39] queip: has joined #ruby
[15:56:45] dinfuehr: has joined #ruby
[15:57:00] status402: has joined #ruby
[16:02:10] akosednar: has joined #ruby
[16:05:31] ujjain: has joined #ruby
[16:08:07] saltsa: has joined #ruby
[16:11:14] desperek: has joined #ruby
[16:17:35] aufi: has joined #ruby
[16:23:24] mostlybadfly: has joined #ruby
[16:27:43] Exuma: has joined #ruby
[16:28:35] aufi: has joined #ruby
[16:38:37] elphe: has joined #ruby
[16:42:14] jetchisel: has joined #ruby
[16:44:33] NL3limin4t0r: has joined #ruby
[16:47:52] whysthatso: has joined #ruby
[16:51:11] queip: has joined #ruby
[16:52:43] lomex: has joined #ruby
[16:53:19] jaddison: has joined #ruby
[16:53:28] cow[moo]: has joined #ruby
[16:56:12] nowhere_man: has joined #ruby
[16:57:32] Guest61808: has joined #ruby
[17:02:58] Guest61808: has joined #ruby
[17:03:28] nchambers: has joined #ruby
[17:12:57] Aces1up: has joined #ruby
[17:13:18] Aces1up: just asking here this ROR question as you guys seem more active
[17:13:19] Aces1up: hey all i have been searching around but can not find an answer to this. when i save a datetime to column in rails I know it saves it as utc.. How can I later do a query on that datetime to see if it has passed a certain time in another timezone?
[17:13:19] Aces1up: <aces1up> it is as simple as querying the database using a datetime object set with a different timezone and AR knows what to do from there?
[17:15:11] jordila: has joined #ruby
[17:15:36] Guest61808: has joined #ruby
[17:16:25] RougeR: aces1up, what db
[17:18:03] RougeR: aces1up, https://stackoverflow.com/questions/28872761/time-zone-storage-in-data-type-timestamp-with-time-zone/28876266#28876266
[17:18:06] RougeR: might be of interest
[17:18:37] RougeR: could be that you have to write a sql method otherwise you are going to be doing the checks in rails
[17:19:13] Aces1up: RougeR mysql
[17:19:26] Aces1up: RougeR shouldnt i be having AR do the checks?
[17:19:43] Aces1up: this is actually a standalone ruby project not rails
[17:19:52] Aces1up: but i use active record for dbase stuff
[17:21:23] RougeR: aces1up, ah okay, i dont use rails much either
[17:21:29] RougeR: mostly pure ruby/sinatra
[17:21:41] Aces1up: yeh i use unicorn for web stuff
[17:21:43] RougeR: aces1up, AR is just a DSL for sql
[17:22:01] RougeR: i dont think what you want can be done in active record
[17:22:08] RougeR: and you dont want to load all the objects into memory
[17:22:13] bougyman: AR is an orm
[17:22:16] Aces1up: but activ support has new timezone stuff i should be using in my queries
[17:22:17] bougyman: arel is the dsl for sql, no?
[17:22:31] RougeR: idont know how mysql stores timestamps
[17:22:40] RougeR: i mostly stick to postgres
[17:22:42] RougeR: ill have a look
[17:22:51] RougeR: timezones*
[17:23:20] Aces1up: right now i have an app where i was storing all things as unix timestamp, now i need to adapt it to retreieve stuff based on biz location / timezone
[17:23:26] RougeR: https://dev.mysql.com/doc/refman/5.5/en/datetime.html
[17:23:30] GodFather: has joined #ruby
[17:23:33] Aces1up: from what i seeing i need to create new columns of datetime.
[17:23:33] RougeR: https://stackoverflow.com/questions/33465054/storing-timezone-in-a-database
[17:23:38] RougeR: same as postgres
[17:23:52] RougeR: aces1up, it doesnt store a timezone field though i think
[17:23:56] Aces1up: and do comparisons with date time objects in AR instead of unix timestamps.
[17:23:59] RougeR: it just stores adds an offset
[17:24:21] RougeR: youll want to compare against created_at or maybe current_time
[17:24:25] Aces1up: RougeR as long as AR gets the queries right im good
[17:24:34] RougeR: aces1up, how are you storing the objects
[17:24:40] Aces1up: i understand it stored things as UTC.
[17:24:41] RougeR: id add a column for timezone
[17:25:08] Aces1up: RougeR everything based off unix time stamp using Time.now.to_i
[17:25:18] Aces1up: i have column now for timezone..
[17:25:24] Aces1up: need to integrate it.
[17:25:35] RougeR: you already do, or you just made one?
[17:25:38] Aces1up: but can i use my timestamps?
[17:25:58] RougeR: aces1up, maybe, im just trying to think how to do it
[17:26:10] Aces1up: or should i just switch over everything to date time object so AR can do queries against timezone of business?
[17:26:30] RougeR: aces1up, how often will this query be run
[17:26:34] RougeR: and against how big a db
[17:26:39] jrhorn424: has joined #ruby
[17:27:02] Aces1up: its polling businesses for new leads that come in.. so i have a cron job running every 30 secs.
[17:27:03] RougeR: you could just do
[17:27:08] Aces1up: not too big a db now.
[17:27:29] cthulchu: has joined #ruby
[17:28:47] RougeR: sorry i gotta be brb
[17:28:59] RougeR: im not being much help, trying to finish something at work
[17:29:12] Aces1up: sure let me know your thoughts if i can adapt just Timestamps to work with timezones.
[17:29:35] RougeR: yeah i will do. i honestly might not be back for a while. :(
[17:29:37] Aces1up: i guess i need to convert the timestamp to time object then convert to timezone but then how would I do a query with all those conversions.
[17:29:52] RougeR: i would recommend reading this
[17:29:53] RougeR: https://stackoverflow.com/questions/33465054/storing-timezone-in-a-database
[17:29:55] RougeR: and related
[17:29:57] RougeR: seems similar
[17:30:00] Aces1up: sure man will do
[17:30:19] Aces1up: thanks for the help
[17:39:16] mangold: has joined #ruby
[17:44:03] \void: has joined #ruby
[17:44:40] Dbugger: has joined #ruby
[17:46:46] jcarl43: has joined #ruby
[17:49:52] maximjaffe: has joined #ruby
[17:50:19] queip: has joined #ruby
[17:52:14] sanscoeur: has joined #ruby
[17:56:02] dkmueller: has joined #ruby
[18:02:39] jetchisel: has joined #ruby
[18:05:38] GodFather: has joined #ruby
[18:08:30] crankhar1er: has joined #ruby
[18:11:35] fmccann: has joined #ruby
[18:15:05] baweaver: What's the latest hotness for Timeout in Ruby?
[18:15:18] baweaver: Timeout::timeout is still its regular old fun self.
[18:17:06] Arkantos: has joined #ruby
[18:18:32] reber: has joined #ruby
[18:19:15] Joufflu: has joined #ruby
[18:24:00] Lytol: has joined #ruby
[18:33:04] elcontrastador: has joined #ruby
[18:34:54] crankhar1er: has joined #ruby
[18:39:24] lxsameer: has joined #ruby
[18:49:36] awkwords: has joined #ruby
[18:51:25] sgen: has joined #ruby
[18:53:43] Puffball: has joined #ruby
[18:54:24] queip: has joined #ruby
[18:58:57] dellavg_: has joined #ruby
[18:59:10] awkwords: has joined #ruby
[19:00:19] phaul: &list timeout
[19:00:19] rubydoc: OpenSSL::SSL::Session#timeout, Object#timeout, Timeout.timeout, WEBrick::Utils.timeout
[19:01:03] phaul: &ri Object#timeout
[19:01:03] rubydoc: https://ruby-doc.org/stdlib-2.5.3/libdoc/timeout/rdoc/Object.html#method-i-timeout
[19:01:35] jrhorn424: has joined #ruby
[19:01:36] al2o3-cr: Object.timeout is deprecated.
[19:01:53] awkwords: has joined #ruby
[19:02:40] al2o3-cr: *Object#timeout
[19:04:43] tdy: has joined #ruby
[19:25:44] goatish: has joined #ruby
[19:37:02] Arkantos_: has joined #ruby