Best Unit Testing framework for Linux system administration scripting?

2008-10-26 Thread Bryan Berry
on using unit testing in system administration? thanks, -- Bryan W. Berry Technology Director OLE Nepal, http://www.olenepal.org -- http://mail.python.org/mailman/listinfo/python-list

c.Win32_OperatingSystem question.

2009-02-28 Thread bryan rasmussen
y.text = str(oper.WindowsDirectory) At the end of that thhe only text node thaht comes out is ComputerName, WMI is running - Am I using the wrong names for things here? When I try to get the same values using WScript and WQL to extract from Win32_OperatingSystem I get all the values. Best Regards, Bryan Rasmussen -- http://mail.python.org/mailman/listinfo/python-list

Re: c.Win32_OperatingSystem question.

2009-02-28 Thread bryan rasmussen
oh I noticed the problem with the BuildNumber = et.SubElement(oper.BuildNumber) instead of BuildNumber = str(oper.BuildNumber) and fixed it. No improvement in results however. Best Regards, Bryan Rasmussen On Sat, Feb 28, 2009 at 6:38 PM, bryan rasmussen wrote: > Maybe there's a more

Re: c.Win32_OperatingSystem question.

2009-03-12 Thread bryan rasmussen
from scriptomatic output. Cheers, Bryan Rasmussen On Sat, Feb 28, 2009 at 8:15 PM, Tim Golden wrote: > bryan rasmussen wrote: >> >> Maybe there's a more specific list I should ask this question on but I >> don't know what it is. I'm using Tim Golden's w

Re: don't make it worse! - was Re: SPAM

2008-06-20 Thread bryan rasmussen
I guess it didn't because I was reading through Google Mail, and it wasn't filtered. Best Regards, Bryan Rasmussen On Fri, Jun 20, 2008 at 9:42 AM, Aspersieman <[EMAIL PROTECTED]> wrote: > Michael Torrie wrote: > > Aspersieman wrote: > > > SPAM > > >

Connecting a Desktop App to a Web App

2008-06-21 Thread Alex Bryan
Okay, this is my first post to this mailing list, so first off if I shouldn't be sending something here, PLEASE correct me. Okay, so I want to create an app that has a GUI (most likely Tkinter) and will prompt the user to choose files and such and then will upload those files, either regula

Re: Re: Connecting a Desktop App to a Web App

2008-06-21 Thread Alex Bryan
Okay, well I wouldn't be creating the app, so, any hints on how to figure out the API of a web app I don't know super well? -- http://mail.python.org/mailman/listinfo/python-list

Going from Tkinter to pyQT

2008-06-23 Thread Alex Bryan
I had a guy on this mailing list tell me that pyQT is much better than Tkinter, and after looking into it a bit I think he is right. However, I can't find much on it. I want to know if there are any good books or online tutorials that would be helpful. I doubt there is one, but if there is

Sending information to a website

2008-06-24 Thread Alex Bryan
Okay, so what I want to do is connect to dictionary.com and send the website a word, and later receive the definition. But for now, I want to focus on sending the word. A good guy from this mailing list said I should look into the code and then figure out what the word you want to be define

urllib tutorial and help

2008-06-25 Thread Alex Bryan
So I need to start learning about the urllib class, and am wondering where is a good place to start. I really don't want to go buy a book about it, but I was wondering if there is any good online tutorials or anything like that, that will help me out on connecting apps to the web, that spec

urllib tutorial or manual

2008-06-26 Thread Alex Bryan
I have never used the urllib class and I need to use it for an app I am working on. I am wondering if anyone has any good sites that will fill me in on it(especially the urllib.urlopen module). Or better yet, an example of how you would submit a search term into the search field on a site,

More on Urllib, and Urllib2

2008-06-27 Thread Alex Bryan
Okay, so I am having issues figuring anything out about this and have read the "missing manual" about it so please don't send me that link again. To put it simply I want to be able to input a word and get the definition from dictionary.com. Now I found a work-around for searching for the wo

Testing for Null?

2008-06-28 Thread Alex Bryan
I am having a problem with a list value that is empty. I have a list of definitions called mainList. the 5th value in the list doesn't have anything in it. In this case, the values are definitions; also, in this case just the word cheese is defined. Here is my output to the console: 5. a sprawl

Re: Re: Testing for Null?

