nocontrol

Activity Graph

Page 1 of 7 | Next »

2016-04-06

[09:46:25] nocontrol: has joined #ruby
[09:46:27] nocontrol: can anyone help with this question please? http://stackoverflow.com/questions/36419824/how-to-talk-to-kernel-devices-with-ruby-in-linux
[10:53:24] nocontrol: can anyone help with this question please? http://stackoverflow.com/questions/36419824/how-to-talk-to-kernel-devices-with-ruby-in-linux

2016-04-05

[08:47:15] nocontrol: has joined #RubyOnRails
[08:49:48] nocontrol: Client Quit
[08:50:12] nocontrol: has joined #RubyOnRails

2016-03-29

[18:51:43] nocontrol: has joined #ruby

2016-03-28

[04:24:15] nocontrol: has joined #ruby
[04:24:26] nocontrol: has joined #RubyOnRails
[04:25:34] nocontrol: is there any way to get last(100) items by activerecord with a step of 200 ? I can't find any documentation for a "step"
[04:42:57] nocontrol: sevenseacat: get the 200th row
[04:43:13] nocontrol: sevenseacat: then the 400th row, then the 600th row
[04:43:21] nocontrol: sevenseacat: the last 100 of them
[04:44:03] nocontrol: sevenseacat: an alternative ?
[04:45:00] nocontrol: sevenseacat: how do I get the 200th row data beginning from the last one ?
[04:45:13] nocontrol: I could iterate this way
[04:46:23] nocontrol: ....otherwise I must get 10k rows and then process them easily but I believe it's a total waste
[04:48:30] nocontrol: I'll try to experiment more
[05:38:17] nocontrol: Remote host closed the connection
[06:20:26] nocontrol: has joined #ruby
[06:56:41] nocontrol: Ping timeout: 244 seconds
[06:57:24] nocontrol: has joined #ruby
[07:00:49] nocontrol: has joined #ruby
[07:02:09] nocontrol: has joined #ruby
[07:03:54] nocontrol: Ping timeout: 244 seconds
[07:04:56] nocontrol: Ping timeout: 244 seconds
[07:45:39] nocontrol: Read error: Connection reset by peer
[07:46:14] nocontrol: has joined #ruby
[08:19:21] nocontrol: has joined #ruby
[08:21:35] nocontrol: has joined #ruby
[08:22:40] nocontrol: Ping timeout: 252 seconds
[08:23:28] nocontrol: Ping timeout: 244 seconds
[08:43:57] nocontrol: Ping timeout: 260 seconds
[08:48:20] nocontrol: has joined #ruby
[10:44:34] nocontrol: Ping timeout: 252 seconds

2016-03-27

[07:57:14] nocontrol: has joined #ruby
[07:58:18] nocontrol: has joined #RubyOnRails
[07:58:33] nocontrol: hi all, what do you use for asset management in Rails ?
[07:59:17] nocontrol: sevenseacat: I didn't get your reply
[07:59:45] nocontrol: sevenseacat: and If it's old ?
[08:00:11] nocontrol: If the gem has not been updated with the appropriate library
[08:01:06] nocontrol: ok I trust you then
[08:01:24] nocontrol: sevenseacat: have you heard of browserify ?
[08:01:35] nocontrol: what's your opinion ?
[08:02:17] nocontrol: I see npm getting stronger and I am searching If there's a way to automate assets installation and update
[08:03:26] nocontrol: I didn't know it works like that
[08:03:40] nocontrol: sevenseacat: thanks, questions answered :)
[11:45:13] nocontrol: Remote host closed the connection
[12:04:03] nocontrol: has joined #ruby
[12:04:25] nocontrol: Remote host closed the connection
[14:20:58] nocontrol: has joined #ruby
[14:24:42] nocontrol: has joined #ruby
[14:26:52] nocontrol: Ping timeout: 264 seconds

2016-03-26

