All pastesPublic feed

Public feed

Pastes people chose to make public. Author names hidden.
  • Untitled

    2131007·text·887 B·2012-03-22 00:07 UTC
    # List of callables that know how to import templates from various sources.
    TEMPLATE_LOADERS = (
     'django.template.loaders.filesystem.Loader',
     'django.template.loaders.app_directories.Load
  • Something

    2131006·text·856 B·2012-03-21 23:56 UTC
    #!/usr/bin/perl -w
    
    # save and run as ./mysql_unicode_test.pl dbi:mysql:database=yourdb youruser yourpw
    
    use strict;
    
    use DBI;
    
    our $dbh= DBI->connect(@ARGV,
     {
     RaiseError => 1,
  • Miscellany

    2131001·text·532 B·2012-03-21 23:27 UTC
    package main
    
    import (
     "exp/html"
     "fmt"
     "net/http"
    )
    
    func main() {
     http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
     fmt.Fprintf(w, "root: %v", html.EscapeString(r.U
  • esdl :(

    2130995·text·14.2 KB·2012-03-21 22:30 UTC
    make[1]: Entering directory `/home/thracky/archbuilds/esdl/src/esdl-1.2/c_src'
    gcc -c -g -O2 -funroll-loops -Wall -ffast-math -fpic -fomit-frame-pointer -DSHM -DPTHREADS -I/usr/include/ -I/usr/inc
  • Someone

    2130994·text·291 B·2012-03-21 22:20 UTC
    fs.file-max = 65535
    kernel.shmall = 2097152
    kernel.shmmax = 2147483648
    kernel.shmmni = 4096
    kernel.sem = 250 32000 100 128
    net.ipv4.ip_local_port_range = 1024 65535
    net.core.rmem_default = 10485
  • Untitled

    2130992·text·748 B·2012-03-21 22:10 UTC
    [17:48:55] james:~ $ sudo apt-get --no-install-recommends install libasound2-plugin-equal
    [sudo] password for james: 
    Reading package lists... Done
    Building dependency tree 
    Reading state in
  • Miscellany

    2130986·javascript·334 B·2012-03-21 21:51 UTC
    $(document).ready(function(){
     $("#button1").click(function(){
     $("#wrapper").animate({
     right: "-100%",opacity: 0},500,"easeInExpo", function() {$("#content").load("index2.html", function() {
  • test001

    2130985·text·13 B·2012-03-21 21:30 UTC
    test #1940-01
  • Miscellany

    2130984·text·15.9 KB·2012-03-21 21:28 UTC
    2012-03-22 01:26:42.708145 [DEBUG] mod_dingaling.c:1056 Send Candidate 184.82.20.140:25842 [2jnMD6kdnNbEd42L]
    2012-03-22 01:26:42.708145 [DEBUG] mod_dingaling.c:3150 Creating an identity for SIP70431
  • Something

    2130981·text·921.0 KB·2012-03-21 21:15 UTC
    
        
  • Untitled

    2130980·text·921.0 KB·2012-03-21 21:15 UTC
    
        
  • Miscellany

    2130979·php·870 B·2012-03-21 21:14 UTC
    # Build keywords from body 
     $text = strtolower($page['body']);
     $text = strip_tags($text);
     $text = preg_replace('/[^\pL\p{Zs}]/u', ' ', $text);
     $text = preg_replace('/\s+/', ' ',
  • Untitled

    2130975·text·366 B·2012-03-21 20:14 UTC
    diff --git a/apps/mupdfclean.c b/apps/mupdfclean.c
    index 2b652d9..5b95fda 100644
    --- a/apps/mupdfclean.c
    +++ b/apps/mupdfclean.c
    @@ -59,9 +59,9 @@ static pdf_obj *sweepref(pdf_obj *obj)
     int gen
  • Miscellany

    2130974·text·1.5 KB·2012-03-21 20:09 UTC
    struct bu_hash_entry *
    bu_hash_add_entry(struct bu_hash_tbl *hsh_tbl, unsigned char *key, int key_len, int *new_entry)
    {
     struct bu_hash_entry *hsh_entry, *prev;
     unsigned long idx;
    
     B
  • Mine

    2130969·c·407 B·2012-03-21 19:33 UTC
    void setup()
    {
     // start serial port at 9600 bps:
     Serial.begin(9600);
     Serial.write(0xAA);
    }
    
    void loop()
    {
     int inByte;
     int outByte = 64 | 5;
     while (1) {
     if (Serial.available
  • Someone

    2130967·python·1.5 KB·2012-03-21 18:54 UTC
    Person info
    
    Ville
    Address 
    E-post 
    Telefon 
    type Times Hours
    Practice 1 09:33
    Keikka 0 
    Talko 2 09:33
    Meeting 1 02:00
    Practices:
    Lasta slädan, 01:30, Ovning
    Årsmöte, 02:00, Mote
    Talkoo,
  • Someone

    2130966·text·1.5 KB·2012-03-21 18:42 UTC
    Person info
    
    Ville
    Address 
    E-post 
    Telefon 
    type Times Hours
    Practice 1 09:33
    Keikka 0 
    Talko 2 09:33
    Meeting 1 02:00
    Practices:
    Lasta slädan, 01:30, Ovning
    Årsmöte, 02:00, Mote
    Talkoo,
  • Anonymous

    2130964·text·916 B·2012-03-21 18:38 UTC
    Program received signal SIGSEGV, Segmentation fault.
    0x00007ffff6534c00 in __memmove_ssse3_back () from /lib/libc.so.6
    (gdb) bt
    #0 0x00007ffff6534c00 in __memmove_ssse3_back () from /lib/libc.so.6
  • Untitled

    2130963·text·347 B·2012-03-21 18:37 UTC
    glBindTexture(GL_TEXTURE_2D, m_textureId);
    while (m_running)
    {
     glColor3f(1.0f, 1.0f, 1.0f);
     glBegin(GL_QUADS);
     glTexCoord2f(0, 480);
     glVertex2f(0, 0);
     glTexCoord2f(640, 480)
  • Unnamed

    2130962·text·8.1 KB·2012-03-21 18:33 UTC
    *************************** 1. row ***************************
     id: 1
     select_type: SIMPLE
     table: instances
     type: ALL
    possible_keys: NULL
     key: NULL
     k

older pastes →