Skip to content

Instantly share code, notes, and snippets.

View redstar504's full-sized avatar
🇨🇦

Brayden redstar504

🇨🇦
View GitHub Profile
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.24
- RUBY VERSION: 1.9.3 (2012-10-12 patchlevel 286) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p286
- RUBY EXECUTABLE: /usr/local/rvm/rubies/ruby-1.9.3-p286/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/rvm/gems/ruby-1.9.3-p286/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
14:22:47 web.1 | started with pid 26115
SIGINT received
14:24:45 system | sending SIGTERM to all processes
SIGTERM received
14:24:45 web.1 | => Booting Thin
14:24:45 web.1 | => Rails 3.2.9 application starting in development on http://0.0.0.0:5000
14:24:45 web.1 | => Call with -d to detach
14:24:45 web.1 | => Ctrl-C to shutdown server
14:24:45 web.1 | >> Thin web server (v1.5.0 codename Knife)
14:24:45 web.1 | >> Maximum connections set to 1024
2012-11-20T22:35:43+00:00 heroku[web.1]: State changed from up to down
2012-11-20T22:35:44+00:00 heroku[slugc]: Slug compilation finished
2012-11-20T22:35:46+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2012-11-20T22:35:46+00:00 app[web.1]: /usr/local/lib/ruby/1.9.1/webrick/server.rb:90:in `select'
2012-11-20T22:35:46+00:00 app[web.1]: [2012-11-20 22:35:46] ERROR SignalException: SIGTERM
2012-11-20T22:35:55+00:00 heroku[web.1]: Error R12 (Exit timeout) -> At least one process failed to exit within 10 seconds of SIGTERM
2012-11-20T22:35:55+00:00 heroku[web.1]: Stopping remaining processes with SIGKILL
2012-11-20T22:35:57+00:00 heroku[web.1]: Process exited with status 137
Building native extensions. This could take a while...
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.9.3-p286/bin/ruby extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_libversion_number() in -lsqlite3... yes
checking for rb_proc_arity()... yes
checking for sqlite3_initialize()... no
checking for sqlite3_backup_init()... no
class Gear
attr_reader :chainring, :cog, :wheel
def initialize(chainring, cog, wheel=nil)
@chainring = chainring
@cog = cog
@wheel = Wheel.new(rim, tire)
end
def ratio
<?php
class AjaxPager extends CLinkPager {
public $successAction = '';
public $user;
protected function createPageButton($label, $page, $class, $hidden, $selected) {
//parent::createPageButton($label, $page, $class, $hidden, $selected);
if($hidden || $selected) {
$(function() {
$(document).on('click','.yiiPager a', function(e) {
e.preventDefault();
var userId = $(this).data('user');
var url = $(this).attr('href');
jQuery.ajax({
'dataType' : 'json',
'success' : function(data) {
$('#reviewListing').html(data.reviews); // refill content with ajax response
$('html, body').animate({ // scroll to top of #reviewListing div
CDbCommand failed to execute the SQL statement: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '519 (to_user_id)) AND (request_review_status_id IN (1, 2))' at line 1. The SQL statement executed was: UPDATE `request_review` SET `sub_priority`=sub_priority + 1 WHERE ((id != 431 AND priority > 0) 519 (to_user_id)) AND (request_review_status_id IN (:ycp16, :ycp17)). Bound with :ycp16=1, :ycp17=2
290 $criteria_s = new CDbCriteria;
291 $criteria_s->condition = "id != {$model->id} AND priority > 0";
292 $criteria_s->addCondition('to_user_id',$user->id);
293 $criteria_s->addInCondition('request_review_status_id',array(
294 RequestReviewStatus::PENDING,
295 RequestReviewStatus::WATCHED
296 ));
297
UPDATE `request_review` SET `sub_priority`=sub_priority + 1 WHERE (((id != 438) AND (priority > 0)) AND (to_user_id = 519)) AND (request_review_status_id IN (:ycp9, :ycp10)).
291 $criteria_s = new CDbCriteria;
292
293 $criteria_s->addCondition("id != {$model->id}");
294 $criteria_s->addCondition("priority > 0");
295 $criteria_s->addCondition("to_user_id = {$user->id}");
296 $criteria_s->addInCondition('request_review_status_id',array(
297 RequestReviewStatus::PENDING,
298 RequestReviewStatus::WATCHED
134 $criteria = new CDbCriteria;
135
136 $criteria->select = 'to_days(now())-to_days(t.start_date) as fed';
137 $criteria->addCondition(array(
138 'free_trial_duration = "30"',
139 'free_trial_period = "day"'
140 ));
141
142 $subscriptions = Subscription::model()->with('user:active')->findAll($criteria);
143