My Recent Pastes (264529 and counting)

All Pasties (over 264,529 and counting)

Pages: 1 8538 8540 8542 13227

Below are summaries of the most recent pasties.

October 30, 2007
9:25PM EDT

1
2
3
4
5
# Customize to match your system. Then, place this file in ~/.arm-cc-specs
# (where ~ represents your home dir).
PREPROCESS=/Developer/SDKs/iPhone/bin/llvm-gcc
CPPFLAGS=-E -U__i386__ -U__ppc__ -D__arm__ -mmacosx-version-min=10.4 -isystem /Developer/SDKs/iPhone/include -isystem /Developer/SDKs/MacOSX10.4u.sdk/usr/include -F /Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks
LLVM_GCC=/Developer/SDKs/iPhone/bin/llvm-gcc

October 30, 2007
9:25PM EDT

1
2
3
4
5
<?php
/** WordPress's config file **/
/** Do not upload this file to server. This config file is only good for this machine so you can run a local instance of WP. **/
/** http://wordpress.org/   **/

October 30, 2007
9:12PM EDT

1
2
3
4
5
extconf.rb:1: command not found: mysql_config5 --include
extconf.rb:8: command not found: mysql_config5 --libs_r
extconf.rb:8: command not found: mysql_config5 --libs
/usr/bin/ld: warning multiple definitions of symbol _setregid
/usr/local/lib/libruby.dylib(process.o) definition of _setregid

October 30, 2007
8:57PM EDT

1
2
3
4
5
YDN.HeadlineScroller = Class.create();
YDN.HeadlineScroller.prototype = {
        
        initialize: function(id, speed) {
                //Set the variables that are passed in to be instance variables

October 30, 2007
8:47PM EDT

1
2
3
4
5
## not working code

class MusicBrain < ActiveRecord::Base
  validates_uniqueness_of :mbid
  belongs_to :track

October 30, 2007
8:25PM EDT

1
2
3
4
5
<body>
<div id='content'>
   <%= yield %>
</div>

October 30, 2007
8:25PM EDT

1
2
3
4
5
SELECT e.event_id, e.event_name, e.event_location, e.event_date,
               e.email_begin_date, e.email_end_date,
               GROUP_CONCAT(substring(u.user_id,0,1)) as num_users,
               GROUP_CONCAT(ISNULL(q.sent_daily), '|',
                   ISNULL(q.sent_weekly) separator '^') as num_quotes

October 30, 2007
8:24PM EDT
by nicksieger

1
2
3
4
5
$ ruby -e "p File.lstat('/')"
#<File::Stat dev=0xe000002, ino=2, mode=041775, nlink=32, uid=0, gid=80, rdev=0x0, size=1190, blksize=4096, blocks=0, atime=Tue Oct 30 18:40:27 -0500 2007, mtime=Tue Oct 30 08:23:51 -0500 2007, ctime=Tue Oct 30 08:23:51 -0500 2007>
$ bin/jruby -e "p File.lstat('/')"
JRubyFile.java:106:in `org.jruby.util.JRubyFile.getParent': java.lang.NullPointerException: null (NativeException)
  from JRubyFile.java:110:in `org.jruby.util.JRubyFile.getParentFile'

October 30, 2007
8:19PM EDT

1
2
3
4
5


## tag.rb

October 30, 2007
8:16PM EDT

1
2
3
4
5
f = open("MOVIES.LST")

a = []

a << f.readline.chomp while !f.eof?

October 30, 2007
8:15PM EDT

1
2
3
4
5
- (void)splitView:(NSSplitView*)sender resizeSubviewsWithOldSize:(NSSize)oldSize {
        NSView *leftSubview = [[sender subviews] objectAtIndex:0];
        NSView *rightSubview = [[sender subviews] objectAtIndex:1];
        
        float newHeight = [sender frame].size.height;

October 30, 2007
8:14PM EDT

1
2
3
4
5
                $ES("a[href*='remove']", page).addEvent("click", function(e){
                        e = new Event(e).stop(); var line = this.getParent();
                        new Ajax(this.getProperty("href"), {
                                method: "get",
                                onSuccess: function(){

October 30, 2007
8:13PM EDT

1
2
3
4
5
#!/usr/bin/env ruby

require "open-uri"

puts "Downloading descriptor file..."

October 30, 2007
8:12PM EDT

1
2
3
4
5
int tcp_accept( const int sd )
{

    int fd;
    struct sockaddr_in * client;

October 30, 2007
8:09PM EDT

1
2
3
4
5
f = open("MOVIES.LST")

a = []

a << f.readline.chomp while !f.eof?

October 30, 2007
8:09PM EDT

1
2
3
4
5
  printf( "fnlBuf = %d\n" , *fnlBuf );
        /*Determine memory needed for output buffer*/
        for ( i = 0 ; i < myRc ; i++ )
        {
            if ( isdigit( myOut[i] ) )

October 30, 2007
8:03PM EDT

1
2
3
4
5
        printf( "fnlBuf = %d\n" , fnlBuf );
        /*Determine memory needed for output buffer*/
        for ( i = 0 ; i < myRc ; i++ )
        {
            if ( isdigit( myOut[i] ) )

October 30, 2007
8:02PM EDT

1
2
3
4
5
def load_after_irb_loads
  # S3 (http://amazon.rubyforge.org/)
  if defined? AWS
    def aws_connect(access_key, secret_access_key)
      AWS::S3::Base.establish_connection!(:access_key_id => access_key, :secret_access_key => secret_access_key)

October 30, 2007
7:52PM EDT
by AnakinKain

1
2
3
4
5
!! This is the view
<%= image_tag(@post.game.user.avatar.img, :size => "100x75", :alt => "Edit Entry") %>

!!This is the controller
        @post = Post.find(params[:id])

October 30, 2007
7:50PM EDT

1
2
3
4
5
An Enigma machine is made up of a keyboard, a plug board, and a spindlethat holds 3 rotors and a reflector.An Enigma machine is made up of a keyboard, a plug board, and a spindlethat holds 3 rotors and a reflector.

THATXHOLDSXXAXSPXROTORSXANDXAXREFLECTORXANXENIGMAX
MACHINEXISXMADEXUPXOFXAXKEYBOARDYXAXPLUGXBOARDYXAN
DXAXSPINDLETHATXHOLDSXAXKEYXROTORSXANDXAXREFLECTORTHREE

Next page

Previous page