Python eBooks just for $5 each

2014-12-30 Thread Duane Moraes
Get the definitive Python library of eBooks for $5 each now:
http://bit.ly/13Defkj
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Own network protocol

2014-12-30 Thread Florian Schweikert
On 27/12/14 10:56, [email protected] wrote:
> What kind of protocol do you recommend for this? UDP or TCP? Do you recommend 
> the use of frameworks such as twisted?

Take a look at CoAP[1], an open IETF protocol for IoT.
You can make your hardware accessible through "resources", it's restful.
So a simple GET on the led resource returns the status of the led,
POST/PUT a new status to the resource can trigger the led.
Clients can use "observe" to get sttus changes of a resource.
For python2 there is txthings[2], based on twisted.
There is a new fork for python3 based on asyncio called aiocoap[3], with
no extra dependencies if python>=3.4 is used.

Futhermore there is a plugin[4] to access CoAP resources directly in
Firefox.

cheers,
Florian

[1] http://coap.technology/
[2] https://github.com/siskin/txThings/
[3] http://aiocoap.readthedocs.org/en/latest/
[4] https://addons.mozilla.org/en-US/firefox/addon/copper-270430/
-- 
https://mail.python.org/mailman/listinfo/python-list


error installing pyton

2014-12-30 Thread Paolo Cavalletti
Whwn the  installe starts it goes to crsh afere asking if i like the insllation 
for une o alla users of the pc
in attach the report error
Thanks
Paolo-- 
https://mail.python.org/mailman/listinfo/python-list


Glade/Python - positioning main window at startup

2014-12-30 Thread mbg1708
Environment: Fedora 21, Linux 3.17.6, XFCE4 (with one workspace)
Python: 2.7.8
Glade: 3.18.3

Background: the application window developed in Glade is (deliberately) 
somewhat smaller than the desktop.  When the application starts, it starts 
offset from the center of the desktop.  It looks as though the top left corner 
of the application window is centered in the desktop.

Problem: Can anyone help me find settings (either in Glade or elsewhere) which 
will start the application window with the application window center aligned 
with the desktop center?

Code Fragment:

from gi.repository import Gtk
import string
import subprocess

class AddressApp(object):   
def __init__(self):
builder = Gtk.Builder()
builder.add_from_file("mainwin.xml")
builder.connect_signals(self)
self.window= builder.get_object("window")
self.lookup_name   = builder.get_object("entry1")
self.search_result = builder.get_object("treeview1")

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


Re: Glade/Python - positioning main window at startup

2014-12-30 Thread Cousin Stanley

> 
> Problem: Can anyone help me find settings (either in Glade or elsewhere) 
> which will start the application window with the application window center 
> aligned with the desktop center ?

  You might try the following entry
  in your  .glade  file  

 center

-- 
Stanley C. Kitching
Human Being
Phoenix, Arizona
-- 
https://mail.python.org/mailman/listinfo/python-list


Enumerating loggers iin logging module

2014-12-30 Thread jptechnical.co.uk

Hello all,
I've recently started using the logging module and wondered if there was 
a way to enumerate all the Logger objects available as a result of calls 
to "logging.getLogger(name)". Went through the docs and could not spot 
any way of doing this. Have I missed something?


It would have been useful to list the Loggers created in an app as I'd 
made the mistake of writing:

in module A:logging.getLogger("Name")
in module B:logging.getLogger("name.sublogger")

and wondered why messages sent to "name.sublogger" did not get passed to 
the parent handler in "Name". A list of of available loggers would have 
quickly shown the error of my ways.


I'm using Python 2.7.8

Any help appreciated,
Regards
John
--
https://mail.python.org/mailman/listinfo/python-list


Re: Enumerating loggers iin logging module

2014-12-30 Thread Tim Chase
On 2014-12-30 18:42, jptechnical.co.uk wrote:
> I've recently started using the logging module and wondered if
> there was a way to enumerate all the Logger objects available as a
> result of calls to "logging.getLogger(name)". Went through the docs
> and could not spot any way of doing this. Have I missed something?
> 
> It would have been useful to list the Loggers created in an app as
> I'd made the mistake of writing:
> in module A:logging.getLogger("Name")
> in module B:logging.getLogger("name.sublogger")
> 
> and wondered why messages sent to "name.sublogger" did not get
> passed to the parent handler in "Name". A list of of available
> loggers would have quickly shown the error of my ways.

