Skip to content

Instantly share code, notes, and snippets.

Thread 3 (Thread 0xb7d62b90 (LWP 31488)):
#0 0xffffe430 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb7feb352 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/i686/cmov/libpthread.so.0
No symbol table info available.
#2 0x0808166c in boost::condition_variable_any::timed_wait<boost::unique_lock<boost::mutex> > (this=0x80ada78, m=@0xb7d62164,
wait_until=@0xb7d62170) at ext/boost/thread/pthread/condition_variable.hpp:131
internal_lock = {m = 0x80ada78}
check_for_interruption = {thread_info = 0x80ade10}
timeout = {tv_sec = 1270203757, tv_nsec = 743935000}
#0 0xffffe430 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb7e48ab1 in select () from /lib/i686/cmov/libc.so.6
No symbol table info available.
#2 0xb7f7d02d in rb_thread_select () from /usr/lib/libruby1.8.so.1.8
No symbol table info available.
#3 0xb7f9b905 in ?? () from /usr/lib/libruby1.8.so.1.8
No symbol table info available.
#4 0x00000009 in ?? ()
No symbol table info available.
[Fri Apr 02 15:29:11 2010] [error] [client ip] Premature end of script headers: prospects, referer: http://www.example.org/
[ pid=7354 file=ext/apache2/Hooks.cpp:684 time=2010-04-02 15:29:11.389 ]:
The backend application (process 7456) did not send a valid HTTP response; instead, it sent nothing at all. It is possible that it has crashed; please check whether there are crashing bugs in this application.
[Fri Apr 02 15:29:14 2010] [notice] caught SIGTERM, shutting down
[Fri Apr 02 15:29:15 2010] [notice] Apache/2.2.9 (Debian) proxy_html/3.0.0 Phusion_Passenger/2.2.11 configured -- resuming normal operations
[Fri Apr 02 15:30:17 2010] [notice] caught SIGTERM, shutting down
[Fri Apr 02 15:30:18 2010] [notice] Apache/2.2.9 (Debian) proxy_html/3.0.0 Phusion_Passenger/2.2.11 configured -- resuming normal operations
from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_request_handler.rb:367:in `select'
from /usr/lib/ruby/gems/1.8/gems/passenger-2.2.11/lib/phusion_passenger/abstract_r
require 'irb/completion'
require 'irb/ext/save-history'
IRB.conf[:SAVE_HISTORY] = 1000
IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history"
IRB.conf[:PROMPT_MODE] = :SIMPLE
%w[rubygems looksee/shortcuts wirble].each do |gem|
begin
has_many :specialty_taggings
has_many :specialties, :through => :specialty_taggings, :source => :tag
has_many :notification_tags, :through => :specialty_taggings, :source => :tag
def notification_tags_with_all
all_notification_tags ? Tag.public.for_picker : notification_tags_without_all
end
class ActiveRecord::NamedScope::Scope
def loaded?
false
/Users/stephane/.rvm/gems/ruby-1.9.2-p0@gstyle/gems/activerecord-3.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:1106:in `async_exec': PGError: ERROR: relation "spree_activators" does not exist (ActiveRecord::StatementInvalid)
LINE 4: WHERE a.attrelid = '"spree_activators"'::regcla...
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"spree_activators"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
from /Users/stephane/.rvm/gems/ruby-1.9.2-p0@gstyle/gems/activerecord-3.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:1106:in `exec_no_cache'
@sbounmy
sbounmy / bluepill.log
Created February 9, 2013 08:38
bluepill not restart unicorn properly
W, [2013-02-09T09:21:46.698402 #28965] WARN -- : [spree:unicorn:unicorn] Executing restart command: kill -USR2 9642
W, [2013-02-09T09:23:47.726863 #28965] WARN -- : [spree:unicorn:unicorn] Executing stop command: kill -QUIT 9642
W, [2013-02-09T09:23:47.748077 #28965] WARN -- : [spree:unicorn:unicorn] Stop command execution returned non-zero exit code:
W, [2013-02-09T09:23:47.748243 #28965] WARN -- : [spree:unicorn:unicorn] {:stdout=>"", :stderr=>"kill: No such process\n", :exit_code=>1}
W, [2013-02-09T09:23:47.748908 #28965] WARN -- : [spree:unicorn:unicorn] Clearing child list
I, [2013-02-09T09:23:47.748985 #28965] INFO -- : [spree:unicorn:unicorn] Going from up => unmonitored
W, [2013-02-09T09:24:32.543575 #28965] WARN -- : [spree:unicorn:unicorn] Executing stop command: kill -QUIT 9642
W, [2013-02-09T09:24:32.564589 #28965] WARN -- : [spree:unicorn:unicorn] Stop command execution returned non-zero exit code:
W, [2013-02-09T09:24:32.564690 #28965] WARN -- : [spree:unicorn:unicorn] {:stdout=>"", :st
@sbounmy
sbounmy / gist:75b08c401e7957abe7a3
Created March 14, 2015 10:50
Ruby constant lookup
Document = 'hello'
class Question
end
class Animal
puts Question::Document
end
class Question
@sbounmy
sbounmy / controllers.application.js
Last active August 29, 2015 14:28
injection to helpers
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@sbounmy
sbounmy / slack.js
Created October 27, 2016 14:24
js scrap slack users
// make sure youve scrolled all users on page
// Email
$('a[title~="Email"]').map(function(i, e) {
return e.text;
}).toArray().join('\n')
// first name
$('.member_name').map(function(i, e) {
return e.text.split(' ')[0];