@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16



Comments:

<0> ord("BQ==".decode('base64')) #==> 5
<1> GIY should be 25112 and BQ should be 80
<1> I am back in a minute....
<2> synic, does mutagen support usual .ape files? or just .mpc?
<0> >>> pool='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
<0> >>> pool.index('B')*64 + pool.index('Q') #===> 80 pool.index('G')*64**2 + pool.index('I')*64 + pool.index('Y') #==> 25112
<0> And the RFC is 1521, not 1421.
<3> yay my tic tac toe AI works !
<1> Pythy, unbelievable! I'll try it ASAP. I copy pasted from the dictd man page. It says 1421. Sorry for that.
<4> how does it work, helldragon?
<3> random number generator but i'm trying to figure out how to apply MinMax algo
<5> Hi. What is the python equilevant of java's .toString()?
<6> HellDragon: A full-path solver isn't exactly hard for tic-tac-toe ...
<3> maybe
<3> there's 387420489 possible gamers
<7> hmmmmmm



<3> gamers*
<7> gamers
<3> games*
<0> DaHood: And if you care about speed, you can avoid the sequential-search done by .index.
<3> i keep hitting r
<8> hi all.
<6> HellDragon: Um, most of those are identical
<3> :|
<7> alright
<8> TypeError: createWidgets() takes no arguments (1 given)
<3> it's the first time i make an algo
<8> http://deadbeefbabe.org/paste/835
<7> oi
<6> HellDragon: There are only 19k board configurations, and most are invalid
<3> hmmmm
<1> Pythy, what does sequential-search mean? You mean when using the index to get the offset and length for a specific word or phrase?
<1> I write a script that can read dict formatted dictionaries. Although I do it for learning, I care about speed, so I would appreciate it if you were more descriptive...
<1> this was for Pythy
<0> Use a look-up based approach.
<3> at least my 2 players version of tic tac toe is done
<9> is there a 4 player version?
<9> id like to see that
<3> or a mmorpg tic tac toe
<4> hm, 3D-Tic-tac-toe with 3 players :)
<3> yeah
<4> and maybe even different types of tokens to place, like "wartokens"
<10> what's the most raw way of doing IPC with Python (on Linux)
<11> yuriks, using the pipe() system call? :P
<1> Pythy, hmm I think I got it wrong. You mean the .index list method. I thought you meant how I should search the index file. How would the look-up based approach be? (insead of pool.index(X) )
<10> wiht python of course =P
<10> (I'm trying to do some Networking protocols for fun and giggles)
<11> yuriks, os.pipe
<10> hmmm, hum
<11> http://docs.python.org/lib/os-fd-ops.html
<11> when looking for system calls refer to os module
<1> Pythy, by using a python dictionary instead of a list for the "pool" maybe?
<0> DaHood: The might be one possibility.
<0> DaHood: >That< might be one possibility.
<10> inono: I ***ume that only work's when using fork(), right?
<1> Pythy, Is there any other way, faster maybe?
<0> Yes. But no need here.
<1> I cannot think of any and my knowledge does not help much
<11> yuriks, well.. usually you want to use os.popen2 or os.popen3 anyways
<1> Pythy, ok then. Thanks a lot for this. :)
<10> "Eagles soar, but weasels dont get ****ed into jet engines."
<10> haha
<12> can py2exe bundle arbitrary files easily?
<12> I have some data files and also wx will be using an icon
<13> WHen is __new__ (or how) is it called ?
<11> yuriks, import this? heh
<14> couple of tk questions
<14> is there a way to set the canvas coordinate system to the center of itself?
<15> no patrick
<15> the dependencies they rely on are pretty big
<15> ~3.0mb's for a 'print "hello world!"' type app, about 1.7mb's when upx'd
<12> ah
<12> no, what I mean is I do an open() on ./data.txt
<12> and I want to bundle it all into one standalone app
<12> admittedly it'll also rely on wx.dll
<15> don't think you can
<12> or whatever wx is called



