xco

Activity Graph

Page 1 of 17 | Next »

2019-08-24

[08:12:05] xco: has joined #elixir-lang
[08:12:05] xco: has joined #ruby
[08:12:05] xco: has joined #RubyOnRails
[12:37:53] xco: Quit: xco
[12:42:02] xco: has joined #elixir-lang
[12:42:02] xco: has joined #ruby
[12:42:02] xco: has joined #RubyOnRails
[14:56:47] xco: Quit: xco
[15:04:18] xco: has joined #ruby
[15:04:18] xco: has joined #elixir-lang
[15:04:18] xco: has joined #RubyOnRails
[18:32:04] xco: Quit: xco
[19:37:40] xco: has joined #ruby
[19:37:40] xco: has joined #elixir-lang
[19:37:40] xco: has joined #RubyOnRails
[20:24:31] xco: Quit: xco

2019-08-23

[05:12:33] xco: has joined #elixir-lang
[05:12:33] xco: has joined #ruby
[05:12:33] xco: has joined #RubyOnRails
[06:24:27] xco: Quit: xco
[06:34:25] xco: has joined #elixir-lang
[06:34:25] xco: has joined #ruby
[06:34:25] xco: has joined #RubyOnRails
[08:17:33] xco: Quit: xco
[08:18:40] xco: has joined #elixir-lang
[08:18:40] xco: has joined #ruby
[08:18:40] xco: has joined #RubyOnRails
[08:21:37] xco: Client Quit
[08:26:30] xco: has joined #elixir-lang
[08:26:30] xco: has joined #ruby
[08:26:30] xco: has joined #RubyOnRails
[09:54:24] xco: Quit: xco
[09:56:10] xco: has joined #elixir-lang
[09:56:10] xco: has joined #ruby
[09:56:10] xco: has joined #RubyOnRails
[12:11:17] xco: Quit: xco
[12:20:39] xco: has joined #elixir-lang
[12:20:39] xco: has joined #ruby
[12:20:39] xco: has joined #RubyOnRails
[13:22:03] xco: Quit: xco
[13:24:26] xco: has joined #elixir-lang
[13:24:26] xco: has joined #ruby
[13:24:26] xco: has joined #RubyOnRails
[13:58:13] xco: Quit: xco
[14:37:09] xco: has joined #elixir-lang
[14:37:09] xco: has joined #ruby
[14:37:09] xco: has joined #RubyOnRails
[16:37:38] xco: Quit: xco
[16:42:54] xco: has joined #elixir-lang
[16:42:54] xco: has joined #ruby
[16:42:54] xco: has joined #RubyOnRails
[17:21:57] xco: Quit: xco
[18:15:43] xco: has joined #RubyOnRails
[18:15:44] xco: has joined #elixir-lang
[18:15:44] xco: has joined #ruby
[21:18:36] xco: Quit: xco
[22:19:25] xco: has joined #elixir-lang
[22:19:25] xco: has joined #ruby
[22:19:25] xco: has joined #RubyOnRails
[22:58:28] xco: Quit: xco

2019-08-22

[06:57:57] xco: has joined #elixir-lang
[06:57:57] xco: has joined #ruby
[06:57:57] xco: has joined #RubyOnRails
[13:42:09] xco: Read error: Connection reset by peer
[14:06:53] xco: has joined #elixir-lang
[14:06:53] xco: has joined #ruby
[14:06:53] xco: has joined #RubyOnRails
[15:12:15] xco: Quit: xco
[15:13:07] xco: has joined #elixir-lang
[15:13:07] xco: has joined #ruby
[15:13:07] xco: has joined #RubyOnRails
[18:08:44] xco: Quit: xco
[19:01:07] xco: has joined #elixir-lang
[19:01:07] xco: has joined #ruby
[19:01:07] xco: has joined #RubyOnRails
[19:30:30] xco: Quit: xco
[21:27:39] xco: has joined #elixir-lang
[21:27:39] xco: has joined #ruby
[21:27:39] xco: has joined #RubyOnRails
[21:59:02] xco: Quit: xco

2019-08-21

[06:40:42] xco: has joined #elixir-lang
[06:40:42] xco: has joined #ruby
[06:40:42] xco: has joined #RubyOnRails
[14:14:48] xco: Quit: xco
[14:51:50] xco: has joined #elixir-lang
[14:51:50] xco: has joined #ruby
[14:51:50] xco: has joined #RubyOnRails
[17:54:43] xco: Quit: xco
[17:56:32] xco: has joined #elixir-lang
[17:56:32] xco: has joined #ruby
[17:56:32] xco: has joined #RubyOnRails
[19:17:20] xco: Quit: xco
[19:19:19] xco: has joined #elixir-lang
[19:19:19] xco: has joined #ruby
[19:19:19] xco: has joined #RubyOnRails
[20:02:59] xco: Quit: xco

2019-08-20