2008-06-28 Thread Alex Bryan
Ya, I tried your code, it still did the same thing :[. I mean it worked like before. Some extra info about it, I am using BeautifulSoup to get definitions of words and well, the problem is it doesn't get links or anything in bold or italics. So the think #6 actually was, was italics. So I am still

The Yield statement

2008-06-30 Thread Alex Bryan
Okay, so i don't really understand the Yield thing and i know it is useful. I've read a few things about it but it is all programming jargon and so basically it is hard for me to understand. So can anyone give me a description or link me to a site that has a good definition and/or examples

Creating an .exe with Tkinter involved

2008-07-03 Thread Alex Bryan
I know this is possible so someone out there should be able to help me! Okay, I have a program that uses Tkinter, and BeautifulSoup. I don't think it should be a problem. I want to create an exe of it. I have py2exe but I don't really know how to work it. I read their tutorial thing and did

Tkinter Text widget get()

2008-07-05 Thread Alex Bryan
Hey guys. I am having trouble understanding the get() method from the Tkinter Text() widget. It isn't like the entry.get() one I am used to. I know you have to put tags in, or at least I read. I tried this but it didn't work. I think I was putting the tags in wrong but I am not sure. I just

Margins in the Tkinter Text widget

2008-07-05 Thread Alex Bryan
Okay, so i am trying to have some sort of formatting going on in a textbox, and I need left margins. I see that there are two, one for the first line and th other for every line but that line. My program gives a word and a list of definitions for the word. So my question is how can I make t

Simple question, how do you tell how many items in a list?

2008-07-10 Thread Alex Bryan
I am just wondering how you get an integer value for how many items there are in a list, preferably w/o a for loop. -- http://mail.python.org/mailman/listinfo/python-list

Re: why does socket.makefile require non-blocking mode?

2008-03-28 Thread Bryan Olson
e it as a patch to the socket module. Sure, fix it. A harder problem is that it doesn't play nice with select(). -- --Bryan -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I reconnect a disconnected socket?

2008-03-29 Thread Bryan Olson
s exceptions. A non-blocking socket, or equivalently a socket with a timeout of zero, will raise socket.error. The errno in the exception's (errno, string) value should be EAGAIN or EWOULDBLOCK. If a socket has a non-zero timeout, and that timeout expires, the operation raises socket.timeout. -- --Bryan -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter, overwrite Label-text?

2008-04-11 Thread Bryan Oakley
[EMAIL PROTECTED] wrote: > ok but i have trouble using grid. if i try to use a Label witht he > text answer in the following code it doenst work very well. > Can you describe "have trouble"? What sort of trouble -- syntax errors, the text never shows up, etc? Following is my attempt to use a la

Re: tkinter, annoying grid-problem

2008-04-13 Thread Bryan Oakley
[EMAIL PROTECTED] wrote: > so my little calculator works perfectly now. just having some trouble > with the layout. > this whole tkinter-thing seems to be more tricky than it should be. > how can i make the 4 column of buttons have the same distance and > size between them as the other 3 columns?

Re: Looking for a way to include Pyhtho scripting INSIDE a python program

2008-04-13 Thread Bryan Oakley
Ivan Illarionov wrote: > You don't need to envoke another interpreter. > Python can interpret arbitrary python code with exec statement. > Wrap user's string inside function definition, and exec it. > > You might want to disable words like `import`, `exec` and `eval` in > user's code because it's

Re: tkinter, canvas, get color of image?

2008-04-13 Thread Bryan Oakley
[EMAIL PROTECTED] wrote: > mapq = PhotoImage(file = 'C:\Users\saftarn\Desktop\elmapovic.gif') > w.create_image(10, 10, image = mapq, anchor = NW) > > after doing this is there any possibility of getting the > characteristics of the GIF-picture(or bitmap if i use that)? > > it would be very helpfu

Re: tkinter, canvas, get color of image?

2008-04-15 Thread Bryan Oakley
[EMAIL PROTECTED] wrote: > On 13 Apr, 19:19, Bryan Oakley <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >>> mapq = PhotoImage(file = 'C:\Users\saftarn\Desktop\elmapovic.gif') >>> w.create_image(10, 10, image = mapq, anchor = NW) >>> afte

Re: convert xhtml back to html

2008-04-24 Thread bryan rasmussen
another case. Also, from my recollection the solution in CHM to make XHTML br elements behave correctly was as opposed to , at any rate I've done projects generating CHM and my output markup was well formed XML at all occasions. Cheers, Bryan Rasmussen On Thu, Apr 24, 2008 at 5:34 PM, Tim Arnold <

Re: convert xhtml back to html

2008-04-24 Thread bryan rasmussen
wow, that's pretty nice there. Just to know: what's the performance like on XML instances of 1 GB? Cheers, Bryan Rasmussen On Thu, Apr 24, 2008 at 9:55 PM, Stefan Behnel <[EMAIL PROTECTED]> wrote: > Tim Arnold wrote: > > hi, I've got lots of xhtml pages

Google License Keys for pyGoogle

2008-08-29 Thread Alex Bryan
I know this isn't the right mailing list, but it saves me the hassle of signing up for another one if someone on here knows. I have never used pyGoogle before, and I just read that google isn't giving out license keys anymore? If that is the case, can I still get pygoogle to work another wa

Re: Cryptographically random numbers

2006-03-06 Thread Bryan Olson
ers random.SystemRandom, which will generate integers in any desired range using os.urandom as the entropy source. -- --Bryan -- http://mail.python.org/mailman/listinfo/python-list

Re: Cryptographically random numbers

2006-03-06 Thread Bryan Olson
ng: for i in xrange(300): assert s2num(num2string(i)) == i for i in xrange(1, 20): for _ in xrange(100): r = os.urandom(i) assert num2string(s2num(r)) == r.lstrip(chr(0)) -- --Bryan -- http://mail.python.org/mailman/listinfo/python-list

Re: AES encryption

2006-03-07 Thread Bryan Olson
opular test vectors. --Bryan # Assert false if test fails test_key = ( 0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c, 0x76, 0x2e, 0x71, 0x60, 0xf3, 0x8b, 0x4d, 0xa5, 0x6a, 0x78, 0x4d, 0x90, 0x45, 0x19,

Re: Reading binary from a file...

2006-03-08 Thread Bryan Olson
files hold sequences of eight-bit integers. How you convert from those to your 16-bit type depends on how the the writer of the file converted the 16-bit integer type to a sequence 8-bit integers. -- --Bryan -- http://mail.python.org/mailman/listinfo/python-list

Re: generators shared among threads

2006-03-08 Thread Bryan Olson
= threading.Lock() i = 0 while True: lock.acquire() yield i i += 1 lock.release() fgen = f() def count3(): for _ in range(3): print '---', fgen.next() time.sleep(10) start_daemon(count3) time.sleep(1.0) print "+++", fgen.next() -- --Bryan -- http://mail.python.org/mailman/listinfo/python-list

Re: AES encryption

2006-03-10 Thread Bryan Olson
all your code, and > check the results against 3 popular test vectors. > > --Bryan > > > # Assert false if test fails > > test_key = ( > 0x2b, 0x7e, 0x15, 0x16, 0x28, 0xae, 0xd2, 0xa6, > 0xab, 0xf7, 0x15, 0x88, 0x09, 0xcf, 0x4f, 0x3c, >

Re: generators shared among threads

2006-03-10 Thread Bryan Olson
se it has a gi_frame attribute? Would generators be thread-safe > only in CPython? I have not found definitive answers in the Python doc. Both generators and threads keep their own line-of-control, and how they interact is not clear. -- --Bryan -- http://mail.python.org/mailman/listinfo/python-list

Re: Using len()

2006-03-11 Thread Bryan Olson
ut this throws the following error and I have no idea why. Please > enlighten. > > My error ==> len() of unsized object The innocent sounding function "input()" actually invokes the perilous "eval()". Read about it at: http://docs.python.org/l

os.system() question

2009-10-19 Thread Bryan Irvine
I'm a python n00b and so pardon me in advance if this is really stupid question. I have my suspicions but why does the following not work the way I'm anticipating it will? (python 2.4.4) >>> import os >>> if (os.system('echo test')): ...print 'success' ... else: ...print 'failed' ... tes

Twisted on Windows

2010-11-18 Thread Bryan Richardson
deas why this is? -- Thanks! Bryan -- http://mail.python.org/mailman/listinfo/python-list

Re: Twisted on Windows

2010-11-18 Thread Bryan Richardson
Thanks Jean-Paul, I added the following to my server.py file and things work perfectly on both Windows and Linux now. sys.path.insert(0, os.getcwd()) On Thu, Nov 18, 2010 at 9:52 AM, Jean-Paul Calderone wrote: > On Nov 18, 9:58 am, Bryan Richardson wrote: >> Hello All, >> >

Why is pdb messing with STDIN? I can't step through my code, or enter any data accurately.

2010-11-18 Thread Bryan Wheelock
ep = OpenIDServiceEndpoint() ep.claimed_id = base + "/id/bob" ep.server_url = base + "/openidserver" ep.type_uris = [OPENID_1_1_TYPE] return ep Here is the behavior: -- Ran 2 tests in 0.029s FAILED (error

Issues compiling 2.6.5 on AIX 6.1

2010-07-08 Thread Stopp, Bryan
I've seen other threads on this issue, but the resolution still doesn't seem to exist for me. I'm running the configure script with these parameters: ./configure --prefix=/build/tools \ --exec-prefix=/build/tools \ --enable-shared \ --enable-ipv6 \

RE: Issues compiling 2.6.5 on AIX 6.1

2010-07-08 Thread Stopp, Bryan
f Thomas Jollans Sent: Thursday, July 08, 2010 11:51 AM To: python-list@python.org Subject: Re: Issues compiling 2.6.5 on AIX 6.1 On 07/08/2010 04:36 PM, Stopp, Bryan wrote: > I've seen other threads on this issue, but the resolution still doesn't > seem to exist for me. &

RE: Issues compiling 2.6.5 on AIX 6.1

2010-07-08 Thread Stopp, Bryan
On 07/08/2010 04:36 PM, Stopp, Bryan wrote: > I've seen other threads on this issue, but the resolution still doesn't > seem to exist for me. > > > > I'm running the configure script with these parameters: > > > > ./configure --prefix=/build/t

RE: Issues compiling 2.6.5 on AIX 6.1

2010-07-09 Thread Stopp, Bryan
n.org [mailto:python-list-bounces+cbds=argushealth@python.org] On Behalf Of Thomas Jollans Sent: Friday, July 09, 2010 7:10 AM To: python-list@python.org Subject: Re: Issues compiling 2.6.5 on AIX 6.1 On 07/08/2010 04:36 PM, Stopp, Bryan wrote: > building '_struct' extension > >

RV: CodecRegistryError problem for an IDE.

2020-05-15 Thread Bryan Cabrera Ramírez
    Best regards,   Thank you,   Bryan Cabrera Ramirez     -- https://mail.python.org/mailman/listinfo/python-list

Re: How explain why Python is easier/nicer than Lisp which has a simpler grammar/syntax?

2020-08-11 Thread bryan . gene . olson
Christian Seberino wrote: > A beginner I think could learn Lisp much faster than Python. For talented beginners, Lisp rocks much like Python, in that easy assignments are easy enough to implement. On the high end, Lisp rocks again: Lisp masters are astonishingly productive. In between, beyond pe

CD insert/eject detection

2007-03-13 Thread Mark Bryan Yu
Hi, I'm trying to make a Audio CD ripper using python. is there a way (library, module, etc) to detect when a CD was inserted or ejected? -- http://mail.python.org/mailman/listinfo/python-list

Re: CD insert/eject detection

2007-03-13 Thread Mark Bryan Yu
On Mar 13, 11:07 am, Larry Bates <[EMAIL PROTECTED]> wrote: > Mark Bryan Yu wrote: > > Hi, > > > I'm trying to make a Audio CD ripper using python. > > > is there a way (library, module, etc) to detect when a CD was inserted > > or ejected? > >

Punit v 0.1 - Python CD ripper

2007-03-20 Thread Mark Bryan Yu
Here's the initial release of my personal open source project to create a Python CD ripper in Linux. Punit is a Audio CD ripper for Linux using cdparanoia, LAME and CDDB.py (http://cddb-py.sourceforge.net/) http://www.programmingmind.com/bryan/punit.html -- http://mail.python.org/ma

list.reverse()

2008-04-28 Thread Mark Bryan Yu
This set of codes works: >>> x = range(5) >>> x.reverse() >>> x [4, 3, 2, 1, 0] But this doesn't: >>> x = range(5).reverse() >>> print x None Please explain this behavior. range(5) returns a list from 0 to 4 and reverse just reverses the items on the list that is returned by range(5). Why is x

Traversal help

2017-04-02 Thread R. Bryan Smith
Hello, I am working with Python 3.6. I’ve been trying to figure out a solution to my question for about 40 hrs with no success and hundreds of failed attempts. Essentially, I have bitten off way more than I can chew with processing this file. Most of what follows, is my attempt to inform as

Mathematical Operations on Array

2011-04-01 Thread Fodness, Bryan C - GS
I am loading text into an array and would like to convert the values. from math import * from numpy import * from pylab import * data=loadtxt('raw.dat') mincos=degrees(acos(data[:,0])) minazi=degrees(data[:,1]) minthick=data[:,2]/0.006858 I am not sure why degrees() works, but acos() does not.

Re: IDE tools to debug in Python?

2021-01-27 Thread Paul Bryan via Python-list
My experience with IntelliJ (related to PyCharm): it scans all source files in the project, compiles them, graphs all dependencies, compiles those (if necessary) or inspects their class bytecode, and so on to build a full graph in memory to support showing errors in real time (highlighting in sourc

<    3   4   5   6   7   8