Re: Python-list Digest, Vol 108, Issue 248

2012-11-28 Thread support

Message ignored: Did not match any rules

-Original Message-
Subject: Python-list Digest, Vol 108, Issue 248
To: python-list@python.org
From: python-list-requ...@python.org

Send Python-list mailing list submissions to
python-list@python.org

To subscribe or unsubscribe via the World Wide Web, visit
http://mail.python.org/mailman/listinfo/python-list
or, via email, send a message with subject or body 'help' to
python-list-requ...@python.org

You can reach the person managing the list at
python-list-ow...@python.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Python-list digest..."
Today's Topics:

  1. #python archives? (Steven D'Aprano)
  2. Re: Does os.getcwd() and os.curdir have the same effect ? (iMath)
  3. Re: Does os.getcwd() and os.curdir have the same effect ? (iMath)
  4. Re: python application file format (Dieter Maurer)
  5. ANN: eGenix PyRun - One file Python Runtime 1.1.0
 (eGenix Team: M.-A. Lemburg)
  6. Re: Memory usage per top 10x usage per heapy
 (bryanjugglercryptograp...@yahoo.com)
  7. Re: Memory usage per top 10x usage per heapy
 (bryanjugglercryptograp...@yahoo.com)
  8. Module baldy compiled to pyc? (Laszlo Nagy)
  9. Re: Article on the future of Python (Serhiy Storchaka)
--
http://mail.python.org/mailman/listinfo/python-list
--
http://mail.python.org/mailman/listinfo/python-list


Re: best text editor for programming Python on a Mac

2016-06-17 Thread support


use notepad++
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Using python to convert PDF document to MSWord documents

2005-01-04 Thread support
You can use "pdf to word", it can help you to batch convert pdf to word
or text at one time, keeping source layout, and Standalone software, MS
Word, Adobe Acrobat and Reader NOT required! and you can get more
information from
http://www.convertzone.com/net/cz-PDF%20to%20Word-1-1.htm.

ConvertZone Support team
ConvertZone Software Co,.ltd
http://www.convertzone.com
[EMAIL PROTECTED]


ConvertZone provides office(PDF, Word, Excel, PowerPoint, AutoCAD etc),
video(DVD, VCD, SVCD etc), audio(MP3, WAV, MIDI etc), image(JPG, GIF,
TIF, BMP etc) file converter.


-- 
http://mail.python.org/mailman/listinfo/python-list


RE: Python-list Digest, Vol 35, Issue 2

2006-07-31 Thread support
This is an automated response.

Thank you for contacting the Technical Support team at The MathWorks Ltd.  A 
technical support representative will be contacting you within 1 business day.

The following information will help us in responding to your request.  If you 
have already provided the information requested below, no further action is 
required.

1) License number, release number, and operating system.  Typing “ver” at the 
MATLAB command prompt will list this information.

2) Exact text of any error message(s) received 

3) All files (M-files, Simulink models, data files) and steps to reproduce the 
issue. If you need to send in an executable or a zip file, please wait until a 
support engineer contacts you.

To provide this information, reply to this message keeping the Thread Id listed 
at the bottom of this message intact.

STUDENT VERSION USERS: If you are a student using the Student Version, please 
note that email and phone support is available for product installation, 
software crashes, or bug reporting.  For all other enquiries, contact your 
lecturer or visit the support web site at http://www.mathworks.co.uk/support/.

If you have any concerns about our technical support services, write to [EMAIL 
PROTECTED]

Technical Support Team
The MathWorks Ltd
Email: [EMAIL PROTECTED]
Tel: 01223 423200
Fax: 01223 423250
http://www.mathworks.co.uk/support

[THREAD ID: 1-2ZFMNJ]

-Original Message-
From: [EMAIL PROTECTED]
Sent: 7/31/2006 6:46:59 PM
To: [EMAIL PROTECTED]
Subject: Python-list Digest, Vol 35, Issue 2   

Send Python-list mailing list submissions to
python-list@python.org

To subscribe or unsubscribe via the World Wide Web, visit
http://mail.python.org/mailman/listinfo/python-list
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Python-list digest..."


-- 
http://mail.python.org/mailman/listinfo/python-list

RE: Python-list Digest, Vol 35, Issue 1

2006-07-31 Thread support
This is an automated response.

Thank you for contacting the Technical Support team at The MathWorks Ltd.  A 
technical support representative will be contacting you within 1 business day.

The following information will help us in responding to your request.  If you 
have already provided the information requested below, no further action is 
required.

1) License number, release number, and operating system.  Typing “ver” at the 
MATLAB command prompt will list this information.

2) Exact text of any error message(s) received 

3) All files (M-files, Simulink models, data files) and steps to reproduce the 
issue. If you need to send in an executable or a zip file, please wait until a 
support engineer contacts you.

To provide this information, reply to this message keeping the Thread Id listed 
at the bottom of this message intact.

STUDENT VERSION USERS: If you are a student using the Student Version, please 
note that email and phone support is available for product installation, 
software crashes, or bug reporting.  For all other enquiries, contact your 
lecturer or visit the support web site at http://www.mathworks.co.uk/support/.

If you have any concerns about our technical support services, write to [EMAIL 
PROTECTED]

Technical Support Team
The MathWorks Ltd
Email: [EMAIL PROTECTED]
Tel: 01223 423200
Fax: 01223 423250
http://www.mathworks.co.uk/support

[THREAD ID: 1-2ZFMI1]

-Original Message-
From: [EMAIL PROTECTED]
Sent: 7/31/2006 6:12:18 PM
To: [EMAIL PROTECTED]
Subject: Python-list Digest, Vol 35, Issue 1   

Send Python-list mailing list submissions to
python-list@python.org

To subscribe or unsubscribe via the World Wide Web, visit
http://mail.python.org/mailman/listinfo/python-list
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Python-list digest..."


-- 
http://mail.python.org/mailman/listinfo/python-list

RE: Python-list Digest, Vol 35, Issue 4

2006-07-31 Thread support
This is an automated response.

Thank you for contacting the Technical Support team at The MathWorks Ltd.  A 
technical support representative will be contacting you within 1 business day.

The following information will help us in responding to your request.  If you 
have already provided the information requested below, no further action is 
required.

1) License number, release number, and operating system.  Typing “ver” at the 
MATLAB command prompt will list this information.

2) Exact text of any error message(s) received 

3) All files (M-files, Simulink models, data files) and steps to reproduce the 
issue. If you need to send in an executable or a zip file, please wait until a 
support engineer contacts you.

To provide this information, reply to this message keeping the Thread Id listed 
at the bottom of this message intact.

STUDENT VERSION USERS: If you are a student using the Student Version, please 
note that email and phone support is available for product installation, 
software crashes, or bug reporting.  For all other enquiries, contact your 
lecturer or visit the support web site at http://www.mathworks.co.uk/support/.

If you have any concerns about our technical support services, write to [EMAIL 
PROTECTED]

Technical Support Team
The MathWorks Ltd
Email: [EMAIL PROTECTED]
Tel: 01223 423200
Fax: 01223 423250
http://www.mathworks.co.uk/support

[THREAD ID: 1-2ZFVQC]

-Original Message-
From: [EMAIL PROTECTED]
Sent: 7/31/2006 8:43:01 PM
To: [EMAIL PROTECTED]
Subject: Python-list Digest, Vol 35, Issue 4   

Send Python-list mailing list submissions to
python-list@python.org

To subscribe or unsubscribe via the World Wide Web, visit
http://mail.python.org/mailman/listinfo/python-list
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Python-list digest..."


-- 
http://mail.python.org/mailman/listinfo/python-list

RE: Python-list Digest, Vol 35, Issue 6

2006-07-31 Thread support
This is an automated response.

