My Recent Pastes (264532 and counting)
All Pasties (over 264,532 and counting)
Pages: 1 … 8540 8541 8542 8543 8544 … 13227
Below are summaries of the most recent pasties.
October 30, 2007
6:15PM EDT
View more (20 lines)
1 2 3 4 5 |
Since it turns out someone other than me actually wants an ebuild, I bumped my svn version to use the new build system and tweaked some of the local data paths to fit better in gentoo's hierarchy. This should install cleanly and the init.d script should also start cleanly. |
October 30, 2007
6:11PM EDT
View more (853 lines)
1 2 3 4 5 |
ValueError at /admin/news/news/ unknown locale: UTF-8 Request Method: GET Request URL: http://localhost:8000/admin/news/news/ |
October 30, 2007
6:02PM EDT
View more (17 lines)
1 2 3 4 5 |
<%= start_form_tag %> <% cost, tax = 'cost', 'tax' %> <%= hidden_field_tag(%{variables[0][name]}, 'cost') %> <p><%= cost %> value: <%= text_field_tag(%{variables[0][value]}) %></p> <p><%= submit_tag('Dump params') %> |
October 30, 2007
6:02PM EDT
View more (16 lines)
1 2 3 4 5 |
def findPosOfStr(str, source) len = str.length acc = [] pos = 0 while (pos != nil) |
October 30, 2007
5:58PM EDT
View more (62 lines)
1 2 3 4 5 |
!!Frosted Glass I look into frosted glass. What do I happen to see? It is but a dim reflection, but it looks like me? |
October 30, 2007
5:52PM EDT
View more (25 lines)
1 2 3 4 5 |
def create respond_to do |format| format.js do render :update do |page| if(params[:tag][:name].blank?) |
October 30, 2007
5:42PM EDT
View more (17 lines)
1 2 3 4 5 |
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'data_mapper'
=> true
irb(main):003:0> DataMapper::Database.setup({
|
October 30, 2007
5:41PM EDT
by Caius Durling
View more (26 lines)
1 2 3 4 5 |
switch( foo.charAt(2) ) {
case '1':
case '2':
case '3':
case '4':
|
October 30, 2007
5:18PM EDT
View more (8 lines)
1 2 3 4 5 |
class Snippet < DataMapper::Base property :body, :text, :lazy => false property :created_at, :datetime property :updated_at, :datetime |
October 30, 2007
5:18PM EDT
View more (34 lines)
1 2 3 4 5 |
LKAnimation *animation = [LKTransition animation];
[animation setType:@"oglFlip"];
if(transType == 1)
[animation setSubtype:@"fromRight"];
|
October 30, 2007
5:17PM EDT
View more (133 lines)
1 2 3 4 5 |
#!/usr/bin/env ruby # # conplot.rb -- reads numbers on stdin and plots them on the console # brenocon@gmail.com # |
October 30, 2007
5:16PM EDT
1 2 3 |
def full_path "#{parent.full_path if parent}/#{self.slug}" end |
October 30, 2007
5:15PM EDT
View more (11 lines)
1 2 3 4 5 |
## puppy.rb class Puppy < ActiveRecord::Base belongs_to :generation belongs_to :breed, :through => 'generation' |
October 30, 2007
5:14PM EDT
View more (43 lines)
1 2 3 4 5 |
/usr/lib/ruby/user-gems/1.8/gems/datamapper-0.2.0%sudo rake dm:install:mysql %-- Password: (in /Library/Ruby/Gems/1.8/gems/datamapper-0.2.0) *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of |
October 30, 2007
5:14PM EDT
View more (24 lines)
1 2 3 4 5 |
letzten 10 Einträge im Error-Log: [Tue Oct 30 18:49:04 2007] [error] [client 88.66.61.58] File does not exist: /is/htdocs/wp1022709_13M5JBV3TQ/lab/projects/xhtmlwrapper/content/content, referer: http://lab.michaelsens.de/projects/xhtmlwrapper/content/ [Tue Oct 30 19:16:23 2007] [error] [client 87.139.125.155] File does not exist: /is/htdocs/wp1022709_13M5JBV3TQ/lab/favicon.ico [Tue Oct 30 19:18:38 2007] [error] [client 87.139.125.155] File does not exist: /is/htdocs/wp1022709_13M5JBV3TQ/lab/favicon.ico, referer: http://lab.michaelsens.de/projects/xhtmlwrapper/wrapper.php |
October 30, 2007
5:14PM EDT
View more (24 lines)
1 2 3 4 5 |
letzten 10 Einträge im Error-Log: [Tue Oct 30 18:49:04 2007] [error] [client 88.66.61.58] File does not exist: /is/htdocs/wp1022709_13M5JBV3TQ/lab/projects/xhtmlwrapper/content/content, referer: http://lab.michaelsens.de/projects/xhtmlwrapper/content/ [Tue Oct 30 19:16:23 2007] [error] [client 87.139.125.155] File does not exist: /is/htdocs/wp1022709_13M5JBV3TQ/lab/favicon.ico [Tue Oct 30 19:18:38 2007] [error] [client 87.139.125.155] File does not exist: /is/htdocs/wp1022709_13M5JBV3TQ/lab/favicon.ico, referer: http://lab.michaelsens.de/projects/xhtmlwrapper/wrapper.php |
October 30, 2007
5:08PM EDT
View more (20 lines)
1 2 3 4 5 |
## Make yourself a utils.cs
namespace Utils {
public static class String {
public static bool IsBlank( string str ) {
|
October 30, 2007
5:04PM EDT
View more (46 lines)
1 2 3 4 5 |
require 'rubygems' require 'fastercsv' require 'pp' def convert_digit digit |
October 30, 2007
5:00PM EDT
1 2 3 4 5 |
def full_path path = ['/', (current = self).slug] path << (current = current.parent).slug while !current.parent.nil? path.join('/') end |
October 30, 2007
4:59PM EDT
View more (32 lines)
1 2 3 4 5 |
public Location fire( int turn_num, boolean hit_last_time ) {
int r = 0; // Declare and initialize variable r for row
int c = 0; // Declare and initialize variable c for column
Location guess; // Declare new variable "guess"
|
Pastie