fschuindt

Activity Graph

Page 1 of 8 | Next »

2019-04-11

[02:33:47] fschuindt: Read error: Connection reset by peer

2019-04-10

[20:57:35] fschuindt: has joined #elixir-lang

2018-09-09

[00:08:39] fschuindt: has joined #ruby
[00:10:42] fschuindt: Hi there, folks. I'm just starting this project: https://github.com/fschuindt/toucan A framework for CLI applications. I hope someone find use of it. :] (Any kind of contribution is welcome!) Thank you.
[03:15:21] fschuindt: Quit: WeeChat 2.2

2018-04-30

[00:14:03] fschuindt: Solved this one, it as missing '' around the YYYY-MM-DD date. :]]
[03:05:42] fschuindt: Quit: WeeChat 2.0.1

2018-04-29

[22:47:36] fschuindt: has joined #RubyOnRails
[23:59:55] fschuindt: Hi there, folks. I'm dealing with a "column "date" is of type date but expression is of type integer" postgres error here: https://gist.github.com/fschuindt/a1e531cc982fc5ba6c4de30ab5d36e70 The field is a date type. What integer it's talking about? Any clue? Thanks.

2018-02-22

[02:10:10] fschuindt: Quit: WeeChat 2.0

2018-02-21

[11:46:03] fschuindt: has joined #RubyOnRails
[11:48:34] fschuindt: Hi there folks, what's the standard behaviour into using a different schema migration table other than "schema_migrations". I'm just trying to run a "rake db:schema:load" task, but using a different table for migration versions, one called "schema_migrations_ar". Any tip?
[16:13:27] fschuindt: Ping timeout: 240 seconds
[16:30:26] fschuindt: has joined #RubyOnRails
[16:51:45] fschuindt: Ping timeout: 248 seconds
[16:55:50] fschuindt: has joined #RubyOnRails

2018-01-26

[00:24:56] fschuindt: Disavowed baweaver: thank you two! really helpfull points. here in Brazil rates are really low, seniors with a 40k USD annual. so in terms of my current job, it's a huge advantage. but well I think they were nice people, have spend some time with them already. I will let everyone know how it goes. And I'm going as a core dev member. I have checked Glassdoor, seems fine. thank you all.
[00:29:24] fschuindt: Quit: WeeChat 2.0
[14:48:28] fschuindt: has joined #RubyOnRails
[15:17:10] fschuindt: Ping timeout: 256 seconds
[16:04:39] fschuindt: has joined #RubyOnRails
[18:51:10] fschuindt: Ping timeout: 240 seconds
[18:52:25] fschuindt: has joined #RubyOnRails
[19:12:57] fschuindt: Ping timeout: 264 seconds
[19:25:13] fschuindt: has joined #RubyOnRails
[19:30:35] fschuindt: Ping timeout: 240 seconds

2018-01-25

[23:31:59] fschuindt: has joined #RubyOnRails
[23:34:27] fschuindt: What's up folks? Ya'll doing good? Just a question about a company called Rockstar Coders. Any one here with something relevant to share? I think I will be on a core position (not freelancer) working to them soon. Any good/bad experiences here?

2018-01-22

[11:14:21] fschuindt: has joined #RubyOnRails
[11:46:25] fschuindt: Ping timeout: 260 seconds
[11:53:49] fschuindt: has joined #RubyOnRails
[11:59:22] fschuindt: Ping timeout: 256 seconds
[12:57:23] fschuindt: has joined #RubyOnRails
[20:29:25] fschuindt: Quit: WeeChat 2.0

2018-01-19

[12:19:07] fschuindt: has joined #RubyOnRails
[20:56:37] fschuindt: Quit: WeeChat 2.0

2018-01-18

