njero

Activity Graph

Page 1 of 12 | Next »

2017-04-08

[04:27:42] njero: has joined #RubyOnRails
[08:35:53] njero: yup. usually that's the case
[08:39:01] njero: I would prefer different controllers if this is use case. Not sure about the patterns though
[08:39:21] njero: like.. brand_products_controller.. blah...
[08:58:23] njero: am i on the wrong planet? :0
[12:23:55] njero: Quit: Leaving

2017-04-07

[11:23:31] njero: has joined #RubyOnRails
[17:30:52] njero: Quit: Leaving

2016-07-31

[06:50:57] njero: has joined #RubyOnRails
[23:00:26] njero: Quit: Leaving

2016-07-26

[10:04:54] njero: has joined #RubyOnRails
[10:05:56] njero: Hi all. Is there a way in rails + standalone passenger in dev mode to see the request log for static files
[10:07:31] njero: i mean it's showing logs for others than static files like images and stuff
[17:05:20] njero: Quit: Leaving

2016-07-25

[08:33:46] njero: has joined #RubyOnRails
[13:07:54] njero: Ping timeout: 250 seconds
[14:00:33] njero: has joined #RubyOnRails
[15:45:57] njero: Ping timeout: 276 seconds
[16:55:32] njero: has joined #RubyOnRails
[17:04:36] njero: Ping timeout: 276 seconds
[17:27:40] njero: has joined #RubyOnRails
[20:40:23] njero: Quit: Leaving

2016-07-19

[13:43:06] njero: has joined #RubyOnRails
[16:52:00] njero: Ping timeout: 272 seconds
[16:52:29] njero: has joined #RubyOnRails
[20:31:15] njero: Quit: Leaving

2016-07-11

[06:42:55] njero: has joined #RubyOnRails
[06:44:40] njero: hi... If i want to add some dynamic methods based on json field attributes to a model, which class method would i be overriding?
[06:45:13] njero: alfiemax, hi
[06:47:08] njero: alfiemax, like i have a jsonb field, i need to make some of the keys to map into methods..
[06:47:45] njero: instead of coding into multiple methods, i would like to generate methods from predefined keys itself
[06:50:22] njero: i want to more attributes dynamically through some form itself.
[06:51:09] njero: I mean i thought it'd be better to have single jsonb field instead of having so many empty fields
[06:51:34] njero: like i have Place Model where most of fields won't be available for every place
[06:52:30] njero: rvanlieshout, so you're suggesting it's better to go with simple fields itself
[06:54:41] njero: rvanlieshout, noted.. will tweak ma approach. thanks. I chose this bcz i saw a similar pattern in implementing simple cms system through sti
[07:00:06] njero: rvanlieshout, not clear, but it kind of made sense for me in that CMS, like you create a model with persistence to db and inherit others, search and list multiple types at single query
[13:04:05] njero: Ping timeout: 250 seconds

2016-07-08

[11:25:46] njero: has joined #RubyOnRails
[15:11:16] njero: Quit: Leaving

2016-07-07

[09:27:07] njero: has joined #RubyOnRails
[18:50:19] njero: Quit: Leaving

2016-07-06

[06:31:55] njero: has joined #RubyOnRails
[07:36:08] njero: Ping timeout: 244 seconds
[07:49:47] njero: has joined #RubyOnRails
[19:49:03] njero: Quit: Leaving

2016-07-05

[10:26:47] njero: has joined #RubyOnRails
[19:29:43] njero: Quit: Leaving

2016-06-27

[04:08:12] njero: has joined #RubyOnRails
[08:36:30] njero: Ping timeout: 244 seconds
[08:49:50] njero: has joined #RubyOnRails
[10:28:40] njero: Ping timeout: 264 seconds
[10:31:08] njero: has joined #RubyOnRails
[12:28:31] njero: Ping timeout: 240 seconds
[12:54:08] njero: has joined #RubyOnRails
[19:24:43] njero: Quit: Leaving

2016-06-24

