New paste›Public feed

Public feed

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

    994444·python·409 B·2008-04-23 12:32 UTC
    >>> from ConfigParser import ConfigParser
    >>> config = ConfigParser()
    >>> config.add_section("hello")
    >>> config.set("hello","key","dayu")
    >>> config.write("/home/mahoru/test")
    Traceback (most re
  • Stuff

    994443·text·289 B·2008-04-23 12:31 UTC
    I need something like the following 
    
    incoming URL: /member/view.php?userId=1234
    Redirect To : http://someothetul/member/1234
    
    I was thinking of something like 
    
    RedirectMatch 301 ^/member/v
  • Miscellany

    994442·text·236 B·2008-04-23 12:26 UTC
    <?php
    $string = '<foo>hej</foo>';
    $pattern = '/(<foo>+)(\w+)(<\/foo>+)/i'; // \w står for noget i retning af word boundary
    $replacement = '<bar>$2</bar>';
    
    echo preg_replace($pattern, $replace
  • Unnamed

    994440·text·1.2 KB·2008-04-23 12:24 UTC
    config.status: creating src/modules/loaders/edb/Makefile
    config.status: creating src/modules/loaders/eet/Makefile
    config.status: creating src/modules/loaders/gif/Makefile
    config.status: creating sr
  • Peiks js-problem

    994439·text·1.5 KB·2008-04-23 12:19 UTC
    function isDate(value)
    {
     // ddmmåååå
     var datePattern = /^\d{2}\d{2}\d{4}$/g;
     // dd.mm.åååå
     var datePatternDots = /^\d{2}\.\d{2}\.\d{4}$/g;
     var dateElements = new Array(3);
  • Untitled

    994438·text·23 B·2008-04-23 12:19 UTC
    天使のいない12月
  • faetzminator

    994437·apache·1.9 KB·2008-04-23 12:18 UTC
    #
    # Virtual Hosts
    #
    # If you want to maintain multiple domains/hostnames on your
    # machine you can setup VirtualHost containers for them. Most configurations
    # use only name-based virtual hosts s
  • faetzminator

    994436·apache·17.7 KB·2008-04-23 12:18 UTC
    #
    # This is the main Apache HTTP server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.2> for detai
  • Stuff

    994435·text·526 B·2008-04-23 12:18 UTC
    (22:14:54) (+TheTamer) were
    (22:15:50) (+TheTamer) is this random u mean?
    (22:15:53) (+TheTamer) i can talk here?
    (22:16:08) (+TheTamer) hello people from my planet
    (22:16:23) (+TheTamer) i come i
  • faetzminator

    994434·apache·18.1 KB·2008-04-23 12:17 UTC
    #
    # This is the main Apache HTTP server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.2> for detai
  • faetzminator

    994432·apache·1.5 KB·2008-04-23 12:16 UTC
    #
    # Virtual Hosts
    #
    # If you want to maintain multiple domains/hostnames on your
    # machine you can setup VirtualHost containers for them. Most configurations
    # use only name-based virtual hosts s
  • Miscellany

    994431·text·2.2 KB·2008-04-23 12:16 UTC
    $ mplayer -vo null -ao pcm 20080418\ -\ eDistribution\ -\ 30\ seconds\ introduction.avi 
    MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
    CPU: Intel(R) Core(TM)2 CPU T5600 @ 1.83GHz (Family
  • Anonymous

    994430·bash·3.0 KB·2008-04-23 12:16 UTC
    # All firefox/blah links relative to (build-tree)mozilla/other-licenses/branding/
    # All debian/blah are the debian directory.
    
    # devel
    
    composite -gravity east default16.png header.png haxor.
  • Mine

    994427·text·369 B·2008-04-23 12:12 UTC
    python setup.py build
    running build
    running build_py
    -o python -L/usr/lib/qt3/lib64 -L/usr/lib64 -lqt-mt -lXext -lX11 -lm
    python setup.py install --skip-build --root=\"${INSTALL_ROOT:-/\}\"
    /bin/
  • faetzminator

    994426·apache·18.0 KB·2008-04-23 12:10 UTC
    #
    # This is the main Apache HTTP server configuration file. It contains the
    # configuration directives that give the server its instructions.
    # See <URL:http://httpd.apache.org/docs/2.2> for detai
  • Stuff

    994425·text·302 B·2008-04-23 12:10 UTC
    7. A DC electric motor is connected to a 12 V battery and allowed to spin freely. The
    current drawn is 2.5 A. The motor is then held so that it cannot spin and the current
    measured is 10 A. Calcul
  • Unnamed

    994419·perl·374 B·2008-04-23 12:04 UTC
    $VAR1 = [
     [
     'This is the first line of a file.'
     ],
     [
     'This is line 2 of a file'
     ],
     [
     'This is line 3 of a
  • Anonymous

    994417·text·992 B·2008-04-23 12:04 UTC
    class format
    {
    
     function format ( $text )
     {
     
     $text = htmlentities( $text );
     $text = preg_replace( "\n[:alnum:]\n", "<p>$1</p>", $text );
     $text = preg_replace( "\r[:alnum:]\r", "<p>$
  • null

    994416·text·2.8 KB·2008-04-23 12:03 UTC
    23.04.2008 14:05:17 - SCHWERWIEGEND [jd.utils.JDUtilities$1(write)] -> Exception in thread "JD-StartDownloads" java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/ImageFormatException
    23.04.2008
  • Anonymous

    994415·text·412 B·2008-04-23 12:02 UTC
    url.rewrite = ( "^/[:alnum:]$" => "/?lang=$1" )
     url.rewrite = ( "^/[:alnum:]/[:alnum:]$" => "/?lang=$1&perspective=$2" )
     url.rewrite = ( "

older pastes →