[15:56:06] nocontrol: has joined #RubyOnRails
[15:56:06] nocontrol: has joined #ruby
[15:56:43] nocontrol: what ways do you use other than bower to install assets in Rails ?
[16:00:03] nocontrol: makes sense but
[16:00:09] nocontrol: I was trying to install ChartJS
[16:00:24] nocontrol: and found out that the rails gem is not updated
[16:00:33] nocontrol: and will get you into trouble sooner or later
[16:00:49] nocontrol: mwlang: this is not very automated
[16:01:09] nocontrol: bower does everything for now but I don't trust it
[16:01:16] nocontrol: what about npm ?
[16:17:30] nocontrol: smathy: not using gem actually but bower
[16:17:37] nocontrol: but I am losing trust
[16:17:40] nocontrol: and I want to move
[16:17:54] nocontrol: I was wondering what else could be that will automate the procedure
[16:21:13] nocontrol: Remote host closed the connection
[16:30:03] nocontrol: has joined #ruby
[16:34:34] nocontrol: Ping timeout: 252 seconds
[16:39:29] nocontrol: has joined #ruby
[16:44:16] nocontrol: Ping timeout: 264 seconds
[16:57:34] nocontrol: has joined #ruby
[17:01:55] nocontrol: Ping timeout: 248 seconds
[17:06:57] nocontrol: has joined #ruby
[17:11:21] nocontrol: Ping timeout: 250 seconds
[17:25:03] nocontrol: has joined #ruby
[17:29:10] nocontrol: Ping timeout: 244 seconds
[17:34:13] nocontrol: has joined #ruby
[17:38:31] nocontrol: Ping timeout: 244 seconds
[17:52:33] nocontrol: has joined #ruby
[17:58:34] nocontrol: Ping timeout: 260 seconds
[18:01:40] nocontrol: has joined #ruby
[18:06:42] nocontrol: Ping timeout: 276 seconds
[18:10:58] nocontrol: has joined #ruby
[18:15:03] nocontrol: Ping timeout: 240 seconds
[18:20:14] nocontrol: has joined #ruby
[18:24:30] nocontrol: Ping timeout: 248 seconds
[18:30:06] nocontrol: has joined #ruby
[18:30:24] nocontrol: Client Quit

2016-03-25

[07:14:49] nocontrol: has joined #ruby
[07:19:10] nocontrol: Ping timeout: 252 seconds
[07:24:24] nocontrol: has joined #ruby
[07:25:22] nocontrol: Remote host closed the connection
[07:25:39] nocontrol: has joined #ruby
[07:36:40] nocontrol: Remote host closed the connection
[07:47:15] nocontrol: Ping timeout: 248 seconds
[07:52:53] nocontrol: has joined #ruby
[07:57:17] nocontrol: Ping timeout: 244 seconds
[08:10:40] nocontrol: has joined #ruby
[08:15:12] nocontrol: Ping timeout: 260 seconds
[08:19:49] nocontrol: has joined #ruby
[08:24:19] nocontrol: Ping timeout: 260 seconds
[08:38:04] nocontrol: has joined #ruby
[08:42:24] nocontrol: Ping timeout: 246 seconds
[08:56:13] nocontrol: has joined #ruby
[09:00:51] nocontrol: Ping timeout: 248 seconds
[09:04:55] nocontrol: has joined #ruby
[10:18:04] nocontrol: Remote host closed the connection
[10:23:35] nocontrol: has joined #ruby

2016-03-24

