loc22

Activity Graph

Page 1 of 2 | Next »

2016-04-01

[14:58:04] loc22: has joined #ruby
[14:58:04] loc22: has joined #RubyOnRails
[14:58:05] loc22: Remote host closed the connection
[14:58:24] loc22: has joined #ruby
[14:58:24] loc22: has joined #RubyOnRails
[15:58:02] loc22: Quit: Be back later ...
[16:38:03] loc22: has joined #ruby
[16:38:03] loc22: has joined #RubyOnRails
[18:14:43] loc22: Quit: Lingo: www.lingoirc.com

2016-03-31

[17:10:25] loc22: has joined #RubyOnRails
[17:10:26] loc22: has joined #ruby
[17:13:38] loc22: Hi guys, I need some help. I have 3 models: User, Photo and Match. I want to order User's photo, by match date. If I do "Photo.joins(:matches).order('matches.approved_at DESC').where(:matches => { status: 0 })" ir works. But if I do "current_user.photos.joins(:matches).order('matches.approved_at DESC').where(:matches => { status: 0 })" it dosent. Any idea?
[17:18:58] loc22: Hi guys, I need some help. I have 3 models: User, Photo and Match. I want to order User's photo, by match date. If I do "Photo.joins(:matches).order('matches.approved_at DESC').where(:matches => { status: 0 })" ir works. But if I do "current_user.photos.joins(:matches).order('matches.approved_at DESC').where(:matches => { status: 0 })" it dosent. Any idea?
[17:22:20] loc22: Hi guys, anyone able to help me?
[17:24:20] loc22: cnk: As far as you know, does the query make sense?
[17:26:26] loc22: cnk: Thanks. I will digg into the SQL logs
[18:16:40] loc22: Quit: Lingo: www.lingoirc.com

2016-02-19

[00:08:40] loc22: Quit: Be back later ...
[00:33:03] loc22: has joined #ruby
[00:33:03] loc22: has joined #RubyOnRails
[00:37:23] loc22: Ping timeout: 248 seconds
[01:56:09] loc22: has joined #ruby
[01:56:09] loc22: has joined #RubyOnRails
[01:56:47] loc22: Client Quit

2016-02-18

[23:13:03] loc22: has joined #ruby
[23:13:03] loc22: has joined #RubyOnRails
[23:14:42] loc22: Hi guys. Question: I need to build an API, so Im thinking on using Rails 5 with the new API-only feautre. But then I need a small dashbord for configuration. Should I create a full project instead?
[23:22:46] loc22: Hi guys. Question: I need to build an API, so Im thinking on using Rails 5 with the new API-only feautre. But then I need a small dashbord for configuration. Should I create a full project instead?
[23:33:21] loc22: flappynerd: http://edgeguides.rubyonrails.org/api_app.html?utm_source=rubyweekly&utm_medium=email
[23:35:34] loc22: Radar: Can I use two app connecting to the same DB in Heroku?
[23:36:44] loc22: Radar: And when adding a new migration, I should add it to both projects?
[23:38:11] loc22: bronson: I read that Rails API feature is faster than creating a full app. But then I need a dashboard. So looks like that I have to create a full app anyways
[23:38:47] loc22: bronson: Yep. Is not like that?
[23:44:28] loc22: Radar, baweaver, bronson: Yes, I think I will stay with a full app. I also was looking at Phoenix but surelly not for this project. Thanks you guys for your time and your willingness to help :)

2015-11-23

[22:30:48] loc22: has joined #ruby
[22:30:48] loc22: has joined #RubyOnRails
[23:41:23] loc22: Quit: Lingo: www.lingoirc.com

2015-11-11

[15:38:56] loc22: has joined #RubyOnRails
[15:38:57] loc22: has joined #ruby
[15:38:58] loc22: Remote host closed the connection
[15:39:56] loc22: has joined #RubyOnRails
[15:41:21] loc22: Hi guy! Have any of you used rails-api before? I wonder if I use it, if I can do in the same project an admin backend?
[15:43:19] loc22: tubbo: Just for curiosity. I have build a lot of apis before, but using noraml rails projects because I needed web views also. There is no point in using rails-api if I need that too, right?
[16:04:42] loc22: Quit: Page closed
[19:37:01] loc22: has joined #ruby
[19:37:01] loc22: has joined #RubyOnRails
[19:38:43] loc22: Hi guys! I cant found any guide only about how to implemenet Devise + Ominiauth, but using a Identity table(provider, uuid) where 1 User can have many Identites to login with Facebook, twitter, etc.. Any idea how?
[19:43:51] loc22: arup_r: Yes I have seen it. But instead of having provider inside User, to have it in a separate table in order to have many.
[20:10:56] loc22: Ping timeout: 276 seconds
[20:11:35] loc22: Remote host closed the connection
[20:11:35] loc22: has joined #ruby
[20:11:35] loc22: has joined #RubyOnRails