[10:55:20] fschuindt: has joined #RubyOnRails
[13:37:25] fschuindt: za1b1tsu: no
[13:40:32] fschuindt: za1b1tsu: as long as you don't manually set id's and keep working through ActiveRecord, yep
[15:29:09] fschuindt: Ping timeout: 264 seconds
[15:41:01] fschuindt: has joined #RubyOnRails
[16:17:36] fschuindt: Ping timeout: 256 seconds
[16:24:57] fschuindt: has joined #RubyOnRails
[16:34:47] fschuindt: Ping timeout: 276 seconds
[17:04:28] fschuindt: has joined #RubyOnRails
[20:10:25] fschuindt: Quit: WeeChat 2.0

2018-01-17

[12:40:31] fschuindt: has joined #RubyOnRails
[13:32:58] fschuindt: xhoy: in this case you should not have a default scope. may you should implement 2 scopes like :scope and :not_scope. or if you plan to stick with this idea, implement a anti-scope yourself
[18:11:19] fschuindt: has joined #ruby
[18:12:23] fschuindt: I'm trying to File.write a string, but every line break is being writed as \r\n. How can write using only \n?
[18:15:24] fschuindt: apeiros: macOS
[18:16:15] fschuindt: apeiros: I thought it, was just trying to see any sign of hope
[18:16:38] fschuindt: I'm going for regex
[20:47:39] fschuindt: Quit: WeeChat 2.0

2018-01-16

[12:47:32] fschuindt: has joined #RubyOnRails
[13:59:53] fschuindt: Quit: WeeChat 2.0
[18:00:31] fschuindt: has joined #RubyOnRails
[20:41:27] fschuindt: Quit: WeeChat 2.0

2018-01-15

[12:22:26] fschuindt: has joined #RubyOnRails
[13:58:15] fschuindt: pavelz: yes, ActiveRecord::Base.logger = nil should do it, but hey, don't do anything wrong, right? >.> haha just kidding
[13:59:19] fschuindt: you asked for disabling SQL logs, don't you?
[19:10:54] fschuindt: do we have moderators here?
[19:13:23] fschuindt: amperry: thank you, really useful
[20:41:45] fschuindt: Quit: WeeChat 2.0

2018-01-14

[01:04:32] fschuindt: Ping timeout: 256 seconds

2018-01-13

[22:27:29] fschuindt: has joined #RubyOnRails

2018-01-12

[10:59:56] fschuindt: has joined #RubyOnRails
[12:45:52] fschuindt: avoid callbacks and live a joyful life
[12:47:29] fschuindt: when you update, you're saving, unless you're updating the same attribute, in this case is just a COMMIT
[12:48:39] fschuindt: like user.name -> 'Bob'; user.update_attribute(name: 'Bob') # wont update
[12:49:16] fschuindt: the :updated_at is not changed in this case
[19:27:34] fschuindt: Quit: WeeChat 2.0

2018-01-11

[11:23:11] fschuindt: has joined #RubyOnRails
[12:33:40] fschuindt: za1b1tsu: try to use OpenStruct instead of hash, it's the way FactoryBot assigns the values lile name "Sebastian", it's trying to use a attr_accessor/writer
[12:37:57] fschuindt: za1b1tsu: use FactoryBot.build instead of :create if you're using OpenStruct
[12:38:07] fschuindt: create will invoke ActiveRecord
[12:38:28] fschuindt: build will invoke the class constructor
[12:44:08] fschuindt: za1b1tsu: if you're using factory :chicken, class: OpenStruct do inside a FactoryBot.define do block, it shouldn't fail like this
[12:44:28] fschuindt: check if you are indeed loading the factories dir
[12:45:00] fschuindt: tryo to remove favorites and initialize_with
[12:45:07] fschuindt: see if it works
[12:47:46] fschuindt: za1b1tsu: ouch :/
[12:48:43] fschuindt: za1b1tsu: https://robots.thoughtbot.com/mind-bending-factories
[12:48:55] fschuindt: maybe it give you a light
[15:21:30] fschuindt: Quit: WeeChat 2.0

2018-01-10

