My Recent Pastes (49 and counting)
Recent Pasties by evn (49 and counting)
Below are summaries of the 15 most recent pasties by evn.
July 19, 2007
2:01PM EDT
by evn
View more (14 lines)
1 2 3 4 5 |
# set up specific user overrides USER = CAPUSER = case ENV['USER'] when 'eweaver', 'weavere' ssh_options[:keys] = ["/Users/eweaver/.ssh/id_dsa_cnet"] # ssh_options[:port] = 22 |
July 15, 2007
4:03PM EDT
by evn
View more (13 lines)
1 2 3 4 5 |
class Object def logging(message, log = LOGGER) begin result = yield |
July 15, 2007
3:32PM EDT
by evn
1 2 3 4 5 |
def initialize(obj = nil) obj.instance_variables.each do |ivar| instance_variable_set(ivar, obj.instance_variable_get(ivar)) end if obj end |
July 13, 2007
5:17PM EDT
by evn
View more (15 lines)
1 2 3 4 5 |
# in the controller ## old way >> fbsession.users_getInfo(:uids => fbsession.session_uid, :fields => 'name') |
July 09, 2007
3:31AM EDT
by evn
View more (21 lines)
1 2 3 4 5 |
[eweaver@xxx ~]$ time sudo -u xxx bash -c 'cd /opt/rails/chow/search/current/config/; source bash_profile; RAILS_ENV=production rake ultrasphinx:index'(in /opt/rails/chow/search/releases/20070706061820) ** environment.rb entered ** initializer block ** initializer complete -- Done with environment.rb. |
July 06, 2007
2:30AM EDT
by evn
View more (208 lines)
1 2 3 4 5 |
[sphinx-0.9.7]$ ./configure --prefix=/opt/sphinx checking build environment -------------------------- |
July 06, 2007
1:32AM EDT
by evn
View more (102 lines)
1 2 3 4 5 |
[Thu Jul 5 22:29:32 2007] 0.003 sec [ext/2/rel 56 (30,10)] [*] santa barbara brunch [Thu Jul 5 22:29:32 2007] 0.003 sec [ext/3/rel 0 (30,10)] [*] santa barbara brunch [Thu Jul 5 22:29:32 2007] 0.002 sec [ext/3/rel 0 (30,10)] [*] santa barbara brunch [Thu Jul 5 22:29:32 2007] 0.003 sec [ext/3/rel 56 (30,10)] [*] santa barbara brunch [Thu Jul 5 22:29:32 2007] 0.002 sec [ext/3/rel 0 (30,10)] [*] santa barbara brunch |
June 21, 2007
5:42AM EDT
by evn
View more (14 lines)
1 2 3 4 5 |
indexer --config /opt/rails/chow/staging/releases/20070621093125/config/environments/sphinx.staging.conf complete Sphinx 0.9.7 Copyright (c) 2001-2007, Andrew Aksyonoff using config file '/opt/rails/chow/staging/releases/20070621093125/config/environments/sphinx.staging.conf'... |
June 21, 2007
5:19AM EDT
by evn
1 |
SELECT (topics.id * 5 + 2) AS id, '' AS active_time, '' AS blog_type, boards.name AS board, topics.board_id AS board_id, CAST(GROUP_CONCAT(posts.content SEPARATOR ' ') AS CHAR) AS body, '' AS category, 'Topic' AS class, 2 AS class_id, '' AS comments, '' AS editorial, UNIX_TIMESTAMP(topics.published_at) AS published_at, topics.title AS title, '' AS total_time, CAST(GROUP_CONCAT(posts.user_name SEPARATOR ' ') AS CHAR) AS user FROM topics LEFT OUTER JOIN boards ON boards.id = topics.board_id LEFT OUTER JOIN posts ON topics.id = posts.topic_id WHERE topics.id >= 1 AND topics.id <= 10000 AND topics.state = 0 OR topics.state = 3 AND posts.state = 0 GROUP BY id |
June 20, 2007
8:05PM EDT
by evn
View more (22 lines)
1 2 3 4 5 |
<%= javascript_tag %[
function search_options_update() {
if ($F('options_models') == "Topic") {
Form.Element.enable('options_boardgroup_id');
} else {
|
June 20, 2007
6:57AM EDT
by evn
View more (26 lines)
1 2 3 4 5 |
def parse_google query return unless query # alters google-style querystring into sphinx-style query = query.scan(/[^"\(\) ]*["\(][^"\)]*["\)]|[^"\(\) ]+/) # thanks chris2 query.each_with_index do |token, index| |
May 25, 2007
2:14PM EDT
by evn
View more (101 lines)
1 2 3 4 5 |
## mongrel error log ** Starting Mongrel listening at 0.0.0.0:8225 ** Changing group to app. ** Changing user to app. |
May 10, 2007
10:05PM EDT
by evn
1 2 3 4 5 |
## Start program /usr/bin/sudo -u app /usr/bin/env PATH=/bin:/usr/bin:/opt/ruby/default/bin mongrel_rails cluster::start -C /opt/rails/chow/staging/current/config/mongrel_cluster.staging.yml --clean --only 8320 ## Stop program /usr/bin/sudo -u app /usr/bin/env PATH=/bin:/usr/bin:/opt/ruby/default/bin mongrel_rails cluster::stop -C /opt/rails/chow/staging/current/config/mongrel_cluster.staging.yml --clean --only 8320 |
May 10, 2007
9:21PM EDT
by evn
1 |
** [out :: c13-chd-dev1.cnet.com] /opt/ruby/1.8.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27: command not found: mongrel_rails start -d -e staging --user app --group app -p 8327 -P /opt/rails/chow/staging/current/log/mongrel.8327.pid -l /opt/rails/chow/staging/current/log/mongrel.8327.log |
May 08, 2007
11:25PM EDT
by evn
View more (59 lines)
1 2 3 4 5 |
Delivered-To: eweaver@* From: beau@open-source-staffing* Date: Tue, 08 May 2007 21:21:45 -0000 Subject: [rubyrailsjobs] [JOB] Rails Developer | 70-195k (no joke) | Paid Relo |
Pastie