My Recent Pastes (196317 and counting)
All Pasties (129 and counting)
Pages: 1 ... 6069 6070 6071 6072 6073 ... 7853
Below are summaries of the most recent pasties.
April 02, 2007
10:25AM EDT
by Jeremy Cowgar
View more (12 lines)
1 2 3 4 5 |
require 'nitro/controller' require 'glue/localization' class AccountController < Nitro::Controller helper :xhtml |
April 02, 2007
10:21AM EDT
View more (20 lines)
1 2 3 4 5 |
## The form action, in the controller def change_password @admin = Admin.find(params[:id]) if @admin.save |
April 02, 2007
10:19AM EDT
1 2 |
Apr 2 15:32:34 devmachine Trac[__init__] DEBUG: Loading egg plugin mtn from /var/www/trac/plugins/TracMonotone-0.0.2-py2.4.egg
Apr 2 15:32:53 devmachine Trac[__init__] DEBUG: Executing report with SQL "SELECT p.value AS __color__, id AS ticket, summary, component, version, milestone, t.type AS type, (CASE status WHEN 'assigned' THEN owner||' *' ELSE owner END) AS owner, time AS created, changetime AS _changetime, description AS _description, reporter AS _reporter FROM ticket t, enum p, ticket_custom c WHERE status IN ('new', 'assigned', 'reopened') AND t.owner = 'somebody' AND p.name = t.priority AND p.type = 'priority' AND c.ticket = t.id AND c.name = 'origin' AND ( c.value = 'rescue' OR c.value = 'Rescue' ) ORDER BY created DESC " ([])
|
April 02, 2007
10:00AM EDT
View more (10 lines)
1 2 3 4 5 |
## the model validates_confirmation_of :password ## the view [rhtml] <%= f.password_field :password %> |
April 02, 2007
9:56AM EDT
View more (22 lines)
1 2 3 4 5 |
$min=49; # Minimum value of R, G, or B colour $max=174; # Maximum value of R, G, or B colour $step=5; # Amount to step colour by on each step $sleeptime=15; # Interval in seconds between each step |
April 02, 2007
9:53AM EDT
View more (13 lines)
1 2 3 4 5 |
# template: #<p><label for="user_mentor_of">Mentoring:</label><br/> #<%= collection_select(:user, :mentor_of, @subjects, :id, :title, { :selected => @user.mentor_of }, { :multiple => "true" }) %> #</p> |
April 02, 2007
9:52AM EDT
by Jacob Rus
View more (6 lines)
1 2 3 4 5 |
def foo():
bar = 5
baz = 6
print locals()['bar']
|
April 02, 2007
9:51AM EDT
View more (7 lines)
1 2 3 4 5 |
## in the view [rhtml] <%= controller_stylesheet %> ## a helper def controller_stylesheet |
April 02, 2007
9:50AM EDT
View more (18 lines)
1 2 3 4 5 |
foreach ($_POST['station'] as $station) { if (!empty($_POST['os'.$station.''])){ $os=$_POST['os'.$station.'']; exec("cd $rep && ln -s def.$os $lnmac[$station]"); |
April 02, 2007
9:25AM EDT
1 2 3 |
class Request < ActiveRecord::Base has_many :items, :dependent => :nullify end |
April 02, 2007
9:12AM EDT
View more (29 lines)
1 2 3 4 5 |
enlil:~/misc/MacPorts/dports/py-feedparser benoitc$ sudo port -d build DEBUG: Changing to port directory: . DEBUG: Changing to port directory: . DEBUG: Requested variant powerpc is not provided by port py-feedparser. DEBUG: Requested variant darwin is not provided by port py-feedparser. |
April 02, 2007
9:11AM EDT
View more (28 lines)
1 2 3 4 5 |
PortSystem 1.0 PortGroup python24 1.0 name py-feedparser version 4.1 |
April 02, 2007
9:02AM EDT
View more (96 lines)
1 2 3 4 5 |
make clean && make Making clean in handler make[1]: Entering directory `/usr/local/src/postgres_engine-0.1/handler' test -z "libpostgres_engine.la" || rm -f libpostgres_engine.la rm -f "./so_locations" |
April 02, 2007
8:55AM EDT
by Patrik Stenmark
View more (44 lines)
1 2 3 4 5 |
class Object
def self.once(sym)
alias_method sym.to_s + "_orig", sym
define_method sym do |*args|
|
April 02, 2007
8:53AM EDT
View more (163 lines)
1 2 3 4 5 |
noocx@Ml4D:~$ cat xorg.conf # /etc/X11/xorg.conf (xorg X Window System server configuration file) # # This file was generated by dexconf, the Debian X Configuration tool, using # values from the debconf database. |
April 02, 2007
8:52AM EDT
View more (577 lines)
1 2 3 4 5 |
noocx@Ml4D:~$ cat Xorg.0.log X Window System Version 7.1.1 Release Date: 12 May 2006 X Protocol Version 11, Revision 0, Release 7.1.1 |
April 02, 2007
8:46AM EDT
1 2 |
enlil:~/misc/MacPorts/dports/py-feedparser benoitc$ ls /opt/local/var/db/dports/build/_Users_benoitc_misc_MacPorts_dports_py-feedparser/work/ LICENSE README docs feedparser.py setup.py |
April 02, 2007
8:41AM EDT
View more (12 lines)
1 2 3 4 5 |
SELECT a.id, a.bbTicker, a.name, a.isin, sum(b.amPurchased*(isNull(CASE WHEN (isNull(a.pxReval,0)<>0) THEN (a.pxReval) ELSE (a.pxMTM) END,b.amPrice)))/sum(b.amPurchased) AS currPrice, (eur.rate/c.rate)*(a.amOutstanding/a.amOriginal)*(sum(b.amPurchased*(isNull(CASE WHEN (isNull(a.pxReval,0)<>0) THEN (a.pxReval) ELSE (a.pxMTM) END,b.amPrice)/100.0))/sum(b.amPurchased)) * sum(b.amPurchased) AS amOutstanding, CASE WHEN (isNull(walManual,0)<>0) THEN (walManual) ELSE (isNull(a.walNow,CONVERT(float,datediff(d,getdate(),a.dtFinalMat))/365.25)) END AS remainingWAL, /*CHECK THIS*/a.margin- ((sum(b.amPurchased* |
April 02, 2007
8:40AM EDT
View more (15 lines)
1 2 3 4 5 |
CREATE TABLE `sites` ( `id` int(11) unsigned NOT NULL auto_increment, `owner_id` int(11) unsigned NOT NULL, `name` varchar(100) NOT NULL, `alias` varchar(64) default NULL, |
April 02, 2007
8:40AM EDT
View more (19 lines)
1 2 3 4 5 |
--- map.rb 2007-04-02 13:35:38.000000000 +0100 +++ map.rb.new 2007-04-02 13:35:20.000000000 +0100 @@ -207,6 +207,7 @@ no_global = options[:no_global] fullscreen = options[:full] |
April 02, 2007
8:38AM EDT
View more (28 lines)
1 2 3 4 5 |
enlil:~/misc/MacPorts/dports/py-feedparser benoitc$ sudo port -d buildDEBUG: Changing to port directory: . DEBUG: Changing to port directory: . DEBUG: Requested variant powerpc is not provided by port py-feedparser. DEBUG: Requested variant darwin is not provided by port py-feedparser. DEBUG: Requested variant macosx is not provided by port py-feedparser. |
April 02, 2007
8:08AM EDT
by bryan
View more (17 lines)
1 2 3 4 5 |
(in /Users/bryan/Workspace/mdlogix/bliles_crms) +----------------------+-------+-------+---------+---------+-----+-------+ | Name | Lines | LOC | Classes | Methods | M/C | LOC/M | +----------------------+-------+-------+---------+---------+-----+-------+ | Controllers | 14852 | 12523 | 103 | 1350 | 13 | 7 | |
April 02, 2007
7:26AM EDT
View more (8 lines)
1 2 3 4 5 |
>> a = {:name => 'A'}
=> {:name=>"A"}
>> b = a
=> {:name=>"A"}
>> b[:foo] = 'bar'
|
April 02, 2007
7:09AM EDT
View more (149 lines)
1 2 3 4 5 |
./configure --with-pic --with-mysql=/var/tmp/portage/dev-db/mysql-community-5.1.15_beta/work/mysql checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes |
Pastie