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
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
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
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
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
>
>
>
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
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
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
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
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
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,
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
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
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
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
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
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
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
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
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
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
[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
[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?
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
[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
[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
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 <
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
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
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
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
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,
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
= 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
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,
>
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
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
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
deas why
this is?
--
Thanks!
Bryan
--
http://mail.python.org/mailman/listinfo/python-list
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,
>>
>
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
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 \
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.
&
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
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
>
>
Best regards,
Thank you,
Bryan Cabrera Ramirez
--
https://mail.python.org/mailman/listinfo/python-list
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
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
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?
>
>
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
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
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
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.
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
701 - 754 of 754 matches
Mail list logo