Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Pandora

Name: Anonymous 2008-01-24 20:22

# pandora.com v15 xmlrpc encrypt/decrypt routines
# for data sent to /radio/xmlrpc/v15 in a POST
# usage:
#   _xmlrpc_request_ = pandora_decrypt(_POST_data_)
#   _POST_data_ = pandora_encrypt(_xmlrpc_request_)

P = [0x62b25781, 0x36c6e49e, 0x79cecc68, 0x16a94f4, 0xb23506e5, 0xf3209930, 0x31cc9e6f, 0xf9c1c6f, 0x3ada9d11, 0xf8b18ccf, 0x8788eb, 0x3433eb64, 0x1bccf5a3, 0xdf91b435, 0xa50ea6fa, 0x8c069dcc, 0x1ff83b56, 0xa75abeba]

S = [[],[],[],[]]

S[0] =
see post >>2

S[1] =
see post >>3

S[2] =
see post >>4

S[3] =
see post >>5

def blowfish_round_function(XL):
    F = S[0][XL>
>24]
    F += S[1][(XL>
>16)&0xff]
    F &= 0xffffffff
    F ^= S[2][(XL>
>8)&0xff]
    F += S[3][XL&0xff]
    F &= 0xffffffff
    return F

def blowfish_block_decrypt(XL, XR):
    for i in xrange(17, 1, -1):
            XL ^= P[i]
            XR ^= blowfish_round_function(XL)
            XL, XR = XR, XL
    XL, XR = XR, XL
    XR ^= P[1]
    XL ^= P[0]
    return [XL, XR]

def blowfish_block_encrypt(XL, XR):
    for i in xrange(16):
            XL ^= P[i]
            XR ^= blowfish_round_function(XL)
            XL, XR = XR, XL
    XL, XR = XR, XL
    XR ^= P[16]
    XL ^= P[17]
    return [XL, XR]

def blowfish_intlist_decrypt(Li):
    Lo = []
    for i in xrange(0, len(Li), 2):
        Lo.extend(blowfish_block_decrypt(Li[i], Li[i+1]))
    return Lo

def blowfish_intlist_encrypt(Li):
    Lo = []
    for i in xrange(0, len(Li), 2):
        Lo.extend(blowfish_block_encrypt(Li[i], Li[i+1]))
    return Lo

def hexstr_to_intlist(H):
    L = []
    Hl = len(H)
    Hm = Hl%8
    for i in xrange(0, Hl-Hm, 8):
        L.append(int(H[i:i+8],16))
    if Hm > 0:
        L.append(int(H[Hl-Hm:]+('0'*(8-Hm)),16))
    return L

def intlist_to_hexstr(L):
    H = ""
    for I in L:
        s = hex(I).replace('0x','').replace('L','')
        H += ('0'*(8-len(s)))+s
    return H

def str_to_intlist(S):
    L = []
    Sl = len(s)
    Sm = Sl%4
    if Sm > 0:
        S += chr(0)*(4-Sm)
    for i in xrange(0, len(S), 4):
        L.append((ord(S[i])<<24)+(ord(S[i+1])<<16)+(ord(S[i+2])<<8)+ord(S[i+3]))
    return L

def intlist_to_str(L):
    S = ""
    for I in L:
        S += chr(I>
>24&0xff)+chr(I>>16&0xff)+chr(I>>8&0xff)+chr(I&0xff)
    return S

def pandora_encrypt(S):
    return intlist_to_hexstr(blowfish_intlist_encrypt(str_to_intlist(S)))

def pandora_decrypt(H):
    return intlist_to_str(blowfish_intlist_decrypt(hexstr_to_intlist(H)))

Name: Anonymous 2008-02-01 5:52

Most C and C++ compilers will -- depending on the target architecture -- emit different machine code for a chain of ifs and a switch/case statement. Basically, switch/case is a big hint to the compiler that it might want to consider using branching using lookup tables rather than repeated compare and branch.

Name: Anonymous 2008-02-01 6:16

>>40
And recursion is also ``just a glorified, limited goto''. Yes, it exists, and yes, it's useful in some situations. But you should still avoid it like the plague, since recursion can always be replaced by copying and pasting code.

Name: Anonymous 2008-02-01 6:27

Branching considered harmful.

Name: Anonymous 2008-02-01 6:29

>>42
I know you're kopiping, but recursion isn't just a goto; it also requires some sort of stack.

Name: Anonymous 2008-02-01 7:49

>>44
... fail.

Name: Anonymous 2008-02-01 8:07

Assuming a non-tail call optimized language, recursion involves calling itself, which obviously uses the stack for the arguments and return address. It also implies that previous stack frames be saved as well,

Name: Anonymous 2008-02-01 8:24

>>46
','? what after the comma?
No, it does not imply a stack, are you telling me you have never seen an implementation of lisp on some machine that doesn't use a stack?
Recursion could be implemented with anything arbitrary, whether it's a RAM model, a stack datatype, 1-0 gates, other.

Name: Anonymous 2008-02-01 8:26

