Caerus

Activity Graph

Page 1 of 3 | Next »

2019-08-22

[00:56:08] Caerus: *.net *.split
[01:13:35] Caerus: has joined #RubyOnRails
[01:13:42] Caerus: has joined #ruby
[01:14:11] Caerus: has joined #ruby-offtopic

2019-08-03

[15:22:33] Caerus: Ping timeout: 245 seconds
[15:29:18] Caerus: has joined #ruby
[15:29:18] Caerus: has joined #RubyOnRails
[15:29:19] Caerus: has joined #ruby-offtopic

2019-07-01

[01:10:06] Caerus: oh wow, I have a "rebel" ActiveJob that refuses to use production database... running in production, still pulling data from development db.
[01:10:38] Caerus: ofc by rebel I mean I surely forgot something T.T;
[01:27:36] Caerus: got it, had a typo con the foreman script for sidekiq. That's my brain cueing for sleep
[01:27:39] Caerus: ACTION crashes

2019-06-26

[03:34:47] Caerus: I'm down a rabbit hole... title = Net::HTTP.get(URI.parse('https://www.youtube.com/watch?v=k6BL1GOXgp8')).scan(/<title>(.*?)<\/title>/).flatten.join works perfectly from irb.
[03:35:14] Caerus: but when I use that exact line on an activejob it doesn't get the title
[03:36:04] Caerus: it only happens with youtube

2019-06-25

[16:33:43] Caerus: sessions are encrypted
[16:39:21] Caerus: you don't really need to store user_id on the session, with the session_id you can get the user_id server side. Specific to your question. exposing the user_id makes it possible in the event of a sql injection vulnerability to be targeted.
[22:21:12] Caerus: Hmm... anyone knows what would be the ruby way of "try"ing an open(url).read while using 'open-uri'. Maybe open(url)&.read ? I don't want to rescue the errors just do nothing if the url is down for whatever reason.

2019-06-21

[10:43:10] Caerus: ZAJDAN, use a named value on the button to send it as param, then catch it on the controller
[10:44:35] Caerus: <%= f.button :submit , name: "foo",value: "bar"%> then in the controller you'll get params[:foo] with the value "bar"

2019-06-13

[06:08:49] Caerus: ZAJDAN, usually size, according to rubocop
[06:13:20] Caerus: call me crazy but whenever I'm doing a small app or learning app I usually constraint myself by using the rest actions that scaffold provides on the generator

2019-06-03

[23:36:04] Caerus: >> 'thisworksdoesntit?'.slice(-10..-1)
[23:36:48] Caerus: I just noticed cats and skin are swapped, heh

2019-05-25

[15:56:18] Caerus: Ping timeout: 248 seconds
[16:00:27] Caerus: has joined #ruby-offtopic
[16:00:27] Caerus: has joined #ruby
[16:00:27] Caerus: has joined #RubyOnRails

2019-05-23

[10:42:33] Caerus: Ping timeout: 245 seconds
[10:47:29] Caerus: has joined #ruby-offtopic
[10:47:29] Caerus: has joined #ruby
[10:47:29] Caerus: has joined #RubyOnRails
[16:19:05] Caerus: you can change the database name for each of the enviroments there. You just need to declare for instance in development. Instead of database: yourappname_development you could do database: any_db_name.

2019-05-18

[01:59:37] Caerus: @baweaver, awesome, looking forward to seeing them

2019-05-17

[02:39:23] Caerus: anyone here went to railsconf 2019? do you know if there were plans on uploading the talks to youtube?
[02:41:38] Caerus: I saw the livestream on youtube but it seems they only showed the soft skills side of the conf and a bunch of talks are not there.
[03:03:45] Caerus: thanks havenwood
[15:36:17] Caerus: boi I went through a nasty rabbit hole. forgot I had installed the ubuntu rvm package and did rvm --implode
[15:37:03] Caerus: luckily stackoverflow came to the rescue again. In case anyone runs into it -> https://stackoverflow.com/questions/48431372/removing-broken-packages-in-ubuntu

2019-05-01

