Python assignment auto-grading

2014-09-19 Thread Frank Cui
Hi Folks, I'm seeking some suggestions and recommendations for python assignments auto grading. Hopefully this tool will have all or some of the following attributes : 1) Easy to set up and maintain (i.e. minimal workload in terms of sysadmin and webdev, is there a recommended cloud service ? )2)

RE: Python (windows)packet sniffer ARP

2014-01-31 Thread Frank Cui
> Date: Fri, 31 Jan 2014 07:32:42 -0800 > Subject: Re: Python (windows)packet sniffer ARP > From: betz.m...@gmail.com > To: python-list@python.org > > On Friday, January 31, 2014 2:10:28 AM UTC-5, Ralle wrote: > > Hello > > > > > > > > I am wondering if it possible to create a packet sniffer

a web UI to invoke a python script at server side

2014-01-14 Thread Frank Cui
Hey guys, I'm working on to provide a lightweight web UI for providing an interface to invoke a python script(a sequential script which could involve some system calls) at the server side. The UI should collect some parameters for input into this python script, and conversely the output of the s

word replacing in a paragraph

2014-01-06 Thread Frank Cui
Hey guys, I'm trying to automate a process by initially creating a standard template and then replace some text fields with variable values. [for example, "DATE" in the paragraph will be replaced by the current date value. it doesn't have to be a literal word of "DATE", "DATE" in "TESTDATE" can

RE: cascading python executions only if return code is 0

2013-12-22 Thread Frank Cui
> Date: Sun, 22 Dec 2013 14:27:35 -0800 > Subject: Re: cascading python executions only if return code is 0 > From: rantingrickjohn...@gmail.com > To: python-list@python.org > > On Sunday, December 22, 2013 12:37:04 PM UTC-6, Frank Cui wrote: > > I have a req

RE: cascading python executions only if return code is 0

2013-12-22 Thread Frank Cui
> To: python-list@python.org > From: n...@nedbatchelder.com > Subject: Re: cascading python executions only if return code is 0 > Date: Sun, 22 Dec 2013 14:49:43 -0500 > > On 12/22/13 2:10 PM, Frank Cui wrote: > > sorry, but what if I need to have different param

RE: cascading python executions only if return code is 0

2013-12-22 Thread Frank Cui
mith wrote: > > In article , > > Frank Cui wrote: > > > >> hey guys, > >> I have a requirement where I need to sequentially execute a bunch of > >> executions, each execution has a return code. the followed executions > >> should &

RE: cascading python executions only if return code is 0

2013-12-22 Thread Frank Cui
Thanks, this looks beautiful > To: python-list@python.org > From: __pete...@web.de > Subject: Re: cascading python executions only if return code is 0 > Date: Sun, 22 Dec 2013 20:26:15 +0100 > > Frank Cui wrote: > > > hey guys, > > I have a requirement where

cascading python executions only if return code is 0

2013-12-22 Thread Frank Cui
hey guys, I have a requirement where I need to sequentially execute a bunch of executions, each execution has a return code. the followed executions should only be executed if the return code is 0. is there a cleaner or more pythonic way to do this other than the following ? if a() == 0:if

RE: Regular Expression : Bad Character Range

2013-12-19 Thread Frank Cui
should have escaped hyphen as it could be used for ranging. sorry for the bother... From: y...@outlook.com To: python-list@python.org Subject: Regular Expression : Bad Character Range Date: Thu, 19 Dec 2013 23:50:52 -0300 Hey guys, I'm trying to compile a regular Expression while encounteri

Regular Expression : Bad Character Range

2013-12-19 Thread Frank Cui
Hey guys, I'm trying to compile a regular Expression while encountering the following issue, any hints ? is hyphen "-" or underscore "_" considered any meta character which is not allowed when putting into the range ? Thanks Frank In [2]: re.compile("[\w-_]+>") ---

RE: seeking a framework to automate router configurations

2013-12-17 Thread Frank Cui
m > To: python-list@python.org > > On Wednesday, December 18, 2013 8:10:20 AM UTC+5:30, Frank Cui wrote: > > Hi Pythoners, > > I'm looking for a tool or framework in which I can do a slight modification > > to > > achieve the following task: > > &quo

RE: seeking a framework to automate router configurations

2013-12-17 Thread Frank Cui
to automate router configurations > From: ros...@gmail.com > CC: python-list@python.org > > On Wed, Dec 18, 2013 at 1:40 PM, Frank Cui wrote: > > "Asynchronously reset a large number of cisco routers back to their original > > configurations and push prepared initial config

seeking a framework to automate router configurations

2013-12-17 Thread Frank Cui
Hi Pythoners, I'm looking for a tool or framework in which I can do a slight modification to achieve the following task: "Asynchronously reset a large number of cisco routers back to their original configurations and push prepared initial configurations to them" I did find some similar existing w

RE: Cracking hashes with Python

2013-11-25 Thread Frank Cui
Hi, I'm assuming you are taking a computer/network security course. Md5 hashing operation is designed to be mathematically unidirectional, you can only attempt to find a collision situation but it's technically impossible to reverse the operation. With that said, it's possible to "crack" or "decr

Question on the Module Import

2011-01-17 Thread frank cui
Hi all, I'm quite a novice in doing python,and i wish to ask you guys a question on the module import. Say we have a source file called module1.py. What's the difference between the " import module1 " and " from module1 import * " I know that conventionally by coding style, we dont use the seco

instance has no __call__ method

2010-12-10 Thread frank cui
Hi all, I'm a novice learner of python and get caught in the following trouble and hope experienced users can help me solve it:) Code: --- $ cat Muffle_ZeroDivision.py #!/usr/bin/env python class MuffledCalculator: muffled =