2015-10-26

[01:16:40] loc22: has joined #RubyOnRails
[01:16:41] loc22: has joined #ruby
[01:16:42] loc22: Remote host closed the connection
[01:16:51] loc22: has joined #ruby
[01:16:51] loc22: has joined #RubyOnRails
[01:16:53] loc22: Remote host closed the connection
[01:17:02] loc22: has joined #RubyOnRails
[01:17:03] loc22: has joined #ruby
[01:17:04] loc22: Remote host closed the connection
[01:17:23] loc22: has joined #ruby
[01:17:23] loc22: has joined #RubyOnRails
[01:17:24] loc22: Remote host closed the connection
[01:22:02] loc22: has joined #RubyOnRails
[01:23:43] loc22: Hi guys! Do you guys know if it is possible to use websockets in Rails, and send streaming data from a device to a Rails backend api?
[01:51:18] loc22: Ping timeout: 246 seconds

2015-10-22

[18:28:11] loc22: has joined #ruby
[18:28:11] loc22: has joined #RubyOnRails
[18:28:22] loc22: Hi guy, anyone knows when Rails 5 is comming out?
[18:30:24] loc22: Papierkorb: Thanks!
[18:32:06] loc22: tubbo: It says 182 days :/
[18:33:47] loc22: tubbo: haha :)
[18:52:55] loc22: Quit: Lingo: www.lingoirc.com
[19:09:24] loc22: has joined #ruby
[19:09:24] loc22: has joined #RubyOnRails
[19:10:01] loc22: It is possible to have a backend admin on a rails api project? Or it is necesarry to have 2 apps?
[20:24:14] loc22: Quit: Lingo: www.lingoirc.com

2015-10-21

[19:26:08] loc22: has joined #ruby
[19:26:08] loc22: has joined #RubyOnRails
[19:27:28] loc22: Hi guys. Quick question. I want to deleted last 20 elements from a table, ordered by date. Model.oder(:date).last(20).destroy ... but is not working because the querry result is an Array. Any idea how to do that?
[19:28:10] loc22: tubbo: Thanks! It worked perfect ;)
[19:33:09] loc22: Quit: Lingo: www.lingoirc.com

2015-10-20

[22:27:12] loc22: has joined #ruby
[22:27:12] loc22: has joined #RubyOnRails
[22:29:51] loc22: Hi guys, quick question. I have a string field in my model, and I getting a postgres error because Im inserting a long text. How can I upgrade from string to text without deleting the actual value of all the strings stored in the db?
[22:31:16] loc22: workmad3: Will the actual value be deleted?
[22:49:51] loc22: Quit: Be back later ...

2015-10-19

[14:48:07] loc22: has joined #RubyOnRails
[14:48:08] loc22: has joined #ruby
[14:54:42] loc22: Hi guys, I have a quick question. I have the following query Tag.joins(:posts).group("tags.id").order("count_all desc").count
[14:55:09] loc22: And I want to iterate over that, but is not a activerecord relation but a hash
[14:59:07] loc22: nurbson: But then I have to do something like Tag.find(key) for each iteration
[15:01:50] loc22: jhass, but I want to order them by count in the relationship
[15:01:55] loc22: is a HABTM realtion
[15:01:59] loc22: relation*
[15:02:49] loc22: jhass: how does the query should like with .select?
[15:02:56] loc22: should be like*
[15:08:29] loc22: jhass: Yes, something like that :)
[15:09:17] loc22: jhass: I want to list the top 10 tags
[15:09:50] loc22: jhass: The links are very intresting. But I will want anyways to learn how to do that query
[15:15:47] loc22: matthewd: worked like a boss ;) thanks!
[16:02:52] loc22: Quit: Be back later ...
[18:35:15] loc22: has joined #ruby
[18:35:15] loc22: has joined #RubyOnRails
[18:58:23] loc22: Quit: Lingo: www.lingoirc.com

2015-10-06

[13:48:00] loc22: has joined #ruby
[13:48:00] loc22: has joined #RubyOnRails
[13:49:41] loc22: Hi guys! Im trying to extract some info from urls and trying to use some gem for open graph protocol. I have tried opengraph_parser, opengraph, open_graph_reader... and any of those work
[13:49:50] loc22: Which one do you normally use?
[13:53:13] loc22: funkenstrahlen: It is safe
[13:57:51] loc22: Quit: Be back later ...
[14:35:28] loc22: has joined #ruby
[14:35:28] loc22: has joined #RubyOnRails
[15:40:19] loc22: Quit: Lingo: www.lingoirc.com