[06:46:36] xco: has joined #ruby
[06:46:36] xco: has joined #RubyOnRails
[06:46:37] xco: has joined #elixir-lang
[14:21:46] xco: Quit: xco
[18:44:32] xco: has joined #elixir-lang
[18:44:32] xco: has joined #ruby
[18:44:32] xco: has joined #RubyOnRails
[22:26:41] xco: Quit: xco
[23:34:38] xco: has joined #elixir-lang
[23:34:38] xco: has joined #ruby
[23:34:38] xco: has joined #RubyOnRails
[23:56:45] xco: Quit: xco

2019-08-19

[08:09:15] xco: has joined #elixir-lang
[08:10:07] xco: hi. people who do Ruby call themselves “Rubyist”. how do people who work with Elixir call themselves?
[08:12:37] xco: hahahha
[08:13:06] xco: i thought i had seen things like “Alchemists” somewhere but wasn’t sure if it’s something the community agrees with and go by
[12:56:36] xco: has joined #ruby
[13:53:38] xco: Quit: xco
[14:19:45] xco: has joined #ruby
[14:19:45] xco: has joined #RubyOnRails
[14:19:46] xco: has joined #elixir-lang
[15:44:19] xco: hi all! i’m testing an api endpoint and so far i have this but not sure how to proceed with minittest https://gist.github.com/xcobar/82ebf7e51810040680d3d9d828754bc7 i don’t want to query the api endpoint every time. how do i test this endpoint with say some fake data?
[22:16:32] xco: Quit: xco

2019-08-14

[09:23:34] xco: has joined #ruby
[09:23:57] xco: hello beutiful people!! :P
[09:24:36] xco: i have a string that’s always in this format “some@email.com#s30823ufadafxx”
[09:24:54] xco: i want to extract just the email out so i’d get “some@email.com”
[09:25:00] xco: i know i can do
[09:25:09] xco: “some@email.com#s30823ufadafxx”.split....
[09:25:14] xco: or “some@email.com#s30823ufadafxx”.partition.....
[09:25:42] xco: but i want to ask if perhaps someone has a better (maybe efficient) way to extract emails out of such strings?
[09:26:05] xco: i’m always on the look out for a better* way and i know there is (might be)
[09:30:43] xco: phaul: thank you
[09:30:59] xco: phaul: that’s sexy actually
[09:31:15] xco: NL3limin4t0r: thanks for that too… that looks very simple
[09:31:19] xco: less noise
[09:31:22] xco: "noise"
[09:33:19] xco: yeah that i’m aware of
[09:34:42] xco: NL3limin4t0r: how can i use this 'some@email.com#s30823ufadafxx'[/[^#]+/] with URI::MailTo::EMAIL_REGEXP?
[09:38:29] xco: the EMAIL_REXEXP is /\A[a-zA-Z0-9.!\#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\z/
[09:38:58] xco: so i’m assuming you could just put that in 'some@email.com#s30823ufadafxx’[regex_here] to grab the email
[09:39:13] xco: in this case any email that matches the EMAIL_REGEXP
[09:40:18] xco: riiiiiight!
[09:40:31] xco: i tend to miss those little details
[09:45:04] xco: this looks good but it’s getting out of hands now hahhahha
[09:45:20] xco: NL3limin4t0r: but thanks for teaching how to do it :D
[09:55:46] xco: al2o3-cr: whaaat?!?!?
[10:18:57] xco: Quit: xco

2019-08-13

[00:10:23] xco: Quit: xco
[06:32:50] xco: has joined #RubyOnRails
[06:37:30] xco: Ping timeout: 268 seconds
[06:38:04] xco: has joined #RubyOnRails
[08:37:41] xco: Quit: xco

2019-08-12

[06:51:39] xco: has joined #RubyOnRails
[14:04:16] xco: Quit: xco
[18:05:53] xco: has joined #RubyOnRails
[18:41:36] xco: Ping timeout: 258 seconds
[22:22:43] xco: Quit: xco
[23:32:37] xco: has joined #RubyOnRails

2019-08-11

[09:04:44] xco: has joined #RubyOnRails
[22:41:40] xco: Quit: xco

2019-08-10

[18:06:20] xco: has joined #RubyOnRails
[18:17:19] xco: Quit: xco

2019-08-09

[06:41:07] xco: has joined #RubyOnRails
[11:53:09] xco: has left #RubyOnRails: ()
[14:35:41] xco: has joined #RubyOnRails
[15:26:07] xco: Quit: xco
[16:47:06] xco: has joined #RubyOnRails
[21:42:38] xco: Quit: xco

2019-08-08

[00:05:51] xco: has joined #RubyOnRails
[00:34:08] xco: Quit: xco
[07:03:09] xco: has joined #RubyOnRails
[23:55:41] xco: Quit: xco

2019-08-07

[18:13:35] xco: has joined #RubyOnRails
[18:14:29] xco: hi is there a better way to get current time and date nicely formatted like “August 07, 2019 20:11” without using strftime?
[18:15:26] xco: Got it Time.current.to_s(:long)
[20:24:35] xco: Linell: ;)
[22:21:43] xco: Quit: xco

2019-07-31

[05:32:50] xco: has joined #RubyOnRails
[06:13:07] xco: Quit: xco
[11:20:35] xco: has joined #ruby
[11:20:57] xco: Hi, i’m sure there’s a better way to write this, any refactoring hero around today? https://gist.github.com/xcobar/80e81b9394de9d93e093facfdb6d5ff3
[11:21:12] xco: i feel it could be made to look simpler but not sure how
[11:24:25] xco: i thought it could be made better :P
[11:24:33] xco: always on the lookout for a better approach :)
[11:25:05] xco: canton7: thanks ;)
[16:02:51] xco: Quit: xco
[16:57:01] xco: has joined #ruby
[16:57:01] xco: has joined #RubyOnRails
[17:27:41] xco: i understand Ruby fairly enough but for some reason i want to spend money to buy the print version of The Well-Ground Rubyist 3rd edition and read back to back like im’ a Ruby beginner… what do you make of this idea? Would it be impulse buying? Silly?
[17:29:28] xco: bluemage: :D i hope you’re not related to the author :P
[17:30:23] xco: but seriously i tend to forget some basic think while buried deep in deeper stuff and i think a refresher would be good or just have the book and read a few pages just to get the basics to sink in even more
[17:31:56] xco: i think a method that’s not “parameter-less” can also take a block… 🤔
[17:54:10] xco: Quit: xco
[17:57:11] xco: has joined #ruby
[17:57:11] xco: has joined #RubyOnRails
[18:54:05] xco: Quit: xco
[18:56:51] xco: has joined #ruby
[18:56:51] xco: has joined #RubyOnRails
[20:18:37] xco: hi, how do i access current_user (which is available from controllers/views) in a work like this? https://gist.github.com/xcobar/6976be46668c90a561cc4fe14038dc5e
[20:18:48] xco: battling with this for a few weeks now
[20:18:51] xco: need some help
[20:28:35] xco: Linell: i know that… but now i realise i’m thinking about the problem wrongly!!
[20:29:12] xco: but this gives me insights on how to approach this differently
[20:29:13] xco: thanks :)
[20:42:10] xco: Linell: ok i think i found a question to ask. If i’m using a scheduler to run sidekiq tasks, in the controller what do i call? Worker.perform or Worker.perform_async or Worker.perform_now?
[20:48:21] xco: yeah i went for perform_async
[20:48:40] xco: Linell: and hoping the scheduler will pick it from there and do its thing
[21:41:23] xco: Quit: xco

