Re: @gmail.com accounts put on hold

2013-11-14 Thread Matty Sarro
Whew, thank you for your hard work. I was really worried I would stop getting emails about Islam, Hacking Databases, and the Ruby Community ;) Kidding, kidding. Great job with the fast workaround! On Thu, Nov 14, 2013 at 10:05 AM, Tim Golden wrote: > Several people have reported Mailman messag

Re: Python Game Development?

2013-06-07 Thread Matty Sarro
You could make a fantastic turtle based game with pyturtle! On Fri, Jun 7, 2013 at 1:53 PM, Eam onn wrote: > On Friday, June 7, 2013 4:53:03 PM UTC+1, Eam onn wrote: > > I was planning on making a small 2D game in Python. Are there any > libraries for this? I know of: > > > > > > > > • Pygame -

Re: book advice

2013-03-01 Thread Matty Sarro
Google "learn python the hard way" by Zed A. Shaw. It's free and fantastic. Read it, and once you're done read "The Pragmatic Programmer " On Mar 1, 2013 4:04 PM, "leonardo selmi" wrote: > hi > > is there anyone can suggest me a good book to learn python? i read many > but there is always someth

Re: Why is it impossible to create a compiler than can compile Python to machinecode like C?

2013-02-28 Thread Matty Sarro
Python is an interpreted language, not a compiled language. This is actually a good thing! What it means is that there is a "scripting engine" (we just call it the interpreter) that actually executes everything for you. That means that any operating system that has an interpreter written for it is

Re: Alternatives to Splunk?

2013-02-09 Thread Matty Sarro
Look up any nosql database. At it's heart that is what splunk is built on. Or, if you're working with less than 500mb of data a day, just use the free version of splunk. On Sat, Feb 9, 2013 at 12:09 PM, sssdevelop wrote: > Yup - its off topic. I was triggered to write here because Splunk is > w

Re: [Tutor] How to run multiline shell command within python

2013-01-10 Thread Matty Sarro
Have you looked a the pexpect class? It works like gangbusters, especially if you're trying to run something with an interactive shell. http://www.noah.org/wiki/pexpect On Thu, Jan 10, 2013 at 9:25 AM, Karim wrote: > On 10/01/2013 09:31, Hugo Arts wrote: > > On Thu, Jan 10, 2013 at 7:01 AM, K

Re: wiki.python.org

2013-01-09 Thread Matty Sarro
Wiki.python.org was compromised a few days ago, almost everything was wiped per a previous email. Not sure what the recovery status is. On Wed, Jan 9, 2013 at 11:05 AM, Reed, Kevin wrote: > Hello, > > ** ** > > I have been unable to access wiki.python.org for two days. Is there a > proble

Re: New to python, do I need an IDE or is vim still good enough?

2013-01-02 Thread Matty Sarro
That's really a question for you - do you want the features of an IDE? Aptana includes pydev, and is built on eclipse which is a great swiss-army-knife IDE. If you like KISS, vim is an excellent choice. Go with whichever you are more comfortable using. On Wed, Jan 2, 2013 at 1:36 PM, Neil Cerutti

Re: Google the video "9/11 Missing Links". 9/11 was a Jew Job!

2012-07-19 Thread Matty Sarro
I must be a Jew or a traitor as I keep deleting this email. Seriously guys, don't reply to it, it's not worth the time. On Thu, Jul 19, 2012 at 10:22 AM, Neal Becker wrote: > Google the video "Go fuck yourself" > > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.or

Re: Weird newbie question

2012-01-26 Thread Matty Sarro
aceback because IDLE wouldn't run the program in the interpreter that opens along side the editor. Re-opening the file in the 2.7 version of IDLE removed any issues. Thanks for your help everyone. On Thu, Jan 26, 2012 at 5:53 PM, Rick Johnson wrote: > On Jan 26, 4:05 pm, Matty Sarro

Weird newbie question

2012-01-26 Thread Matty Sarro
Hey everyone. I'm running into a funky error as I work through "Learn Python the Hard Way." What's weird is both idle and the python interpreter in idle spit out an error about syntax, but when I run the same script from the command line it works just fine, with no issue. I'm not sure if its an iss

