Page 1 of 10 | Next »
[10:16:10] frank_o: Hi! Anybody tried the Discourse forum? I'm attempting to migrate its database, but https://github.com/discourse/discourse/blob/master/db/migrate/20120921162512_add_meta_data_to_forum_threads.rb gives me `PG::InvalidParameterValue: ERROR: version to install must be specified` -- https://gist.github.com/dt1973/26a1ead829e400c2f2ac
[12:41:53] frank_o: Hi! Trying to install the Discourse forum (https://github.com/discourse/discourse) manually without Docker. Unfortunately https://github.com/discourse/discourse/blob/master/db/migrate/20120921162512_add_meta_data_to_forum_threads.rb gives me `PG::InvalidParameterValue: ERROR: version to install must be specified` during migration, anybody know why? https://gist.github.com/dt1973/26a1ead829e400c2f2ac
[12:41:59] frank_o: Only Docker installs are supported meaning the Discourse team won't help me with this one. Docker or not though, it's still odd that the migration should fail like this.
[21:06:56] frank_o: Hi! Looking to install Docker + Discourse for the first time. Basically Docker is like a self-contained OS with Nginx, Unicorn and everything preinstalled?
[21:24:24] frank_o: btw what would you guys say to those who say instlling rails apps is a nightmare?
[21:25:54] frank_o: well as with anything i guess it requires some common understanding of unix principles
[21:26:01] frank_o: but if you dont have that you shouldnt be running a rails app in the first place am i right?
[15:23:32] frank_o: Hi! I got this Paperclip model which checks an upload (its temp file) whether it's an animated GIF. If so it sets `attachment_is_animated` in the db to true. But, because this job needs to go into the background, the temp file is probably gone by the time it's needed, so I end up with this InfiniteInterpolationError.
[15:23:37] frank_o: https://gist.github.com/dt1973/920263906eb7ace5bd74 -- anybody ever been down this rabbit hole before?
[16:17:05] frank_o: Coraline: its basically a heavily customized https://github.com/radar/forem app to help poor ppl in my local community
[16:19:45] frank_o: much love to Radar for making it happen.. as well as prolly half of the people in here =)
[16:20:45] frank_o: that MINASWAN thing is truly engrained in the DNA of this community and i cant wait to start giving some of it back
[23:06:48] frank_o: Hi! I'm trying to load some items from this external API in the background and save to database. When done, show them to the client using Ajax. But why am I getting `Couldn't find Affiliate with 'id'=` when I specified `find(params[:url])`? https://gist.github.com/dt1973/b57d84bf39a75ea47e9b
[12:51:00] frank_o: Hi! How do I update my `items_loaded` attribute? https://gist.github.com/dt1973/b57d84bf39a75ea47e9b -- undefined method `items_loaded=' for Affiliate:Module
[12:54:21] frank_o: hmm.. well i have different modules for different affiliates. attempted to make my test case as reduced as possible
[13:00:00] frank_o: universa1: removed the module: https://gist.github.com/dt1973/b57d84bf39a75ea47e9b sorry about that
[18:09:05] frank_o: Hi! Is there a way to tell when REST Client is done fetching these items in the background? https://gist.github.com/dt1973/b57d84bf39a75ea47e9b
[18:19:17] frank_o: true.. not sure what to do here, asked around and people seemed to recommend weird 3rd party services like www.pubnub.com and www.pusher.com..
[18:26:44] frank_o: dfockler: ill give it a go! but it gets a bit tricky i guess since it's supposed to return random items each time..
[21:40:44] frank_o: Howdy! If I use REST Client to fetch images from this external API, is there a way to tell when they're done loading? https://gist.github.com/dt1973/b57d84bf39a75ea47e9b
[12:12:29] frank_o: Hi! I'm trying to check if a photo exists using a route, but I'm currently getting a routing error: https://gist.github.com/dt1973/a97a167c21d07e3252a9 -- can anyone tell what's wrong?
[20:56:23] frank_o: Hi! I'm trying to check if a photo exists using a route, but it doesn't seem to be able to find the photo despite existing: https://gist.github.com/dt1973/a97a167c21d07e3252a9 -- can anyone tell what's wrong?
[23:34:55] frank_o: Hi! I'm trying to check for database change using a route, but I'm currently getting not found: https://gist.github.com/dt1973/a97a167c21d07e3252a9 -- anybody mind having a look?
[10:37:44] frank_o: Hi! After reading http://hans.io/blog/2014/02/19/postgresql_connection/index.html -- I can't help but wonder -- why isn't PgBouncer (https://wiki.postgresql.org/wiki/PgBouncer) more actively recommended as a must-have companion to PostgreSQL?
[10:51:13] frank_o: i just dont understand.. all these RAils + postgresql tutorials.. *NONE* of them mentions pgbouncer
[19:42:02] frank_o: Heya! Why is my site slowing down when there's no database activity? I'm using Rails with PostgreSQL and I often get these 504 gateway timeouts seemingly out of nowhere. I just noticed, however, that after adding new posts, speeds return to normal (2-3 secs). How can this be?
[19:50:03] frank_o: weaksauce: It shouldn't be. In my effort to fix this gateway timeout I've disabled (or moved to Ajax) any 3rd party querying.
[19:54:20] frank_o: weaksauce: To be honest it's not working on page refresh. New content is actually fed via an API
[20:03:03] frank_o: weaksauce: yeah idk.. looking into if maybe my pgsql workers are going dormant or something
[20:03:47] frank_o: maybe i need a cron script to act as a little pingpong ball bouncing back and forth making sure everybody's awake
[07:54:35] frank_o: It works perfectly in development, but why in production does it return 200 OK (ie. something has changed) even when there are no changes?
[21:01:49] frank_o: Hey guys! Mind if I ask a silly question? Got this basic nested set thingie with Forem here.
[21:01:50] frank_o: How come I can count all topics within a forum with `category.forums.sort.map do |forum|; puts forum.published_topics_count; end`, but not all topics within a category with `puts category.forums.published_topics_count`?
[18:38:02] frank_o: Hey! How would you guys write this simple erb snippet? https://gist.github.com/anonymous/486fe34fff961834d572 -- seems there's no way around having to repeat `something?` or `class="foo"` twice?
[18:51:59] frank_o: nickjj: https://gist.github.com/anonymous/a38b5844bfbd45a92870 dunno abt this one..
[11:43:45] frank_o: Hi! I'm getting `Paperclip::Errors::InfiniteInterpolationError`, possibly due to calling `attachment.path` to check up on the upload before it's saved, but I can't for the life of me figure out an alternative. Anybody mind having a look? https://gist.github.com/dt1973/920263906eb7ace5bd74
[12:16:45] frank_o: maloik: like redirecting between a desktop version of your site and a mobile version
[11:52:03] frank_o: Hi! Can somebody help me prevent this infinite loop? https://gist.github.com/dt1973/920263906eb7ace5bd74
[10:33:43] frank_o: Hi! Trying to send my Paperclip jobs off into the background with https://github.com/jrgifford/delayed_paperclip/ -- https://gist.github.com/dt1973/6b65794bf677e8753bdb
[10:33:46] frank_o: I'm getting `[ActiveJob] Enqueued DelayedPaperclip::Jobs::ActiveJob (Job ID: fb1e6e56-6f47-4bc6-a24a-d5f41a83a959)` but after that nothing seems to happen. But, when trying to inspect it: `Delayed::Job.find("fb1e6e56-6f47-4bc6-a24a-d5f41a83a959")` I'm getting `ActiveRecord::RecordNotFound: Couldn't find Delayed::Backend::ActiveRecord::Job with 'id'=fb1e6e56-6f47-4bc6-a24a-d5f41a83a959` -- anybody fami
[10:57:06] frank_o: psyxoz228: if you dont use gems you'll waste your life away reinventing the wheel. even with gems you'll still have to copy their views into your app and customize them etc.
[11:03:02] frank_o: psyxoz228: https://github.com/radar/forem centered around your favorite hobby :D
[11:05:12] frank_o: psyxoz228: radar is one of the main men behind spree, so forem is structured in the same way (as a rails engine) so its a perfect way to learn
[11:52:13] frank_o: psyxoz228: i think because forem is a rails engine (http://guides.rubyonrails.org/engines.html).. if you want to customize them you have to extend them.. ie. by creating app/decorators/controllers/forem/post_controller_decorator.rb etc.
[11:53:44] frank_o: psyxoz228: for instance here i extended forem to support paperclip photo uploads: http://runnable.com/VEEnRTEK-igg4XGD/forem-with-paperclip-for-ruby-on-rails
[19:59:28] frank_o: I just added delayed_paperclip + delayed_job_active_record to my Rails app, but for some reason, it only enqueues my jobs but never actually runs them. Am I missing something? https://gist.github.com/dt1973/6b65794bf677e8753bdb
[22:18:15] frank_o: Hey! Anybody know why my delayed_job_active_record (delayed_paperclip) jobs get enqueued but never actually run? Am I missing something fundamental? https://gist.github.com/dt1973/6b65794bf677e8753bdb
[22:25:07] frank_o: ramfjord: I'm using delayed_job_active_record for other stuff in other models and there they "just work"
[22:25:28] frank_o: ramfjord: besides i thought workers were only needed for delayed_job, not delayed_job_active_record?
[22:27:59] frank_o: ramfjord: i know delayed_job_active_record adds a db field and uses that but.. could be the process is all within active record or something
[22:28:43] frank_o: i did actually.. installed delayed_job and ran `bin/delayed_job start` but no luck so far, i can try again though
[22:35:12] frank_o: didnt work before when i tried it, but then i had some errors stuck in my job queue.
[22:35:32] frank_o: anyway whats the deal here, do I have to run `rake job:work` every time a user uploads something via paperclip? :S
[22:37:37] frank_o: thanks a lot ramfjord, makerops .. makes sense that delayed_job_active_record alone can't handle this since paperclip requires external tools like imagemagick..
[22:48:43] frank_o: Can anyone tell why I'm getting `Paperclip::Errors::InfiniteInterpolationError` for `photos.rb`? https://gist.github.com/dt1973/a97a167c21d07e3252a9
[10:58:46] frank_o: Hi! Anybody familiar with DelayedJob and Paperclip (delayed_paperclip)? Just can't seem to get it to send my stuff into the background: https://gist.github.com/dt1973/a97a167c21d07e3252a9
[13:57:55] frank_o: Hi! Using Paperclip with FFmpeg to process video uploads. But why does FFmpeg fail to run after adding delayed_paperclip (https://github.com/jrgifford/delayed_paperclip/)? Please see: https://gist.github.com/dt1973/6b65794bf677e8753bdb
[16:39:46] frank_o: Anybody know why delayed_paperclip manages to enqueue my background jobs but never actually run them? https://gist.github.com/dt1973/6b65794bf677e8753bdb
[22:37:05] frank_o: Hi! Anybody know why I'm getting `can't dup NilClass` when attempting to send my Paperclip processes off into the background with DelayedJob? https://gist.github.com/dt1973/1eb4f0e8cd9f3440d0a0
[22:37:09] frank_o: I've placed `byebug` in Paperclip's `attachment.rb:200` but have no idea where to go from here.
[22:41:14] frank_o: Radar: Is there a way to run `process_in_background` when it's no longer nil? Because styles do get set eventually
[23:26:30] frank_o: ACTION reads http://bensmithett.com/server-rendered-react-components-in-rails/ to try to understand what the fuss is all about
[23:32:39] frank_o: so yeah seems people are still trying to work out the best way of combining react with rails
[23:35:47] frank_o: pipework: or weed if you're in a legal zone, at least it wont shut down your brain so you can still code
[23:41:00] frank_o: where i come from the only stuff available is weed from the 80s that someone accidentally found stashed inside some wall while tearing down a house
[23:59:48] frank_o: not pleased with how spring boots up multiple processes in production when you explicitly define it as development only in the Gemfile
[09:08:06] frank_o: I'm trying to fetch some affiliate products in the background with Delayed::Job, but how do I set up the callback? https://gist.github.com/dt1973/96e5500b587c74fc3147 -- is a database flag + route my only option?
[10:09:32] frank_o: What's the difference between `bundle install --deployment` and `bundle install --path vendor/bundle`, other than the former requiring you to do `bundle install --no-deployment && bundle install && bundle install --deployment` as a workaround every time you wish to update your bundle?
[10:15:55] frank_o: rvanlieshout: for running an app in production? i mean wont `bundle install --path vendor/bundle` do just fine?