[11:42:50] fschuindt: has joined #RubyOnRails
[14:53:47] fschuindt: if and not?
[14:53:58] fschuindt: xhoy: what do you mean?
[14:55:51] fschuindt: do you want to suppress a error and keep responding the user without saving?
[14:58:46] fschuindt: xhoy: sorry, I'm still confused, can you show me a gist example or something?
[20:32:05] fschuindt: Quit: WeeChat 2.0

2018-01-09

[12:47:53] fschuindt: has joined #RubyOnRails
[16:56:06] fschuindt: marahin: allow(obj).to receive(:blah) { :return_value }
[16:56:29] fschuindt: put this in a before ou let block
[16:56:47] fschuindt: marahin: yeap, it will return the value instead of calling the original method
[16:57:32] fschuindt: sure, np :)
[20:59:59] fschuindt: Quit: WeeChat 2.0

2018-01-08

[12:29:44] fschuindt: has joined #RubyOnRails
[20:39:18] fschuindt: Quit: WeeChat 2.0

2018-01-05

[12:02:20] fschuindt: has joined #RubyOnRails
[13:49:46] fschuindt: Read error: Connection reset by peer
[13:50:15] fschuindt: has joined #RubyOnRails
[20:13:39] fschuindt: Quit: WeeChat 2.0

2018-01-04

[11:49:17] fschuindt: has joined #RubyOnRails
[16:21:01] fschuindt: Quit: WeeChat 2.0
[16:29:38] fschuindt: has joined #RubyOnRails
[19:56:02] fschuindt: Quit: WeeChat 2.0

2018-01-03

[12:09:15] fschuindt: has joined #RubyOnRails
[18:18:35] fschuindt: LyndsySimon: I think that's the expected. Many Rails applications are smaller than Rails itself for instance
[20:10:59] fschuindt: Quit: WeeChat 2.0

2018-01-02

[12:44:42] fschuindt: has joined #RubyOnRails
[16:57:27] fschuindt: cagomez: http://api.rubyonrails.org/v4.0.0/
[17:37:03] fschuindt: dminuoso: yup
[20:21:23] fschuindt: Quit: WeeChat 2.0

2017-12-29

[12:19:09] fschuindt: has joined #RubyOnRails
[19:49:20] fschuindt: Quit: WeeChat 2.0

2017-12-28

[00:20:20] fschuindt: Ping timeout: 252 seconds
[01:56:12] fschuindt: has joined #RubyOnRails
[02:01:04] fschuindt: Ping timeout: 265 seconds
[04:21:05] fschuindt: has joined #RubyOnRails
[04:25:47] fschuindt: Ping timeout: 252 seconds
[08:19:56] fschuindt: has joined #RubyOnRails
[08:24:25] fschuindt: Ping timeout: 250 seconds
[09:19:20] fschuindt: has joined #RubyOnRails
[11:07:08] fschuindt: Quit: WeeChat 2.0
[12:34:07] fschuindt: has joined #RubyOnRails
[14:10:38] fschuindt: broman: have you tried config.time_zone and config.active_record.default_timezone settings?
[14:16:20] fschuindt: broman: https://blog.bigbinary.com/2009/01/21/override-automatic-timestamp-in-activerecord-rails.html
[14:16:30] fschuindt: If that doesn't helps, I'm out :/
[19:57:34] fschuindt: Quit: WeeChat 2.0

2017-12-27

[03:55:38] fschuindt: Ping timeout: 252 seconds
[06:03:59] fschuindt: has joined #RubyOnRails
[06:08:41] fschuindt: Ping timeout: 265 seconds
[13:25:56] fschuindt: has joined #RubyOnRails
[23:04:25] fschuindt: Ping timeout: 252 seconds
[23:52:10] fschuindt: has joined #RubyOnRails

2017-12-26