Automated form submissions

2011-10-21 Thread Matty Sarro
Hey everyone. First, I apologize because I know this question has probably gotten asked a lot. I am looking to automate filling out web forms, and no, its not for spamming purposes. I have looked at mechanize so far, but I'm not sure it quite fits what I'm looking for. I know it can act as a brows

Re: How to save the packages received by a network interface or some port in a file and resend the packages received when needed?

2011-08-31 Thread Matty Sarro
Its possible using TCPDUMP and wireshark. however its a bit of a manual process (open the pcap in wireshark, select the correct tcp stream, and extract the file). I did this to show a vulnerability in how medical images were transmitted in a university hospital once :) Here are some guides, maybe

Re: Stop quoting spam [was Re: Hot Girls ...]

2011-08-19 Thread Matty Sarro
t; On Aug 19, 2011, at 4:43 PM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > >> Matty Sarro wrote: >> >>> That's great - but do they program in python? >> >> Thanks for that, I didn't see the spam the first time, but thanks t

Re: Stop quoting spam [was Re: Hot Girls ...]

2011-08-19 Thread Matty Sarro
ut it. If php, red hat, and perl can manage it for their lists, why not python? Is that a statement about python programmers? God forbid I try to make a joke. Grow up. On Aug 19, 2011 4:46 PM, "Steven D'Aprano" < steve+comp.lang.pyt...@pearwood.info> wrote: > Matty Sarro wrot

Re: Hot Girls are Looking for Sex

2011-08-19 Thread Matty Sarro
That's great - but do they program in python? On Fri, Aug 19, 2011 at 2:38 PM, Sajjad Ahmad wrote: > See All details on > > http://hotelandtourism9.blogspot.com/2011/08/indian-hotels-wall-st-effect.html > > . > > See All details on > > http://hotelandtourism9.blogspot.com/2011/08/indian-hotels-wa

Re: Spam

2011-08-01 Thread Matty Sarro
I agree, the Bollywood spam sucks. There's not even any boobies! On Aug 1, 2011 4:16 AM, "Steven D'Aprano" < steve+comp.lang.pyt...@pearwood.info> wrote: > Ghodmode wrote: > >> I've noticed that python-list gets significantly more spam than the >> other lists I subscribe to. There's an example belo

(Maybe off topic) Can someone explain what a finite state machine is?

2011-07-19 Thread Matty Sarro
Hey everyone. I am currently reading through an RFC, and it mentions that a client and server half of a transaction are embodied by finite state machines. I am reading through the wikipedia article for finite state machines, and sadly it's going a bit above my head. I don't really have a background

Re: "Python Wizard," with apologies to The Who

2011-07-12 Thread Matty Sarro
I don't know whether to LOL or mourn the part of me that just died inside :-P j/k j/k clever song, and it made me laugh :) On Tue, Jul 12, 2011 at 12:40 PM, John Keisling wrote: > After too much time coding Python scripts and reading Mark Lutz's > Python books, I was inspired to write the follow

Re: Why did Quora choose Python for its development?

2011-05-25 Thread Matty Sarro
On Wed, May 25, 2011 at 3:14 PM, John Bokma wrote: > Ethan Furman writes: > >> Terry Reedy wrote: >>> On 5/25/2011 8:01 AM, John Bokma wrote: >>> to. Like I already stated before: if Python is really so much better than Python readability wise, why do I have such a hard time dropping >>

Re: Why did Quora choose Python for its development?

2011-05-25 Thread Matty Sarro
I hate using L for anything, namely because if you type it lowercase you always have to wonder if its an l or a 1 in a terminal window. -Matthew On Wed, May 25, 2011 at 10:56 AM, Steven D'Aprano wrote: > On Wed, 25 May 2011 10:23:59 -0400, D'Arcy J.M. Cain wrote: > >> On Wed, 25 May 2011 07:36:40

Kind of OT - Books on software development?

2011-05-25 Thread Matty Sarro
Hey everyone, I am looking at some projects coming up, which may or may not involve python. So I figured I would throw the question out there and see what everyone thinks. I am looking for some books on software engineering/development... something that discusses techniques from ideation, up throug

Re: Newbie string questions