[22:22:24] Caerus: has joined #ruby-offtopic
[22:22:24] Caerus: has joined #ruby
[22:22:24] Caerus: has joined #RubyOnRails

2019-04-05

[22:01:16] Caerus: Ping timeout: 255 seconds

2019-04-03

[09:35:31] Caerus: Ping timeout: 244 seconds
[09:46:41] Caerus: has joined #ruby

2019-03-03

2019-02-27

[00:21:47] Caerus: Ping timeout: 240 seconds
[00:57:09] Caerus: has joined #ruby-offtopic
[00:57:09] Caerus: has joined #ruby
[00:57:09] Caerus: has joined #RubyOnRails

2019-01-21

[06:42:11] Caerus: *.net *.split
[06:42:18] Caerus: has joined #ruby-offtopic
[06:42:18] Caerus: has joined #ruby
[06:42:18] Caerus: has joined #RubyOnRails

2018-11-16

[16:00:07] Caerus: Ping timeout: 240 seconds
[16:02:05] Caerus: has joined #ruby-offtopic
[16:02:05] Caerus: has joined #ruby
[16:02:05] Caerus: has joined #RubyOnRails

2018-10-25

[08:27:54] Caerus: Ping timeout: 276 seconds
[08:28:04] Caerus: has joined #ruby-offtopic
[08:28:04] Caerus: has joined #ruby
[08:28:04] Caerus: has joined #RubyOnRails

2018-09-06

[01:06:53] Caerus: Hey Radar, morning

2018-09-05

[23:58:17] Caerus: s2013, hard to say without looking at the code but by the looks of it you need to check the controller for a before_action call to something like :authenticate_user
[23:58:51] Caerus: oh, he´s gone

2018-08-13

[18:04:39] Caerus: chridal, might sound silly, but are you including your compiled asset using <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %> on your application layout?
[18:07:55] Caerus: id´d watch it for sure
[18:08:15] Caerus: saw the slides for the one you just did. Couldn´t find the actual talk though

2018-08-11

[00:22:51] Caerus: has joined #RubyOnRails
[00:22:51] Caerus: has joined #ruby-offtopic
[00:22:51] Caerus: has joined #ruby
[00:22:55] Caerus: Client Quit
[00:44:56] Caerus: has joined #ruby
[00:45:38] Caerus: has joined #RubyOnRails
[00:51:08] Caerus: has joined #ruby-offtopic

2018-08-10