[07:52:30] njero: has joined #RubyOnRails
[11:33:43] njero: I'm not familiar with active admin. Is the request reaching the appropriate controller? can't you just check log n see. what is serving where?
[11:35:11] njero: you mean: redirect_to path is not working properly :: o0
[11:36:48] njero: OIC.. do you have any before filters for admin login page which require app login :P
[12:03:07] njero: maybe user helper methods or something like current_user asks warden to authenticate --"Wild guess :O"
[12:07:17] njero: are those set after starting server or something, may be stop spring tooo. if locally
[12:09:11] njero: conta1, lol... not unless if u track
[12:10:03] njero: basldex, yeah rt
[17:37:27] njero: Quit: Leaving

2016-06-23

[07:01:21] njero: has joined #RubyOnRails
[16:18:38] njero: Quit: Leaving

2016-06-21

[07:33:46] njero: has joined #RubyOnRails
[09:24:20] njero: AdamOnRails, => deafault:
[09:24:40] njero: mean generator :P
[09:26:51] njero: is stackoverflow down?
[20:01:16] njero: Remote host closed the connection

2016-06-20

[06:37:30] njero: has joined #RubyOnRails
[12:17:02] njero: Ping timeout: 272 seconds
[12:25:52] njero: has joined #RubyOnRails
[18:19:59] njero: Quit: Leaving

2016-06-19

[14:19:41] njero: has joined #RubyOnRails
[18:07:34] njero: Quit: Leaving

2016-06-14

[05:24:10] njero: has joined #RubyOnRails
[07:22:18] njero: Ping timeout: 246 seconds
[07:34:08] njero: has joined #RubyOnRails
[10:10:22] njero: Ping timeout: 250 seconds
[10:36:02] njero: has joined #RubyOnRails
[12:20:06] njero: voidDotClass, why don't you just set it to 0 with raw sql
[12:20:53] njero: how would it break?
[12:22:16] njero: you mean abt schema?
[12:26:27] njero: voidDotClass, do you have same db type for prod and dev?
[12:26:44] njero: why don't you change schema dump to sql?
[18:17:20] njero: Quit: Leaving

2016-06-13

[06:05:05] njero: has joined #RubyOnRails
[14:35:42] njero: Ping timeout: 260 seconds

2016-06-11

[03:44:28] njero: has joined #RubyOnRails
[07:02:22] njero: Ping timeout: 272 seconds
[08:37:53] njero: has joined #RubyOnRails
[10:02:58] njero: Ping timeout: 252 seconds

2016-06-10

[06:15:30] njero: has joined #RubyOnRails
[08:02:42] njero: Ping timeout: 276 seconds

2016-06-08

[04:56:26] njero: has joined #RubyOnRails
[07:42:14] njero: Quit: Leaving

2016-06-07

[05:24:44] njero: has joined #RubyOnRails
[11:05:25] njero: alfiemax, you can verify the fb token rt?
[11:05:39] njero: on the server side
[11:08:03] njero: alfiemax, you don't have to keep token if you don't need direct access from server side.. keep fbid which is same
[11:08:14] njero: only use token to verify
[11:10:29] njero: also token has a validity for around 60 days i think.
[11:14:46] njero: hm.. but wouldn't need user to see facebook app :P
[11:15:54] njero: actually it might, just skips the authorization page only.
[11:16:15] njero: google play signin does a better job on that :)
[17:29:49] njero: Quit: Leaving

2016-06-04