2011-05-25 Thread Matty Sarro
Thanks guys! I appreciate it. I was wondering why %r was always showing things enclosed in single-quotes. On Wed, May 25, 2011 at 9:13 AM, Chris Guidry wrote: > On Wednesday, May 25, 2011 9:06:02 AM UTC-4, Matty Sarro wrote: >> can't seem to find some of the items in the documentat

Newbie string questions

2011-05-25 Thread Matty Sarro
Hey everyone, This is a super noob question, so please be gentle. I am working my way through "Learn Python the Hard Way" using both python 2.7 and python 3.1 (I want to get a handle on the differences between the two - the intention to write things in python 3 but be able to understand things from

Re: Python IDE/text-editor

2011-05-08 Thread Matty Sarro
Pydev for eclipse/aptana On Saturday, May 7, 2011, emato wrote: > >> On Apr 16, 1:20 pm, Alec Taylor wrote: >> >>> I'm looking for an IDE which offers syntax-highlighting, >>> code-completion, tabs, > > gedit > > http://projects.gnome.org/gedit/index.html > > > -- > http://mail.python.org/mailma

Re: Basic interaction with another program

2011-05-04 Thread Matty Sarro
Look into the pexpect library, it'll make this easy as punch. http://www.noah.org/wiki/pexpect On Wed, May 4, 2011 at 12:34 PM, ETP wrote: > I have a dos program (run in a window) that I would like to control > with a script.  It needs only text input.  For example, I only need to > tell it: > >

Re: learnpython.org - an online interactive Python tutorial

2011-04-20 Thread Matty Sarro
Awesome project, I really like it. I'll see if I can't help adding some material that's missing when I get on the train. Keep up the great work! On Wed, Apr 20, 2011 at 1:15 PM, Ron wrote: > Hey everyone. > > I've written an online interactive Python tutorial atop Google App Engine: > http://www

Re: First time using an API...

2011-02-17 Thread Matty Sarro
Good point, pardon the assumption :) I'm reading more about RESTful and it looks like its a web based API. Oh well, I'll figure it out, I mean, my job depends on it, lol. On Thu, Feb 17, 2011 at 1:19 PM, Cousin Stanley wrote: > > Matty Sarro wrote: > >> >>

First time using an API...

2011-02-17 Thread Matty Sarro
This may be kind of a stupid question, so please be gentle. I've only ever used most programming in the past when shell scripting couldn't handle what I needed done. So, I rarely dabble with things like API's, or even python-isms. I just program to get things done. Well, that's about to change :)

Best way to automatically copy out attachments from an email

2011-01-12 Thread Matty Sarro
As of now here is my situation: I am working on a system to aggregate IT data and logs. A number of important data are gathered by a third party system. The only immediate way I have to access the data is to have their system automatically email me updates in CSV format every hour. If I set up a ma

Scanning directories for new files?

2010-12-21 Thread Matty Sarro
Hey everyone. I'm in the midst of writing a parser to clean up incoming files, remove extra data that isn't needed, normalize some values, etc. The base files will be uploaded via FTP. How does one go about scanning a directory for new files? For now we're looking to run it as a cron job but eventu

Re: O'Reilly Python Certification

2010-12-16 Thread Matty Sarro
So how exactly does the class work? Is it like an elementary CS class where you have a teacher, assignments, etc. Or is it more like a guided tour through the O'Reilly Python book/cookbook? On Thu, Dec 16, 2010 at 10:40 AM, Ethan Furman wrote: > Please don't top-post.  :) > > Nitin Pawar wrote: >

Looping through files in a directory

2010-11-10 Thread Matty Sarro
Short story - I have a few thousand files in a directory I need to parse through. Is there a simple way to loop through files? I'd like to avoid writing a python script that can parse 1 file, and have to call it a few thousand times from a bash script. Any input or pointers to functions that'd help

