All pastesPublic feed

Public feed

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

    2127904·c·919 B·2012-03-13 18:27 UTC
    /*
     * Convert seconds to time
     */
    void seconds_to_time(int seconds, struct time *t){
     int year_i;
     int year = EPOCH_YEAR, month = 1, day = 1, hour = 0, min = 0, sec = 0;
    
     while(seconds != 0){
  • Mine

    2127874·text·6.2 KB·2012-03-13 17:56 UTC
    My name is Israt Jahan, and I will make a presentation of a country in Central America called Puerto Rico.
    Mi nombre es Israt Jahan, y yo voy a hacer una presentacion de un pais en Centroamerica se
  • Anonymous

    2127873·text·6.5 KB·2012-03-13 17:51 UTC
    ---------
    hahaboohoo: Hey stranger [not sure if you opened with this, shows a lot of need in this context.]
    HB9 =): Heyy what's up
    hahaboohoo: Just chillin at home, how's life treating ya? [femini
  • Untitled

    2127872·text·247 B·2012-03-13 17:42 UTC
    #!/usr/bin/env python
    import xmlrpclib
    s = xmlrpclib.ServerProxy("https://localhost/xml-rpc/open-ils.actor")
    f = getattr(s, "open-ils.actor.patron.settings.update")
    f("9b8acccbaf229b0c78a90f055fad
  • Anonymous

    2127867·text·1.5 KB·2012-03-13 17:29 UTC
    nedo bog zvat 
    7.3.2012 21:58:12 ziGa . Maja Majiic S: 
    7.3.2012 21:58:24 Maja Majiic ziGa . kad te zovemo, kazes da si izgubio kljuc pa izadjes u wh
  • Error evergreen API

    2127866·text·875 B·2012-03-13 17:27 UTC
    To begin with, we want to implement few Evergreen API method calls (as given at the end of this mail) on our web service. However we found that some of these methods fail and return either response co
  • Unnamed

    2127865·text·820 B·2012-03-13 17:26 UTC
    /* check for ImportantMessages (these display in a div overlaying the main screen) */
     if (StrLength(WCC->ImportantMsg) > 0) {
     wc_printf("<div
  • Untitled

    2127864·text·643 B·2012-03-13 17:25 UTC
    java.io.IOException: Server returned HTTP response code: 500 for URL: https://192.168.1.187:443/xml-rpc/open-ils.actor
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    a
  • Something

    2127856·text·8.1 KB·2012-03-13 16:52 UTC
    Program received signal SIGSEGV, Segmentation fault.
    0x00007f367a7ac37b in Timer::Timer(Timer const&) () from /opt/libreoffice3.5/program/libvcllo.so
    (gdb) 
    Thread 7 (Thread 0x7f367482a910 (LWP 114
  • fresh proxy

    2127852·text·17 B·2012-03-13 16:44 UTC
    60.234.72.16:4329
  • recursive directory list

    2127843·perl·1.0 KB·2012-03-13 16:05 UTC
    my $path = ".";
    get_list($path);
    
    sub get_list
    {
     my $path = shift;
    
     opendir(my $dh, $path) or die "Cannot open dir $path: $!\n";
     while (my $f = readdir($dh))
     {
     next i
  • Something

    2127837·text·440 B·2012-03-13 15:30 UTC
    class Picture(Observable):
     
     EFFECT_NONE = 0
     EFFECT_BLACK_WHITE = 1
     EFFECT_SEPIA = 2
     
     TRANS_NONE = 0
     TRANS_FADE = 1
     TRANS_ROLL = 2
     
     def __
  • Mine

    2127820·text·269 B·2012-03-13 14:06 UTC
    f=Piecewise([[(-1,-1/2),-x],[(-1/2,1/2),0],[(1/2,1),x]])
    p=plot(f)
    var('j')
    an=(2*cos(j*pi/2)+j*pi*sin(j*pi/2)+2*(-1)^j)/(j^2*pi^2)
    def fs(q):
     return 3/4+sum(an*cos(j*pi*x),j,1,q)
    print fs(3
  • Famicom Disk System emul. WIP

    2127813·cpp·12.2 KB·2012-03-13 13:43 UTC
    // Integer types
    typedef unsigned char u8;
    // Bitfield utilities
    template<unsigned bitno, unsigned nbits=1, typename T=u8>
    struct RegBit
    {
     T data;
     enum { mask = (1u << nbits) - 1u };
  • Famicom Disk System emul. WIP

    2127812·cpp·12.1 KB·2012-03-13 13:41 UTC
    // Integer types
    typedef unsigned char u8;
    // Bitfield utilities
    template<unsigned bitno, unsigned nbits=1, typename T=u8>
    struct RegBit
    {
     T data;
     enum { mask = (1u << nbits) - 1u };
  • Mine

    2127811·diff·564 B·2012-03-13 13:38 UTC
    --- translate/storage/base.py 2011-05-15 20:14:19.000000000 +0200
    +++ /home/claude/.../translate/storage/base.py 2012-03-13 14:17:21.759808031 +0100
    @@ -543,6 +543,9 @@
     @param unit: The un
  • Famicom Disk System emul. WIP

    2127808·cpp·11.8 KB·2012-03-13 13:33 UTC
    // Integer types
    typedef unsigned char u8;
    // Bitfield utilities
    template<unsigned bitno, unsigned nbits=1, typename T=u8>
    struct RegBit
    {
     T data;
     enum { mask = (1u << nbits) - 1u };
  • Famicom Disk System emul. WIP

    2127807·cpp·11.8 KB·2012-03-13 13:33 UTC
    // Integer types
    typedef unsigned char u8;
    // Bitfield utilities
    template<unsigned bitno, unsigned nbits=1, typename T=u8>
    struct RegBit
    {
     T data;
     enum { mask = (1u << nbits) - 1u };
  • Famicom Disk System emulation WI

    2127806·cpp·11.8 KB·2012-03-13 13:32 UTC
    // Integer types
    typedef unsigned char u8;
    // Bitfield utilities
    template<unsigned bitno, unsigned nbits=1, typename T=u8>
    struct RegBit
    {
     T data;
     enum { mask = (1u << nbits) - 1u };
  • chinese spam

    2127796·text·21.4 KB·2012-03-13 12:56 UTC
    Received: from server3.hengzhi-mail.com (211.151.62.103) by
     mail.jam-software.de (192.168.123.87) with Microsoft SMTP Server id
     14.2.283.3; Mon, 12 Mar 2012 21:45:24 +0100
    Received: from server1.

older pastes →