[05:04:47] nocontrol: has joined #ruby
[06:26:06] nocontrol: Remote host closed the connection
[07:05:27] nocontrol: has joined #ruby
[07:11:21] nocontrol: Ping timeout: 276 seconds
[07:16:32] nocontrol: has joined #ruby
[15:11:59] nocontrol: has joined #ruby
[15:15:01] nocontrol: Ping timeout: 252 seconds
[15:18:03] nocontrol: Ping timeout: 240 seconds
[15:19:37] nocontrol: has joined #ruby
[15:43:29] nocontrol: Remote host closed the connection
[16:39:08] nocontrol: has joined #ruby
[16:53:01] nocontrol: Remote host closed the connection
[17:01:12] nocontrol: has joined #ruby
[17:09:47] nocontrol: Remote host closed the connection
[17:15:25] nocontrol: has joined #ruby
[17:20:16] nocontrol: Ping timeout: 264 seconds
[17:24:48] nocontrol: has joined #ruby
[17:28:49] nocontrol: Ping timeout: 240 seconds
[17:43:08] nocontrol: has joined #ruby
[17:48:21] nocontrol: Ping timeout: 276 seconds
[17:53:04] nocontrol: has joined #ruby
[17:57:18] nocontrol: Ping timeout: 248 seconds
[18:01:46] nocontrol: has joined #ruby
[18:05:59] nocontrol: Ping timeout: 244 seconds
[18:19:47] nocontrol: has joined #ruby
[18:24:24] nocontrol: Ping timeout: 268 seconds
[18:37:45] nocontrol: has joined #ruby
[18:42:07] nocontrol: Ping timeout: 244 seconds
[18:55:42] nocontrol: has joined #ruby
[19:00:13] nocontrol: Ping timeout: 244 seconds
[19:13:59] nocontrol: has joined #ruby
[19:18:27] nocontrol: Ping timeout: 248 seconds
[19:32:02] nocontrol: has joined #ruby
[19:36:54] nocontrol: Ping timeout: 276 seconds
[19:51:00] nocontrol: has joined #ruby
[23:11:49] nocontrol: Remote host closed the connection

2016-03-23

[08:25:31] nocontrol: has joined #ruby
[13:26:30] nocontrol: has joined #ruby
[22:41:32] nocontrol: has joined #ruby
[23:15:24] nocontrol: Remote host closed the connection

2016-03-22

[07:30:49] nocontrol: has joined #ruby

2016-03-21

[09:26:40] nocontrol: has joined #ruby
[15:12:53] nocontrol: Remote host closed the connection
[15:43:41] nocontrol: has joined #ruby
[15:48:08] nocontrol: Ping timeout: 244 seconds
[17:26:08] nocontrol: has joined #ruby

2016-03-18

