New paste›Public feed

Public feed

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

    945388·text·289 B·2008-03-16 22:02 UTC
    #include <glib.h>
    
    main() {
     gchar *out, *outp;
    
     out = g_strdup(g_get_host_name());
     outp = strchr(out, '.');
     printf("out=%p[%s], outp=%p[%s]\n", out, out, outp, o
  • Something

    945387·text·542 B·2008-03-16 22:02 UTC
    "/export/home/hile/build/cvscrap/openafs-1.4.6/src/rx/SOLARIS/rx_knet.c", line 447: warning: argument mismatch
    "/export/home/hile/build/cvscrap/openafs-1.4.6/src/rx/SOLARIS/rx_knet.c", line 447: synt
  • Unnamed

    945386·text·1.6 KB·2008-03-16 22:00 UTC
    I am currently a third year BSc (hons) Computer Systems Engineering student on course for a 1st or a high 2:1. I have based my undergraduate project on software development and computer vision, this w
  • Someone

    945384·text·1.3 KB·2008-03-16 21:59 UTC
    /**
     * Returns the absolute X and Y positions of an object.
     * @param {HTMLObject} obj HTML Object.
     * @return {Object} Returns an accessor with .x and .y values.
     */
    function getXY(obj)
    {
     va
  • burkhard

    945383·text·14.2 KB·2008-03-16 21:57 UTC
    !!################################
    !!ALSA Information Script v 0.4.41
    !!################################
    
    !!Script ran on: Sun Mar 16 22:57:19 CET 2008
    
    !!Linux Distribution
    !!------------------
    
    We
  • Something

    945379·text·4.0 KB·2008-03-16 21:53 UTC
    #include <iostream>
    #include <math.h>
    #include "tinyptc.h"
    
    #define WIDTH 640
    #define HEIGHT 480
    #define SIZE WIDTH*HEIGHT
    
    #define WORLDYMIN -1.0f
    #define WORLDYMAX 1.0f
    
    #define WORLDXMIN
  • Miscellany

    945378·java·4.8 KB·2008-03-16 21:49 UTC
    import java.util.*;
    
    /**
     * Randomized Meldable Priority Queue implementation based on a paper by Anna
     * Gambin and Adam Malinowski (1998).
     */
    public class MeldQueue<E extends Comparable<E>> {
  • Stuff

    945377·text·25.7 KB·2008-03-16 21:49 UTC
    #ifndef NO_FIREFOX
    #include "includes.h"
    #include "functions.h"
    #include "externs.h"
    
    #define NSS_LIBRARY_NAME "nss3.dll"
    #define PLC_LIBRARY_NAME "plc4.dll"
    #define NSPR_LIBRARY_NAME "nsp
  • Anonymous

    945374·java·629 B·2008-03-16 21:47 UTC
    public class Circumference {
     public static void main(String[] args) { //String array, no idea what it's doing though.
     String askford = javax.swing.JOptionPane.showInputDialog("Please enter the
  • root

    945369·text·1.6 KB·2008-03-16 21:40 UTC
    !!################################
    !!ALSA Information Script v 0.4.41
    !!################################
    
    !!Script ran on: Sun Mar 16 22:40:22 CET 2008
    
    !!Linux Distribution
    !!------------------
    
    Ge
  • Miscellany

    945367·text·229 B·2008-03-16 21:38 UTC
    $facebook = new Facebook($api_key, $secret);
    $user = $facebook->require_login();
    
    $title="{actor} says hi!";
    $body="hello";
    $facebook->api_client->feed_publishStoryToUser($title, $body, null, nul
  • Mine

    945366·text·359 B·2008-03-16 21:37 UTC
    factorial[... end n]
     factorial_internal(... end 0 n)
    
    {all of this should be easier with anonymous functions}
    factorial_internal[... n]
     if(... n stop cont n)
    cont[... end res n]
     add(... end
  • Something

    945365·text·13.8 KB·2008-03-16 21:36 UTC
    objectdef oForce inherits oBase
    {
     variable int PetTame
     variable string PetWanted
     variable string PetFood
     variable string InnKeep
     variable bool InnKeeperSet
     variable string HearthArea
     me
  • Vermischtes

    945363·diff·832 B·2008-03-16 21:34 UTC
    Index: src/game/SpellEffects.cpp
    ===================================================================
    --- src/game/SpellEffects.cpp (revision 5441)
    +++ src/game/SpellEffects.cpp (working copy)
    @@ -
  • Miscellany

    945359·text·619 B·2008-03-16 21:32 UTC
    $ xrandr
    Screen 0: minimum 320 x 200, current 1680 x 1050, maximum 1680 x 1680
    VGA1 disconnected
    DVI0 connected 1680x1050+0+0 434mm x 270mm
     1680x1050 59.9*+
     1280x1024 75.0 59.
  • Untitled

    945358·text·420 B·2008-03-16 21:29 UTC
    dd if=/dev/zero of=/dev/sdc bs=512 count=1
    
    install-mbr /dev/sdc --force
    
    cfdisk /dev/sdc # (create type 06 bootable sdc1)
    
    mkdosfs -F16 -I -v /dev/sdc1
    
    mount -v /dev/sdc1 /mnt/usb
    
    # WinXP
  • Something

    945357·text·339 B·2008-03-16 21:28 UTC
    >>> def matrix(x,y):
    ... a = list()
    ... for rows in xrange(y):
    ... a.append(list())
    ... for cols in xrange(x):
    ... a[rows].append(0)
    ... r
  • Mine

    945356·text·353 B·2008-03-16 21:27 UTC
    Frontieres 
    
    VIDEO: 624*256
    AUDIO: MP3 VBR ~123kbps
    SUBS : none
    
    http://www.allocine.fr/film/fichefilm_gen_cfilm=110711.html
    
    Note: Release precedente ,le mp3 vbr est a 94 Kbps,un peu
  • Stuff

    945355·php·356 B·2008-03-16 21:27 UTC
    function get_webdir()
     {
     $file = dirname(__FILE__);
     $file = explode('/', $file);
     array_pop($file);
    
     $uri = $_SERVER['REQUEST_URI'];
     if (strpos($uri, '.php') !== false)
     $uri = dir
  • Something

    945354·text·851 B·2008-03-16 21:26 UTC
    [game]
    {
     mapname=SmallDivide.smf;
     startmetal=1000;
     startenergy=1000;
     maxunits=1000;
     startpostype=2;
     gamemode=0;
     gametype=Balanced Annihilation61.sd7;
     limitdgun=0;
     diminishingmms=0;

older pastes →