[03:36:34] Caerus: Radar, that sounds interesting, wha are the requirements to take part in that program?
[03:42:05] Caerus: as with a lot of things in ruby. very simple ;) it is one of the string methods.
[03:44:03] Caerus: >> " foo bar ".strip
[03:47:58] Caerus: I am far for being an expert at ruby, but one thing that was very clear early on, whenever you find yourself looking at very complicated code, take a step back and shift through the methods of the class you´re working with.
[03:48:33] Caerus: chances are, there´s a more idiomatic way
[03:49:45] Caerus: this_dude, absolutely and you should use it, a lot.
[03:50:22] Caerus: for instance, related to the .strip, it belongs to String class
[03:50:23] Caerus: https://ruby-doc.org/core-2.5.1/String.html
[03:51:29] Caerus: I´m also pretty sure there is a way to check the methos of each class either through irb or pry
[03:52:47] Caerus: someobject.methods ...
[03:52:58] Caerus: oh beat me to it :P
[04:47:46] Caerus: Radar, good things are far away :( I´m across the pond
[04:51:53] Caerus: It really is, I´m pretty sure that program will be solid. I think I missed the bus on actually working with rails on a day to day. Most of the positions are way up on the RoR experience.
[04:52:27] Caerus: That and the fact that I´m not in the US or US citizen.
[23:54:38] Caerus: Quit: Leaving

2018-08-09

[16:09:46] Caerus: Ping timeout: 256 seconds
[17:34:50] Caerus: has joined #RubyOnRails
[17:34:50] Caerus: has joined #ruby-offtopic
[17:34:50] Caerus: has joined #ruby
[21:33:21] Caerus: Ping timeout: 248 seconds
[21:58:07] Caerus: has joined #RubyOnRails
[21:58:07] Caerus: has joined #ruby-offtopic
[21:58:07] Caerus: has joined #ruby

2018-08-08

[07:22:03] Caerus: Quit: Zzz.zz.z
[23:06:07] Caerus: has joined #RubyOnRails
[23:06:07] Caerus: has joined #ruby-offtopic
[23:06:07] Caerus: has joined #ruby

2018-08-06

[03:55:48] Caerus: has joined #ruby
[03:55:49] Caerus: has joined #RubyOnRails
[03:55:49] Caerus: has joined #ruby-offtopic
[09:33:53] Caerus: Read error: Connection reset by peer
[09:34:22] Caerus: has joined #ruby
[09:34:22] Caerus: has joined #ruby-offtopic
[09:34:22] Caerus: has joined #RubyOnRails

2018-08-05

[00:39:36] Caerus: has joined #RubyOnRails
[00:39:36] Caerus: has joined #ruby-offtopic
[00:39:36] Caerus: has joined #ruby
[02:20:26] Caerus: Ping timeout: 256 seconds
[02:29:47] Caerus: has joined #ruby
[02:29:47] Caerus: has joined #ruby-offtopic
[02:29:47] Caerus: has joined #RubyOnRails
[14:03:22] Caerus: Ping timeout: 264 seconds

2018-08-04

[03:25:32] Caerus: you´d think that by now they would have a system that prevents double booking
[03:27:29] Caerus: the good ole ´theres no key for the room,therefore it´s been rented´ used to suffice
[03:30:46] Caerus: very true, fixing those issues require policy changes way above desk staff
[07:32:10] Caerus: Ping timeout: 264 seconds
[10:11:08] Caerus: has joined #RubyOnRails
[10:11:08] Caerus: has joined #ruby-offtopic
[10:11:08] Caerus: has joined #ruby
[16:29:10] Caerus: Ping timeout: 264 seconds

2018-08-03

[14:27:47] Caerus: has joined #RubyOnRails
[14:27:47] Caerus: has joined #ruby-offtopic
[14:27:47] Caerus: has joined #ruby
[14:38:05] Caerus: Ping timeout: 240 seconds
[14:59:59] Caerus: has joined #RubyOnRails
[14:59:59] Caerus: has joined #ruby-offtopic
[14:59:59] Caerus: has joined #ruby
[17:11:44] Caerus: Andr3as, that´s a very strange behavior, but the fact that it segregates browsers tell me it´s most likely related to the client itself, maybe a cookies issue?
[17:12:16] Caerus: Andr3as, have you used chrome in both enviroments but only edge in production?
[17:30:03] Caerus: Andr3as, what rails version are you on?
[17:38:38] Caerus: Andr3as, thanks, could you gist your application_controller.rb ? I need to go afk for a moment but will take a look when I get back
[18:25:08] Caerus: Andr3as, try: protect_from_forgery prepend: true on your application controller
[18:29:09] Caerus: tough cookie. did you try forcing the browser not to cache? I found this one https://github.com/ophrescue/RescueRails/commit/33ee1fc9c63a3776ae88e349313cdb06fc72f0e0
[18:33:37] Caerus: Andr3as, skip_before_action :verify_authenticity_token only for unauthenticated actions makes sense
[18:39:28] Caerus: Andr3as, have you checked this one already? https://stackoverflow.com/questions/43831626/rails5-cant-verify-csrf-token-authenticity-issue-with-subdomain-in-production?rq=1
[18:42:56] Caerus: Andr3as, this might resonate. It´s from the devise docs: https://github.com/plataformatec/devise/blob/715192a7709a4c02127afb067e66230061b82cf2/README.md#controller-filters-and-helpers
[18:53:37] Caerus: have a good one Andr3as
[19:57:30] Caerus: maryo, if you´re using rvm you can simply switch to your desired gemset: rvm use gemset ( rvm use ruby-.2.3.1 ) then rvm gemset empty
[20:00:16] Caerus: once I started using rvm, I never looked back. But I also havent looked too much into rbenv
[20:04:29] Caerus: havenwood, thanks. Didnt know chruby was a thing. Is there a particulary compelling reason to switch to it over rvm or rbenv?
[20:04:33] Caerus: maryo, https://rvm.io/rvm/install
[20:08:14] Caerus: welp that really went under my radar, I´m looking at the repo and I can see that it has been around for a while.
[20:09:50] Caerus: thing about self teaching is that the hardest part is ¨to know what is it that you don´t know but should¨
[20:13:21] Caerus: my dev vm is on lubuntu so chruby sounds like a plan.
[20:14:29] Caerus: thanks havenwood. maryo, might wanna look into using it too chruby.
[23:10:04] Caerus: anyone knows where the sort() method fo Hash comes from? https://ruby-doc.org/core-2.5.1/Hash.html#method-i-sort not listed here and doesn´t seem to come from Object
[23:15:32] Caerus: ciro, ohhh it says it right there ´Included Modules´, thanks!

2018-08-02

[01:25:48] Caerus: quazimodo, very related, can wholeheartedly recommend you watch this talk: https://www.youtube.com/watch?v=TkbkCzwg6b8 deserves more upvotes. It hit it home for me and it might help you get an idea of how to test ´less´
[01:31:27] Caerus: I watch those talks mostly cuz I plan on someday getting a job doing rails. I´m on a legacy proyect and his ´quadrant´ train of thought has helped me so much.
[01:44:35] Caerus: Oh didn´t know about the talk, I just found it :o I did look up the rules tho.
[13:56:04] Caerus: Ping timeout: 260 seconds

2018-08-01

[19:49:57] Caerus: Ping timeout: 240 seconds
[20:27:00] Caerus: has joined #ruby
[20:27:00] Caerus: has joined #RubyOnRails

2018-07-31

[21:52:02] Caerus: has joined #RubyOnRails
[21:52:02] Caerus: has joined #ruby

2018-07-30

[02:38:42] Caerus: has joined #RubyOnRails
[02:38:42] Caerus: has joined #ruby
[08:26:53] Caerus: Ping timeout: 244 seconds
[18:00:19] Caerus: has joined #RubyOnRails
[18:00:19] Caerus: has joined #ruby
[23:13:55] Caerus: Quit: bad cap shenannigans

2018-07-29

[00:46:00] Caerus: devise is very configurable
[00:46:31] Caerus: Quit: restart
[02:32:04] Caerus: has joined #RubyOnRails
[02:32:04] Caerus: has joined #ruby
[03:48:27] Caerus: Read error: Connection reset by peer

2018-07-27

[03:28:11] Caerus: gotta love yak shaving only to find out you been blindsided by something that´s completely out of your control
[03:28:25] Caerus: *have been*
[21:10:47] Caerus: maybe include Singleton, I´m not even sure I understood the question correctly ^^
[23:46:08] Caerus: A lot of claims of ruby being slow come from the shortcomings of rails regarding scalability. Eileen Uchitelle did a talk about this on rubyconf. 2.6 will have a standar way of doing multi-database
[23:52:16] Caerus: sorry, meant to say rails 6.0. Also, last time I was doing some searches on this I stumbled upon this https://pragtob.wordpress.com/2017/01/24/benchmarking-a-go-ai-in-ruby-cruby-vs-rubinius-vs-jruby-vs-truffle-a-year-later/
[23:53:14] Caerus: wonder what numbers we would see nowadays

2018-07-26

[00:33:57] Caerus: has joined #RubyOnRails
[00:33:57] Caerus: has joined #ruby

2018-07-25

[03:25:20] Caerus: has joined #ruby
[03:25:21] Caerus: has joined #RubyOnRails
[15:40:29] Caerus: oh wow the spam campaign is all over the place
[20:54:57] Caerus: Ping timeout: 268 seconds

2018-07-24

[06:41:41] Caerus: Quit: Leaving
[13:39:15] Caerus: has joined #RubyOnRails
[13:39:15] Caerus: has joined #ruby
[16:45:25] Caerus: Read error: Connection reset by peer
[17:03:29] Caerus: has joined #RubyOnRails
[17:03:29] Caerus: has joined #ruby
[17:18:44] Caerus: Read error: Connection reset by peer
[18:55:05] Caerus: has joined #RubyOnRails
[18:55:05] Caerus: has joined #ruby
[19:38:57] Caerus: Ping timeout: 240 seconds
[22:03:28] Caerus: has joined #RubyOnRails
[22:03:28] Caerus: has joined #ruby
[22:50:52] Caerus: Ping timeout: 256 seconds

2018-07-23

[07:08:58] Caerus: Quit: Leaving
[21:58:32] Caerus: has joined #RubyOnRails
[21:58:32] Caerus: has joined #ruby

2018-07-22

[20:30:29] Caerus: has joined #RubyOnRails
[20:30:29] Caerus: has joined #ruby

2018-07-17

[06:48:05] Caerus: Quit: Leaving

2018-07-16

[06:38:00] Caerus: Read error: Connection reset by peer
[19:05:55] Caerus: has joined #RubyOnRails
[19:05:55] Caerus: has joined #ruby

2018-07-15

[00:02:42] Caerus: Quit: Leaving
[00:56:58] Caerus: has joined #RubyOnRails
[00:56:58] Caerus: has joined #ruby
[04:00:49] Caerus: Ping timeout: 256 seconds
[05:30:18] Caerus: has joined #RubyOnRails
[05:30:18] Caerus: has joined #ruby
[07:15:19] Caerus: Quit: zZzZzz
[18:54:59] Caerus: has joined #RubyOnRails
[18:54:59] Caerus: has joined #ruby

2018-07-14

[21:41:10] Caerus: has joined #RubyOnRails
[21:41:10] Caerus: has joined #ruby

2018-07-13

[16:05:05] Caerus: has joined #RubyOnRails
[16:05:05] Caerus: has joined #ruby
[22:43:22] Caerus: Quit: Leaving

2018-07-02

[06:59:32] Caerus: Quit: Leaving

2018-07-01

[13:52:03] Caerus: has joined #RubyOnRails
[13:52:03] Caerus: has joined #ruby
[14:16:02] Caerus: Ping timeout: 255 seconds
[14:19:35] Caerus: has joined #RubyOnRails
[14:19:35] Caerus: has joined #ruby

2018-01-25

[06:19:35] Caerus: Quit: Leaving

2018-01-24

[02:48:43] Caerus: has joined #ruby-offtopic
[02:48:43] Caerus: has joined #ruby
[02:48:44] Caerus: has joined #RubyOnRails

2017-09-08

[00:09:51] Caerus: Ping timeout: 252 seconds
[00:12:32] Caerus: has joined #RubyOnRails
[00:12:32] Caerus: has joined #ruby-offtopic
[00:12:32] Caerus: has joined #ruby
[01:43:48] Caerus: I cant, for the life of me, configure webpacker to load jquery. sighs
[01:44:50] Caerus: I get the hello world from webpacker but can't find a way to make it expose jquery.
[02:15:58] Caerus: Read error: Connection reset by peer

2017-09-07

[16:17:26] Caerus: has joined #RubyOnRails
[16:17:26] Caerus: has joined #ruby-offtopic
[16:17:26] Caerus: has joined #ruby
[22:03:34] Caerus: hmm, what's the best 'rails way' to declare sylesheet overrides for a specific page?
[22:05:27] Caerus: should is just create the stylesheet name and then call render :layout => 'some_layout' on the controller?
[22:08:58] Caerus: soahccc, thats the thing, I've learned that most of the times there is conventional rails way that is a lot more simpler than what I come up with.
[22:12:26] Caerus: basically, I have a layout, but for a specific page I need to change the body class to <body class="bg-dark"> which is on the application.html.erb
[22:46:27] Caerus: soahccc, yeah I wanted to avoid jQuery and see if there was a rails way. Your sugestion would definitely work
[22:58:05] Caerus: soahccc, thanks for the suggestion. I need it for just a couple of pages and now I know layout renders last.