***/
'''
Module Name : alwsqin.py
Author : Chris Anderson
Create Date : 03/10/2023
Description : This module contains the Sq In/MM/CM of leather used
This file is Copyright Anderson Leather Works (c) 2023
'''
/###
I am working on a CUDA python API using ctypes. Within CUDA there are vector
type structs defined (float2, float3, float4, int2, int3, int4, ...), all of
which have an alignment specification (example of how this is specified
https://stackoverflow.com/questions/12778949/cuda-memory-alignment/127
Don't need to persist anything. Possible, or am I just
talking crazy here?
Thanks,
Chris
--
http://mail.python.org/mailman/listinfo/python-list
sqlite worked perfectly, thanks.
--
http://mail.python.org/mailman/listinfo/python-list
sqlite worked perfectly, thanks.
--
http://mail.python.org/mailman/listinfo/python-list
c:\python24\lib on the machine which ran py2exe,
I see decimal.py and decimal.pyc.
Can someone please help with this? I'm supposed to start testing the
program today and I can't seem to move past this first step.
Thanks!!
Chris
--
http://mail.python.org/mailman/listinfo/python-list
That was it.
Thank you so much!
Chris
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
says...
> FYI there is a separate newsgroup for py2exe at
> gmane.comp.python.py2exe. You may want to post
> there also.
>
> Just as a suggestion, put an import decimal at
> the
same script on my gentoo
box at work tommorrow, but really would like to run this script asap.
Any ideas on why it's failing on that python module?
Any ideas greatfully received,
Chris
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Chris wrote:
> > Wonder if anyone can help me?
>
> I very much doubt that, with as little information you gave us.
>
> > I am trying to run a perl script but I keep getting this error:
> >
&g
Hi,
I'm new to python, and I'm trying to write a small python script for a
webpage. The script opens up a file called inventory, reads the
contents, and checks the contents against the data from the form in my
webpage. Now I have to do some slicing to get the name of the form
elements (in this c
This was helpful. After reading this, I realized you can also just add
this atop whatever script imports urllib. Just add after "import
urllib":
# Disable proxy use.
urllib.getproxies = lambda x = None: {}
-Chris
http://www.fetidcascade.com/
--
http://mail.python.org/mailman/listi
I've written some python scripts to handle different tasks on my Windows
network. I would like for them to be accessible via a single web page
(kind of like a dashboard) but have the scripts run on the web server
(also a Windows box).
Can anyone recommend a way (web server / language / method)
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Ifd you want to use standard CGI I've written a CGI user
> authentication/management module called logintools.
>
Would this be preferred (or easier) than using an application server
(ie. Zope or Webware)?
If possible, I think it woul
ly to use urllib instead of urllib2 but am wondering where
the problem is and if there is a workaround (or just my own stupidity)?
Also with urllib I cannot send my own user-agent header as i wanted to do...
thanks for any hint!
chris
--
http://mail.python.org/mailman/listinfo/python-list
Does anyone know of a good standalone implementation of multivariable
polynomials in python?
Thanks,
Chris
--
http://mail.python.org/mailman/listinfo/python-list
rhaps it will be helpful for you.
Chris
--
http://mail.python.org/mailman/listinfo/python-list
then extracts the time and the SNR figure, and writes a line
of a text file.
I reckon it would be useful to many people.
--
Chris
--
http://mail.python.org/mailman/listinfo/python-list
I've been scripting with python for a while now. Basically writing a few
functions and running in the ipython shell. That's been very useful. But the
more I do this the more I see that I'm doing more or less the same thing
over and over again. So its feels like I need to get into class programming
In article <[EMAIL PROTECTED]>,
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes
>Chris, How would a wireless router show a signal to noise ratio?
>Especially if it's providing the signal?
The Netgear DG834 is a wired router.
Its statistics page gives line
In article <[EMAIL PROTECTED]>,
Steven D'Aprano <[EMAIL PROTECTED]> writes
>On Tue, 19 Jul 2005 07:24:19 +0100, Chris wrote:
>> Could anyone write a small program to log the Signal-to-Noise figures
>> for a Netgear DG834 router?
>Are you offering to pay some
Extremely grateful for all the responses. I've pasted them all into a
document and can now read all your valuable ideas together. Even at a first
reading they have already helped clarify my thinking.
Also minor clarifications::
> I'm hoping some of you python
> lamas out there might be able to sh
Hi,
I'm trying to figure out how to submit javascript forms using win32com
in order to complete repetitive processes.
The Webpage Source: (I tried to include only the important stuff)
--
function mainPageOnLoad() {
initLogin();
setEnterToSub
n\t}\n\tsimple { ... }')]
the regex I currently use stops at the first closing } but what I am
looking for is a result as:
[
"outer {
inner1 { ... }
inner2 { ... }
}",
"simple { ... }"
]
is something like that possible?
thanks for any hint
chris
--
http://mail.python.org/mailman/listinfo/python-list
== '__main__':
print __doc__
print "\nFUNCTIONS:\n"
for x in __all__:
print x
exec "print " + x + ".__doc__"
Works but does not seem right using exec for such a task.
any hint would be great!
thanks
chris
--
http://mail.python.org/mailman/listinfo/python-list
Dan Sommers wrote:
> On Sat, 30 Jul 2005 17:04:50 +0200,
> Chris <[EMAIL PROTECTED]> wrote:
>
>
>>hello,
>>I have a small module which only contains some utility functions. when
>>running this standalone I would like to show the module docs a
hello,
thanks for all suggestions,
if __name__ == '__main__':
__name__ = 'MODULENAME'
help(__name__)
does actually work any even shows the modulename it should.
chris
--
http://mail.python.org/mailman/listinfo/python-list
utils being something like a standard for
python (at least that's what I thought) would be really nice for it.
chris
sorry if i totally misunderstood the question...
--
http://mail.python.org/mailman/listinfo/python-list
I use the following when I have an external command to do:
#
def doCommand( cmd,forked=False,runFrom=None ):
"""
Do a command, and return the (stdout+stderr) and the exit status.
This was written to work both on Windows and *nix, and
, re.I)
['1', '2X3']
>>> re.split('x', '1x2X3')
['1', '2X3']
I expected ['1', '2', '3'] but in this case re.I bahaves exactly as not
present at all...
Is that an expected behaviour or a fault?
Running Python 2.4.1 on Windows XP
thanks for any hint
chris
--
http://mail.python.org/mailman/listinfo/python-list
b" as a whole value?
>
> Thanks
> Thierry
>
Simple use the XML Entity for & which is &
a & b
You could use CDATA sections too but they seem to have the effect on
people ignoring that the containing strings are actually literary what
they seem (in this c
Chris wrote:
> Thierry Lam wrote:
>
>> Let's say I have the following xml tag:
>>
>> a & b
>>
>> Currently, an xml parser will treat & as a special character. Does
>> anyone know the special characters to use around the ampersand so th
Peter Otten wrote:
> Chris wrote:
>
>
>> >>> re.split('x', '1x2X3', re.I)
>>['1', '2X3']
>
>
>
>>I expected ['1', '2', '3'] but in this case re.I bahaves exactly as not
>>
Fredrik Lundh wrote:
> Chris <[EMAIL PROTECTED]> wrote:
>
>
>>but more of a basic question following, I was doing the following before:
>>
>>method = 'split' # came from somewhere else of course
>>result = re.__dict__[method].(REGEX, TXT)
&
= In()
in.y = 1
in.s = "abc"
...
out = func(in)
maybe? Just no idea how to deal with the structs in the C extension
module code.
Any tips appreciated.
Thanks,
Chris
--
http://mail.python.org/mailman/listinfo/python-list
Any tips on what the pyrex should look like for my example?
--
http://mail.python.org/mailman/listinfo/python-list
Many thanks Robert. That will be a good starting point.
-Chris
http://auslunch.com/
http://fetidcascade.com/
http://strombergers.com/python/
--
http://mail.python.org/mailman/listinfo/python-list
cdef outputs* o
o = func(i, o)
return o.y
class Inputs:
def __init__(self):
self.x = ""
So there is no explicit memory management going on there as in Robert's
example. Is this ok?
Thanks,
Chris
--
http://mail.python.org/mailman/listinfo/python-list
Mike Meyer wrote:
> Chris <[EMAIL PROTECTED]> writes:
>
>>Fredrik Lundh wrote:
>>
>>>Chris <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>>>but more of a basic question following, I was doing the following before:
>>>>
&
Is there a way to make python create a list of Mondays for a given year?
For example,
mondays = ['1/3/2005','1/10/2005','1/17/2005','1/24/2005',
'1/31/2005','2/7/2005', ... ]
--
http://mail.python.org/mailman/listinfo/python-list
Thanks to everyone for your help!
That fit the need perfectly.
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Is there a way to make python create a list of Mondays for a given year?
>
> For example,
>
> mondays = ['1/3/2005','1/10/2005','1/17/2005','1/24/2005',
> '1/31/2005','2/7
hows some practical
differences between Python and Perl that may be of interest.
-Chris
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> I don't know that you'll find a common approach. I use Subversion for
> version control. For larger projects, I use Eclipse with the Pydev
> plugin for editing, and the Subclipse plugin for talking to Subversion.
> For smaller t
Thank you! That did the trick.
--
http://mail.python.org/mailman/listinfo/python-list
Does anyone else have any Nevow examples?
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> aurora <[EMAIL PROTECTED]> wrote:
>
> > It was discussed in the last Bay Area Python Interest Group meeting.
> >
> > Thursday, February 10, 2005
> > Agenda: Developing Responsive GUI Applicati
Does anyone know of a site(s) that shows examples of what you can do
with Nevow? I'm not necessarily referring to code, but what it can do
over the web. (Something I can show my boss if needed.)
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
>
> There was a request for nevow exam
What is the proper way to use ctypes to access an exported Function in
a dll file on windows? I must be missing something because I get
memory leaks when I use it:
import ctypes
import gc
gc.enable()
gc.set_debug(gc.DEBUG_LEAK)
lib = ctypes.windll.LoadLibrary("H:\lib\mylib.dll")
fn = lib.myfn
f
Is there a preferred method for having different scripts on different
computers communicate with each other?
For example, script A could tell script B that it is done with a certain
process.
I know how to do this using e-mail, but I would like a more direct
method if possible. If my ISP's mail
Why do relative imports cause warnings in PyLint?
A warning like this:
ID:W0403 Relative import 'myPythonFileInTheSameFolder'
When the import is like:
from myPythonFileInTheSameFolder import MyClass
--
http://mail.python.org/mailman/listinfo/python-list
After reading that link I tried to change my imports like this:
" from .myPythonFileInTheSameFolder import MyClass"
Well, this caused an error in PyLint:
Encountered "." at line 1, column 6. Was expecting one of: "or" ...
"and" ... "not" ... "is" ... "in" ... "lambda" ...
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> Gianluca Sartori wrote:
> > Hi guys,
> >
> > What web framework do you suggest to develop with?
>
> I really like CherryPy. It has a very intuitive design. A "directory"
> is an object and the "files" in it are methods. URL variables
a C based module?. is this also the
reason for the unicode unawareness?
thanks
chris
--
http://mail.python.org/mailman/listinfo/python-list
hi,
thanks for all replies, I try if I can at least get the work done.
I guess my problem mainly was the rather mindflexing (at least for me)
coding/decoding of strings...
But I guess it would be really helpful to put the UnicodeReader/Writer
in the docs
thanks a lot
chris
--
http
#######
Any help is greatly appreciated.
Chris
--
http://mail.python.org/mailman/listinfo/python-list
In what directory are the preinstalled python libraries located on a
Linux RH9 machine?
--
http://mail.python.org/mailman/listinfo/python-list
revent the
confirmation dialogs with Outlook's MAPI dll. MS added them in a service
pack as an anti-virus measure, so no work-around. Not all clients show
these anoying dialogs though. Thunderbird definately doesn't.
Unfortunately, I don't have the option of installing Thunderbird.
Chris
Thank you. That's exactly what I needed.
--
http://mail.python.org/mailman/listinfo/python-list
SMTP will depend on
customer requirements and how simple the configuration is.
That pretty much sums it up. Also, since everything is done over IMAP
with Outlook, I don't really have access to an SMTP server.
Chris
--
http://mail.python.org/mailman/listinfo/python-list
ews is that the sent e-mail stays in the
outbox instead of the sent folder. Any suggestions?
Chris
--
http://mail.python.org/mailman/listinfo/python-list
DELETE_AFTER_SUBMIT,1)])
With these changes, the behavior in the outbox is consistent with
sending messages directly from Outlook.
"""
regards
Steve
Actually, I had already found that message. It still doesn't do what
I'm looking for(namely moving sent messages to the Sen
se it for my Java developement and
haven't had any problems with it.
Chris
--
http://mail.python.org/mailman/listinfo/python-list
.)
Okay, I feel dumb now. :)
Chris
--
http://mail.python.org/mailman/listinfo/python-list
What IDE's do y'all recommend for Python? I'm using PythonWin atm, but
I'd like something with more functionality.
Chris
--
http://mail.python.org/mailman/listinfo/python-list
Try WingIDE if you have some money (about 35 E/$ for the personal
version) to spend, it's worth every (euro)cent. But please try SPE
first, maybe that's enough for you.
SPE?
Chris
--
http://mail.python.org/mailman/listinfo/python-list
".
Is that what you're running ?
Doh! No, I'm still running 2.2. Anyways, I managed to do what I needed
using time. Thanks for the help, though.
Chris
--
http://mail.python.org/mailman/listinfo/python-list
ew e-mails at a time, and would
rather not have the user have to click yes for every single one. Does
anyone know a workaround? I know about smtplib, but I would prefer to
simply make what I have work. Thanks.
Chris
--
http://mail.python.org/mailman/listinfo/python-list
ing to learn it and
Python at the same time. :)
Chris
--
http://mail.python.org/mailman/listinfo/python-list
Okay, color me stupid, but what is everyone referencing when they
mention Python 3.0? I didn't see any mention of it on the Python site.
Chris
--
http://mail.python.org/mailman/listinfo/python-list
I'm working on a program in PythonWin. The problem I'm running into is
that after I make a code change, PythonWin doesn't always see it. Has
anyone else had this problem?
Chris
--
http://mail.python.org/mailman/listinfo/python-list
Okay, I searched www.python.org for a date handler and found datetime.
http://www.python.org/dev/doc/devel/lib/module-datetime.html However,
whenever I try to import datetime, I get a No module named datetime
error. What am I missing?
Chris
--
http://mail.python.org/mailman/listinfo/python
Run method of the excel application object...I think), but I
can't figure out how to "install" the VBA macro code into the
spreadsheet to begin with from my Python script.
Any tips appreciated.
Thanks,
Chris
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I posted a while back about a newbie database question and got a
lot of great help here. My script that I am creating has come a long way
(For me!) and almost does what I need it too. I am basicly using a
dictionary to update a access database using an odbc connector. I am ab
Thanks, but the problem is that I need to create the entire Excel
document from scratch, dynamically, via the Python script. I want the
script to add the macro code.
-Chris
--
http://mail.python.org/mailman/listinfo/python-list
This makes sense. Thanks for the ideas.
--
http://mail.python.org/mailman/listinfo/python-list
AIL PROTECTED]"
s.To = "[EMAIL PROTECTED]"
s.Subject = "The subject"
s.Send
... but nothing happens.
What am I doing wrong? Does anyone have some sample code to share with
me please?
Do a search on the list for the thread Fun with Outlook and MAPI.
That'll have your
sure I needed the
conn.commit() as well.
Chris
"Benji York" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Chris wrote:
>> what ever is the last loop through doesn't seem to update the
>> database?
>
> Try a conn.commit() after your loop.
tend to think
that it means that the tuple is mutable. Indeed, it changed!
4) Even more confusing: I had the following strange result:
(with both Python 2.3.3 and 2.4)
>>> t[0]+=[1]
Traceback (most recent call last):
File "", line 1, in ?
TypeError: object doesn't support item assignment
>>> t
([1, 0, 1], [2])
There was an exception, but the list was still changed!?
Chris
--
http://mail.python.org/mailman/listinfo/python-list
Thank you.
Chris
--
http://mail.python.org/mailman/listinfo/python-list
s
since he replied to all my questions ;-)
Chris
--
http://mail.python.org/mailman/listinfo/python-list
http://www.smsprofit.nl/aanmeld.php?ref=78267
--
http://mail.python.org/mailman/listinfo/python-list
The problem I have is as follows:
I have a recursive function b(k)
b(k) = -(A/k**2)*(b(k-2) - b(k-5))
k<0, b(k)=0
k=0, b(k)=1
k=1, b(k)=0
eg. b(2) = -A/4
b(3) = 0
b(4) = A**2/64
note that as k increases b(k) can itself be a sum of terms in powers of A
rather than a single power of A
more of SWIG or is there a simple way to make my C
function fill a list of Python objects?
Regards
Chris
--
http://mail.python.org/mailman/listinfo/python-list
sever.
Anyone have ideas about how I might frame this out?
Thanks in advance,
Chris.
--
https://mail.python.org/mailman/listinfo/python-list
discussion of that anywhere.
Thanks so much,
Chris.
--
https://mail.python.org/mailman/listinfo/python-list
Any ideas about what this might mean?
Running Debian Wheezy on a RaspBerry Pi and collecting data on a dispatch
thread that is reading input on the serial port (connected to xbee series 1).
It happens every few days but it really chokes the program.
Thanks for any tips,
ChrisJ
Exception in
Again, thank you all for your help,
Chris.
On Monday, May 5, 2014 4:05:22 PM UTC-7, Chris Angelico wrote:
> On Tue, May 6, 2014 at 8:37 AM, wrote:
>
> > I'm using a dispatch method to receive and occasionally send data through a
> > serial port on a Raspberry Pi. I thi
this
case I don't know which of my commands has spawned the error.
I can experiment, I suppose, with putting a try/catch around suspected lines of
code...
Thanks,
Chris.
On Thursday, May 15, 2014 9:48:00 PM UTC-7, Gary Herron wrote:
> On 05/15/2014 09:36 PM, ch...@freeranger.com wrote:
>
gi_module modules/mod_wsgi.so
AddHandler wsgi-script .wsgi
WSGIDaemonProcess myproj user=chris threads=3
[root@t-centos1 ~]# ps -ef|grep chris
chris 1201 1199 0 08:47 ?00:00:00 /usr/sbin/httpd
---8<---
#!/usr/bin/python
import get
On 05/25/2014 12:04 PM, alister wrote:
> is your apache server running as root?
> if so it probably should be corrected
One is running as chris, the others as apache:
[root@t-centos1 ~]# ps -ef|grep httpd
root 1199 1 0 08:47 ?00:00:01 /usr/sbin/httpd
chris 1293 1199
Dear All,
I'm trying to read ten 200 MB textfiles into a MySQL MyISAM database
(Linux, ext4). The script output is suddenly stopping, while the Python
process is still running (or should I say sleeping?). It's not in top,
but in ps visible.
Why is it stopping? Is there a way to make it continue,
Dear All,
thanks a lot for your replies.
I've found my mistake. The script output stopped, but the script was
still filling the MySQL table. When I resized the Gnome terminal window
the output continued.
--
Christian
--
https://mail.python.org/mailman/listinfo/python-list
Hi,
On 06/03/2014 12:01 AM, Hisham Mughal wrote:
> plz tell me about books for python
> i am beginner of this lang..
the most important commands are in A Byte of Python [1]. This eBook
isn't sufficient for programming, but it's a nice introduction.
I bought Learning Python from Mark Lutz. It's n
When you declare a dictionary, Python puts it in a different order than
the way you declare it:
>>> stuff = {'\n':'', ':'\n'}
>>> print stuff
{'':'\n', '\n':''}
Is there a way to stop this behavior? I want to process this dictionary
in the order it's in, element by element. I'm running Python 2.3
utput:
from xml.sax import saxutils
import sys
handler = saxutils.XMLGenerator(sys.stdout)
handler.startDocument()
handler.startElement('sometag', {})
handler.characters('')
handler.endElement('sometag')
handler.endDocument()
Produces:
<![CDATA[x&<>xxx]]&
This is a cool product that can produce any number of types of graphs.
Supports Python, as well as lots of other languages. I have used it
with success. There is a free version, as long as you don't mind the
tiny logo they put into each graph.
http://www.advsofteng.com/
-Chris
--
is there a prettier way to do this?
string[:len(string)-1]
thanks!
--
http://mail.python.org/mailman/listinfo/python-list
It's very beautiful. Thanks
jwoolard wrote:
> Chris wrote:
> > is there a prettier way to do this?
> > string[:len(string)-1]
> >
> > thanks!
>
> string[:-1]
>
> Negative indices count from the end of the string! beautiful isn't it?
--
http://mail.python.org/mailman/listinfo/python-list
I want to handle errors for a program i'm building in a specific way,
but I don't want to use try/except/finally because it requires forming
new blocks of code. I want to be able things like this:
a = [2, 423, "brownie", 234.34]
try: a[890]
except IndexError: # I don't use 'finally' here because I
I want to do this because there are several spots in my program where
an error might occur that I want to handle the same way, but I don't
want to rewrite the try..except block again. Is that clearer?
And I meant sys.stderr... sorry 'bout that
Simon Forman wrote:
> Chris wrote:
for i in list_of_i's:
self.i.update(i)
How can this be done (I'm assuming it can be).
thx Chris
--
http://mail.python.org/mailman/listinfo/python-list
implicate_order wrote:
> Greetings,
>
Here's an Excel class I use. I'm afraid I can't recall where I found the
basic class. I have a vague recollection it is due to Mark Hammond,
author of the win32com package. Might have been in win32com demos.
(Whoever the original author is anyway, many thanks
1 - 100 of 17660 matches
Mail list logo