Thank you for contacting the Technical Support team at The MathWorks Ltd.  A 
technical support representative will be contacting you within 1 business day.

The following information will help us in responding to your request.  If you 
have already provided the information requested below, no further action is 
required.

1) License number, release number, and operating system.  Typing “ver” at the 
MATLAB command prompt will list this information.

2) Exact text of any error message(s) received 

3) All files (M-files, Simulink models, data files) and steps to reproduce the 
issue. If you need to send in an executable or a zip file, please wait until a 
support engineer contacts you.

To provide this information, reply to this message keeping the Thread Id listed 
at the bottom of this message intact.

STUDENT VERSION USERS: If you are a student using the Student Version, please 
note that email and phone support is available for product installation, 
software crashes, or bug reporting.  For all other enquiries, contact your 
lecturer or visit the support web site at http://www.mathworks.co.uk/support/.

If you have any concerns about our technical support services, write to [EMAIL 
PROTECTED]

Technical Support Team
The MathWorks Ltd
Email: [EMAIL PROTECTED]
Tel: 01223 423200
Fax: 01223 423250
http://www.mathworks.co.uk/support

[THREAD ID: 1-2ZI8BP]

-Original Message-
From: [EMAIL PROTECTED]
Sent: 7/31/2006 11:46:55 PM
To: [EMAIL PROTECTED]
Subject: Python-list Digest, Vol 35, Issue 6   

Send Python-list mailing list submissions to
python-list@python.org

To subscribe or unsubscribe via the World Wide Web, visit
http://mail.python.org/mailman/listinfo/python-list
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Python-list digest..."


-- 
http://mail.python.org/mailman/listinfo/python-list

RE: Python-list Digest, Vol 35, Issue 8

2006-08-01 Thread support
This is an automated response.

Thank you for contacting the Technical Support team at The MathWorks Ltd.  A 
technical support representative will be contacting you within 1 business day.

The following information will help us in responding to your request.  If you 
have already provided the information requested below, no further action is 
required.

1) License number, release number, and operating system.  Typing “ver” at the 
MATLAB command prompt will list this information.

2) Exact text of any error message(s) received 

3) All files (M-files, Simulink models, data files) and steps to reproduce the 
issue. If you need to send in an executable or a zip file, please wait until a 
support engineer contacts you.

To provide this information, reply to this message keeping the Thread Id listed 
at the bottom of this message intact.

STUDENT VERSION USERS: If you are a student using the Student Version, please 
note that email and phone support is available for product installation, 
software crashes, or bug reporting.  For all other enquiries, contact your 
lecturer or visit the support web site at http://www.mathworks.co.uk/support/.

If you have any concerns about our technical support services, write to [EMAIL 
PROTECTED]

Technical Support Team
The MathWorks Ltd
Email: [EMAIL PROTECTED]
Tel: 01223 423200
Fax: 01223 423250
http://www.mathworks.co.uk/support

[THREAD ID: 1-2ZJ107]

-Original Message-
From: [EMAIL PROTECTED]
Sent: 8/1/2006 3:06:04 AM
To: [EMAIL PROTECTED]
Subject: Python-list Digest, Vol 35, Issue 8   

Send Python-list mailing list submissions to
python-list@python.org

To subscribe or unsubscribe via the World Wide Web, visit
http://mail.python.org/mailman/listinfo/python-list
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Python-list digest..."


-- 
http://mail.python.org/mailman/listinfo/python-list

RE: Python-list Digest, Vol 35, Issue 10

2006-08-01 Thread support
This is an automated response.

Thank you for contacting the Technical Support team at The MathWorks Ltd.  A 
technical support representative will be contacting you within 1 business day.

The following information will help us in responding to your request.  If you 
have already provided the information requested below, no further action is 
required.

1) License number, release number, and operating system.  Typing “ver” at the 
MATLAB command prompt will list this information.

2) Exact text of any error message(s) received 

3) All files (M-files, Simulink models, data files) and steps to reproduce the 
issue. If you need to send in an executable or a zip file, please wait until a 
support engineer contacts you.

To provide this information, reply to this message keeping the Thread Id listed 
at the bottom of this message intact.

STUDENT VERSION USERS: If you are a student using the Student Version, please 
note that email and phone support is available for product installation, 
software crashes, or bug reporting.  For all other enquiries, contact your 
lecturer or visit the support web site at http://www.mathworks.co.uk/support/.

If you have any concerns about our technical support services, write to [EMAIL 
PROTECTED]

Technical Support Team
The MathWorks Ltd
Email: [EMAIL PROTECTED]
Tel: 01223 423200
Fax: 01223 423250
http://www.mathworks.co.uk/support

[THREAD ID: 1-2ZJL6R]

-Original Message-
From: [EMAIL PROTECTED]
Sent: 8/1/2006 6:00:26 AM
To: [EMAIL PROTECTED]
Subject: Python-list Digest, Vol 35, Issue 10   

Send Python-list mailing list submissions to
python-list@python.org

To subscribe or unsubscribe via the World Wide Web, visit
http://mail.python.org/mailman/listinfo/python-list
or, via email, send a message with subject or body 'help' to
[EMAIL PROTECTED]

You can reach the person managing the list at
[EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Python-list digest..."


-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Mail Delivery (failure [EMAIL PROTECTED])

2006-10-16 Thread support
Thank you for your email. This is an automatic acknowledgement, and we will 
process your email in one business day.

To shorten your waiting period until your email is answered manually, you have 
the possibility to find a solution on our webpage i.e.

1.) I am unable to register my program I purchased. What is the problem?
It can be resolved by installing the most current version of our products.
FYI: http://www.pdf-convert.com/faq/register.html

2.) PDF-Convert Software Products FAQS:
http://www.pdf-convert.com/support.htm


Thank you for your support!
PDF-Convert Software
http://www.pdf-convert.com



-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ANN: Python GUI development using XULRunner

2008-09-17 Thread support
On Sep 17, 1:21 pm, Todd Whiteman <[EMAIL PROTECTED]> wrote:
> Don Spaulding wrote:
> > On Sep 16, 8:29 pm, Todd Whiteman <[EMAIL PROTECTED]> wrote:
> >> I've put together a tutorial that shows off how to build a GUI
> >> application using XULRunner (same architectural components as Firefox
> >> uses) that can be used in conjunction with the Python programming language.
>
> >> The tutorial covers how to build a Python/XULRunner GUI 
> >> application:http://pyxpcomext.mozdev.org/no_wrap/tutorials/pyxulrunner/python_xul...
>
> > I get to the "Running" step and run into "Couldn't load XPCOM."
>
> > Does this work on x86_64?  Or have I made a rookie mistake?
>
> Hi Don,
>
> A good question. Mozilla only provide 32-bit XulRunner applications by
> default, you you'll need to install the necessary 32-bit compatability
> libraries on your Linux machine, i.e. for Ubuntu it's something like:
> sudo apt-get install ia32-libs ia32-libs-gtk
>
> Then you should be able to run the example. You can check the
> dependencies using something the following commands, there should be no
> missing dependencies:
> $ cd pyxpcom_gui_app/xulrunner
> $ LD_LIBRARY_PATH=. ldd ./xulrunner-bin
>
> It is possible to use a 64-bit version, but you'll need to compile this
> yourself (or find somewhere that provides these x86_64 versions). Note
> that the PythonExt project does not offer Python bindings for x86_64
> either (it's on my todo list), you can compile the PythonExt part
> yourself as well if you need a 64-bit version.
>
> Cheers,
> Todd

Interesting, I'm running Ubuntu Intrepid here, and have both ia32-libs
and ia32-libs-gtk installed.

ldd shows that I'm missing the following libs, even though the proper
packages are installed, and the files show up in /usr/lib.

libxcb-render-util.so.0 => not found
libxcb-render.so.0 => not found

There's also /usr/lib/libxcb-render.so.0.0.0 and the same for render-
util, so I wonder if that could be part of the problem?


Don

/me never knew how to get out of DLL hell on Windows either  ;-)
--
http://mail.python.org/mailman/listinfo/python-list