>>47
Yes it does. We're talking about the abstract data type here, not the implementation of on a particular architecture.

Name: Anonymous 2008-02-01 10:09

>>48
abstracte bullshite

Name: Anonymous 2008-02-01 12:45


'-._                  ___.....___
    `.__           ,-'        ,-.`-,            Python and tail-
        `''-------'          ( p )  `._       calls go together
                              `-'      (       like car and cdr.
                                        \     And I'd also like
                              .         \    to ask,
                               \---..,--'     HAVE YOU READ
   ................._           --...--,      YOUR SICP TODAY?
                     `-.._         _.-'
                          `'-----''

Name: Anonymous 2008-02-01 17:47

>>24
So... next question is how I actually authenticate... I get the syncId on sync, but no clue what I do with that?  do I use that as a new key?  What are the parameters for authenticateListener? 

Name: Anonymous 2008-02-01 19:20

>>51
The sync method just returns the server's timestamp. However, it is encrypted using a different set of boxes (I'll post them below.) The client then uses (that timestamp + seconds elapsed) in all future method calls as the first parameter.

So, the authenticateListener method takes three parameters - the timestamp, your username (email address) and your password.

Or you can use createListener for an anonymous login; this takes  only the timestamp as a parameter, and returns a set of key/value pairs describing your login.

You need the listener id and auth token for future requests - the auth token becomes your second parameter, and the lid is passed as an URL parameter.

Name: Anonymous 2008-02-01 19:22

# P and S boxes for method response, v15

P = [0x88e1ff58, 0x1ce7b555, 0x88e6610, 0xe94c67a, 0xa92659b4, 0xfb918b2f, 0xc14d99b0, 0xeb896558, 0x89094afd, 0x5a9a7f46, 0x96b4681, 0x188217e1, 0x9f5abdb5, 0x92417158, 0xc6a3d99f, 0x1d88f77f, 0xc55c3902, 0x28b1208f]

S[0] = [0x7ee0c190, 0xdc665057, 0x21ed79a5, 0xdf17ecf5, 0xceb3bcea, 0x7ffa7199, 0xf9e20030, 0xccea2c91, 0xef65acee, 0x809aa7c2, 0x22c1aa82, 0x17f1e1ec, 0xb7246c6e, 0xf30f73fd, 0xdadae455, 0x9de98f6b, 0x9d65338b, 0x7b76a75c, 0xf384dee7, 0xd3d3a767, 0x4388d000, 0xccde6385, 0x94720744, 0xc8e43ed6, 0x5dcdb68f, 0x81a60c10, 0x8e978aa7, 0xc0e9dc47, 0x4d5446, 0x9e2ce79, 0xc07185f0, 0x2c55cbae, 0xb2f8ca2d, 0x38e1554, 0x901c956d, 0xbb539b5e, 0xcc4d923c, 0x37a9f19b, 0xd7693696, 0xd7b53fe4, 0x8cb3c36a, 0x644d83d9, 0x56a49080, 0xce00e0b4, 0x346894ec, 0x1395568e, 0x879e91d2, 0x4bd1a5d4, 0x950dd88b, 0x2ca5f377, 0xe83f2e47, 0xf3aa4a01, 0x29020bd7, 0x9335e225, 0xe087a64e, 0xcdba90dc, 0x6890e710, 0x8bbf4fcb, 0x4909cee0, 0x9da5d242, 0xfada63ee, 0x19c0dca, 0x9ac6ed32, 0xe7e569a0, 0xa8a8b399, 0x7ff22665, 0x9b389faa, 0x3431e77a, 0xe1e6a0f4, 0xdd26dbfe, 0x199e7f78, 0x945dbcea, 0x9015612d, 0x7a9bcca2, 0x1e9df1be, 0x9b8be8a7, 0xe77bbc44, 0x30713ff8, 0x92fa1c9d, 0xcf5e18fb, 0xdedf794e, 0x29de6128, 0x3dbc18b7, 0xfdefda15, 0xeaa3e256, 0xfbf914a2, 0xb5e41182, 0xa31ccfc1, 0xb3c9e955, 0x8f134926, 0x8090e59c, 0xc587b3e8, 0x7a4a3e66, 0x121eadd, 0x86f1949c, 0xc40e82a8, 0x7a724031, 0xde95117e, 0x1d4dbe95, 0x828b24b7, 0x8008982f, 0xdcd54363, 0xba6ff9e4, 0xb1a607a7, 0x60345d59, 0xda322ef8, 0x3a71452c, 0xec8abdc1, 0xc472d6ee, 0x8d24f62, 0xe86d5a4, 0x6f0c6961, 0x5686fa76, 0x73763ae1, 0x4cd07ce5, 0x8ac37e6c, 0x9160b587, 0xfa2dd175, 0x7389a953, 0x984acc8d, 0xe83b39, 0xd84ce900, 0xd14450f3, 0x58c2784d, 0x76b28201, 0xf995f6dd, 0xd6b53bf, 0x7aee721f, 0x951fb278, 0x93d95094, 0x21d6fd11, 0x3dc67332, 0xed4efd1f, 0x3676fe8e, 0xb6b047b6, 0x6c81051e, 0xf290e0e, 0x4efbb1fc, 0xad65999a, 0x95b9ee7b, 0x663c0be0, 0xbe1cbc01, 0xd4a1cba0, 0xd3fbfeec, 0x86dc8766, 0x295779b9, 0x418f5cec, 0xdae0128e, 0x9d41df07, 0xc4a958d7, 0x5bb03593, 0x4b9b74c9, 0xc091b52, 0xb67768ca, 0x234bd82c, 0xdb4a0f77, 0x75dbe325, 0xcb4fe6b, 0x57cea66e, 0x2715c5b5, 0x898d8d83, 0x41bb66d6, 0x49038105, 0xb1467011, 0x9a396562, 0xe8434ab3, 0x93ae50a4, 0xea696d74, 0xa93fb23b, 0x8945f81e, 0x8a3992ea, 0xee1dec03, 0x96e6ee36, 0x448a947a, 0x7e7eace0, 0xcc801587, 0x42fe2c19, 0xe9941978, 0xb9965323, 0x21f052d7, 0x340cc2f5, 0x3c01b56f, 0x8c93acef, 0x65b19edc, 0xdf74e2c3, 0xaaf3d589, 0xc653557c, 0x398fe6c2, 0xfa9128c4, 0x44cdf991, 0xf8eeceba, 0x956282aa, 0xd1f2cba7, 0xa86db079, 0xb16184ec, 0xc97c5eb2, 0xf9ce4d57, 0xb6d64e1c, 0x773897a9, 0x5f22a15b, 0x291b038, 0xec1633ef, 0xb24b284e, 0x9e0ad0f1, 0x1e01e74d, 0xc8ecde27, 0xf5fc6315, 0xcf6c8fce, 0x632b2739, 0xf1bf1a04, 0xb6464205, 0x5a90232b, 0xf34a4610, 0xd085d0f9, 0xf3a5288f, 0x71494091, 0x58366aef, 0x2cf2fe04, 0x8abe96c5, 0x159ff21, 0x3747aba1, 0x7b971604, 0x57e8bd33, 0x9d467055, 0x6b983e61, 0x38dc9b4c, 0xca19a7fe, 0x459cefb7, 0x5afdb02, 0x26ac1612, 0xd3596db6, 0xfdc67b41, 0xcf32caed, 0xfd2de053, 0x657fd523, 0x98146a9d, 0xef5af784, 0xaa4be0a9, 0x2b99705b, 0x3dac683f, 0xb4b5106, 0x2a230c24, 0x91f4e50d, 0xdedc78d8, 0x80a37563, 0x103caa22, 0x795e3147, 0xedd05c77, 0x32a1d11b, 0x7e3da3e3, 0xfc994749, 0x4457a98b, 0xf8390ed2, 0xbe8d4892, 0xbe9d11c1, 0x37878a40]

S[1] = [0xd37c7394, 0x83cec330, 0x7c92aa74, 0x62ac3182, 0x7a6a440d, 0x59f00659, 0x5c3d020b, 0x1a8039f5, 0x5748a154, 0x4ee5fb97, 0x7c13ccba, 0x7cef6337, 0x748110eb, 0x97ddd59b, 0x31103da, 0xd354ca08, 0xe20c41b5, 0x77e8d910, 0x23f66d99, 0xf34ef257, 0xc1a130b1, 0x76f95e59, 0x15ee8dbc, 0x2b32208, 0xf9d25263, 0xd43a0983, 0x839ce370, 0x12e50b9c, 0x39ffc6b1, 0x714fc23c, 0xd645d778, 0x8d6ee6d8, 0xdfcd83f7, 0x4a7c1eb7, 0x49aedde3, 0x3bd664ec, 0x5e6b49f5, 0x71f57bbe, 0xf7456cda, 0xf5666f28, 0x1bb520f1, 0x36a84b4, 0xf0707cc8, 0xc658944a, 0x1396a9cc, 0x93729122, 0x271dedd9, 0xc6844342, 0x571534fb, 0xf74d36a3, 0x173b476d, 0x9fec3d7, 0x1bbc4ae4, 0xc8a9b59f, 0x532224fa, 0xb6a65578, 0x2306c5fc, 0x3d3c21a0, 0x421eb6e9, 0x709057d2, 0x98589bd6, 0x4c053501, 0xebd90aba, 0x7a0c919c, 0xb6e7749c, 0x7ea16cd9, 0x70a7e677, 0x4b2d9ad, 0x1fb3b875, 0x338ed938, 0xecfea14b, 0x20cbf534, 0xd93f39bd, 0x39707929, 0xa2f4b22f, 0xa975294c, 0xc1276b08, 0x13a71759, 0x8d22a575, 0x1f0a0770, 0xf6def164, 0x36b917e2, 0xb8ecb579, 0xa1f276cf, 0x23ccdfb5, 0x95d18f19, 0x90fb3bbe, 0x48e428e3, 0x861e59cf, 0x742700af, 0xc4e6aad6, 0xf1203226, 0xdecb2a5b, 0x6c642c23, 0x3c2b6dc7, 0xd9555682, 0xc22b5303, 0x4465336e, 0xf4d1b9ae, 0xaab521bf, 0x14350c7f, 0x533b4db5, 0x74747df, 0x6a6ffc55, 0x684e6eef, 0x21fafb8, 0xdade9ef, 0x66ddb850, 0xe4268fe1, 0x8ace07ab, 0x6358e4fc, 0x833bd173, 0x7e232cf9, 0xa0b1d48c, 0xa3f6496c, 0x9270a61d, 0x82f2a230, 0xec7ed778, 0xc51146db, 0x4c13e68f, 0x8912cb96, 0x92f98979, 0xfef17c1, 0xffff77ab, 0x2275ed18, 0x7c6dedd9, 0x328f7a26, 0x6102498d, 0x15d49153, 0xf66d9703, 0x990d294f, 0x428987f1, 0x5eee6cd6, 0x43a9ff6f, 0xf3160ef0, 0x34a931b4, 0x72b00ec8, 0x2910ff48, 0x3137ad25, 0xe0d1854e, 0xacded1a, 0xb2ed9f96, 0xbca16090, 0xd2a64e20, 0x2e2afab2, 0x469ffefc, 0x4b9351cc, 0x1a154749, 0xdf15108e, 0x7a33c77d, 0x6035a1ba, 0x9b8655a, 0x688b72e6, 0x71e22c7, 0x632e5e83, 0x4cf66b7e, 0x516cf856, 0x4c6065b7, 0x1fda80aa, 0x90729c4b, 0x2daf7332, 0x3dc1bfa9, 0xe76ad571, 0xf2c4cc71, 0x7e6a130c, 0x99b0ee11, 0xd24d1d03, 0xb3f8c81f, 0x956f48f2, 0xa42b89c9, 0x4d9f7beb, 0xceea78e9, 0xcf811679, 0x42384f79, 0xd58220ff, 0xeaba4233, 0x6d67f687, 0x6ce779c, 0x2e866320, 0x5e80fac7, 0xa17dd1e6, 0x4729e8, 0x76389889, 0x67d28a43, 0xd4e48f9e, 0xf7ebb00e, 0x88fcdd72, 0xcd4f955f, 0x6224fc05, 0xf76033f2, 0xae2d8154, 0x5edd6db0, 0x9515f7ee, 0x89864192, 0x9438c1be, 0xf69e8c51, 0xc2919c59, 0x24d30bd9, 0x234d9f21, 0xb049745f, 0x6688f019, 0x4c7305fa, 0xed262277, 0xbf51c570, 0xd1b2f779, 0x57b9073b, 0xdc81e4da, 0xb376d7c6, 0x440c3ec4, 0xba45520d, 0x65ce709d, 0x579bafc, 0xb7945132, 0x4fabd6b8, 0x22ea9c1b, 0x400f137d, 0xc7dd6e7f, 0xb1e8c963, 0xd2f46ca7, 0x814711e8, 0xe216a980, 0xae1925d4, 0x39757828, 0x333b2095, 0x4ca4b7ce, 0x60ee4807, 0x475732d0, 0xc186af70, 0x7c56965d, 0x6c56c8ce, 0x7251bbcc, 0x727ced7e, 0xf4797ce, 0x2e897dd6, 0xcbba5d2, 0xd571294a, 0x6a54c859, 0xd5e4c39d, 0xef34b87b, 0x58647032, 0x47820ff, 0x21522e78, 0x93355ef3, 0xabaddf05, 0x418d1736, 0x3a80c715, 0xede25907, 0x2d361fa5, 0x9739a125, 0x78af5aef, 0x478d9d81, 0x71cae5bc, 0x4da61f60, 0x4a85774b, 0x62e39c58, 0x4cc1edcc]

Name: Anonymous 2008-02-01 19:23

# P and S boxes for method response, v15 (..ctd..)

S[2] = [0xd3d95780, 0x304df7b4, 0x97720f1, 0x7d3501b, 0x9a94dbec, 0x3b10447d, 0x53f63b1, 0xc02a3669, 0xc58f5b70, 0x3a4cb8cd, 0x9d2a647, 0x42ee5dc7, 0xeb5cbde2, 0x34bfb5be, 0x38e08f9f, 0x737bc521, 0xbd647dc0, 0xd13d4823, 0x985aeac3, 0x7ce18c79, 0x7be5c00b, 0x85eed512, 0xc267c7bb, 0xba58f6b9, 0x8091245c, 0xbc945b6a, 0xab1f0ab9, 0x2f4daf05, 0x64a349f3, 0x1e8c2ea3, 0x7b517a67, 0x3fbf9331, 0x7f8e7446, 0xd873937a, 0xf5881626, 0xea9fd9af, 0x75379be3, 0xc2eee5ff, 0x4cb952ca, 0x94f5d238, 0x4e3e9c14, 0x30fafd36, 0xaac38db8, 0x788906b6, 0x50467458, 0xebf4a9eb, 0xacc15636, 0x88a19747, 0x1a444317, 0x5749a028, 0x88cc0f4b, 0x86466508, 0x1d4056cf, 0x11fa26d1, 0x43e683aa, 0xa7e75447, 0x5d37dfd8, 0x233e664, 0xcee5ebf6, 0xf48f0aa0, 0xa350b974, 0x438d563b, 0x31231095, 0x12c84980, 0xd594996f, 0x5f43b929, 0x97ece139, 0x24e354a2, 0xf037d7e5, 0x372fbb6d, 0xf5deb0c2, 0x56a1cc9b, 0xdba3a62b, 0xf8999775, 0xf51c9bc0, 0xe8551cfe, 0xd17fd45b, 0xbb9084f1, 0x294fd01d, 0x6baf17f9, 0x62ebf7bb, 0x8ae1685f, 0xff81a190, 0xf879bea1, 0xdea50efe, 0x49acda4d, 0x4a3b2c06, 0x8bdc31dc, 0x24522f01, 0xf1d509b, 0xdef2c99b, 0xbf1884c8, 0x69189b6c, 0x44d494bc, 0x6177ee4b, 0x6585e64, 0x49c884fb, 0xec132d3b, 0x4b0c9c29, 0x4f04936a, 0x174055f5, 0x78120821, 0x4e1f132c, 0xa57e482b, 0x91c373dd, 0x50c0e21a, 0x4596e2d2, 0x90d59a08, 0xe14ced85, 0x70d6d4fe, 0x8ae3332b, 0x471e2381, 0x59f26072, 0xbbf0e131, 0x53bd38a9, 0xf8f74654, 0xaf703fe3, 0xbb9f1dbe, 0xc79f5d26, 0x38429a47, 0x9054053c, 0x339cb94c, 0xe8ebbe52, 0x5d9deb12, 0x57d6a0fc, 0x3cff2b73, 0x2b429335, 0xcc2b6c2a, 0x9b64878b, 0x8609fdd0, 0x2c1ae184, 0x72c73f10, 0xbf94c62e, 0x6dbbe9c3, 0xf6dd058d, 0xfaf092ce, 0xbbe66537, 0xda92b927, 0xff2c0b6d, 0xd8a56be3, 0x385fe7f5, 0x98b434e1, 0x490c552e, 0xc519389a, 0xcb3a33f1, 0x5f3fac14, 0xe45b476e, 0x6750dd73, 0x378f0392, 0xb7bd1f8b, 0x54ca6888, 0xa4e34198, 0x30da40d5, 0xc4004385, 0x4958a425, 0x28930a3b, 0x3a476494, 0xa233cd72, 0x1a43bed1, 0xbf2ec0aa, 0x435e6f00, 0x9a3c522c, 0x98c54fc1, 0x289d824e, 0xf54c164a, 0x422bf0ee, 0xbc49b12f, 0x265c449f, 0x6919396, 0xa9145050, 0x58b2e339, 0xf299a2b3, 0xb2523c1c, 0xf58b4712, 0x38816085, 0xb951fb44, 0x3585c0f5, 0xa1cdead, 0x2bbd1cd4, 0x7624114a, 0x47d2e912, 0x165c9c04, 0xa7879408, 0x85e9544b, 0xa77565a4, 0x3ed34509, 0xc772aaef, 0xeb0e17d3, 0xa2a0b790, 0x3258f1f8, 0xa8298d03, 0x361eb680, 0xa1d5e6f9, 0xe28bf9a8, 0x6684001e, 0x80759238, 0xa17f96c1, 0x738d155d, 0x7e052cd0, 0x1bc7edc6, 0x8fa3e733, 0x78bb8f5d, 0x50228bf6, 0xd7a153cd, 0x30c147eb, 0x74882ac4, 0xa99b432e, 0xdf3bedd2, 0x9ce4fef3, 0x4af771a2, 0x79a2f8d2, 0xa16df1f4, 0x206bf9af, 0x58b87ac4, 0x116d44c5, 0x1d529950, 0x7aa6dba0, 0xcaa942f6, 0x714a9f37, 0xd74db0b0, 0x766f4740, 0xd4a3af5e, 0x345cca3b, 0x5f9beafb, 0x462040c1, 0x87dbc680, 0x6834b2b5, 0x1219731a, 0xa5d35112, 0x1e2ae6b3, 0x604141d3, 0xa6f4ad73, 0x47a6fc27, 0x511f0f6c, 0xe2a26ed9, 0x3469774b, 0xab23f073, 0x8bf8edf2, 0xc0bff738, 0xc55c4f77, 0x6d906844, 0x2076e478, 0x758c5a86, 0xe0730fed, 0xce82b2d5, 0xa8f864a2, 0xefc59775, 0xddacc27d, 0xb5e4ab2a, 0x62da2117, 0xcae7fdb3, 0x987dd6cb, 0x17f045a4, 0xf7d78f8a, 0xbe40ee03, 0xe87f2b0f]

S[3] = [0xad44ff0d, 0xc15c210e, 0xe5006a9c, 0xf900e985, 0xba7d6647, 0x17339926, 0x5576752d, 0xc116946c, 0xa72c0df0, 0x41492492, 0xfe2fe6ad, 0x1dd57369, 0x13141bc3, 0xcd8c6c6e, 0x5395537, 0x498b1813, 0xe27429da, 0x32a2f8a6, 0xd9d98c74, 0x668e7b91, 0x47c7fb70, 0xd412f512, 0x6e6e28f4, 0xb24ba275, 0x2a7ce14a, 0x1e89cd98, 0x83b319ab, 0x8de70898, 0x7adcead7, 0x46c68710, 0xf7a6ea45, 0xf1e0040f, 0x8c0a0ec2, 0x97b40bda, 0x69d7c066, 0x9a75ca19, 0x84e3c558, 0xf1dc8ceb, 0x215cfc5, 0x784d8e73, 0xb5e9c22f, 0x7d232c89, 0x74842c8, 0xd777e873, 0x3c4426ab, 0xa1609639, 0xa1915b9d, 0x5a8e7f32, 0x11b47080, 0x14dfa5ae, 0x1e75ecad, 0x420b0b05, 0xb8ded0aa, 0xec9bf32e, 0x3b6d500e, 0x6458e0d4, 0x575d7705, 0x15609525, 0xfbb2e66d, 0x10074f41, 0x26e8a2d2, 0xd120d7a7, 0x18b628e3, 0xc57c4aa1, 0x9b4c3499, 0x4cfdf313, 0x7fae8409, 0xa2f0f5e6, 0xc2d6ad07, 0x637b8820, 0xb67d51b9, 0xacb53137, 0xc361f802, 0xd015e82, 0x20e5050e, 0x9e095d35, 0x4dbebf6b, 0x63aa5696, 0x4a918ea3, 0x36c5456, 0x5fe4656e, 0x47048da6, 0x35ea26d9, 0x2673cdaa, 0xb89ac3ca, 0xae4c0632, 0x247a1ff9, 0x88b3bde4, 0x794081c8, 0x3acfb852, 0x2c35c8d0, 0xde1fc725, 0x53a46d2e, 0x24c2853a, 0xc44657a1, 0x674fcb0e, 0xeb14117a, 0x353382b9, 0x5f8a9f33, 0x7a7d6b5d, 0x42d3c390, 0x5ca83f4a, 0x755fc604, 0x60fa14dd, 0xf37ec6d, 0x274bf918, 0x18a84159, 0xc80269ac, 0x32dddfd3, 0x72ac2f05, 0x71f03689, 0x107317ca, 0xf505acc9, 0xe1a7207f, 0x701a92a0, 0x6d5921c8, 0xbdde32df, 0xf51eadca, 0x71d7b6d6, 0x35c0fd0d, 0x657b5539, 0x37796a79, 0x207060cf, 0x724a2652, 0xd52b9c4b, 0x89e6b875, 0xbf5354ec, 0x404c0020, 0x892226b2, 0x1d19478a, 0x3241786a, 0x705ec84f, 0x9e90fb06, 0x9498cc5e, 0xe797c92c, 0xd65c4db3, 0xf3dc0e84, 0x1152fa0, 0xa9fbbab7, 0x7b33d4d4, 0xe144c4a7, 0x61af6b12, 0x47b4e21c, 0xbf2d99f1, 0xe4d356fc, 0x3b268633, 0x606f0e85, 0xc2fbd483, 0x7653514d, 0x5ebf2bee, 0x388c59b, 0x83376c93, 0x6b75db71, 0x5ae0da51, 0x6081fa07, 0xfef41dc7, 0x6154c9e1, 0x369f786e, 0x76815368, 0x40d33860, 0x13953873, 0x29b29043, 0x2cd69bc7, 0x9a94fd98, 0x7a7284d5, 0xd61c5d4, 0x73779d49, 0xf9044b57, 0xdb042d6e, 0x83411ff6, 0x631e2aba, 0x19bfa503, 0xc27f3e42, 0x5a30cb31, 0xd688d8db, 0x636907df, 0xf9fe43c5, 0xad07f822, 0x5b08719e, 0x8a779280, 0xdbc15828, 0x6decd7b9, 0xe0187c7, 0xd6b0119a, 0xd60b22c2, 0x4a444764, 0x762eebfb, 0xbfc730cd, 0x8b614f18, 0x4692e84a, 0x28e8700c, 0xa8de8be8, 0xd97dcc14, 0xc7d45234, 0x93674996, 0xab7d5fe8, 0xf5693f39, 0x6450c54, 0xdb841002, 0x3708ecb6, 0x33329e06, 0xa9cd93d6, 0x44f8b6f2, 0x9ad7ad6c, 0xdcd139bd, 0x6495a638, 0x9b0feb99, 0xdd61e62b, 0x2f0092c8, 0xe2aeeb18, 0x88791df4, 0x378294ad, 0x93b9d5e0, 0x382696f7, 0x7b84c6c0, 0x5b0c6be6, 0x61b19885, 0xf2e57ebf, 0x963a70e0, 0xa8d322a3, 0x97539bd2, 0x1f351d4f, 0x5f5a564, 0x49d160bd, 0x21c2e2f3, 0x4f0b829b, 0xcd76a6ba, 0xfe469113, 0xa9c0d654, 0xdc256fd4, 0x692dae32, 0xf38e6df9, 0xd442185f, 0x6855f1fb, 0xbe780bf8, 0x3959e379, 0xdd8b266, 0xf1a83144, 0x93aa5a92, 0xd52bfc17, 0xb1917c46, 0xa4e9e95d, 0xb97d5cc7, 0xcc08aa59, 0x15552930, 0x4eb3e543, 0xa2232733, 0x55197de5, 0x5f3e9bb, 0x6aee9067, 0x4f685baa, 0x26fa2b36, 0xcacb175e, 0x3c3baade, 0xccf73a4c, 0xbfffb8d7]

Name: Anonymous 2008-02-02 4:00

>>52
You're amazing!  Now, do you know how to go from the fragment's given "audioURL" to the real one?  I'm sooo close to listening to pandora from my ipod touch I can...um... almost ... hear it...

Name: Anonymous 2008-02-02 9:25

>>55
Note that the last 48 characters of audioURL are composed entirely of hexadecimal characters. You might want to translate it to something more consistent with the rest of the URL.

Name: Anonymous 2008-02-02 13:04

Yeah, I had noticed that (and assumed I could decrypt it as well, which indeed appeared to be base64) but apparently, I was comparing the wrong two url's, because that seems to be it... but I saw other differences before...

So it works!  Thanks!

Although, I don't know where some of these parameters are actually coming from (the  rid for example... I can just make that up and it works... so far?) and getFragments has 2 other parameters that I have no clue where they came from... but it works without them?

Name: Anonymous 2008-02-02 13:52

>>54
Magic numbers considered harmful.

Name: Anonymous 2008-02-02 14:40

>>57
Nice work!

The rid (route id) can be anything, but the flash file generates it from the last seven digits of ActionScript's getTime(). I'm not sure about the parameters of getFragments either - apart from the station id, the others appear to be the amount of time the station has been playing (in ms), the amount of time since it was last played (?), the station seed (?) and some sort of tracking code.

Name: Anonymous 2008-02-02 17:18

>>40
Doesn't recursion require more overhead than iteration, typically?

Name: Anonymous 2008-02-02 17:26

>>60
Read SICP.

Name: Anonymous 2008-02-02 18:43

>>60
Only in non-tail call optimized langauges.

Name: Anonymous 2008-02-02 21:54

>>60
Yes

Name: Anonymous 2008-02-02 22:23

>>62
So, recursion requires more overhead than iteration except in cases where it's treated exactly like iteration. The word you were looking for was just "yes".

Name: Anonymous 2008-02-03 0:37


'-._                  ___.....___
    `.__           ,-'        ,-.`-,
        `''-------'          ( p )  `.
                              `-'      ;   Picture me eating
                                        \  my own tail.
                              .         \
                               \---..,--'     HAVE YOU READ
   ................._           --...--,      YOUR SICP TODAY?
                     `-.._         _.-'
                          `'-----''

Name: Anonymous 2008-02-03 3:22

>>64
Why are you being such a jerk?

Name: Anonymous 2008-02-03 6:59

Name: Anonymous 2008-02-03 7:11

>>67
Learn to read, nigger. Tail recursion is.

Name: Anonymous 2008-02-03 7:16

>>68
And what do you suggest that tail recursion is, other than recursion?

Name: Anonymous 2008-02-03 8:13

http://FAGGIT.com/r/programming/info/67i9x/comments/

STOP POSTING FUCKING 4CHAN TO FUCKING REDDIT YOU FAGGOT MOTHERFUCKER NYPA SON OF A BITCH MOTHERFUCKER CUNT PIECE OF SHIT ASS WHORE

MOTHERFUCK

SERIOUSLY WHAT THE FUCK IS THAT FUCKING FAGGOT

FUCKING REDDIT PIECE OF SHIT MOTHERFUCKERS GOD DAMN FUCKING REDDIT ILL GATHER A SHITLOAD OF FUCKING BOTS AND DDOS THAT FUCKING GAYASS HOMOPHILIC WEBSHIT

MOTHERFUCKING CUNT ASS BITCH SLAP TIT FAG

Name: Anonymous 2008-02-03 8:17


GODAMN FUCKING ASSCUNT DOUBLE NIGGER MOTHERFUCKING PIECE OF FUKCING SHIT IMBECILE MOTHERFUCKER.

FUCKING GOD DAMMIT GOD FUCK FUCK SHIT CRAP ASS MOTHERFUCKER
FUCKING HOMO FAGGOT NIGGER CHINK MOTHERFUCKER OKRA DICK PIECEOF SHIT FAGGOT MOTHERFUCKER GOD DAMMIT CUNTSLAP PUSSY ASS NIGGER FAGGOT ASS MOTHERFUCKER

Name: Anonymous 2008-02-03 8:18

CUNTSLAP BITCHMOTHERFUCKER GODFUCKINGDAMMIT
I HOPE I WAS UCKING CLEACR OIFUCJATEOAMETO FUCK YOU MOTHERUFGGCKER

Name: Anonymous 2008-02-03 8:21

MOTHERFUCK IM PISSED TO NO FUCKING END
SON OF A BTICH FAGGOT GODAMN FUCKING COCKSUCKER MOTHERGFUCKER

Name: Anonymous 2008-02-03 8:31

>>70-73
Shut it, idiot.

>>69
I think his point is that it can be optimised to iteration (i.e. just looping, rather than using a call stack)

Name: Anonymous 2008-02-03 8:41

>>70-73
This is why I submit /prog/ to Reddit.

Please add points to it so stupid Redditers can come here and ruin this thread.

Name: Anonymous 2008-02-03 8:43

>>75
please post the reddit link.

Name: Anonymous 2008-02-03 8:52

Name: Anonymous 2008-02-03 9:17

>>77
Just why would you do a thing like this?

Name: Anonymous 2008-02-03 9:42

[b][i][u]

    STOP POSTING FUCKING 4CHAN TO FUCKING REDDIT YOU FAGGOT MOTHERFUCKER NYPA SON OF A BITCH MOTHERFUCKER CUNT PIECE OF SHIT ASS WHORE

    MOTHERFUCK

    SERIOUSLY WHAT THE FUCK IS THAT FUCKING FAGGOT

    FUCKING REDDIT PIECE OF SHIT MOTHERFUCKERS GOD DAMN FUCKING REDDIT ILL GATHER A SHITLOAD OF FUCKING BOTS AND DDOS THAT FUCKING GAYASS HOMOPHILIC WEBSHIT

    MOTHERFUCKING CUNT ASS BITCH SLAP TIT FAG

71 Name: Anonymous : 2008-02-03 08:17


    GODAMN FUCKING ASSCUNT DOUBLE NIGGER MOTHERFUCKING PIECE OF FUKCING SHIT IMBECILE MOTHERFUCKER.

    FUCKING GOD DAMMIT GOD FUCK FUCK SHIT CRAP ASS MOTHERFUCKER
    FUCKING HOMO FAGGOT NIGGER CHINK MOTHERFUCKER OKRA DICK PIECEOF SHIT FAGGOT MOTHERFUCKER GOD DAMMIT CUNTSLAP PUSSY ASS NIGGER FAGGOT ASS MOTHERFUCKER

72 Name: Anonymous : 2008-02-03 08:18

    CUNTSLAP BITCHMOTHERFUCKER GODFUCKINGDAMMIT
    I HOPE I WAS UCKING CLEACR OIFUCJATEOAMETO FUCK YOU MOTHERUFGGCKER

73 Name: Anonymous : 2008-02-03 08:21

    MOTHERFUCK IM PISSED TO NO FUCKING END
    SON OF A BTICH FAGGOT GODAMN FUCKING COCKSUCKER MOTHERGFUCKER
[/b][/i][/u]

Name: Anonymous 2008-02-03 9:42

[b][i][u]

    STOP POSTING FUCKING 4CHAN TO FUCKING REDDIT YOU FAGGOT MOTHERFUCKER NYPA SON OF A BITCH MOTHERFUCKER CUNT PIECE OF SHIT ASS WHORE

    MOTHERFUCK

    SERIOUSLY WHAT THE FUCK IS THAT FUCKING FAGGOT

    FUCKING REDDIT PIECE OF SHIT MOTHERFUCKERS GOD DAMN FUCKING REDDIT ILL GATHER A SHITLOAD OF FUCKING BOTS AND DDOS THAT FUCKING GAYASS HOMOPHILIC WEBSHIT

    MOTHERFUCKING CUNT ASS BITCH SLAP TIT FAG

71 Name: Anonymous : 2008-02-03 08:17


    GODAMN FUCKING ASSCUNT DOUBLE NIGGER MOTHERFUCKING PIECE OF FUKCING SHIT IMBECILE MOTHERFUCKER.

    FUCKING GOD DAMMIT GOD FUCK FUCK SHIT CRAP ASS MOTHERFUCKER
    FUCKING HOMO FAGGOT NIGGER CHINK MOTHERFUCKER OKRA DICK PIECEOF SHIT FAGGOT MOTHERFUCKER GOD DAMMIT CUNTSLAP PUSSY ASS NIGGER FAGGOT ASS MOTHERFUCKER

72 Name: Anonymous : 2008-02-03 08:18

    CUNTSLAP BITCHMOTHERFUCKER GODFUCKINGDAMMIT
    I HOPE I WAS UCKING CLEACR OIFUCJATEOAMETO FUCK YOU MOTHERUFGGCKER

73 Name: Anonymous : 2008-02-03 08:21

    MOTHERFUCK IM PISSED TO NO FUCKING END
    SON OF A BTICH FAGGOT GODAMN FUCKING COCKSUCKER MOTHERGFUCKER
[/b][/i][/u]

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List