2015-10-05

[15:45:23] loc22: has joined #ruby
[15:45:23] loc22: has joined #RubyOnRails
[15:50:05] loc22: Client Quit
[15:50:39] loc22: has joined #ruby
[15:50:39] loc22: has joined #RubyOnRails
[17:49:40] loc22: Quit: Be back later ...
[18:10:10] loc22: has joined #ruby
[18:10:10] loc22: has joined #RubyOnRails
[20:43:00] loc22: Ping timeout: 240 seconds

2015-10-02

[00:07:50] loc22: Quit: Be back later ...
[00:23:54] loc22: has joined #ruby
[00:23:54] loc22: has joined #RubyOnRails
[01:03:17] loc22: Quit: Lingo: www.lingoirc.com

2015-10-01

[17:37:19] loc22: has joined #ruby
[17:37:19] loc22: has joined #RubyOnRails
[18:23:45] loc22: Quit: Be back later ...
[18:24:51] loc22: has joined #ruby
[18:24:51] loc22: has joined #RubyOnRails
[20:01:10] loc22: Quit: Be back later ...
[23:46:26] loc22: has joined #ruby
[23:46:26] loc22: has joined #RubyOnRails

2015-09-30

[19:31:53] loc22: has joined #ruby
[19:31:53] loc22: has joined #RubyOnRails
[19:47:41] loc22: Quit: Be back later ...
[20:03:25] loc22: has joined #ruby
[20:03:25] loc22: has joined #RubyOnRails
[21:27:44] loc22: Ping timeout: 256 seconds

2015-08-13

[12:48:55] loc22: has joined #RubyOnRails
[12:48:56] loc22: has joined #ruby
[13:32:19] loc22: Quit: Lingo: www.lingoirc.com
[15:34:24] loc22: has joined #ruby
[15:34:24] loc22: has joined #RubyOnRails
[15:41:37] loc22: Quit: Be back later ...
[18:12:55] loc22: has joined #ruby
[18:12:55] loc22: has joined #RubyOnRails
[22:17:59] loc22: Quit: Be back later ...
[22:57:29] loc22: has joined #ruby
[22:57:29] loc22: has joined #RubyOnRails
[22:59:27] loc22: Client Quit

2015-07-31

[00:19:39] loc22: has joined #ruby
[00:19:39] loc22: has joined #RubyOnRails
[00:23:51] loc22: Ping timeout: 246 seconds
[01:52:35] loc22: has joined #RubyOnRails
[01:52:36] loc22: has joined #ruby
[02:10:17] loc22: Quit: Be back later ...

2015-07-30

[18:43:12] loc22: has joined #ruby
[18:43:12] loc22: has joined #RubyOnRails
[19:31:56] loc22: Quit: Be back later ...
[20:32:29] loc22: has joined #ruby
[20:32:29] loc22: has joined #RubyOnRails
[20:37:24] loc22: Ping timeout: 246 seconds
[22:33:57] loc22: has joined #ruby
[22:33:57] loc22: has joined #RubyOnRails
[22:38:26] loc22: Ping timeout: 244 seconds

2015-07-29

[19:08:24] loc22: has joined #ruby
[19:08:24] loc22: has joined #RubyOnRails
[19:38:02] loc22: Read error: Connection reset by peer
[21:11:57] loc22: has joined #ruby
[21:11:57] loc22: has joined #RubyOnRails
[22:30:10] loc22: Quit: Be back later ...

2015-07-22

[13:57:14] loc22: has joined #ruby
[13:57:14] loc22: has joined #RubyOnRails
[14:01:03] loc22: Hi guys! I have been working around this problem and I cant find a solution. I have a Book model that has :author_id and :review_at(datetime). I need to get all the Book from a list of authors ids(ie: [2,3,7,8]) OR those books where :review_at is not nil. Any suggestions?
[14:03:38] loc22: workmad3: Works great! Thanks so much for your help :)
[15:46:51] loc22: Hi guys, quick question. I have been using JBUILDER to generate json, and I found it very slow. The json structure that I have is comlpicated. Which way do you guys recommend for a better performance?
[15:48:58] loc22: alex88: I will try it. Thanks
[15:50:58] loc22: alex88: I was using oj. They claim to be faster than yajl
[15:52:45] loc22: alex88: With New Relic.. sometimes take around 10 seconds :/
[15:56:34] loc22: tubo, alex88: I am still using jbuilder for most of the endpoints, but for the slowest one, I changed to ".to_json" and performance was better. I am not doing caching in ".to_json"
[15:57:42] loc22: alex88: Better than using jbuilder
[15:58:07] loc22: alex88: Yes, like 5 seconds aprox
[16:00:00] loc22: alex88: I will try AMS and see if it gets better
[16:28:03] loc22: Read error: Connection reset by peer