[08:41:59] njero: has joined #RubyOnRails
[09:06:39] njero: Hi, I'm trying to make pg_search gem work for fulltext search. However the when i enable tsearch with english dictionary, it's not returning any results for queries like "the", "t" etc. Seems like it skips "the", "in", "on" etc. Is there anyway to make it work with english dictionary ?
[09:07:39] njero: It's working fine with simple dict
[11:15:58] njero: apeiros, sevenseacat OIC, then i think i could make use of a custom dictionary then.. like this http://stackoverflow.com/questions/1497895/can-i-configure-stop-words-programmatically-with-postgresql-full-text-search
[11:21:04] njero: but it'd would be grt if pg_search multisearch had an option where it can make use of different dictionaries. Now the options goes in class level(initializer), not along with the method
[11:53:37] njero: Hey. What will be the best pattern to dump some json data as fast as possible from users(like analytic data chunk) and then clean and commit to main data model?
[11:54:48] njero: dump to some other model as text or some s3 file or something :|
[11:56:42] njero: alfiemax, you mean as json itself(like jsonb or json)
[11:57:20] njero: alfiemax, ya rt.. ma bad :)
[12:00:10] njero: alfiemax, you mean using workers? like sidekiq
[12:01:42] njero: i'm doing the same, but the I'm afraid about keeping that data in redis for that period of time without some persistence
[12:03:39] njero: and won't there be a limit for redis key values if it's passed as params to worker?
[12:03:47] njero: i mean size wise
[12:04:47] njero: sry not an issue,, it's around 512mb :P
[12:36:00] njero: alfiemax, wow nice
[12:36:09] njero: alfiemax, thanks man
[18:03:48] njero: Quit: Leaving

2016-06-03

[07:22:15] njero: has joined #RubyOnRails
[07:34:03] njero: Read error: No route to host
[07:52:31] njero: has joined #RubyOnRails
[17:03:53] njero: Ping timeout: 244 seconds
[17:20:34] njero: has joined #RubyOnRails
[17:24:41] njero: Ping timeout: 240 seconds
[17:41:06] njero: has joined #RubyOnRails
[17:52:26] njero: Read error: Connection reset by peer
[17:52:59] njero: has joined #RubyOnRails
[18:03:17] njero: Read error: Connection reset by peer
[18:04:01] njero: has joined #RubyOnRails
[18:19:41] njero: Read error: Connection reset by peer
[18:20:03] njero: has joined #RubyOnRails
[18:35:44] njero: Read error: Connection reset by peer
[18:36:04] njero: has joined #RubyOnRails
[18:36:56] njero: Read error: Connection reset by peer
[18:37:21] njero: has joined #RubyOnRails
[18:42:25] njero: Ping timeout: 252 seconds

2016-06-02

[06:42:06] njero: has joined #RubyOnRails
[13:07:29] njero: Quit: Leaving

2016-06-01

[04:17:08] njero: has joined #RubyOnRails
[05:17:50] njero: Ping timeout: 260 seconds
[05:33:36] njero: has joined #RubyOnRails
[05:49:27] njero: Ping timeout: 260 seconds
[06:05:14] njero: has joined #RubyOnRails
[10:16:26] njero: Quit: Leaving
[10:16:48] njero: has joined #RubyOnRails
[11:42:09] njero: Ping timeout: 260 seconds
[11:57:42] njero: has joined #RubyOnRails
[13:03:03] njero: Read error: Connection reset by peer
[13:03:39] njero: has joined #RubyOnRails
[13:37:43] njero: Quit: Leaving
[19:34:51] njero: has joined #RubyOnRails
[21:44:10] njero: Ping timeout: 244 seconds

2016-05-31

[14:59:04] njero: has joined #RubyOnRails
[14:59:42] njero: has left #RubyOnRails: ()
[16:04:01] njero: has joined #RubyOnRails
[16:11:25] njero: Quit: Leaving
[16:14:52] njero: has joined #RubyOnRails
[19:25:42] njero: Quit: Leaving

2016-05-30

[03:46:46] njero: has joined #RubyOnRails
[04:23:04] njero: Ping timeout: 240 seconds
[04:39:34] njero: has joined #RubyOnRails
[11:03:03] njero: Quit: Gotta go.. Gonna kick an agent today ;)

2016-05-29

[08:05:34] njero: has joined #RubyOnRails
[15:36:38] njero: Quit: Gotta go.. Gonna kick an agent today ;)
[15:39:45] njero: has joined #RubyOnRails
[17:59:05] njero: Quit: Gotta go.. Gonna kick an agent today ;)

2016-05-28

[04:33:21] njero: has joined #RubyOnRails
[06:49:42] njero: Ping timeout: 246 seconds
[09:50:02] njero: has joined #RubyOnRails
[11:13:30] njero: Quit: Gotta go.. Gonna kick an agent today ;)
[13:38:01] njero: has joined #RubyOnRails
[18:02:41] njero: helpa .. never listens to me ::P
[20:34:57] njero: Quit: Gotta go.. Gonna kick an agent today ;)