[11:12:59] fschuindt: has joined #RubyOnRails
[18:36:33] fschuindt: noocx: I think you may be having a issue to explain what you want using IT-related terms
[18:37:52] fschuindt: noocx: where you from? Brazul? maybe I can help
[18:38:06] fschuindt: oh, mevermind
[18:38:25] fschuindt: dminuoso: start judging spelling than mine got messed
[18:40:05] fschuindt: noocx: use a Markdown file in gist, use MD syntax to help you then post the link here, or prepare a question to StackOverflow
[19:44:46] fschuindt: Quit: WeeChat 2.0
[21:19:50] fschuindt: has joined #RubyOnRails
[21:21:33] fschuindt: Folks, there's a way to store a object on disk and get it back after with 100% integrity? I'm tryig using YAML::load_file but I'm getting undefined method `pipe' for #<Object:0x00007ff544248920>. Ay tip?
[21:21:58] fschuindt: I'm trying to mock a API result object to use it on RSpec
[21:23:17] fschuindt: let me check
[21:24:46] fschuindt: can I see your schema.db? btw you can arrange multiple files in a single gist
[21:29:18] fschuindt: noocx: sorry, tag my name next time I was refactoring your code, check my comments: https://gist.github.com/fschuindt/246360c6c90b6d080b8514ebe8346a76
[21:29:59] fschuindt: noocx: you asking for title but your database is name
[21:35:14] fschuindt: noocx: it stays there, but I'm calling via a private method that ensures you wont load it twice, instad of @ticket, call by just ticket now. Search for Ruby's double pipe equals operator
[22:46:55] fschuindt: Ping timeout: 265 seconds
[22:57:09] fschuindt: has joined #RubyOnRails
[23:33:50] fschuindt: Ping timeout: 252 seconds
[23:36:00] fschuindt: has joined #RubyOnRails
[23:49:47] fschuindt: Ping timeout: 252 seconds
[23:57:35] fschuindt: has joined #RubyOnRails

2017-12-24

[04:43:14] fschuindt: Ping timeout: 252 seconds
[09:42:07] fschuindt: has joined #RubyOnRails
[09:46:54] fschuindt: Ping timeout: 272 seconds
[12:52:49] fschuindt: has joined #RubyOnRails
[12:57:08] fschuindt: Ping timeout: 252 seconds
[14:50:23] fschuindt: has joined #RubyOnRails
[16:12:49] fschuindt: Ping timeout: 265 seconds
[16:49:41] fschuindt: has joined #RubyOnRails
[18:47:35] fschuindt: what's the route to a method that will fetch a API data and write stuff in the database? POST? GET?
[19:04:32] fschuindt: amperry: The fact is that no data will be sent in the request. It just triggers the back-end to fetch an external API with static arguments.
[19:05:18] fschuindt: I think it's GET in this case, don't?
[19:10:56] fschuindt: amperry: it changes the database, but with no parameters
[19:18:15] fschuindt: I'm almost doing it as update with no agrs
[19:26:33] fschuindt: dminuoso: yeah, I'm going for PUT/POST
[19:26:48] fschuindt: thank you you dminuoso and amperry
[19:27:32] fschuindt: It's a demo app, it's suposed to erase the entire DB and rebuild it again using data from a API
[19:28:16] fschuindt: I think I will use it, thank you
[19:32:41] fschuindt: dminuoso: nice, thank you!
[19:32:43] fschuindt: delete '/', :to 'pipes#fetch_and_rebuild'
[22:28:38] fschuindt: what's the best place to put a class that will connect a external API to grab some data? I'm trying to avoid /lib and use one of the default loaded dirs in Rails. Ay tip?
[22:33:11] fschuindt: dminuoso: https://codeclimate.com/blog/what-code-goes-in-the-lib-directory
[22:34:05] fschuindt: dminuoso: yea, you're probably right
[22:35:54] fschuindt: dminuoso: yes, I will load it anyway, thank you
[23:08:29] fschuindt: Ping timeout: 265 seconds

2017-12-23

[22:53:45] fschuindt: has joined #RubyOnRails
[22:55:37] fschuindt: Hi there, folks. When accessing CardsController#index, many SQL queries to the same object are being made. In the index view I need to show card.phase.name and that's why. Many cards share the same phase. Any clever way to avoid it?
[22:56:33] fschuindt: 'SELECT "phases".* FROM "phases" WHERE "phases"."id" = $1' being made for every time I do card.phase.name
[23:00:18] fschuindt: amperry: sounds like you are right. thank you! :)

