My Recent Pastes (47 and counting)

Pastes by John Bachir (47 and counting)

Pages:

Below are the 15 most recent pasties by John Bachir.

January 30, 2008
11:40AM EDT
by John Bachir

innodb_buffer_pool_size = 2G
innodb_additional_mem_pool_size = 20M
innodb_log_file_size = 32M
innodb_flush_log_at_trx_commit = 2

October 24, 2007
4:29PM EDT
by John Bachir

  port = 9010
  w.group = 'ferret'
  w.name = "ferret-#{port}"
  pid = "log/ferret.pid"
  w.interval = 5.seconds # default

October 24, 2007
4:24PM EDT
by John Bachir

desc "Start God"
task :start_god, :roles => :app do
  run "god -c #{current_path}/config/god.god"
end

September 05, 2007
11:35AM EDT
by John Bachir

# /opt/local/bin/port -d selfupdate
DEBUG: Rebuilding the MacPorts base system if needed.
Synchronizing from rsync://rsync.darwinports.org/dpupdate/dports
sh: line 1: /sw/bin/rsync: No such file or directory
DEBUG: Couldn't sync dports tree: sync failed doing rsync

August 23, 2007
12:13PM EDT
by John Bachir

    recipients = @foundation.members
    recipients << current_user unless @foundation.members.include?( current_user )

July 16, 2007
11:16AM EDT
by John Bachir

select * 
from salon 
where salon_services & 4

July 07, 2007
8:33PM EDT
by John Bachir

echo "<pre>";
print_r($_REQUEST);
echo "</pre>";
die;

July 07, 2007
8:17PM EDT
by John Bachir

                var url="gallery.php";
                //url=url+"?g="+galleryFile;
                url=url+"?q="+imageNo;
                url=url+"&sid="+Math.random();
                prompt(url)

June 25, 2007
1:40PM EDT
by John Bachir

    (0..1).each{ |i| assert !assigns(:event_functions)[i].description.blank? }
    (2..4).each{ |i| assert  assigns(:event_functions)[i].description.blank? }

June 18, 2007
2:30PM EDT
by John Bachir

######################################################################
# Enhance the String class with a XML escaped character version of
# to_s.
#
class String #:nodoc:

June 15, 2007
5:49PM EDT
by John Bachir

      order, @desc =
        case params[:sort]
          when 'topic'             then ['subject',                              false ]
          when 'initiator'         then ['iapps_email, family_name, given_name', false ]
          when 'discussion_length' then ['discussion_length',                    true  ]

June 08, 2007
9:42AM EDT
by John Bachir

          eval "result = User.find_by_comp_survey_pass_#{q}('#{a}')"

June 08, 2007
3:33AM EDT
by John Bachir

      { PFRegular => params[:regular_roles], PFComp => params[:compensation_roles] }.each do | api, roles |
        @survey_user.peer_focus_roles << roles.map{ |id, dummy| PeerFocusRole.find_by_pf_id_and_endpoint(id, api.slug) } unless roles.nil?
      end

June 08, 2007
2:54AM EDT
by John Bachir

<%=    render :partial => 'roles', :locals => { :roles => @regular_roles, :title => 'Regular Roles',      :endpoint => PFRegular } %>
<%=    render :partial => 'roles', :locals => { :roles => @comp_roles,    :title => 'Compensation Roles', :endpoint => PFComp    } %>

June 08, 2007
2:54AM EDT
by John Bachir

module PeerFocusMixins
  def populate_roles
    @regular_roles = PFRegular.pfRoleList
    PeerFocusRole.import( PFRegular.slug, @regular_roles )
    @comp_roles    = PFComp.pfRoleList

Next page