2016-05-27

[06:26:28] njero: has joined #RubyOnRails
[09:04:26] njero: Quit: Gotta go.. Gonna kick an agent today ;)
[09:28:43] njero: has joined #RubyOnRails
[09:30:20] njero: Remote host closed the connection
[09:51:56] njero: has joined #RubyOnRails
[21:23:34] njero: Remote host closed the connection

2016-05-26

[06:14:18] njero: has joined #RubyOnRails
[06:52:54] njero: roelof: find_by
[06:56:18] njero: roelof: then you're looking for .where() :)
[06:56:33] njero: tildes: +1
[06:59:58] njero: i asked some doubt regarding rails passenger deployment yesterday. can i repost? could n't figure out the reason yet :(
[07:01:33] njero: silence.. i take it as a yes :)
[07:04:57] njero: roelof: http://guides.rubyonrails.org/active_record_querying.html go through it
[07:10:33] njero: Reposting:
[07:10:34] njero: What's the reason for such behavour instead on handling what it can handle max?
[07:10:34] njero: with 110req concurrent => Iam losing 107req all together and 3req with non 2xx
[07:10:34] njero: With 100req concurrent => I got 100 response success
[07:10:34] njero: Hi, I have a rails app running on passenger standalone. Iam trying to figure out req/sec.
[07:12:40] njero: GorillaApe: i think you're looking for some ajax reqsts
[11:06:36] njero: Circuit8: yup. you have everything inside params
[11:08:25] njero: Circuit8: suppose you have model to be created with those params and you need to pass the reqd and permitted once.. there you go
[11:08:40] njero: take a look at strong params
[11:09:16] njero: Circuit8: http://edgeguides.rubyonrails.org/action_controller_overview.html
[11:09:56] njero: examples in following shows some kind of structure http://edgeapi.rubyonrails.org/classes/ActionController/StrongParameters.htmlhttp://edgeapi.rubyonrails.org/classes/ActionController/StrongParameters.html
[11:10:21] njero: i mean controller structure and how to use strong params
[11:16:40] njero: Circuit8: np :)
[11:21:45] njero: prudhvi: are you looking for a cmd to startup the server?
[17:21:06] njero: Ping timeout: 272 seconds
[18:22:22] njero: has joined #RubyOnRails
[18:25:48] njero: apawl: rails will take care of you
[18:30:07] njero: apawl: why do you want to create db each time you deploy? or you mean migration?
[18:31:58] njero: apawl: yeah, then this will be happening way before you starting your rails server rt?
[18:32:24] njero: so won't try connecting to db unless you already running it
[18:35:16] njero: apawl: thats rake not rails app
[18:35:56] njero: apawl: won't be an issue until you hit db like through migrate etc
[18:38:29] njero: apawl: If you are doing an AR query you'll need it
[18:38:44] njero: till then it wont try hitting db
[18:39:29] njero: actually.. I am not sure. anyone correct me if I'm wrong.
[18:40:58] njero: just checked in development mode.. It's not hitting db until you make a query
[18:41:20] njero: apawl: actually there are some difference in old versions of rais
[18:42:44] njero: IIRC .. it used to query db for attribute types previously.. No it's all lazy :P
[18:45:13] njero: apawl: which rake task are you running?
[18:47:12] njero: apawl: is it a custom task created by u?
[18:48:28] njero: by the looks of it, you messed up url structure provided. it expects only url.. not user
[18:49:41] njero: what happened to helpa :P
[18:51:36] njero: tubbo: yeah
[20:43:48] njero: Quit: Gotta go.. Gonna kick an agent today ;)

2016-05-25

[19:17:47] njero: hey, what device would be recommended for rails dev? mac or linux?
[19:21:02] njero: norc__: was going through this, http://david.heinemeierhansson.com/arc/000433.html
[19:25:28] njero: norc: tubbo noted :)
[23:04:28] njero: Quit: Gotta go.. Gonna kick an agent today ;)