user083

Activity Graph

Page 1 of 2 | Next »

2016-03-02

[00:10:05] user083: has joined #RubyOnRails
[00:10:26] user083: How can i have a optional model relation?
[00:11:17] user083: I am creating a moderation system, when a user is logged in i want to relate to the user
[00:11:42] user083: but i also want to have anonymous reports
[00:12:12] user083: i did not know that they could be nil, thanks
[00:13:57] user083: i added this to my migration for reports
[00:13:58] user083: t.references :user, index: true, foreign_key: true
[00:14:21] user083: will that allow null if it uses foreign keys?
[01:46:38] user083: Ping timeout: 248 seconds
[01:48:46] user083: has joined #RubyOnRails
[02:11:46] user083: Quit: Leaving

2016-02-14

[00:10:41] user083: Ping timeout: 276 seconds
[00:16:11] user083: has joined #RubyOnRails
[00:16:11] user083: has joined #ruby
[01:25:23] user083: Quit: Lost terminal

2016-02-13

[22:08:06] user083: Ping timeout: 240 seconds
[23:31:00] user083: has joined #RubyOnRails
[23:31:00] user083: has joined #ruby

2016-02-06

[12:38:03] user083: has joined #RubyOnRails
[12:38:03] user083: has joined #ruby

2016-02-05

[11:12:12] user083: Ping timeout: 264 seconds

2016-02-04

[04:10:41] user083: Read error: Connection reset by peer
[04:10:55] user083: has joined #RubyOnRails
[04:10:55] user083: has joined #ruby

2016-02-03

[06:42:46] user083: Ping timeout: 250 seconds
[23:03:23] user083: has joined #RubyOnRails
[23:03:23] user083: has joined #ruby

2016-02-02

