My Recent Pastes (173353 and counting)
All Pasties (173,219 and counting)
Pages: 1 ... 6071 6072 6073 6074 6075 ... 6935
Below are summaries of the most recent pasties.
November 26, 2006
7:46PM EDT
by CleverDaddy
View more (18 lines)
1 2 3 4 5 |
I'm trying to create a new rating entry that has 4 ratings attributes. I get the rating created ok, with the correct audition_id & user_id, I am not getting any of the fields from the form: Is it a mismatch of field types with form_remote_tag? or the name of the form? or how I'm trying access the params? audition_controller.rb def rate @audition = Audition.find(params[:id]) |
November 26, 2006
7:44PM EDT
by Sam DeVore
View more (306 lines)
1 2 3 4 5 |
DROP TABLE IF EXISTS `person`; DROP TABLE IF EXISTS `parents`; DROP TABLE IF EXISTS `old_students`; DROP TABLE IF EXISTS `phones`; DROP TABLE IF EXISTS `medicals`; |
November 26, 2006
7:21PM EDT
View more (6 lines)
1 2 3 4 5 |
def rate @audition = Audition.find(params[:id]) @rating = @audition.ratings.new(params[:rating]) @rating.user = current_user @rating.save |
November 26, 2006
7:19PM EDT
by CleverDaddy
View more (6 lines)
1 2 3 4 5 |
def rate @audition = Audition.find(params[:id]) @rating = Audition.find(params[:id]).ratings.create(params[:rating]) @rating.user = current_user @rating.save |
November 26, 2006
6:39PM EDT
by kiba
View more (79 lines)
1 2 3 4 5 |
#Copyright (C) 2006 by Han Dao # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. |
November 26, 2006
6:38PM EDT
View more (34 lines)
1 2 3 4 5 |
#!/home/ruben/bin/ruby # # You may specify the path to the FastCGI crash log (a log of unhandled # exceptions which forced the FastCGI instance to exit, great for debugging) # and the number of requests to process before running garbage collection. |
November 26, 2006
6:17PM EDT
View more (32 lines)
1 2 3 4 5 |
CREATE TABLE `tbl_panel_fee` ( `pf_id` int(11) NOT NULL auto_increment, `panel_id` int(11) NOT NULL default '0', `pf_min` int(11) unsigned default NULL, `pf_max` int(11) unsigned default NULL, |
November 26, 2006
6:17PM EDT
by kiba
View more (47 lines)
1 2 3 4 5 |
#Copyright (C) 2006 by Han Dao # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. |
November 26, 2006
6:15PM EDT
View more (158 lines)
1 2 3 4 5 |
(let ((additions
'("~/"
"~/rin/rhtml"
"~/rin/rel"
"~/rin/elunit"
|
November 26, 2006
5:23PM EDT
by soryu
View more (18 lines)
1 2 3 4 5 |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
|
November 26, 2006
5:18PM EDT
View more (42 lines)
1 2 3 4 5 |
#include <stdio.h>
int main(void)
{
int value = 1, leap_year = 0;
|
November 26, 2006
5:04PM EDT
1 2 3 4 5 |
[{"attributes": {"title": "my article"}}]
but i get
[{attributes: {title: "my article"}}]
|
November 26, 2006
5:02PM EDT
by jacobat
View more (20 lines)
1 2 3 4 5 |
_rake_does_task_list_need_generating () {
if [ ! -f .rake_tasks ]; then return 0;
else
accurate=$(stat -f%m .rake_tasks)
changed=$(stat -f%m Rakefile)
|
November 26, 2006
4:18PM EDT
View more (69 lines)
1 2 3 4 5 |
Database tables look like so: items: +----+--------- | id | title |
November 26, 2006
4:09PM EDT
View more (54 lines)
1 2 3 4 5 |
/* * Q3.c * * * Created by Daniel Gerald. |
November 26, 2006
4:08PM EDT
View more (54 lines)
1 2 3 4 5 |
/*
* Q3.c
*
*
* Created by Daniel Gerald.
|
November 26, 2006
3:57PM EDT
View more (25 lines)
1 2 3 4 5 |
clude/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/atk-1.0 -I/usr/include/libglademm-2.4 -I/usr/lib/libglademm-2.4/include -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/libglade-2.0 -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I/usr/include/cairomm-1.0 -I/usr/include/cairo -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -ggdb3 -fPIC -MT bmp2_bin-library-ui-relocate-album.o -MD -MP -MF ".deps/bmp2_bin-library-ui-relocate-album.Tpo" -c -o bmp2_bin-library-ui-relocate-album.o `test -f 'library-ui-relocate-album.cc' || echo './'`library-ui-relocate-album.cc; \ then mv -f ".deps/bmp2_bin-library-ui-relocate-album.Tpo" ".deps/bmp2_bin-library-ui-relocate-album.Po"; else rm -f ".deps/bmp2_bin-library-ui-relocate-album.Tpo"; exit 1; fi if x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libhal++ -I../sqlite -I../uuid -I../include -I../taglib_plugins/wma -DPREFIX="\"/usr\"" -DPLUGIN_DIR="\"/usr/lib/bmpx/plugins\"" -DDATA_DIR="\"/usr/share/bmpx\"" -DLOCALE_DIR="\"/usr/share/locale\"" -DBMP_HAL_LOG_DOMAIN="\"HAL\"" -DBMP_DATABASE_LOG_DOMAIN="\"Database\"" -DBMP_LASTFM_LOG_DOMAIN="\"LastFM\"" -DBMP_LIBRARY_LOG_DOMAIN="\"Library\"" -DG_LOG_DOMAIN="\"BMP\"" -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/fam -I/usr/include/taglib -I/usr/include/neon -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/alsa -I../sqlite -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -D__USE_POSIX199309 -DDBUS_API_SUBJECT_TO_CHANGE -D_XOPEN_SOURCE=600 -I/usr/include/startup-notification-1.0 -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/atk-1.0 -I/usr/include/libglademm-2.4 -I/usr/lib/libglademm-2.4/include -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/libglade-2.0 -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I/usr/include/cairomm-1.0 -I/usr/include/cairo -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -ggdb3 -fPIC -MT bmp2_bin-bmpneonhttpsrc.o -MD -MP -MF ".deps/bmp2_bin-bmpneonhttpsrc.Tpo" -c -o bmp2_bin-bmpneonhttpsrc.o `test -f 'bmpneonhttpsrc.cc' || echo './'`bmpneonhttpsrc.cc; \ then mv -f ".deps/bmp2_bin-bmpneonhttpsrc.Tpo" ".deps/bmp2_bin-bmpneonhttpsrc.Po"; else rm -f ".deps/bmp2_bin-bmpneonhttpsrc.Tpo"; exit 1; fi if x86_64-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I../libhal++ -I../sqlite -I../uuid -I../include -I../taglib_plugins/wma -DPREFIX="\"/usr\"" -DPLUGIN_DIR="\"/usr/lib/bmpx/plugins\"" -DDATA_DIR="\"/usr/share/bmpx\"" -DLOCALE_DIR="\"/usr/share/locale\"" -DBMP_HAL_LOG_DOMAIN="\"HAL\"" -DBMP_DATABASE_LOG_DOMAIN="\"Database\"" -DBMP_LASTFM_LOG_DOMAIN="\"LastFM\"" -DBMP_LIBRARY_LOG_DOMAIN="\"Library\"" -DG_LOG_DOMAIN="\"BMP\"" -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/fam -I/usr/include/taglib -I/usr/include/neon -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -I/usr/include/alsa -I../sqlite -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include -I/usr/include/librsvg-2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gtk-2.0 -D__USE_POSIX199309 -DDBUS_API_SUBJECT_TO_CHANGE -D_XOPEN_SOURCE=600 -I/usr/include/startup-notification-1.0 -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/atk-1.0 -I/usr/include/libglademm-2.4 -I/usr/lib/libglademm-2.4/include -I/usr/include/gtkmm-2.4 -I/usr/lib/gtkmm-2.4/include -I/usr/include/libglade-2.0 -I/usr/include/glibmm-2.4 -I/usr/lib/glibmm-2.4/include -I/usr/include/gdkmm-2.4 -I/usr/lib/gdkmm-2.4/include -I/usr/include/pangomm-1.4 -I/usr/include/atkmm-1.6 -I/usr/include/gtk-2.0 -I/usr/include/sigc++-2.0 -I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/cairomm-1.0 -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/atk-1.0 -I/usr/include/libxml2 -I/usr/include/cairomm-1.0 -I/usr/include/cairo -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -g -O2 -ggdb3 -fPIC -MT bmp2_bin-hal.o -MD -MP -MF ".deps/bmp2_bin-hal.Tpo" -c -o bmp2_bin-hal.o `test -f 'hal.cc' || echo './'`hal.cc; \ |
November 26, 2006
3:29PM EDT
View more (33 lines)
1 2 3 4 5 |
. . . .lo -MD -MP -MF ".deps/context.Tpo" -c -o context.lo context.cc; \ then mv -f ".deps/context.Tpo" ".deps/context.Plo"; else rm -f ".deps/context.Tpo"; exit 1; fi |
November 26, 2006
3:20PM EDT
View more (10 lines)
1 2 3 4 5 |
module ActiveRecord class Errors def my_method # Display all the errors in the console puts @errors.to_yaml |
November 26, 2006
3:06PM EDT
View more (37 lines)
1 2 3 4 5 |
#include <stdio.h>
int main() {
int i, j, k, l, m, n, o, p, q, r;
|
November 26, 2006
2:47PM EDT
by ezmobius
1 2 3 |
def instantiate_class(klass) Object.const_get(klass.to_s.split('_').inject('') { |total,part| total << part.capitalize }) end |
November 26, 2006
2:47PM EDT
View more (38 lines)
1 2 3 4 5 |
#!/usr/bin/ruby server = 'localhost' # 'localhost' 'irc.freenode.net' port = 6667 channel = '#kolibria' # '#bidule' |
November 26, 2006
2:21PM EDT
View more (55 lines)
1 2 3 4 5 |
## form_remote_upload_tag request http://localhost:3000/admin_artists/create/1164532645834?scaffold_id=artist&remote_upload_id=remote_uploader_pp9rd7czdr POST /admin_artists/create/1164532645834?scaffold_id=artist&remote_upload_id=remote_uploader_pp9rd7czdr HTTP/1.1 Host: localhost:3000 |
Pastie