[Tutor] Calendar Module

2006-05-22 Thread Shuai Jiang
Hello, I just got Python In a Nutshell and decided to play around with the time section. While playing with the calendar module, I encountered a problem:>>> import calendar>>> calendar.calendar (2006)'  2006\n\n  January   February

[Tutor] Question about formating string with dictionary

2007-04-26 Thread Shuai Jiang (Runiteking1)
Hello everyone, The program that I am working on right now have a template for string formatting. My question is that is it possible to use multiple dictionary to format the string. For example x = {'foo':1234, 'bar': 5678} y = {'spam':'hello','cheese':'good-bye'} is there any way to use his ps

[Tutor] Convert .pyc to .py

2007-05-05 Thread Shuai Jiang (Runiteking1)
Hello, I was playing with pyInstaller and I moved the file to the directory. After I finished playing with it, I accidentally deleted it (I bypassed the recycle bin). Now I lost my project files and my file restoration didn't find it, but I still have the .pyc file though. I'm wondering weather

Re: [Tutor] Convert .pyc to .py

2007-05-05 Thread Shuai Jiang (Runiteking1)
Is there no opensource (free) version? I'm a kid and I don't have a credit card or bank account. On 5/5/07, Andreas Kostyrka <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Check out http://www.crazy-compilers.com/decompyle/service.html > > Andreas > > -BEGIN P

[Tutor] Python and displaying mathematical equations?

2008-03-03 Thread Shuai Jiang (Runiteking1)
Hello, I'm trying to create an application that retrieves and displays (probably in HTML or PDF format) math problems from a database. The problem is that I need some sort of mechanism to display mathematical equations. I'm trying to not use Latex as it would cause the users to install Latex (and

Re: [Tutor] Python and displaying mathematical equations?

2008-03-04 Thread Shuai Jiang (Runiteking1)
Never even knew about MathML... stupid me. My Firefox browser can't handle the MathML test page quite well, can't show the root sign. Thank you very much! On Mon, Mar 3, 2008 at 9:15 PM, John Fouhy <[EMAIL PROTECTED]> wrote: > On 04/03/2008, Shuai Jiang (Runiteking1) <[E

[Tutor] Question regarding parsing HTML with BeautifulSoup

2007-01-03 Thread Shuai Jiang (Runiteking1)
Hello, I'm working on a program that need to parse a financial document on the internet using BeautifulSoup. Because of the nature of the information, it is all grouped as a table. I needed to get 3 types of info and have succeeded quite well using BeautifulSoup, but encountered problems on the t

Re: [Tutor] Question regarding parsing HTML with BeautifulSoup

2007-01-04 Thread Shuai Jiang (Runiteking1)
Hi, Wow, thats much more elegant than the idea I thought of. Thank you very much Kent! Marshall On 1/3/07, Kent Johnson <[EMAIL PROTECTED]> wrote: Shuai Jiang (Runiteking1) wrote: > Hello, > > I'm working on a program that need to parse a financial document on th

Re: [Tutor] [Edu-sig] school physics/math courses

2008-10-17 Thread Shuai Jiang (Runiteking1)
How about http://projecteuler.net/? From their website: > Project Euler is a series of challenging mathematical/computer programming > problems that will require more than just mathematical insights to solve. > Although mathematics will help you arrive at elegant and efficient methods, > the use o