Re: Community (A Modest Proposal)

2010-06-13 Thread Someone Something
Here's the thing. Python has one of the nicest communities of most software projects (except maybe ubuntu), try Perl or C. Unless you completely know what you're talking about, have spent atleast 1/2 an hour researching your problem, those guys will refrain from helping. On Sun, Jun 13, 2010 at 1:

Re: parse xml with invalid chars

2010-06-04 Thread Someone Something
What d'ya mean hang? On Fri, Jun 4, 2010 at 10:16 AM, Roman Makurin wrote: > Hi all > > Last time i have a big problem, i need parse xml files > which have invalid xml chars outside of CDATA and xml > parser hangs everytime on such files. Is there any way > to parse such files ??? > > thanks > >

Python vs. Fedora and CentOS

2010-05-29 Thread Someone Something
Redhat as always believed in (sorry if this offends anyone): "Use legacy stuff that works, we don't really give a flying hoot if the rest of the world has moved on" On Sat, May 29, 2010 at 6:55 PM, D'Arcy J.M. Cain wrote: > On Sat, 29 May 2010 11:43:29 -0700 > John Nagle wrote: > >The maj

Re: My first project

2010-04-17 Thread Someone Something
no one cares? :( On Sat, Apr 17, 2010 at 8:41 AM, Someone Something wrote: > This is my first large-scale (sort of) project in python. It is still under > daily development, but the core is pretty stable (although, I'm still adding > features). Here's the code: http://

Re: An open source AI research project

2010-04-17 Thread Someone Something
I would like to know more please. Does it have a website? On Sat, Apr 17, 2010 at 4:03 AM, David Zhang wrote: > Hello! > > I have started an open source project to develop human-level > Artificial Intelligence, using Python and Java as programming > language, OpenCog and OpenWonderland as basemen

Re: cross-platform coloured text in terminal

2010-04-17 Thread Someone Something
That sounds like a nice idea, try it out and see what you make of it. (It may have been done before but probably not as a standalone module as it doesn't require that much code) On Sat, Apr 17, 2010 at 6:52 AM, Jonathan Hartley wrote: > On Apr 16, 5:59 pm, Lie Ryan wrote: > > On 04/16/10 19:28,

My first project

2010-04-17 Thread Someone Something
This is my first large-scale (sort of) project in python. It is still under daily development, but the core is pretty stable (although, I'm still adding features). Here's the code: http://github.com/Poincare/PyEventLoop or http://code.google.com/p/pyeventloop/ Tell me what you guys think of it (I'l

Re: CGI templating with python

2010-04-01 Thread Someone Something
Cheetah would work, but it would be a major pain to debug (I hate those 500 Server Error pages) something django (as mentioned above) or turbogears (with Kid) would get you rolling quickly. On Wed, Mar 31, 2010 at 8:38 PM, KB wrote: > Hi there, > > Years ago I wrote a LAMP app using python. I fi

CPAN for python?

2010-03-30 Thread Someone Something
Hi, I've learned python a few months ago but I still use Perl because of CPAN and the tremendous amount of stuff that's already been done for you. is there something like CPAN for python? -- http://mail.python.org/mailman/listinfo/python-list

Re: How to automate accessor definition?

2010-03-20 Thread Someone Something
Just initialize everything in the constructor, unless you have *really *good reason not to do that. On Sat, Mar 20, 2010 at 6:54 PM, Chris Rebert wrote: > On Sat, Mar 20, 2010 at 3:15 PM, kj wrote: > > I need to create a class solely for the purpose of encapsulating > > a large number of dispara

Re: Best Way to extract Numbers from String

2010-03-20 Thread Someone Something
Its an extremely bad idea to use regex for HTML. You want to change one tiny little thing and you have to write the regex all over again. if its a throwaway script, then go ahead. 2010/3/20 Luis M. González > On Mar 20, 12:04 am, Jimbo wrote: > > Hello > > > > I am trying to grab some numbers fr

cpan for python?

2010-02-28 Thread Someone Something
Is there something like cpan for python? I like python's syntax, but I use perl because of cpan and the tremendous modules that it has. -- http://mail.python.org/mailman/listinfo/python-list

Just drawing lines and plotting points?

2010-01-26 Thread Someone Something
Hello, I need a python library that makes drawing lines and plotting points (these two things are the only things I need to do) easy. Or, how can I do something like this with pygame? Basically, what I want to do is make graphs. In pygame, since the coordinate system switches the x's and the y's I

Open source projects

2009-12-11 Thread Someone Something
I'm a pretty okay python programmer and I really want to start developing for an open source project. I'm looking for one that preferably deals with networking and isn't as huge as twisted (that's just a preference, not extremely important). Could anyone suggest any projects? I also know C, Perl, R

Re: editor with autocompletion

2009-12-05 Thread Someone Something
If you're actually going to release this, you shouldn't bundle it with a preexisting text editor (IMHO) in case it goes out of development and then you'll end up like DSL (damn small linux) did. In other words either you get a text editor that's basically never going out of development (emacs, not

Re: Python Programming Challenges for beginners?

2009-11-27 Thread Someone Something
Codechef and all those algorithmic websites aren't very good for python because, quite frankly, python is definitley slower than C or C++. You should probably pick up a project on sourceforge or freshmeat if you feel confident enough. On Thu, Nov 26, 2009 at 10:24 PM, astral orange <457r0...@gmail

Tax Calculator--Tkinter

2009-11-08 Thread Someone Something
I'm writing a simple tax calculator with Tkinter (just for fun). Here's my current code: from Tkinter import *; class TaxCalc: def __init__(self, root): rate=Frame(root) rate.pack() income=Frame(root) income

Re: Spam Bot, broken pipe

2009-11-07 Thread Someone Something
anyone? On Sat, Nov 7, 2009 at 9:06 PM, Someone Something wrote: > > > I'm just testing it on my channel! I promise! Besides, I'm doing it to > learn about sockets! Please! > > > On Sat, Nov 7, 2009 at 8:07 PM, Krister Svanlund < > krister.svanl...@gmail.com&

Spam Bot, broken pipe

2009-11-07 Thread Someone Something
I'm just testing it on my channel! I promise! Besides, I'm doing it to learn about sockets! Please! On Sat, Nov 7, 2009 at 8:07 PM, Krister Svanlund wrote: > On Sun, Nov 8, 2009 at 2:00 AM, Someone Something > wrote: > > I have a irc spam bot (only testing on my channe

Spam Bot, broken pipe

2009-11-07 Thread Someone Something
I have a irc spam bot (only testing on my channel :P ) whose main loop is the following: privc="PRIVMSG "+self.channel while True: self.sock.send(privc=" :SPAM SPAM SPAM!"); time.sleep(2); And it gives an error "Broken Pipe". How can I fix this? -- http://mail.python.org/mailman/listin

continuous return?

2009-11-03 Thread Someone Something
I'm trying to write something related to IRC. The thing is, I have one thread receiving and another sending. But, how can I keep the caller of the recv() function informed about what was last received so that it can all be printed out. But, I no idea how I can accomplish this. I was thinking about

Re: Regex

2009-10-20 Thread Someone Something
how can I implement this in python? On Tue, Oct 20, 2009 at 8:06 PM, Steven D'Aprano < ste...@remove.this.cybersource.com.au> wrote: > On Tue, 20 Oct 2009 16:20:14 -0700, Chris Rebert wrote: > > > On Tue, Oct 20, 2009 at 3:16 PM, Someone Something > > wrote: >

Regex

2009-10-20 Thread Someone Something
I'm trying to write a program that needs reg expressions in the following way. If the user types in "*something*" that means that the asterixes can be replaced by any string of letters. I haven't been able to find any reg expression tutorials that I can understand. Help? -- http://mail.python.org/

Multiple files

2009-10-17 Thread Someone Something
I was trying to write a program with just one class and it was working fine. Then, I seperated that class into two different files and made the objects and called the methods in a third (client.py IO.py main.py). Now, when I use the command: python client.py IO.py main.py Nothing prints. I think

Re: Threading from a class

2009-10-17 Thread Someone Something
anyone? On Sat, Oct 17, 2009 at 4:26 PM, Someone Something wrote: > I'm trying to write a IRC client that has to have a method inside class > Client that has to start a new thread that goes to run() which is in the > same class. I'm not really understanding all the threa

Threading from a class

2009-10-17 Thread Someone Something
I'm trying to write a IRC client that has to have a method inside class Client that has to start a new thread that goes to run() which is in the same class. I'm not really understanding all the threading tutorials i've found. Can someone help? p.s. trying to use the threading module, not the threa

One class one file?

2009-10-16 Thread Someone Something
I'm trying write a program that's going to be more than 100 lines or so but I need it all in one class. Is there a painless way to have one class in two files? -- http://mail.python.org/mailman/listinfo/python-list

What do I do now?

2009-10-11 Thread Someone Something
I've been programming since about 3 years, and come to think of it never written anything large. I know a few languages: c, python, perl, java. Right now, I just write little IRC bots that basically don't do anything. I have two questions: 1) What should I start programming (project that takes 1-

Multidimensional arrays/lists

2009-09-27 Thread Someone Something
I'm trying to write a little tic-tac-toe program I need a array/list such that I can represent the tic tac toe board with an x axis and y axis and i can access each square to find out whether there is an X or an O. I have absolutely no idea how to do this in python and I really, really, don't want

Re: IRC bot

2009-09-13 Thread Someone Something
Thanks a lot! On Sun, Sep 13, 2009 at 4:29 PM, MRAB wrote: > Someone Something wrote: > >> I"m trying to write an IRC bot just for fun (in python of course). Here's >> my current code: >> >> 1 #!/usr/local/bin/python >> 2 import time >> 3

Re: IRC bot

2009-09-13 Thread Someone Something
Anyone? On Sun, Sep 13, 2009 at 3:58 PM, Someone Something wrote: > I"m trying to write an IRC bot just for fun (in python of course). Here's > my current code: > > 1 #!/usr/local/bin/python > 2 import time > 3 import socket > 4 > 5 def message (x

IRC bot

2009-09-13 Thread Someone Something
I"m trying to write an IRC bot just for fun (in python of course). Here's my current code: 1 #!/usr/local/bin/python 2 import time 3 import socket 4 5 def message (x, channel,s): 6 y="PRIVMSG"+" "+ channel+" :"+x 7 s.send(y); 8 host="irc.freenode.net"; 9 port=6667; 10 si

Re: Podcast catcher in Python

2009-09-12 Thread Someone Something
C shouldn't be very hard. You just get the url of the file you want to connect to, then just use the normal connect sequence and read the file and print it out to the UNIX shell, then at the unix shell, just pipe it to an MP3. Or you could just do it with FILE *. On Sat, Sep 12, 2009 at 4:37 PM, Ch

Re: Project euler no. 3

2009-09-12 Thread Someone Something
Anyone? On Sat, Sep 12, 2009 at 11:46 AM, Someone Something wrote: > But, I'm returning true or false right? > > On Sat, Sep 12, 2009 at 11:32 AM, MRAB wrote: > >> Someone Something wrote: >> >>> Project euler (in case you don't know: projecteuler.net

Re: Project euler no. 3

2009-09-12 Thread Someone Something
But, I'm returning true or false right? On Sat, Sep 12, 2009 at 11:32 AM, MRAB wrote: > Someone Something wrote: > >> Project euler (in case you don't know: projecteuler.net < >> http://projecteuler.net>) >> >> I'm trying to do the third one

Project euler no. 3

2009-09-12 Thread Someone Something
Project euler (in case you don't know: projecteuler.net) I'm trying to do the third one and here's my current code: 1 def checkPrime (x): 2 factors=2; 3 while factors<=x: 4 if x==factors: 5 return True; 6 elif x%factors==0: 7 return Fa

Re: Programming ideas?

2009-09-12 Thread Someone Something
Thanks a lot! Also, can someone suggest some ideas for a medium sized or small sized project? On Sat, Sep 12, 2009 at 10:25 AM, Mark Tolonen > wrote: > > "Someone Something" wrote in message > news:e196a4050909120713m76592252r9e89fb24fdaae...@mail.gmail.com... > >

Programming ideas?

2009-09-12 Thread Someone Something
I know you've probably had this question a million and one times but here it is again. I'm intermediate at C, pretty good at Java (though I really don't want to program in this), okay at perl and I've just learned python. But, I have no more ideas to write programs/scripts for! Any ideas will be he