An easier way to do this? (spoiler if you're using pyschools for fun)

2010-11-09 Thread Matty Sarro
Hey everyone, I'm working on one of the puzzles on pyschools.com, and am trying to figure out if I can make my solution a bit more elegant. def getSumOfLastDigit(numList): sumOfDigits=0 for i in range(0, len(numList)): num=str(numList.pop()) sumOfDigits+=int(num[-1:]) r

Re: Best exercises for beginers to learn?

2010-11-09 Thread Matty Sarro
I agree completely with Seebs, however I will mention that until you find a project that tickles your fancy there are some good places to find exercises. Pyschools: http://www.pyschools.com Project Euler: http://projecteuler.net/ You can also check out: http://learnpythonthehardway.org/index The ex

Re: Silly newbie question - Carrot character (^)

2010-11-05 Thread Matty Sarro
It's ok, people who refer to a labret piercing as a "la-BRAY" piercing are also incorrect. It's pronounced lab-RET, as its base word is the latin "labretta." French as a language shall doom us all :) On Fri, Nov 5, 2010 at 2:54 PM, Philip Semanchuk wrote: > > On Nov 5, 2010, at 12:43 PM, Peter Pe

Re: Using %x to format number to hex and number of digits

2010-11-05 Thread Matty Sarro
" or not. Thanks for your thoughts! On Fri, Nov 5, 2010 at 2:57 PM, Chris Rebert wrote: > On Fri, Nov 5, 2010 at 11:23 AM, Matty Sarro wrote: > > I'm currently trying to convert a digit from decimal to hex, however I > need > > the full 4 digit hex form. Python appear

Using %x to format number to hex and number of digits

2010-11-05 Thread Matty Sarro
I'm currently trying to convert a digit from decimal to hex, however I need the full 4 digit hex form. Python appears to be shortening the form. Example: num = 10 num = "%x"%(num) print(num) >a num = 10 num = "%#x"%(num) print(num) >0xa I need it to output as 0x0a, and the exercise is requirin

Re: Silly newbie question - Carrot character (^)

2010-11-05 Thread Matty Sarro
Thanks everyone, that explains it :) -Matty On Fri, Nov 5, 2010 at 9:43 AM, Matty Sarro wrote: > Hey Everyone, > Just curious - I'm working on a program which includes a calculation of a > circle, and I found myself trying to use pi*radius^2, and getting errors > that data ty

Silly newbie question - Carrot character (^)

2010-11-05 Thread Matty Sarro
Hey Everyone, Just curious - I'm working on a program which includes a calculation of a circle, and I found myself trying to use pi*radius^2, and getting errors that data types float and int are unsupported for "^". Now, I realized I was making the mistake of using '^' instead of "**". I've correct

Learning book recommendation?

2010-11-02 Thread Matty Sarro
Hey Everyone! I'm looking for a Python book to start really learning the language since I've been using it more and more. Something similar to what you'd see in a computer science class - a few pages of theory and explanation of commands/syntax/constructs/data structures and then some exercises to

Re: Request For Comments: Learn Python The Hard Way

2010-09-28 Thread Matty Sarro
Cool idea! I'll gladly take a look and get back to you. -Matthew On Tue, Sep 28, 2010 at 9:18 PM, Zed Shaw wrote: > Hi Everyone, > > I rarely post to the list, but I'm getting near the end of the book I > wrote to help people learn Python and I would like some feedback on it > if you please: > >

Programming Puzzles? What's your favorite puzzle?

2010-08-12 Thread Matty Sarro
Hey All! Hope your thursday is treating you well. I'm looking for suggestions on books of programming/engineering puzzles that range from beginners to advanced and even expert level problems. I know they exist; we had them back in college for practicing before the ACM programming competitions. Howe

Re: Newbie question - calculating prime numbers

2010-08-10 Thread Matty Sarro
#print(candidate, " is not a prime.") candidate+=2 print("The 1000th prime number is ",(candidate-2)) On Tue, Aug 10, 2010 at 8:51 AM, Dave Angel wrote: > Matty Sarro wrote: > >> Hey Everyone, >> I'm currently trying to work through MIT's

Newbie question - calculating prime numbers

2010-08-10 Thread Matty Sarro
Hey Everyone, I'm currently trying to work through MIT's opencourseware and am using python. The second assignment they offer is to determine the 1000th prime number. Below is the code I am using: #Assignment 1a #Determine the 1000th prime number candidate=3 #Already know that 2 is prime primeCoun