web

2006-03-28 Thread support
Hello, 2ExtremeStudios.com would like to offer you a great deal on a
brand new website for your business.
We invite you to visit www.2ExtremeStudios.com, we offer business
information site design and
e-store integration, as well as other services.


Thanks for your time,
Daniel N.
Phone. 1.416.834.1592
e-mail. [EMAIL PROTECTED]
url. http://2ExtremeStudios.com

-- 
http://mail.python.org/mailman/listinfo/python-list


Linux compatibility

2012-11-19 Thread EDI Support
Hi All,

I would like know if Python  2.4.3 will be compatible with Linux RHEL 5.5 or 
6.1?

Thanks 
Tony
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Linux compatibility

2012-11-20 Thread EDI Support
On Monday, November 19, 2012 11:44:37 AM UTC-5, EDI Support wrote:
> Hi All, I would like know if Python 2.4.3 will be compatible with Linux RHEL 
> 5.5 or 6.1? Thanks Tony

Thanks everyone for your replies. To clarify, We would like to run a Proof of 
concept - that our current version 2.4.3 will run without any application or OS 
issues on RHEL 6.1.
-- 
http://mail.python.org/mailman/listinfo/python-list


Installation Guide

2005-03-12 Thread Online Support


Hello, 
 
I'm in critical need to install Python Imaging Library on my linux/cpanel server. I'm not very experienced and I almost always have to use instalation guides. I have downloaded the software, unzipped it, and now I think I just need to install it somehow. Are there files that need to be modified first? I think there is a file called setup.py but I'm not sure how I can run that file. 
 
I would really appreciate your reply, or if you could point me to an installation giude online for PIL
 
Best Regards,
- Kevin
		Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site! -- 
http://mail.python.org/mailman/listinfo/python-list

Re: problem With Psyco on Wingide mac

2008-01-21 Thread Wingware Support
Arash Arfaee wrote:
> I am trying to use psyco with wingide on mac. when I open Mac Python
> shell I can import psyco, but not inside the wingide. Even python
> shell on wingide cannot import psyco.
> Can anybody help me to solvethis problem?

I suspect Wing is finding a different Python installation than you
want or expect it to.  In Project Properties, you can set Python
Executable to change this.

Note, BTW, that running in the debugger w/ psyco may skip breakpoints
in optimized code, or may not work at all.

Hope that's helpful.

- Stephan
-- 
http://mail.python.org/mailman/listinfo/python-list


Serving another web site which requires authentication

2008-03-24 Thread hasnihon . support
Hi,

I need your suggestions about the topic.
Actually, I'm not sure where to start but basically, I want to make
something like;

(I have an account on a site which requires log-in)
- I'll be logged-in to that site with my account in my server.
- And when a user connects to my site, I'll forward him/her to that
  site, using my account even if he/she doesn't have an account
  on that site...

probably, I need to develop a proxy to do this, but I'm not sure...
(I use python + django)

I really appriciate your ideas.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Serving another web site which requires authentication

2008-03-24 Thread hasnihon . support
Hi binaryj,

Yeah I feel lucky, thanks...
Well, actually, I want my users to be able to see the auction
information about some vehicles.
It's a Japanese site (https://www.iauc.co.jp/)

I've no experience about the proxy staff, but when I googled I found;
- Twisted
- pyCurl

but, I don't know how to all the proxy thing... especially, serving
the password protected
area of the site..

hoping to feel lucky again :)


On 24 Mart, 23:01, binaryj <[EMAIL PROTECTED]> wrote:
> ur in luck i am an expert at this!
> tell me the details , site name etc
>
> you would have to proxy everything, basically the urls in the copied
> page have to be changed to point to ur site.
>
> its highly possible. a minor adjustment to ur urlconf and it will work.

-- 
http://mail.python.org/mailman/listinfo/python-list


RE: Porn Addiction Solutions?

2008-10-08 Thread Support Desk
I got a solution, cutt it off, and then Kill yourself.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 08, 2008 2:30 PM
To: python-list@python.org
Subject: Re: Porn Addiction Solutions?

On Oct 8, 3:07 pm, [EMAIL PROTECTED] wrote:
> Help, I'm addicted to porn. I've been spending a lot of time
> downloading hardcore porn and masturbating to it. It's ruining my
> life. I just found out that one of these sites somehow hacked my card
> and rang up $5K in charges which they won't even refund me. Even with
> that I haven't stopped my habit and it's only getting worse. How can I
> end this addiction?
>
> Any suggestions?

You need to install a porn filter on your computer. Don't ever surf
unprotected. A good filter program is Optenet PC which you can get at
optenetpc.com.

Be sure to change the password to something you won't remember so that
you won't be tempted to circumvent the filter.

You have made the first step by recognizing excessive pornography use
is a problem in your life. Now you need to change your habits. Use the
filter as a first line of defense to block access to this material
from your computer. Then look at how you can alter the factors that
lead to this behavior.

See these tips:

"Change routines and environments that lead to pornography usage.
Avoid high risk situations."

"Learn new ways of coping with strong feelings like anxiety,
loneliness, anger, depression, and boredom."

"Identify activities that can help you relax, enjoy yourself, and feel
refreshed."

From:

http://www.utdallas.edu/counseling/selfhelp/porn-addiction.html

You can conquer this thing. Let us know how you make out.

Regards,

Mike


--
http://mail.python.org/mailman/listinfo/python-list


RE: Porn Addiction Solutions?

2008-10-08 Thread Support Desk
Oh in that case she can email me, I got lots of porn.

-Original Message-
From: Dotan Cohen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 08, 2008 3:15 PM
To: Support Desk
Cc: [EMAIL PROTECTED]; python-list@python.org
Subject: Re: Porn Addiction Solutions?

2008/10/8 Support Desk <[EMAIL PROTECTED]>:
> I got a solution, cutt it off, and then Kill yourself.
>

Cut what off? The OP is female.

-- 
Dotan Cohen

http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת

ä-ö-ü-ß-Ä-Ö-Ü

--
http://mail.python.org/mailman/listinfo/python-list


account balance checker

2008-10-16 Thread Support Desk
Hello all, 

I was wondering if it would be possible to make a script to grab my
balance account balance a few times a day without having to login every
time. I know I can use the urlib2 library, but not sure how to go about
filling in the forms and submitting them. BOA has a mobile site that is
pretty simple.  Anyone else use Bank of America and would be interested in
this. This is not for anything illegal, just for me to prevent overdrafting
my account 

https://sitekey.bankofamerica.com/sas/signonScreen.do?isMobileDevice=true