2015-07-17

[15:53:50] loc22: has joined #ruby
[15:53:50] loc22: has joined #RubyOnRails
[16:35:00] loc22: Quit: Lingo: www.lingoirc.com

2015-07-14

[13:26:29] loc22: has joined #ruby
[13:26:29] loc22: has joined #RubyOnRails
[15:23:33] loc22: Quit: Be back later ...

2015-07-13

[19:08:53] loc22: has joined #ruby
[19:08:53] loc22: has joined #RubyOnRails
[19:10:44] loc22: Hi guys! Is there anyone using Phusion Passanger 5 (Raptor) on Heroku?
[19:13:14] loc22: ght: Use strftime to print them
[19:13:43] loc22: ght: You are welcome
[19:58:52] loc22: Hava any of you have tried http://gwan.ch before?
[19:59:54] loc22: tubbo: Did you ever tried it?
[20:00:50] loc22: tubbo: Yes, the benchmarks looks amazing, but havent tried it ye
[20:01:34] loc22: tubbo: Which ruby web server do you normally use? Puma, unicorn or passanger?
[20:04:13] loc22: tubbo: Nice. I have done some research and looks like passanger 5 (raptor) looks pretty good. Im dealing with high response time with Heroku and trying to fix it.
[20:04:22] loc22: Will try it and let you know ;)
[20:05:23] loc22: I have a couple of bottlenecks, but generating json looks like one
[20:05:46] loc22: Im using jbuilder
[20:07:30] loc22: Thanks! Yes, Im using New Relic
[20:08:07] loc22: I have changed some of the methods that answer json, and stop using jbuilder, and I started getting better response times
[20:09:46] loc22: Yes, that make sense
[20:10:17] loc22: Yes, I changed to use 'render json:' and get better results
[20:10:35] loc22: I also think that Im dealing with n+1 queries
[20:13:21] loc22: The problem is that some of the main methods have complicated queries and looks like there is no way to make them simpler. But I will continue trying :)
[20:21:51] loc22: Quit: Be back later ...
[21:22:41] loc22: has joined #RubyOnRails
[21:22:42] loc22: has joined #ruby
[21:27:08] loc22: Ping timeout: 246 seconds
[22:23:27] loc22: has joined #ruby
[22:23:27] loc22: has joined #RubyOnRails
[22:28:11] loc22: Ping timeout: 264 seconds

2015-07-11

[00:21:45] loc22: Quit: Be back later ...
[01:19:48] loc22: has joined #ruby
[01:19:48] loc22: has joined #RubyOnRails
[02:52:40] loc22: Quit: Be back later ...

2015-07-10

[22:02:22] loc22: has joined #ruby
[22:02:22] loc22: has joined #RubyOnRails

2015-07-06

[18:06:11] loc22: has joined #RubyOnRails
[18:06:29] loc22: has joined #ruby
[18:07:29] loc22: Hi guys, quick question. Anyone knows what is the equivalent to --binary-data (cURL) in 'http/net' ?
[18:14:49] loc22: Hi guys, I know this isn't for Rails, but anyone knows what is the equivalent '--binary-data'(cURL) in 'http/net'?
[18:16:31] loc22: tubbo: No idea :/ but looks like it attaches some data in the request...
[18:16:56] loc22: tubbo: is '--data-binary'
[18:21:08] loc22: tubbo: Yes, you are right
[18:21:40] loc22: tubbo: The actual request that Im trying to do with 'http/net' is the following one: https://gist.github.com/anonymous/025d8b274d108be08dc6
[18:56:59] loc22: Quit: Be back later ...
[19:41:54] loc22: has joined #ruby
[19:41:54] loc22: has joined #RubyOnRails
[20:58:20] loc22: Quit: Be back later ...

2015-06-12

[14:30:35] loc22: has joined #RubyOnRails
[14:56:55] loc22: Quit: Lingo: www.lingoirc.com

2015-06-07

[00:08:14] loc22: has joined #RubyOnRails
[00:12:32] loc22: Ping timeout: 246 seconds
[01:09:18] loc22: has joined #RubyOnRails
[01:13:33] loc22: Ping timeout: 244 seconds
[05:03:39] loc22: has joined #RubyOnRails
[05:07:55] loc22: Ping timeout: 255 seconds
[15:03:48] loc22: has joined #RubyOnRails
[15:12:01] loc22: Quit: Be back later ...

2015-06-06

[23:28:48] loc22: Quit: Be back later ...