<15> try it though
<12> maybe a different type of packer on top
<12> by default it's all in one folder though
<12> it's annoying because it's a really weeny titchy small application
<12> but also has to be x-platform
<16> is there any way to tell to "print" how show an object?
<0> ?%formatting jorgeu
<17> jorgeu: also you might want to write __str__ and __repr__ methods
<18> hi all
<16> ironfroggy: those!!!! thx
<18> I need to create a python app the reads the output from rsync as it's updating files
<18> but I can't get it to work
<18> I've been using popen with a readline on the stdout pipe, tied to a gobject timer
<18> I get one of the first lines but no others
<18> can anypone shed an light?
<19> if not str() (not unicode compliant), then what should i use? unicode()?
<19> i'm going to go with the second answer then
<20> p00q: what?
<19> never mind. sorry. just trying to make sure that all my code is unicode-8 capable, so it looks like i just need to u' everything and unicode() my strings when necessary
<19> deltab: is that all i need?
<20> there's a flag you can use when starting python
<20> I think
<19> (checking)
<19> no don't see one. (python 2.4 man page)
<20> hmm, apparently not
<19> http://www.reportlab.com/i18n/python_unicode_tutorial.html looks good
<21> hi
<21> which mp3/ogg-reading library would you recommend ?
<21> (I need to get the song size, be able to play/pause/stop, and to set the volume)
<21> I tried pygame, but couldn't find out how to get the song length. And also, the sound becomes very noisy as soon as I started moving a window.
<22> whats the regex for an email address
<22> it can match other things i just want X@y.z to match also
<23> Time for part 85 of "I probably missed this, too": is there, like, a standard-oid function for making a dictionary from a list of keys and a list of values?
<24> Vornicus, dict(zip(keys, values))
<23> ...oh, duh
<25> Vornicus: yup, you missed it, too :-)
<19> ned... the only required thing for an email address is that is has an @ in it. so just 'email@domain'.find('@')>1 would be a good test.
<24> ned, basically you shouldn't, here's one in perl to show why you shouldn't :) http://ex-parrot.com/~pdw/Mail-RFC822-Address.html
<26> What could an IntegrityError for psychopg (postgres database) mean?
<23> thank you.
<25> dts: stuff.
<19> benji: lovin that ;-)
<26> kbrooks: :-P
<27> i love i o
<27> import io
<27> stdio
<24> ned, the RFC allows so many variations of email addresses you shouldn't even try (and note that some don't even have @ signs in them)
<25> huh, flamoot
<19> benji: didn't know that
<22> benji i realize this but i just want to match the standard form and that's it
<24> ned, do that and you'll seriously annoy some subset of your users
<25> flamoot: there's no io module in the stdlib
<22> benji, how so?
<22> i think all of my users just have username@gmail.com for the most part, nothing too fancy
<25> flamoot: this one? http://www.nmr.mgh.harvard.edu/Neural_Systems_Group/gary/python/io.py
<21> no idea for the mp3/ogg-reading library ?
<27> kbrooks, yes
<24> ned, because you'll reject someone's perfectly good address
<26> kbrooks: was that just a joke or do you know what it could mean
<25> dts: i don't know what it could mean, but i had this intution that maybe your database is damaged
<19> ned: there's the correct way and there's the expedient way. the latter is for php programmers. ;-)
<19> if you need to verify an email address, than accept anything and then send them an email with a secret key that they can activate through their website or by replying to the email.
<25> if the key is secret, then it must expire
<25> no questions asked
<19> right
<28> there's a few regexs out there that do a pretty damn good job of verifying an email address if that helps
<12> they're enourmous though
<3> is there a way to clean console text before the script ?
<1> which function gives the square root of a number? I mean the sqrt
<29> hello
<12> HellDragon: exec "sqrt"
<12> haha, mixed up


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #python
or
Go to some related logs:

Multiple primary key defined innodb
#css
ethtool smoothwall
#css
how to install cedega_timedemo_installer
#kernel
#perl
run sid you
perlcc unable to autoload
import read failed (0) (-1) fc5



Home  |  disclaimer  |  contact  |  submit quotes