2019-07-30

[06:03:09] xco: has joined #RubyOnRails
[15:50:53] xco: Quit: xco
[18:12:12] xco: has joined #RubyOnRails
[19:42:12] xco: has left #RubyOnRails: ()
[21:38:35] xco: has joined #RubyOnRails
[21:43:15] xco: Client Quit
[22:05:49] xco: has joined #RubyOnRails
[22:12:59] xco: Quit: xco
[22:48:20] xco: has joined #RubyOnRails
[23:07:02] xco: Quit: xco

2019-07-29

[01:31:44] xco: has joined #RubyOnRails
[02:06:44] xco: Quit: xco
[06:02:50] xco: has joined #RubyOnRails
[17:27:37] xco: Quit: xco
[17:40:42] xco: has joined #RubyOnRails
[20:34:54] xco: hi. is there a way to implement sorting in Rails without reloading the application? i want to know if it’s possible and what tools i’ll need to use then i’ll google the rest :)
[20:39:10] xco: sorting say items in a table
[20:39:15] xco: by their headers
[20:39:32] xco: not restart, reloading of the app
[20:40:49] xco: i was wondering if it’s possible
[20:41:12] xco: sweet. i need the keywords to google or an idear how to go about this
[20:43:29] xco: also it’s important to add that the table is located down the pages, so you need to scroll down to reach the table, now, when you click a header, it sorts alright but once the page reloads it starts from the top and you’ll have to scroll down again to see the table, sort of annoying, i’m sure this can be fixed with some javascript (so that the page auto scrolls to where the table stars… down the page) but wondering if this woud be a good idea
[20:44:03] xco: i’d like to avoid react/vue/ember and all the front end frameworks
[20:44:41] xco: havenwood: you mean with the js autoscrolling to the tables location?
[20:46:56] xco: id’ have to decide which ONE to go with right?
[20:48:57] xco: i guess i’ll experiment with just AJAX for now, i want the most basic thing that’d get the job done :)
[20:49:34] xco: havenwood: you’d choose ActionCable over AJAX?
[20:50:25] xco: yeah i’m looking at their docs to see if it’ll be easier
[21:00:47] xco: havenwood: thanks for all the tips
[22:03:54] xco: Quit: xco

2019-07-28

[09:45:01] xco: has joined #RubyOnRails
[10:48:23] xco: Ping timeout: 245 seconds
[21:12:16] xco: Ping timeout: 246 seconds
[22:19:36] xco: has joined #RubyOnRails
[23:13:43] xco: Quit: xco

2019-07-27

[22:24:05] xco: Quit: xco