While it may involve reaching into the objects may or may not be
blessed, the following seems to work for me in Py2.7:

  >>> import logging
  >>> # add a bunch of loggers and sub-loggers
  >>> print logging.Logger.manager.loggerDict.keys()

-tkc



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


Re: Enumerating loggers iin logging module

2014-12-30 Thread Chris Angelico
On Wed, Dec 31, 2014 at 8:24 AM, Tim Chase
 wrote:
> While it may involve reaching into the objects may or may not be
> blessed, the following seems to work for me in Py2.7:
>
>   >>> import logging
>   >>> # add a bunch of loggers and sub-loggers
>   >>> print logging.Logger.manager.loggerDict.keys()

Works in 3.5, too, aside from trivialities:

$ python3
Python 3.5.0a0 (default:1c51f1650c42+, Dec 29 2014, 02:29:06)
[GCC 4.7.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import logging
>>> logging.getLogger("Name")

>>> logging.getLogger("name.sublogger")

>>> logging.Logger.manager.loggerDict
{'name.sublogger': , 'Name':
, 'name':
}

I'd say this is fine for debugging with.

ChrisA
-- 
https://mail.python.org/mailman/listinfo/python-list


Python 3.4.2 64-bit Installer

2014-12-30 Thread Toni Bajer
When I try to run the Python 3.4.2 64-bit Installer on Windows 7 it gets about 
90% through and then a new box pops up with the following message...

There is a problem with this Windows Installer package.  A program required for 
this install to complete could not be run.  Contact your support personnel or 
package vendor.

It then rolls back the install.

Could you check the Python 3.4.2 64-bit Installer to see that it is in fact 
complete?!?  It has been this way since October when this installer became 
available.  I had no problem installing the 32 bit version, nor did I have a 
problem when installing either the 32 or 64 bit versions of Python 2.7.9.

Thanks.

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


Re: Python 3.4.2 64-bit Installer

2014-12-30 Thread MRAB

On 2014-12-30 22:45, Toni Bajer wrote:

When I try to run the Python 3.4.2 64-bit Installer on Windows 7 it gets
about 90% through and then a new box pops up with the following message...

There is a problem with this Windows Installer package.  A program
required for this install to complete could not be run.  Contact your
support personnel or package vendor.

It then rolls back the install.

Could you check the Python 3.4.2 64-bit Installer to see that it is in
fact complete?!?  It has been this way since October when this installer
became available.  I had no problem installing the 32 bit version, nor
did I have a problem when installing either the 32 or 64 bit versions of
Python 2.7.9.


FWIW, I've been using Python 3.4.2 64-bit on Windows 8.1 since October.
--
https://mail.python.org/mailman/listinfo/python-list


Re: Python 3.4.2 64-bit Installer

2014-12-30 Thread Terry Reedy

On 12/30/2014 7:21 PM, MRAB wrote:

On 2014-12-30 22:45, Toni Bajer wrote:

When I try to run the Python 3.4.2 64-bit Installer on Windows 7 it gets
about 90% through and then a new box pops up with the following
message...

There is a problem with this Windows Installer package.  A program
required for this install to complete could not be run.  Contact your
support personnel or package vendor.

It then rolls back the install.

Could you check the Python 3.4.2 64-bit Installer to see that it is in
fact complete?!?  It has been this way since October when this installer
became available.  I had no problem installing the 32 bit version, nor
did I have a problem when installing either the 32 or 64 bit versions of
Python 2.7.9.


FWIW, I've been using Python 3.4.2 64-bit on Windows 8.1 since October.

ditto.  Re-download and uninstall and previous 3.4 install.

--
Terry Jan Reedy

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


Re: ~~> FACIAL CARE <~~

2014-12-30 Thread hamza20461
Photofacials BBL
We use Sciton's BBL for the treatment of blood vessels , pigment spots and 
stimulate collagen production. BBL Fotofacial is a new, non-invasive approach 
to skin rejuvenation. The procedure has the advantage of improving skin tone 
and surface defects associated with aging and photodamage. This procedure is 
ideal for any part of the face, neck, chest and hands with skin redness, 
telangiectasia (small "spider" veins) or brown spots. It is also well known as 
an IPL or FotoFacial treatment. This laser also works well for patients who 
have  Rosacea.  Rosacea is a skin condition that leaves people with redness / 
flushing of the face that comes from dilated blood vessels. 
See more at:-> http://www.dermatologi.no/laserbehandling-photofacial-bbl.html
http://www.dermatologi.no/
-- 
https://mail.python.org/mailman/listinfo/python-list