[08:32:12] nocontrol: has left #RubyOnRails: ()
[08:32:14] nocontrol: has joined #RubyOnRails
[08:32:43] nocontrol: how can you test the has_many associations in minitest ?
[08:33:15] nocontrol: User.respond_to?(:messages) ?
[08:36:01] nocontrol: arup_r: What do you mean why ? To see If the relationship exists
[08:36:24] nocontrol: arup_r: in shoulda also it's easy
[08:36:33] nocontrol: arup_r: but I decided to go with minitest :P
[08:37:03] nocontrol: arup_r: I don't want to use a gem for action I want to do
[08:37:49] nocontrol: arup_r: how else could I find If the relationship/association exists ?
[08:38:01] nocontrol: User has_many :messages
[08:39:16] nocontrol: it's a simple test
[08:41:34] nocontrol: arup_r: there's a gem for this https://github.com/steventux/minitest-ar-assertions
[08:42:28] nocontrol: arup_r: I am trying to see If the relationship exists. If User has a has_many association with the model Message
[08:43:01] nocontrol: arup_r: respond_to? isn't a solution, but the closest thing I found in the net related to that
[08:44:00] nocontrol: arup_r: this is a methodology and it's ok but when RSpec and Shoulda give you the ability to test them right away, I am only interested in this implementation in minitest
[08:44:29] nocontrol: I mean it's the simplest thing, it shouldn't be nuclear physics
[08:45:13] nocontrol: IF minitest doesn't let me do this in 2 minutes (which RSpec/Shoulda actually do) then something is going wrong, either me or MiniTest :D
[08:47:08] nocontrol: arup_r: not a specific
[08:47:33] nocontrol: arup_r: If it exists as an association
[08:48:02] nocontrol: ok for a specific user object/fixture, let's assume that
[08:48:14] nocontrol: for the @user instance
[08:49:24] nocontrol: I could create a @user.message and then see If it .count +1 but this doesn't make much sense
[08:55:27] nocontrol: arup_r: what is the "message" ?
[08:55:42] nocontrol: I guess I should create it first
[08:57:40] nocontrol: arup_r: but you're trying to see If this specific message exists in the related messages so you must have created it before
[08:58:06] nocontrol: arup_r: well at least it's something to begin with
[08:58:15] nocontrol: rvanlieshout: check an association If it exists
[08:58:19] nocontrol: rvanlieshout: has_many one
[08:58:40] nocontrol: the users(:user) fixture
[08:59:40] nocontrol: rvanlieshout: trying to write a test assertion in minitest
[08:59:49] nocontrol: arup_r: makes sense
[09:02:16] nocontrol: rvanlieshout: User has_many :messages, does it exist as a relationship in the User model ?
[09:02:49] nocontrol: rvanlieshout: yes
[09:02:56] nocontrol: rvanlieshout: but in minitest alone
[09:03:12] nocontrol: rvanlieshout: I don't want to add extra gems
[09:03:31] nocontrol: rvanlieshout: you may shout but I decided to go native, If possible 100% Rails
[09:04:33] nocontrol: I know but I try to keep things minimal without the extra cost
[09:04:52] nocontrol: If it takes 5 lines to test a relationship, most possibly I'll go with shoulda
[09:05:06] nocontrol: but I want to give it a chance first
[09:05:24] nocontrol: rvanlieshout: you're sure?
[09:05:37] nocontrol: rvanlieshout: I am completely noob in minitest
[09:12:46] nocontrol: I see a lot of people turning around to minitest
[09:13:12] nocontrol: and I feel like Rails has become "everything" so the need for extra gems should be obsolete
[09:13:47] nocontrol: I have written lots of tests with RSpec but thing seem to get out of control
[09:14:09] nocontrol: I agree, Rails is a gem but it arms you with everything necessary
[09:15:46] nocontrol: universa1: lol it's a surreal
[09:15:53] nocontrol: kind of thinking
[09:16:05] nocontrol: you don't need more than C
[09:16:33] nocontrol: ok I am not being paranoid, I just trust Rails and the community for the features included
[09:17:00] nocontrol: I want to give honour to them by using the well trusted parts like minitest
[09:17:22] nocontrol: If I don't learn Rails then why use RSpec?
[09:17:44] nocontrol: universa1: yes agreed, I use foreman for example which is not implemented in Rails
[09:18:11] nocontrol: because "everyone uses RSpec" and that's not a reason
[09:18:42] nocontrol: I mean I started reading RSpec before touching Minitest because everyone was saying it's awesome
[09:19:11] nocontrol: I want to support Rails so whatever is missing would be implemented within the framework
[09:21:09] nocontrol: the codebase should include only the necessary things
[09:21:14] nocontrol: the application, I mean
[09:21:46] nocontrol: otherwise you will end including 500k lines of code for extra gems that could be 300 lines in ruby
[09:22:41] nocontrol: rvanlieshout: everything has a cost and to be able to determine which the cost is and what is the best choice you must be Ruby-wise and Rails-wise
[09:22:48] nocontrol: I hope to gain this skill one day
[09:23:05] nocontrol: anyway, thanks all for the valuable opinions
[09:23:18] nocontrol: I will try to add shoulda for minitest as a beginning

2016-03-17

[12:47:30] nocontrol: universa1: this is for production right ?
[12:49:42] nocontrol: universa1: do I need rake assets:precompile RAILS_ENV=development ?
[12:49:48] nocontrol: to specify the environment ?
[12:50:13] nocontrol: I did it, it precompiled them by it still takes 29 seconds to load the page when in production loads in 1.5s
[12:51:21] nocontrol: universa1: does it matter config.assets.debug = false/true ?
[12:53:05] nocontrol: universa1: is caching functional for development also or is it just getting disabled automatically ?
[12:53:55] nocontrol: universa1: thank you
[13:26:48] nocontrol: has joined #ruby
[13:33:14] nocontrol: Ping timeout: 260 seconds
[13:38:39] nocontrol: has joined #ruby
[13:41:14] nocontrol: Remote host closed the connection
[13:41:31] nocontrol: has joined #ruby
[15:25:50] nocontrol: Remote host closed the connection
[15:26:13] nocontrol: has joined #RubyOnRails