[01:18:03] user083: I get an undefined error when i can a active record relation
[01:18:36] user083: it works in the console but not in a view
[01:19:31] user083: I noticed that spelling mistake
[01:20:02] user083: I am calling the active record relation but it does not find it
[01:20:12] user083: @user.friendships.each
[01:21:04] user083: https://gist.github.com/b05b3e95c2a52f9c5b0a
[01:21:43] user083: but this fails @user.friendships.each
[01:21:47] user083: undefined method `friendships' for #<User::ActiveRecord_Relation:0x007fc07f954678>
[01:23:09] user083: here is the view https://gist.github.com/22f286eec36cca95c891
[01:24:44] user083: i think it is
[01:24:54] user083: i define it this way @user = User.where(username: params[:username])
[01:25:01] user083: in the controller
[01:26:20] user083: i got it to work
[01:26:21] user083: @user = User.where(username: params[:username]).first
[01:26:25] user083: smathy: Thanks

2016-01-31

[19:09:09] user083: has joined #RubyOnRails
[19:09:09] user083: has joined #ruby

2016-01-27

[03:27:16] user083: Quit: leaving

2016-01-26

[01:02:40] user083: Ping timeout: 260 seconds
[22:37:56] user083: has joined #ruby
[22:37:57] user083: has joined #RubyOnRails
[23:54:57] user083: How do i get nokogiri installed for osx
[23:55:14] user083: I have been reading the tutorials but it does not help

2016-01-25

[21:38:39] user083: has joined #RubyOnRails
[21:38:39] user083: has joined #ruby

2016-01-24

[08:04:22] user083: Quit: Lost terminal

2016-01-22

[17:15:56] user083: Read error: Connection reset by peer
[17:32:43] user083: has joined #RubyOnRails
[17:32:43] user083: has joined #ruby

2016-01-21

[23:06:08] user083: has joined #RubyOnRails
[23:06:08] user083: has joined #ruby

2016-01-20

[13:56:01] user083: *.net *.split

2016-01-19

[23:10:10] user083: How can i find where my requests are stoping?
[23:12:05] user083: I send requests to the page but nothing gets sent back
[23:12:34] user083: i can load the main page ok
[23:12:54] user083: soahccc: OSX
[23:13:06] user083: I am using Ruby Mine for an IDE
[23:13:22] user083: When i try to load a view it will not load
[23:14:29] user083: When i look at a log the last thing it says is a list of partials it has rendered on the show page
[23:15:27] user083: The request finaly went though after 43 secounds

2016-01-17

[00:07:03] user083: has joined #RubyOnRails
[00:07:03] user083: has joined #ruby
[00:08:52] user083: I am using the paperclip gem and it is not saving the exif data
[00:09:36] user083: How can i get it to not modify the orginal file
[00:10:36] user083: FailBit: This is not a public system, it is to manage my photography collection
[00:12:08] user083: using exiftool i inspected the orginal and the upload and the upload contains no exif
[00:12:49] user083: I cannot find any mention of it modifying the orginal file in the documentation
[00:22:18] user083: capin: Because I want to be able to download the same file i uploaded
[00:24:41] user083: Does anyone else have this problem when using paperclip?
[00:26:05] user083: rhizome: I request the orginal using the style named "orginal"
[00:42:08] user083: capin: Any idea how i could do that?
[00:48:54] user083: md5 20140919_133726.jpg ; curl -s http://192.168.2.2:3002/image/37231/original/20140919_133726.jpg | md5
[00:49:09] user083: I compared the hashes for the files and they are diffrent
[00:53:19] user083: Should i ask on the paperclip mailing list?
[01:15:09] user083: rhizome: yes the exif is gone I used the file inspector exiftool and it no longer showed the exif
[01:15:46] user083: I also tried it on images created by diffrent cameras and the problem still happens.
[01:17:43] user083: I noticed this problem recently, some of the older files i uploaded do not have this problem
[01:18:43] user083: capin: How would i restore the exif when i download the file?

2016-01-13

[22:20:02] user083: How can i get the created_at from a relation?
[22:20:27] user083: I want to now when the relation was added and also the record it refers to
[22:21:12] user083: I have a table called view history with user_id, episode_id and created_at
[22:21:26] user083: I want to know when the user viewed the episode
[22:22:16] user083: smathy: yes
[22:23:17] user083: I do not want to know when the episode was created, i want to know about the viewing time
[22:24:09] user083: then how do i get infomation about the episode?
[22:24:15] user083: such as the title?
[22:26:21] user083: tfitts: I will try that
[22:44:24] user083: I still have a problem getting the relation timestamp
[22:44:30] user083: this is my relation
[22:44:31] user083: has_many :history, :through => :view_histories, :source => :episode
[22:45:46] user083: I tried "touch: true"
[22:47:17] user083: smathy: I want to know when the user viewd the video
[22:47:47] user083: and what they viewed, more info than just the video id the view_history table provides
[22:50:19] user083: tfitts: I am trying to go to history, but i want only the created_at from view_historyies
[22:50:40] user083: <span><%= episode.created_at %></span>
[22:53:24] user083: tfitts: How can i not pass though the created_column on the view_history, but still get the episiode info?
[22:55:33] user083: tfitts: That fixed it, thanks.
[23:20:15] user083: Remote host closed the connection

2016-01-12

[19:10:00] user083: Ping timeout: 260 seconds
[19:10:24] user083: has joined #RubyOnRails
[19:10:24] user083: has joined #ruby
[20:59:17] user083: How can i prevent a record from being created twice in a row?
[20:59:47] user083: michael_mbp: no
[20:59:58] user083: I want to create a history list
[21:00:42] user083: norc: But i want the record do be saved more than once, not just in a row
[21:01:30] user083: I mean if a model is the same as the last i do not want to save it.
[21:03:19] user083: norc: I have not created any code yet for the model.
[21:03:41] user083: I will describe my situation
[21:04:45] user083: I am creating a history model for users containing videos they have watched.
[21:05:14] user083: when the user re-plays the video i do not want a duplicate row created in the database
[21:06:57] user083: norc: yes, i could query the most recent seen video my the user and if the video id is the same as the current video i will not save.

2016-01-11

[20:36:59] user083: Quit: leaving
[20:56:58] user083: has joined #ruby
[20:56:59] user083: has joined #RubyOnRails

2016-01-10

[08:52:28] user083: Read error: Connection reset by peer
[08:58:15] user083: has joined #RubyOnRails
[08:58:15] user083: has joined #ruby
[14:40:47] user083: Read error: Connection reset by peer
[14:46:34] user083: has joined #RubyOnRails
[14:46:34] user083: has joined #ruby

2016-01-08

[01:40:32] user083: Ping timeout: 276 seconds
[01:40:53] user083: has joined #RubyOnRails
[01:40:53] user083: has joined #ruby
[01:46:10] user083: Ping timeout: 272 seconds
[23:49:02] user083: has joined #RubyOnRails
[23:49:02] user083: has joined #ruby

2016-01-06

[05:41:53] user083: Read error: Connection reset by peer
[14:09:14] user083: has joined #RubyOnRails
[14:09:14] user083: has joined #ruby

2016-01-05

[07:27:57] user083: Read error: Connection reset by peer
[07:28:14] user083: has joined #RubyOnRails
[07:28:14] user083: has joined #ruby

2016-01-04

[16:39:14] user083: Read error: Connection reset by peer
[16:45:01] user083: has joined #RubyOnRails
[16:45:01] user083: has joined #ruby

2016-01-03

[00:02:00] user083: Ping timeout: 264 seconds
[01:45:42] user083: has joined #RubyOnRails
[01:45:42] user083: has joined #ruby

2015-12-26

[01:11:08] user083: has joined #RubyOnRails
[01:11:08] user083: has joined #ruby

2015-12-23

[22:05:59] user083: Ping timeout: 245 seconds

2015-12-22

[03:49:39] user083: Ping timeout: 255 seconds
[04:08:21] user083: has joined #RubyOnRails
[04:08:21] user083: has joined #ruby

2015-12-18

[18:17:32] user083: has joined #RubyOnRails
[18:17:32] user083: has joined #ruby

2015-12-13

[17:54:15] user083: Ping timeout: 240 seconds

2015-12-12

[21:51:13] user083: has joined #RubyOnRails
[21:51:13] user083: has joined #ruby

2015-12-10

[08:07:06] user083: Ping timeout: 240 seconds

2015-12-09

[02:53:08] user083: Quit: leaving
[02:56:43] user083: has joined #RubyOnRails
[02:56:43] user083: has joined #ruby
[02:58:51] user083: Client Quit
[02:59:41] user083: has joined #RubyOnRails
[02:59:41] user083: has joined #ruby
[03:00:21] user083: Client Quit
[03:01:07] user083: has joined #RubyOnRails
[03:01:07] user083: has joined #ruby

2015-12-05

[06:48:27] user083: has joined #RubyOnRails
[06:48:27] user083: has joined #ruby
[07:27:51] user083: Quit: leaving
[07:35:37] user083: has joined #ruby
[07:35:38] user083: has joined #RubyOnRails
[19:32:54] user083: Ping timeout: 260 seconds
[21:49:41] user083: has joined #RubyOnRails
[21:49:41] user083: has joined #ruby

2015-12-04

[02:20:03] user083: Ping timeout: 260 seconds

2015-12-02

[15:36:50] user083: *.net *.split
[15:41:37] user083: has joined #ruby
[15:41:48] user083: has joined #RubyOnRails
[15:53:03] user083: *.net *.split
[16:47:53] user083: has joined #ruby
[16:48:08] user083: has joined #RubyOnRails

2015-12-01

[23:44:30] user083: has joined #ruby
[23:44:31] user083: has joined #RubyOnRails

2015-11-24

[00:35:21] user083: has joined #RubyOnRails
[00:35:30] user083: Quit: leaving
[00:35:57] user083: has joined #ruby
[00:36:17] user083: Client Quit
[00:37:23] user083: has joined #RubyOnRails
[00:37:23] user083: has joined #ruby
[00:44:56] user083: How can i get a list of jobs in the queue?
[00:45:27] user083: The Rails Active job queue
[00:45:45] user083: It is still new
[00:45:59] user083: and I am not finding a lot of tutorials for it.
[00:46:32] user083: How is resque diffrent than active job
[00:50:03] user083: smathy: Is there anyway to check on the progress then?
[00:52:20] user083: What is the default backend that active job uses?
[00:57:27] user083: somehow it worked without me seting the default
[01:01:35] user083: smathy: Is that bad? will it still work?
[01:02:24] user083: smathy: Because i want to process a video when uploaded.
[10:00:59] user083: Read error: Connection reset by peer
[10:01:18] user083: has joined #RubyOnRails
[10:01:18] user083: has joined #ruby

2015-11-20

[02:39:09] user083: has joined #ruby
[03:18:23] user083: Quit: leaving
[23:28:28] user083: has joined #ruby

2015-11-17

[04:29:47] user083: has joined #ruby
[04:29:58] user083: has joined #RubyOnRails
[04:30:46] user083: How can i set a timeout for a processing function?
[04:32:44] user083: I am trying to extract the text from an image and if the text takes to long to extract i want to ignore it.
[04:35:02] user083: jhass: I will be using this library for the extraction https://github.com/meh/ruby-tesseract-ocr
[04:35:50] user083: And some of the images are very large and i do not want it to crash my server when i give it a huge image.
[04:37:41] user083: Have any ideas on alternatives to a function timeout?
[04:38:26] user083: or would it be better to set a limit on the size of images which are processed.
[04:39:03] user083: jhass: I can
[04:39:48] user083: thank you then
[04:55:31] user083: Quit: leaving

2015-11-11

[00:06:54] user083: Quit: Lost terminal

2015-11-10

[23:38:06] user083: Ping timeout: 240 seconds
[23:43:44] user083: has joined #ruby
[23:43:45] user083: has joined #RubyOnRails

2015-11-08

[21:12:03] user083: How can i link to a wildcard path using an array?
[21:13:40] user083: I have a deepley nested path and i need to create a link to it.
[21:14:32] user083: I have a tag hierarchy system and i need to create a link to tag
[21:14:50] user083: this is my route: get '/tag/*tag_path' => 'tag_manager#index', as: :tag_path
[21:16:41] user083: this is what i have tried <%= link_to 'link', tag_path(['animal', 'bird', 'owl']) %>
[21:22:10] user083: How can i create a link to a wildcard route?
[21:30:17] user083: Radar: That worked thank you

2015-11-06

[09:07:54] user083: Ping timeout: 250 seconds
[09:45:12] user083: has joined #RubyOnRails
[09:45:12] user083: has joined #ruby

2015-11-05

[14:44:19] user083: Ping timeout: 250 seconds
[14:45:15] user083: has joined #RubyOnRails
[14:45:15] user083: has joined #ruby

2015-11-01

[19:38:45] user083: Quit: leaving
[19:39:02] user083: has joined #ruby
[19:39:39] user083: has joined #RubyOnRails
[19:42:29] user083: How can i upload files other than images with the Paper clip gem?
[19:43:41] user083: the content type checking fails for most file types other than images.
[19:54:45] user083: weaksauce: https://gist.github.com/0a4bb8406517fa064efa
[19:57:24] user083: it also fails when i upload a zip file
[20:00:55] user083: rhizome: do you think it is creating a conflict?
[20:02:31] user083: rhizome: Images are just the most common thing i am storing so i named it image.
[20:07:16] user083: I get an error like this: https://gist.github.com/anonymous/861351572fd22ea29806
[20:09:21] user083: rhizome: yes that is the error that i get i have searched for that a lot, have not found a solution.
[20:12:51] user083: I fixed it for certian non image types with this in the model: https://gist.github.com/anonymous/a5c7a5490599225c7ee2

2015-10-27

[14:57:42] user083: Read error: Connection reset by peer
[15:02:39] user083: has joined #ruby
[15:02:58] user083: Read error: Connection reset by peer
[15:13:10] user083: has joined #ruby