2017-12-21

[03:31:09] fschuindt: has joined #ruby
[03:35:11] fschuindt: Ping timeout: 240 seconds
[10:01:02] fschuindt: has joined #ruby
[11:05:01] fschuindt: Quit: WeeChat 2.0
[12:12:15] fschuindt: has joined #RubyOnRails
[20:08:46] fschuindt: Quit: WeeChat 2.0

2017-12-20

[12:37:13] fschuindt: has joined #RubyOnRails
[12:57:06] fschuindt: morfin60: the class belongs to a gem or it's inside a file into app/?
[12:58:28] fschuindt: if it's inside a default Rails dir like app/models it will be autoloaded. if you want to create a new folder for it, you may specify Rails config to load that path
[13:52:27] fschuindt: Quit: WeeChat 2.0
[17:30:39] fschuindt: has joined #ruby
[17:32:39] fschuindt: How can I use Ruby to capture HTTP requests made to my computer in the port 3000, for instance? Like: I want to send Rails a HTTP request and use Ruby outside Rails to get this request too. Is that possible?
[17:47:16] fschuindt: can I have two softwares listening the same port? I think that's my question
[17:55:31] fschuindt: elomatreb: thank you, mate :)
[17:59:31] fschuindt: Papierkorb: nice! thank you
[23:42:26] fschuindt: Ping timeout: 265 seconds

2017-12-19

[12:23:29] fschuindt: has joined #RubyOnRails
[20:02:58] fschuindt: Quit: WeeChat 2.0

2017-12-15

[12:28:34] fschuindt: has joined #RubyOnRails
[19:05:01] fschuindt: Quit: WeeChat 2.0

2017-12-14

[11:52:10] fschuindt: has joined #RubyOnRails
[12:24:07] fschuindt: Quit: WeeChat 2.0

2017-12-13

[14:12:40] fschuindt: has joined #RubyOnRails
[14:13:00] fschuindt: Any clever way to replay a request to my local Rails server?
[14:13:12] fschuindt: I want to cache it and replay it on demand
[16:39:59] fschuindt: za1b1tsu: when you are not rendenring HTML. when all you have to do in the client side can be acomplished with only a header as response
[17:41:39] fschuindt: Quit: WeeChat 2.0
[17:46:47] fschuindt: has joined #RubyOnRails
[19:42:54] fschuindt: Quit: WeeChat 2.0

2017-12-07

[01:05:54] fschuindt: Quit: WeeChat 1.7

2017-12-06

[01:39:20] fschuindt: Ping timeout: 255 seconds
[05:37:15] fschuindt: has joined #RubyOnRails
[05:41:32] fschuindt: Ping timeout: 240 seconds
[09:08:04] fschuindt: has joined #RubyOnRails
[10:38:41] fschuindt: Ping timeout: 260 seconds
[11:27:53] fschuindt: has joined #RubyOnRails
[16:32:46] fschuindt: Ping timeout: 264 seconds
[16:52:37] fschuindt: has joined #RubyOnRails
[20:02:27] fschuindt: Ping timeout: 240 seconds
[21:52:58] fschuindt: has joined #RubyOnRails

2017-12-05

[11:47:35] fschuindt: has joined #RubyOnRails
[16:08:03] fschuindt: Read error: Connection reset by peer
[16:08:32] fschuindt: has joined #RubyOnRails
[19:35:44] fschuindt: Ping timeout: 255 seconds
[20:21:45] fschuindt: has joined #RubyOnRails

2017-11-13

[15:46:13] fschuindt: has joined #RubyOnRails
[15:46:18] fschuindt: has left #RubyOnRails: ()

2017-11-09

[04:20:01] fschuindt: Quit: WeeChat 1.7

2017-11-08

[15:59:21] fschuindt: Ping timeout: 250 seconds
[17:20:49] fschuindt: has joined #RubyOnRails