y =
urllib.urlopen('https://sitekey.bankofamerica.com/sas/signonScreen.do?isMobl
eDevice=true',urllib.urlencode({'onlineID':'MYONLLINEID'})).readlines()

--
http://mail.python.org/mailman/listinfo/python-list


RE: account balance checker

2008-10-16 Thread Support Desk
I was also looking at the ClientForm Library
http://wwwsearch.sourceforge.net/ClientForm/

 which can get me past the first username form, but I noticed it then goes
to a challenge question form and im not sure how to take the resulting for
and resubmit it with new information and then resubmit the resulting form
with the password

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Chris
Rebert
Sent: Thursday, October 16, 2008 10:15 AM
To: Support Desk
Cc: python-list@python.org
Subject: Re: account balance checker

You'd probably have to use something like mechanize
(http://wwwsearch.sourceforge.net/mechanize/) to fill out the forms,
but if BofA's website uses Javascript at all, you're probably out of
luck.

Cheers,
Chris
-- 
Follow the path of the Iguana...
http://rebertia.com

On Wed, Oct 15, 2008 at 8:09 AM, Support Desk
<[EMAIL PROTECTED]> wrote:
> Hello all,
>
>I was wondering if it would be possible to make a script to grab my
> balance account balance a few times a day without having to login every
> time. I know I can use the urlib2 library, but not sure how to go about
> filling in the forms and submitting them. BOA has a mobile site that is
> pretty simple.  Anyone else use Bank of America and would be interested in
> this. This is not for anything illegal, just for me to prevent
overdrafting
> my account
>
> https://sitekey.bankofamerica.com/sas/signonScreen.do?isMobileDevice=true
>
>
>
> y =
>
urllib.urlopen('https://sitekey.bankofamerica.com/sas/signonScreen.do?isMobl
> eDevice=true',urllib.urlencode({'onlineID':'MYONLLINEID'})).readlines()
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

--
http://mail.python.org/mailman/listinfo/python-list


RE: Web crawler on python

2008-10-27 Thread Support Desk


-Original Message-
From: James Mills [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 26, 2008 5:26 PM
To: sonich
Cc: python-list@python.org
Subject: Re: Web crawler on python

On Mon, Oct 27, 2008 at 6:54 AM, sonich <[EMAIL PROTECTED]> wrote:
> I need simple web crawler,
> I found Ruya, but it's seems not currently maintained.
> Does anybody know good web crawler on python or with python interface?

Simple, but  it works. Extend it all you like.

http://hg.softcircuit.com.au/index.wsgi/projects/pymills/file/330d047ff663/e
xamples/spider.py

$ spider.py --help
Usage: spider.py [options] 

Options:
  --version show program's version number and exit
  -h, --helpshow this help message and exit
  -q, --quiet   Enable quiet mode
  -l, --links   Get links for specified url only
  -d DEPTH, --depth=DEPTH
Maximum depth to traverse

cheers
James

-- 
--
-- "Problems are solved by method"


--
http://mail.python.org/mailman/listinfo/python-list


Capture Keystrokes from a USB Wireless Keyboard.

2009-02-27 Thread Support Desk


Does anybody know of a way to capture keystrokes form a wireless USB
keyboard using python?

--
http://mail.python.org/mailman/listinfo/python-list


RE: Capture Keystrokes from a USB Wireless Keyboard.

2009-02-27 Thread Support Desk
Thanks, I'm looking for something I can integrate into a simple game I'm
working on that will run in Linux. 

-Original Message-
From: Shane Geiger [mailto:sgei...@councilforeconed.org] 
Sent: Friday, February 27, 2009 9:09 AM
To: Support Desk
Cc: python-list@python.org
Subject: Re: Capture Keystrokes from a USB Wireless Keyboard.

Here's one option:

http://pykeylogger.sourceforge.net/wiki/index.php/PyKeylogger:FAQ




Support Desk wrote:
> Does anybody know of a way to capture keystrokes form a wireless USB
> keyboard using python?
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>   


-- 
Shane Geiger, IT Director
Council For Economic Education / www.councilforeconed.org
sgei...@councilforeconed.org  / 402-438-8958

Teaching Opportunity

--
http://mail.python.org/mailman/listinfo/python-list


RE: Scraping a web page

2009-04-07 Thread Support Desk
You could do something like below to get the rendered page.

Import os
site = 'website.com'
X = os.popen('lynx --dump %s' % site).readlines()







-Original Message-
From: Tim Chase [mailto:python.l...@tim.thechases.com] 
Sent: Tuesday, April 07, 2009 7:45 AM
To: Ronn Ross
Cc: python-list@python.org
Subject: Re: Scraping a web page

> f = urllib.urlopen("http://www.google.com";)
> s = f.read()
> 
> It is working, but it's returning the source of the page. Is there anyway
I
> can get almost a screen capture of the page?

This is the job of a browser -- to render the source HTML.  As 
such, you'd want to look into any of the browser-automation 
libraries to hook into IE, FireFox, Opera, or maybe using the 
WebKit/KHTML control.  You may then be able to direct it to 
render the HTML into a canvas you can then treat as an image.

Another alternative might be provided by some web-services that 
will render a page as HTML with various browsers and then send 
you the result.  However, these are usually either (1) 
asynchronous or (2) paid services (or both).

-tkc







--
http://mail.python.org/mailman/listinfo/python-list


RE: Scraping a web page

2009-04-07 Thread Support Desk
If your only interested in the Images, perhaps you want to use wget like:

 

wget -r --accept=jpg,jpeg www.xyz.org

 

or maybe this

 

http://www.vex.net/~x/python_stuff.html

 

BackCrawler <http://www.vex.net/%7Ex/files/backcrawler.zip>  1.1

A crude web spider with only one purpose: mercilessly suck the background
images from all web pages it can find. Understands frames and redirects,
uses MD5 to elimate duplicates. Need web page backgrounds? This'll get lots
of them. Sadly, most are very tacky, and Backcrawler can't help with that.
Requires Threads.

 

 

  _  

From: Ronn Ross [mailto:ronn.r...@gmail.com] 
Sent: Tuesday, April 07, 2009 9:37 AM
To: Support Desk
Subject: Re: Scraping a web page

 

This works great, but is there a way to do this with firefox or something
similar so I can also print the images from the site? 

On Tue, Apr 7, 2009 at 9:58 AM, Support Desk 
wrote:

You could do something like below to get the rendered page.

Import os
site = 'website.com'
X = os.popen('lynx --dump %s' % site).readlines()








-Original Message-
From: Tim Chase [mailto:python.l...@tim.thechases.com]
Sent: Tuesday, April 07, 2009 7:45 AM
To: Ronn Ross
Cc: python-list@python.org
Subject: Re: Scraping a web page

> f = urllib.urlopen("http://www.google.com";)
> s = f.read()
>
> It is working, but it's returning the source of the page. Is there anyway
I
> can get almost a screen capture of the page?

This is the job of a browser -- to render the source HTML.  As
such, you'd want to look into any of the browser-automation
libraries to hook into IE, FireFox, Opera, or maybe using the
WebKit/KHTML control.  You may then be able to direct it to
render the HTML into a canvas you can then treat as an image.

Another alternative might be provided by some web-services that
will render a page as HTML with various browsers and then send
you the result.  However, these are usually either (1)
asynchronous or (2) paid services (or both).

-tkc








 

--
http://mail.python.org/mailman/listinfo/python-list


RE: Open source web crawler with mysql integration

2009-04-10 Thread Support Desk
Sounds Interesting. When its done would you care to share it?

Sincerely,
Michael H.
 
-Original Message-
From: Philip Semanchuk [mailto:phi...@semanchuk.com] 
Sent: Thursday, April 09, 2009 9:46 PM
To: Python
Subject: Re: Open source web crawler with mysql integration


On Apr 9, 2009, at 7:37 PM, Daniel Fetchinson wrote:

>> I'm looking for a crawler that can spider my site and toss the  
>> results
>> into mysql so, in turn, that database can be indexed by Sphinx  
>> Search.
>>
>> Since I don't want to reinvent the wheel, is anyone aware of any open
>> source projects or code snippets that can already handle this?
>
> Have a look at http://nikitathespider.com/python/


As the author of Nikita, I can say that (a) she used Postgres and (b)  
the code wasn't open sourced except for a couple of small parts. The  
service is now defunct. It wasn't making money. Ideally I'd like to  
open source the code one day, but it would take a lot of documentation  
work to make it installable by others, and I won't have the time to do  
that for the foreseeable future.

At the URL provided there's a nice module for parsing robots.txt files  
(better than the one in the standard library IMHO) but that's about it.

FYI, I wrote my spider in Python because I couldn't find a decent one  
written in Python. There's Nutch, but that's not Python (Java I think).

Good luck
Philip



--
http://mail.python.org/mailman/listinfo/python-list


regex help

2008-06-03 Thread Support Desk
I am trying to put together a regular expression that will rename users
address books on our server due to a recent change we made.  Users with
address books user.abook need to be changed to [EMAIL PROTECTED] I'm
having trouble with the regex. Any help would be appreciated.

 

-Mike

--
http://mail.python.org/mailman/listinfo/python-list

RE: regex help

2008-06-03 Thread Support Desk
That’s it exactly..thx

-Original Message-
From: Reedick, Andrew [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 03, 2008 9:26 AM
To: Support Desk
Subject: RE: regex help

The regex will now skip anything with an '@'in the filename on the
assumption it's already in the correct format.  Uncomment the os.rename line
once you're satisfied you won't mangle anything.


import glob
import os
import re


for filename in glob.glob('*.abook'):
newname = filename
newname = re.sub(r'[EMAIL PROTECTED]', '@domain.com.abook', filename)
if filename != newname:
print "rename", filename, "to", newname
    #os.rename(filename, newname)



> -Original Message-
> From: Support Desk [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2008 10:07 AM
> To: Reedick, Andrew
> Subject: RE: regex help
> 
> Thx for the reply,
> 
> I would first have to list all files matching user.abook then rename
> them to
> [EMAIL PROTECTED] something like Im still new to python and haven't
> had
> much experience with the re module
> 
> import os
> import re
> 
> emails = os.popen('ls').readlines()
> for email in emails:
> print email, '-->',
> print re.findall(r'\.abook$', email)
> 
> 
> 
> -Original Message-
> From: Reedick, Andrew [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, June 03, 2008 8:52 AM
> To: Support Desk; python-list@python.org
> Subject: RE: regex help
> 
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]
> > On Behalf Of Support Desk
> > Sent: Tuesday, June 03, 2008 9:32 AM
> > To: python-list@python.org
> > Subject: regex help
> >
> > I am trying to put together a regular expression that will
> > rename users address books on our server due to a recent
> > change we made.  Users with address books user.abook need
> > to be changed to [EMAIL PROTECTED] I'm having trouble
> > with the regex. Any help would be appreciated.
> 
> 
> import re
> 
> emails = ('foo.abook', 'abook.foo', 'bob.abook.com', 'john.doe.abook')
> 
> for email in emails:
>   print email, '-->',
>   print re.sub(r'\.abook$', '@domain.com.abook', email)
> 
> 
> 
> *
> 
> The information transmitted is intended only for the person or entity
> to
> which it is addressed and may contain confidential, proprietary, and/or
> privileged material. Any review, retransmission, dissemination or other
> use
> of, or taking of any action in reliance upon this information by
> persons or
> entities other than the intended recipient is prohibited. If you
> received
> this in error, please contact the sender and delete the material from
> all
> computers. GA623
> 
> 


--
http://mail.python.org/mailman/listinfo/python-list


Re: Exit from os.chroot()

2008-06-04 Thread support . intranet
On 4 Giu, 17:08, Wolfgang Draxinger <[EMAIL PROTECTED]>
wrote:
> support.intranet wrote:
> > Hello! I'm writing a small script and I need to call the
> > os.chroot function. The problem is, a few lines below I need to
> > call a program in /usr/bin. Is there a way to exit from the
> > chroot, or to limit the chroot to a single function or thread?
> > Thanks in advance
>
> No, chroot applies to the whole process and once applied it can't
> be reverted. Otherwise the whole idea of chroot being a FS jail
> would not work.
>
> So you need some programs in your chroot: Then put a directory
> usr/bin into the chroot directory and bind the system's /usr/bin
> there:
>
> mount --bind /usr/bin $chroot/usr/bin
>
> The same has to be done with all library stuff. Another option
> would be to place a statically linked busybox and it's
> subprogram links into the chroot
>
> Wolfgang Draxinger
> --
> E-Mail address works, Jabber: [EMAIL PROTECTED], ICQ: 134682867

Thanks! I'll try the bind way
--
http://mail.python.org/mailman/listinfo/python-list


regex help

2008-06-30 Thread Support Desk
Hello, 
   I am working on a web-app, that querys long distance numbers from a
database of call logs. I am trying to put together a regex that matches any
number that does not start with the following. Basically any number that
does'nt start with:

 

281

713

832 

 

or

 

1281

1713

1832 

 

 

is long distance any, help would be appreciated. 

 

--
http://mail.python.org/mailman/listinfo/python-list

variable question

2008-07-09 Thread Support Desk
I am trying to assign a variable using an if / else statement like so:

 

If condition1:

Variable = something

If condition2:

Variable = something else

Do stuff with variable.

 

But the variable assignment doesn't survive outside the if statement. Is
there any better way to assign variables using an if statement or exception
so I don't have to write two almost identical if statements. This is
probably a dumb question.

--
http://mail.python.org/mailman/listinfo/python-list

python lists and newline character

2008-07-28 Thread Support Desk
Hello all,

I am using os.popen to get a list returned of vpopmail users,
something like this

 

x = os.popen('/home/vpopmail/bin/vuserinfo -n -D mydomain.com).readlines()

 

x returns a list, of usernames, and I am trying to append the usernames with
the domain like so

 

for line in x:

print line + '@' + domain

 

but instead of getting 

 

[EMAIL PROTECTED]

 

im getting a newline character like:

user

@domain.com

User

@comain.com

User2

@domain.com

 

 

Is there some way I can get this list without the newline characters being
added. or somehow remove the newline characters. Any help would be
appreciated.

--
http://mail.python.org/mailman/listinfo/python-list

RE: I need a Python mentor

2008-08-08 Thread Support Desk
U...yea

 

 

  _  

From: A. Joseph [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2008 1:44 PM
To: python-list@python.org
Subject: I need a Python mentor

 

How are you? You look good; I will like to meet you. 

Visit my profile and drop some line for me.

 

Abah

 

Hello everybody, i`m new to this list. I was programming in PHP before, so
just of recent I started learning python. I need someone who I can be giving
me some assignment based on the chapter I read in the book, and tell person
will sometime review my code and tell me if it well structured.

 

Can you be my mentor? 

--
http://mail.python.org/mailman/listinfo/python-list

RE: internet searching program

2008-08-11 Thread Support Desk
Google does'nt allow use of their API's anymore, I belive Yahoo has one  or
you could do something like below. 

searchstring = 'stuff here'

x = os.popen('lynx -dump http://www.google.com/search?q=%s' %
searchstring).readlines()


-Original Message-
From: Steven D'Aprano [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 08, 2008 11:22 PM
To: python-list@python.org
Subject: Re: internet searching program

On Fri, 08 Aug 2008 19:59:02 -0700, KillSwitch wrote:

> Is it possible to make a program to search a site on the internet, then
> get certain information from the web pages that match and display them?
> Like, you would put in keywords to be searched for on youtube.com, then
> it would search youtube.com, get the names of the videos, the links, and
> the embed information? Or something like that.

Search the Internet? Hmmm... I'm not sure, but I think Google does 
something quite like that, but I don't know if they do it with a computer 
program or an army of trained monkeys.



-- 
Steven


--
http://mail.python.org/mailman/listinfo/python-list


RE: SSH utility

2008-08-11 Thread Support Desk
What about pexpect?


http://www.noah.org/wiki/Pexpect


-Original Message-
From: Alan Franzoni [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 11, 2008 5:41 AM
To: python-list@python.org
Subject: Re: SSH utility

James Brady was kind enough to say:

> Hi all,
> I'm looking for a python library that lets me execute shell commands
> on remote machines.
> 
> I've tried a few SSH utilities so far: paramiko, PySSH and pssh;
> unfortunately all been unreliable, and repeated questions on their
> respective mailing lists haven't been answered...

Twisted conch seems to be your last chance :-) 

-- 
Alan Franzoni <[EMAIL PROTECTED]>
-
Remove .xyz from my email in order to contact me.
-
GPG Key Fingerprint:
5C77 9DC3 BD5B 3A28 E7BC 921A 0255 42AA FE06 8F3E


--
http://mail.python.org/mailman/listinfo/python-list


RE: internet searching program

2008-08-12 Thread Support Desk

Yes, I believe the custom search allows you to embed a google search into your 
website and customize it, but they no longer allow you to use a script to 
access search results unless you go about it in a roundabout way

http://googlesystem.blogspot.com/2006/12/googles-soap-search-api-no-longer.html


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2008 3:09 AM
To: python-list@python.org
Subject: Re: internet searching program

On 8月12日, 下午1时44分, alex23 <[EMAIL PROTECTED]> wrote:
> On Aug 12, 12:03 am, "Support Desk" <[EMAIL PROTECTED]> wrote:
>
> > Google does'nt allow use of their API's anymore, I belive Yahoo has one
>
> Are you sure?
>
> "Google Custom Search enables you to search over a website or a
> collection of websites. You can harness the power of Google to create
> a search engine tailored to your needs and interests, and you can
> present the results in your website. Your custom search engine can
> prioritize or restrict search results based on websites you specify."
>
> http://code.google.com/apis/customsearch/

http://www.muffler-silencer.com

[url=http://www.muffler-silencer.com]V-4 type Series Muffler[/url]

[url=http://www.muffler-silencer.com]B type Series Muffler[/url]


--
http://mail.python.org/mailman/listinfo/python-list

RE: Hide raw_input text?

2008-08-13 Thread Support Desk

-Original Message-
From: tmallen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 13, 2008 12:26 PM
To: python-list@python.org
Subject: Hide raw_input text?

I'm working on a little FTP project to get comfortable with ftplib.
It's all terminal-based right now, and one issue I'm having is hiding
password input text. I'd like one of two things to happen with this:
Either don't show any characters while I'm typing (like $ su), or
better, a '*' for every character. Is there a way to do this? I'm
planning on building this into a GUI tool using Tkinter or wxPython,
so methods using a secret input for those might be helpful as well ( I
could jump straight into the GUI part).

Thanks!


--
http://mail.python.org/mailman/listinfo/python-list


RE: Adding Icons to my Programs

2008-08-26 Thread Support Desk

-Original Message-
From: Kevin McKinley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 4:37 PM
To: python-list@python.org
Subject: Adding Icons to my Programs

I've been turn my script into executible programs with Py2exe.  Is there a
way to change the icon for the main exe file? 

Thank you, 
Kevin McKinley



  


--
http://mail.python.org/mailman/listinfo/python-list


RE: Adding Icons to my Programs

2008-08-26 Thread Support Desk


Sincerely,
Michael H.
 

-Original Message-
From: Kevin McKinley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 4:37 PM
To: python-list@python.org
Subject: Adding Icons to my Programs

I've been turn my script into executible programs with Py2exe.  Is there a
way to change the icon for the main exe file? 

Thank you, 
Kevin McKinley



  


--
http://mail.python.org/mailman/listinfo/python-list


RE: Adding Icons to my Programs

2008-08-26 Thread Support Desk
Take a look at this:

http://www.velocityreviews.com/forums/t332696-setting-icon-using-py2exe.html


-Original Message-
From: Kevin McKinley [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 26, 2008 4:37 PM
To: python-list@python.org
Subject: Adding Icons to my Programs

I've been turn my script into executible programs with Py2exe.  Is there a
way to change the icon for the main exe file? 

Thank you, 
Kevin McKinley



  


--
http://mail.python.org/mailman/listinfo/python-list


RE: How do I add permanently to Pythons sys.path?

2008-09-16 Thread Support Desk
What about on a unix box?

Sincerely,
Michael H.
 

-Original Message-
From: Aaron "Castironpi" Brady [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 16, 2008 12:49 PM
To: python-list@python.org
Subject: Re: How do I add permanently to Pythons sys.path?

On Sep 16, 10:13 am, cnb <[EMAIL PROTECTED]> wrote:
> >>> sys.path
>
> ['C:\\Python25\\Progs\\NatLangProc', 'C:\\Python25\\Lib\\idlelib', 'C:\
> \Windows\\system32\\python25.zip', 'C:\\Python25\\lib\\site-packages\
> \orange', 'C:\\Python25\\lib\\site-packages\\orange\\OrangeWidgets',
> 'C:\\Python25\\lib\\site-packages\\orange\\OrangeCanvas', 'C:\
> \Python25\\DLLs', 'C:\\Python25\\lib', 'C:\\Python25\\lib\\plat-win',
> 'C:\\Python25\\lib\\lib-tk', 'C:\\Python25', 'C:\\Python25\\lib\\site-
> packages', 'C:\\Python25\\lib\\site-packages\\Numeric', 'C:\\Python25\
> \lib\\site-packages\\PIL']
>
>
>
> Now I have my personal programs in C:/Python25/Progs/
>
> How do I add so that I can just do "import somefile" from anywhere in
> that directory in the interpreter and it can load files from other
> folders in that directory.

Add a file: \Lib\site-packages\locals.pth

with contents, path to the directory you want to add (/python25/progs/)


--
http://mail.python.org/mailman/listinfo/python-list


Regex Help

2008-09-22 Thread Support Desk
Anybody know of a good regex to parse html links from html code? The one I
am currently using seems to be cutting off the last letter of some links,
and returning links like

http://somesite.co

or http://somesite.ph

the code I am using is 


regex = r''

page_text = urllib.urlopen('http://somesite.com')
page_text = page_text.read()

links = re.findall(regex, text, re.IGNORECASE)



--
http://mail.python.org/mailman/listinfo/python-list


RE: Regex Help

2008-09-24 Thread Support Desk

Thanks for the reply, I found out the problem was occurring later on in the
script. The regexp works well.

-Original Message-
From: Lawrence D'Oliveiro [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, September 23, 2008 6:51 PM
To: python-list@python.org
Subject: Re: Regex Help

In message <[EMAIL PROTECTED]>, Support
Desk wrote:

> Anybody know of a good regex to parse html links from html code? The one I
> am currently using seems to be cutting off the last letter of some links,
> and returning links like
> 
> http://somesite.co
> 
> or http://somesite.ph
> 
> the code I am using is
> 
> 
> regex = r''

Can you post some example HTML sequences that this regexp is not handling
correctly?


--
http://mail.python.org/mailman/listinfo/python-list


More regex help

2008-09-24 Thread Support Desk
I am working on a python webcrawler, that will extract all links from an
html page, and add them to a queue, The problem I am having is building
absolute links from relative links, as there are so many different types of
relative links. If I just append the relative links to the current url, some
websites will send it into a never-ending loop. 

What I am looking for is a regexp that will extract the root url from any 
url string I pass to it, such as

'http://example.com/stuff/stuff/morestuff/index.html'

Regexp = http:example.com

'http://anotherexample.com/stuff/index.php

Regexp = 'http://anotherexample.com/

'http://example.com/stuff/stuff/

Regext = 'http://example.com'





--
http://mail.python.org/mailman/listinfo/python-list


RE: More regex help

2008-09-24 Thread Support Desk
Kirk, 

That's exactly what I needed. Thx!
 

-Original Message-
From: Kirk Strauser [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 24, 2008 11:42 AM
To: python-list@python.org
Subject: Re: More regex help

At 2008-09-24T16:25:02Z, "Support Desk" <[EMAIL PROTECTED]> writes:

> I am working on a python webcrawler, that will extract all links from an
> html page, and add them to a queue, The problem I am having is building
> absolute links from relative links, as there are so many different types
of
> relative links. If I just append the relative links to the current url,
some
> websites will send it into a never-ending loop. 

>>> import urllib
>>> urllib.basejoin('http://www.example.com/path/to/deep/page',
'/foo')
'http://www.example.com/foo'
>>> urllib.basejoin('http://www.example.com/path/to/deep/page',
'http://slashdot.org/foo')
'http://slashdot.org/foo'

-- 
Kirk Strauser
The Day Companies


--
http://mail.python.org/mailman/listinfo/python-list


ValueError: Procedure probably called with not enough arguments (8 bytes missing)

2009-08-07 Thread LabJack Support
Hello! I am chasing around a problem that I am having with ctypes and
I am hoping someone can help out. Here is the Python code:

def asynch(self, baudrate, data, idNum=None, demo=0, portB=0,
enableTE=0, enableTO=0, enableDel=0, numWrite=0, numRead=0):
"""
Name: U12.asynchConfig(fullA, fullB, fullC, halfA, halfB,
halfC, idNum=None, demo=None, timeoutMult=1, configA=0, configB=0,
configTE=0)
Args: See section 4.12 of the User's Guide
Desc: Requires firmware V1.1 or higher. This function writes
to the asynch registers and sets the direction of the D lines (input/
output) as needed.

>>> dev = U12()
>>> dev.asynchConfig(96,1,1,22,2,1)
>>> {'idNum': 1}
"""

#Check id number
if idNum is None:
idNum = self.id
idNum = ctypes.c_long(idNum)

# Check size of data
if len(data) > 18: raise ValueError("data can not be larger
than 18 elements")

# Make data 18 elements large
dataArray = [0] * 18
for i in range(0, len(data)):
dataArray[i] = data[i]
print dataArray
dataArray = listToCArray(dataArray, ctypes.c_long)

ecode = staticLib.AsynchConfig(ctypes.byref(idNum), demo,
portB, enableTE, enableTO, enableDel, baudrate, numWrite, numRead,
ctypes.byref(dataArray))

if ecode != 0:print ecode # TODO: Switch this out for
exception

return {"idnum":long, "data":dataArray}

Here is the method signature of the c function:

long Asynch(long *idnum,
long demo,
long portB,
long enableTE,
long enableTO,
long enableDel,
long baudrate,
long numWrite,
long numRead,
long *data)

Thank you in advance,
Sam
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ValueError: Procedure probably called with not enough arguments (8 bytes missing)

2009-08-07 Thread LabJack Support
On Aug 7, 4:16 pm, LabJack Support  wrote:
> Hello! I am chasing around a problem that I am having with ctypes and
> I am hoping someone can help out. Here is the Python code:
>
>     def asynch(self, baudrate, data, idNum=None, demo=0, portB=0,
> enableTE=0, enableTO=0, enableDel=0, numWrite=0, numRead=0):
>         """
>         Name: U12.asynchConfig(fullA, fullB, fullC, halfA, halfB,
> halfC, idNum=None, demo=None, timeoutMult=1, configA=0, configB=0,
> configTE=0)
>         Args: See section 4.12 of the User's Guide
>         Desc: Requires firmware V1.1 or higher. This function writes
> to the asynch registers and sets the direction of the D lines (input/
> output) as needed.
>
>         >>> dev = U12()
>         >>> dev.asynchConfig(96,1,1,22,2,1)
>         >>> {'idNum': 1}
>         """
>
>         #Check id number
>         if idNum is None:
>             idNum = self.id
>         idNum = ctypes.c_long(idNum)
>
>         # Check size of data
>         if len(data) > 18: raise ValueError("data can not be larger
> than 18 elements")
>
>         # Make data 18 elements large
>         dataArray = [0] * 18
>         for i in range(0, len(data)):
>             dataArray[i] = data[i]
>         print dataArray
>         dataArray = listToCArray(dataArray, ctypes.c_long)
>
>         ecode = staticLib.AsynchConfig(ctypes.byref(idNum), demo,
> portB, enableTE, enableTO, enableDel, baudrate, numWrite, numRead,
> ctypes.byref(dataArray))
>
>         if ecode != 0:print ecode # TODO: Switch this out for
> exception
>
>         return {"idnum":long, "data":dataArray}
>
> Here is the method signature of the c function:
>
> long Asynch(    long *idnum,
>                                 long demo,
>                                 long portB,
>                                 long enableTE,
>                                 long enableTO,
>                                 long enableDel,
>                                 long baudrate,
>                                 long numWrite,
>                                 long numRead,
>                                 long *data)
>
> Thank you in advance,
> Sam

Whoops I am sorry. The problem was due to a typo.
-- 
http://mail.python.org/mailman/listinfo/python-list


Searching a large dictionary

2009-09-22 Thread Support Desk
I need help searching a large python dictionary. The dictionary is setup
like so

Key[{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}]

Key2[{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}]

Key3[{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}]



What would be the best way to search for a specific value of item1 and add
all the results to a new dictionary? Thanks
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Searching a large dictionary

2009-09-22 Thread Support Desk
Chris,  Yes that is the correct syntax, thanks

On Tue, Sep 22, 2009 at 5:22 PM, Chris Rebert  wrote:

> On Tue, Sep 22, 2009 at 2:50 PM, Support Desk
>  wrote:
> > I need help searching a large python dictionary. The dictionary is setup
> > like so
> >
> >
> Key[{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}]
> >
> >
> Key2[{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}]
> >
> >
> Key3[{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}]
>
> That is not valid syntax. Do you mean you have a dictionary like this?:
>
> { Key :
> [{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}],
> Key2 :
> [{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}],
> Key3 :
> [{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}]
> }
>
> Cheers,
> Chris
> --
> http://blog.rebertia.com
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Searching Dictionary

2009-09-23 Thread Support Desk
i am trying to search a large Python dictionary for a matching value. The
results would need to be structured into a new dictionary with the same
structure. Thanks.

The structure is like this

{ Key : [{'item':value,'item2':value,'
item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}],
Key2 :
[{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}],
Key3 :
[{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}]
}
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Searching Dictionary

2009-09-23 Thread Support Desk
Sorry for the confusion, Simon, this is almost exactly what I need, but i
need to be able to search for a string in a given value of an item
Here is an example of the dict I am working with

{'252': [{'code': '51679', 'date': '2009-08-01 11:35:38', 'userfield':
'252', 'from': '9876662881', 'to': '19877760406', 'fpld': '"Foobar"
<9855562881>', 'result': 'ANSW', 'sec': 131}, {'code': '51679', 'date':
'2009-08-01 14:33:55', 'userfield': '252', 'from': '9876662881', 'to':
'1980391', 'fpld': '"Foobar" <9876555881>', 'result': 'ANSW', 'sec':
86}]}


252 being the key, I need to be able to search for a string in a given item
, say 777 in the 'to' field so

print wtf(dict,'to','777')

would return

{'252': [{'code': '51679', 'date': '2009-08-01 11:35:38', 'userfield':
'252', 'from': '9876662881', 'to': '19877760406', 'fpld': '"Brochsteins"
<9855562881>', 'result': 'ANSWERED', 'billsec': 131}, {'code': '51679',
'date': '2009-08-01 14:33:55', 'userfield': '252', 'from': '9876662881',
'to': '1980391', 'fpld': '"Brochsteins" <9876555881>', 'result':
'ANSWERED', 'billsec': 86}]}

I hope this makes sense, sorry for not being clear







On Wed, Sep 23, 2009 at 3:34 PM, Simon Forman  wrote:

> On Wed, Sep 23, 2009 at 2:31 PM, Support Desk
>  wrote:
> >
> > i am trying to search a large Python dictionary for a matching value. The
> > results would need to be structured into a new dictionary with the same
> > structure. Thanks.
> >
> > The structure is like this
> >
> > { Key : [{'item':value,'item2':value,'
> >
> item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}],
> > Key2 :
> >
> [{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}],
> > Key3 :
> >
> [{'item':value,'item2':value,'item3':value,'item4':value,'item5':value','item6':value,'item7':value,'item8':value,'item9':value}]
> > }
>
> There is not really enough information to answer your query directly.
> But I'll take a guess anyway.
>
>
> First, let's put your in a piece of code that will actually run (which
> is what you shourd have done in the first place..):
>
>
>
> Key = Key2 = Key3 = value = 42
>
>


> D = {
> Key: [
>{'item':value,
> 'item2':value,
> 'item3':123,
> 'item4':value,
> 'item5':value,
> 'item6':value,
> 'item7':value,
> 'item8':value,
> 'item9':value}
>],
>Key2: [
>{'item':value,
> 'item2':value,
> 'item3':value,
> 'item4':value,
> 'item5':value,
> 'item6':value,
> 'item7':value,
> 'item8':value,
> 'item9':value}
>],
>Key3: [
>{'item':value,
> 'item2':value,
> 'item3':123,
> 'item4':value,
> 'item5':value,
> 'item6':value,
> 'item7':value,
> 'item8':value,
> 'item9':value}
>]
>}
>
> Now let's write a function that (maybe) does what you (kind of) specified:
>
> def wtf(d, match_me):
>result = {}
>for key, value in d.iteritems():
>inner_dict = value[0]
>for inner_key, inner_value in inner_dict.iteritems():
>if inner_value == match_me:
>result[key] = [{inner_key: inner_value}]
>return result
>
>
> And let's try it:
>
> print wtf(D, 42)
>
> That prints:
>
> {42: [{'item': 42}]}
>
>
> Is that what you're asking for?
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Regex trouble

2009-09-24 Thread Support Desk
I am trying to loop over a dictionary  of phone numbers and using a python
regex to determine if they are long distance or local and then adding them
to their appropriate dictionary, My regex doesn't appear to be working
though.
My regex's are these

international__iregex=r'^1?(011|001)'
local__iregex=r'^1?(281|832|713|800)'
#long distance
ld_regex=r'^1?(281|832|713|800|866|877|011|001|888)'

long_distance= {}
My loop:
for key1,value1 in x.items():
if key1 == 'dest':
if re.search(ld_regex,value1):
long_distance[key1] = value1
print long_distance
-- 
http://mail.python.org/mailman/listinfo/python-list


Regex trouble

2009-09-24 Thread Support Desk
I am trying to loop over a dictionary  of phone numbers and using a python
regex to determine if they are long distance or local and then adding them
to their appropriate dictionary, My regex doesn't appear to be working
though.

 

My regex's are these

 

international__iregex=r'^1?(011|001)'  #Anything starting with these
prefixes is International

local__iregex=r'^1?(281|832|713|800)' #anything starting with these are
local

#long distance

ld_regex=r'^1?(281|832|713|800|866|877|011|001|888)'  #any number not
starting with these prefixes is long distance

 

long_distance= {}

My loop:

for key1,value1 in x.items():

if key1 == 'dest':   

if not re.search(ld_regex,value1):

long_distance[key1] = value1

print long_distance

 

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Geo Location extracted from visitors ip address

2013-07-05 Thread Support by Νίκος

Στις 5/7/2013 10:58 μμ, ο/η Tim Chase έγραψε:

On 2013-07-05 22:08, Νίκος Gr33k wrote:

Is there a way to extract out of some environmental variable the
Geo location of the user being the city the user visits out website
from?

Perhaps by utilizing his originated ip address?

Yep.  You can get an 11MB database (17MB uncompressed)

http://dev.maxmind.com/geoip/legacy/downloadable/

which you can use to either populate an existing database with
the .CSV data there, or use the binary data blob in concert with the
Python API

https://github.com/maxmind/geoip-api-python  # Python + C
http://pypi.python.org/pypi/pygeoip/ # pure Python

Just be sure to adhere to the licensing terms.

-tkc






Thank you ill take a look on

http://pypi.python.org/pypi/pygeoip/  # pure Python

i hope it will be easy!


--
Webhost 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Geo Location extracted from visitors ip address

2013-07-08 Thread Support by Νίκος

Στις 5/7/2013 10:28 μμ, ο/η Jerry Hill έγραψε:

On Fri, Jul 5, 2013 at 3:08 PM, Νίκος Gr33k  wrote:

Is there a way to extract out of some environmental variable the Geo
location of the user being the city the user visits out website from?

Perhaps by utilizing his originated ip address?

No, you'd need to take the originating IP address and look it up in a
geolocation database or submit it to a geolocation service and get the
response back from them.  It's not stored in any environment
variables.

I see but i dont know how to do this Geo location lookups.
Can you give me more specific details please?
--
Webhost 
-- 
http://mail.python.org/mailman/listinfo/python-list


[question] Event Handeling Between Two wxPanles in A wxNotebook

2005-03-19 Thread support . services . complaints
Ok i have a wxFrame with a wxNotebook that has two wxPanels, lets call
them panel_1 and panel_2

i have wxTextCtrl in panel_1 (call it panel_1_ctrl) that i want the
user to be able to fill up. I then want the user to be able to click a
button (i.e. create an EVT) and have Value() of panel_1_ctrl be sent a
wxTextCtrl in panel_2.

So can i do this directly, i.e. is there a way to tell panel_2 that
something has happended in panel_1 and to send panel_2 that data? Or do
i have to go through the wxFrame i.e (panel_1 tells wxFrame that EVT
happened, wxFrame then tells panel_2).


in short panel_1_ctrl sends Value() to panel_2_ctrl.



Thanks for any help that you can give me.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Event Handeling Between Two wxPanles in A wxNotebook

2005-03-19 Thread support . services . complaints
well i have gotten to the point that i can send msgs one way by passing
the to panel (panel_2 in example) as  a param to __init__ of the from
panel (panel_1)

-- 
http://mail.python.org/mailman/listinfo/python-list


Multiple python installations mix their sys.prefix

2011-01-24 Thread Tech Support Box
Hi there
I have several versions of python2.4 installed:
- the OS, rpm-installed one in /usr
- Several other versions in /usr/local, installed with --prefix /usr/
local/inst-shared/ --exec-prefix /usr/local/inst/

My problem is when starting one of the versions from /usr/local,
sys.prefix is set as "/usr" instead of the compile-time setting "/usr/
local/inst-shared/" and as a result sys.path contains paths
from /usr, which shouldn't be there.

After strace-ing the pythons from /usr/local and the one from /usr, it
seems that python determines sys.prefix by first looking for os.py in
every path component of the interpreter executable and adding "/lib/
python2.4/os.py" to it (i.e. stat()-ing for /usr/local/inst//
bin/lib/python2.4/os.py, then /usr/local/inst//lib/python2.4/
os.py and so on) and only after it doesn't find os.py in any one of
those paths does it look at the compile-time PREFIX setting. When
doing this, it finds /usr/lib/python2.4/os.py (which belongs to the
python installed at /usr) and determines that sys.prefix is /usr,
which is wrong.

The only fix I could come up with is setting PYTHONHOME before running
python (which should be set differently for every version, and won't
work in scripts using a shebang line) or moving /usr/lib/python2.4 to
a different location (which is plain ugly). Is there a better way to
make python take its compile-time option of prefix and *not* try to
guess at runtime where it should be?

Thanks.
-- 
http://mail.python.org/mailman/listinfo/python-list


about dictionary

2005-11-20 Thread Technical Support of Intercable Co
 >>> b=dict.fromkeys(a)

-- 
http://mail.python.org/mailman/listinfo/python-list