Re: Java is killing me! (AKA: Java for Pythonheads?)

2011-08-12 Thread Billy Earney
Look into jython.  You might be able to run your python code, directly in
java. :)

http://www.jython.org/


On Fri, Aug 12, 2011 at 12:02 PM, kj  wrote:

>
>
>
> *Please* forgive me for asking a Java question in a Python forum.
> My only excuse for this no-no is that a Python forum is more likely
> than a Java one to have among its readers those who have had to
> deal with the same problems I'm wrestling with.
>
> Due to my job, I have to port some Python code to Java, and write
> tests for the ported code.  (Yes, I've considered finding myself
> another job, but this is not an option in the immediate future.)
>
> What's giving me the hardest time is that the original Python code
> uses a lot of functions with optional arguments (as is natural to
> do in Python).
>
> As far as I can tell (admittedly I'm no Java expert, and have not
> programmed in it since 2001), to implement a Java method with n
> optional arguments, one needs at least 2**n method definitions.
> Even if all but one of these definitions are simple wrappers that
> call the one that does all the work, it's still a lot of code to
> wade through, for nothing.
>
> That's bad enough, but even worse is writing the unit tests for
> the resulting mountain of fluffCode.  I find myself writing test
> classes whose constructors also require 2**n definitions, one for
> each form of the function to be tested...
>
> I ask myself, how does the journeyman Python programmer cope with
> such nonsense?
>
> For the sake of concreteness, consider the following run-of-the-mill
> Python function of 3 arguments (the first argument, xs, is expected
> to be either a float or a sequence of floats; the second and third
> arguments, an int and a float, are optional):
>
>   def quant(xs, nlevels=MAXN, xlim=MAXX):
>if not hasattr(xs, '__iter__'):
>return spam((xs,), n, xlim)[0]
>
>if _bad_quant_args(xs, nlevels, xlim):
>raise TypeError("invalid arguments")
>
>retval = []
>for x in xs:
># ...
># elaborate acrobatics that set y
># ...
>retval.append(y)
>
>return retval
>
> My Java implementation of it already requires at least 8 method
> definitions, with signatures:
>
>short[] quant (float[], int, float)
>short[] quant (float[], int   )
>short[] quant (float[],  float)
>short[] quant (float[])
>
>short   quant (float  , int, float)
>short   quant (float  , int   )
>short   quant (float  ,  float)
>short   quant (float  )
>
> Actually, for additional reasons, too arcane to go into, I also
> need four more:
>
>short   quant (Float  , Integer, Float)
>short   quant (Float  , Integer   )
>short   quant (Float  ,  Float)
>short   quant (Float  )
>
> Writing JUnit tests for these methods is literally driving me
> INSANE.
>
> Some advice on implementing and testing functions with optional
> arguments in Java would be appreciated.
>
> TIA!
>
> kj
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: "in house" pypi?

2011-03-24 Thread Billy Earney
Another possible solution, would be to use urlimport
http://pypi.python.org/pypi/urlimport/
if the packages are 100% python (no
c, etc), you could create a single repository, serve that via a web server,
and users could easy import modules without even installing them..

This isn't exactly what you asked for, but depending on your situation,
could be useful.

Hope this helps.

On Thu, Mar 24, 2011 at 6:22 AM, Christian Heimes  wrote:

> Am 24.03.2011 04:19, schrieb Miki Tebeka:
> > Greetings,
> >
> > My company want to distribute Python packages internally. We would like
> something like an internal PyPi where people can upload and easy_install
> from packages.
> >
> > Is there such a ready made solution?
> > I'd like something as simple as possible, without my install headache.
>
> Plain simple solution:
>
>  * configure a host in your apache config and point it to a directory on
> the file system
>  * create directory simple  and turn directory index on for it and all
> its descendants
>  * create a directory for every package and download the files into
> these directories
>
> The download link for e.g. lxml 2.3 should look like
> http://your.pipy.com/simple/lxml/lxml-2.3.tar.gz. Now point run
> "easy_install --index-url http://your.pipy.com/simple lxml==2.3"
>
> Christian
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Brython (Python in the browser)

2013-12-27 Thread billy . earney
Awesome..  Wonderful work!
-- 
https://mail.python.org/mailman/listinfo/python-list


PySchool.net, kickstarter campaign

2014-12-14 Thread Billy Earney
Greetings!

For the past few months, I've been developing a website for educators and
students to learn computer programming (ie, Python).  My first project has
been to create a basic programming environment entirely within a browser.
Students can create, edit, load, save, and execute Python scripts directly
in the browser.This coding environment (or IDE) is somewhat similar to
cloud9, but has education in mind, and thus provides a much simpler
environment for those focused on learning.

To keep things short,  here is the URL pyschool.net if you would be
interested in looking at the website.  This is a working application.  Feel
free to use it. There is also a gallery where you can view and execute
examples (many of these come off of the brython.info website,  which helps
power the pyschool.net app).   This is not written in stone.  If educators
make it clear that some other environment is needed, I'm willing to adjust.

I've decided to try to kick this into high gear (it took several months of
my free time (nights/weekends) to get the site where it is). I'd like to
work on this full time, and greatly enhance the site, add tutorials,
(compile existing web resources) and also look at adding some K-4 level
computing resources like blockly (https://code.google.com/p/blockly/)  and
tools to help educators and students.   To do this, I've created a
kickstarter campaign.

The main directives of PySchool.net is to be free for educators and
students forever, to reduce the technological burdens of hosting
programming classes,  and help compile resources to help produce lesson
plans, etc.

Here's the campaign link:

https://www.kickstarter.com/projects/2030013583/pyschoolnet-advancing-python-in-the-classroom

Feel free to check it out.. :)

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


Re: Python console rejects an object reference, having made an object with that reference as its name in previous line

2014-12-14 Thread Billy Earney
It looks like the last line (producer_entries...) is not indented at the
same extent as the previous line.  Maybe this is causing the issue?

On Sun, Dec 14, 2014 at 10:15 AM, Simon Evans 
wrote:
>
> Dear Python programmers,
> Having input the line of code in text:
> cd Soup
> to the Windows console, and having put the file 'EcologicalPyramid.html'
> into the Directory 'Soup', on the C drive, in accordance with instructions
> I input the following code to the Python console, as given on page 30 of
> 'Getting Started with Beautiful Soup':
>
> 
> Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)]
> on win
> 32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from bs4 import BeautifulSoup
> >>> with open("ecologicalpyramid.html","r") as ecological_pyramid:
> ...  soup = BeautifulSoup(ecological_pyramid,"lxml")
> ... producer_entries = soup.find("ul")
>
>^
> SyntaxError: invalid syntax
> >>> producer_entries = soup.find("ul")
> Traceback (most recent call last):
>   File "", line 1, in 
> NameError: name 'soup' is not defined
> >>>
>^
>
> 
> so I cannot proceed with the next line withh would 've been :
>
> 
> print(producer_entries.li.div.string)
>
> 
> which would've given (according to the book) the output:
> ---
> plants
>
> Maybe that is getting a bit far ahead, but I can't quite see where I have
> gone wrong - 'soup' has been defined as an object made of file
> 'EcologicalPyramid.html
>
> I hope you can help me on this point.
> Yours
> Simon
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PySchool.net, kickstarter campaign

2014-12-14 Thread Billy Earney
ChrisA,

Yes, you are correct.  The scripts get compiled to javascript and then
executed in the browser.   Like you say, there are limitations, but most of
these focus around browser security issues,  and on the plus side, these
scripts do not get executed on the server side, so that helps reduce risk
there as well.

billy

On Sun, Dec 14, 2014 at 5:26 PM, Chris Angelico  wrote:
>
> On Mon, Dec 15, 2014 at 2:07 AM, Billy Earney 
> wrote:
> > Students can create, edit, load, save, and execute Python scripts
> directly
> > in the browser.
>
> Importantly, these scripts are actually executed in the client - they
> are NOT being sent to the server for execution. That means there are
> limitations on the language, to be sure, but none of the security
> risks of letting untrusted users run Python code on the server.
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: PySchool.net, kickstarter campaign

2014-12-14 Thread Billy Earney
Thanks..  I appreciate your contribution!

On Sun, Dec 14, 2014 at 5:48 PM, Chris Angelico  wrote:
>
> On Mon, Dec 15, 2014 at 10:41 AM, Billy Earney 
> wrote:
> > Yes, you are correct.  The scripts get compiled to javascript and then
> > executed in the browser.   Like you say, there are limitations, but most
> of
> > these focus around browser security issues,  and on the plus side, these
> > scripts do not get executed on the server side, so that helps reduce risk
> > there as well.
>
> Right. Every form of "let the users type Python code in a web site and
> see what it does" will have limitations; most of them also have
> security risks, but Brython specifically doesn't.
>
> I tossed a few dollars into your KS campaign, BTW, but you're going to
> need a *lot* more people than me :)
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Future of python on android

2014-12-25 Thread Billy Earney
try kivy, instead of sl4a http://kivy.org/

I believe in the past year or two, the python foundation gave a grant to
kivy to add further functionality..

According to wikipedia http://en.wikipedia.org/wiki/Guido_van_Rossum  Guido
works for dropbox.

Billy

On Thu, Dec 25, 2014 at 9:31 AM, Fetchinson . 
wrote:

> Hi all,
>
> I was using sl4a for quite some time on android and it basically
> worked very well although some features are missing. It looks like
> sl4a is dead, although I could be wrong. Does anyone knowledgeable
> have any further info on the future of sl4a? For instance it doesn't
> work with android 5 and there doesn't seem to be any activity around
> it for the past couple of years.
>
> If sl4a is out, what's the preferred way of running python on android?
> Guido is still working at google, right? This makes me suspect that
> python is ought to be part of the android ecosystem but can't find
> anything else beyond sl4a.
>
> So what's the future proof way of writing/deploying/installing python
> programs on android?
>
> Cheers,
> Daniel
>
>
> --
> Psss, psss, put it down! - http://www.cafepress.com/putitdown
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Python implementations in JavaScript

2015-02-14 Thread Billy Earney
Jonathan,

There is Brython.   It has been actively developed for a few years now.  It
is missing some advance python features, but is becoming more python 3.x
compliant every day.  You should check it out,  http://brython.info

You ask, are any of the implementations ready to rely on?   For Brython, it
depends, on what you want to do.   It also "hooks" into regular javascript
libraries (jquery, etc), if you want to access those.  The Brython docs
cover much of this.

Billy

On Fri, Feb 13, 2015 at 5:05 PM, Jonathan Hayward  wrote:

> What is the relative maturity of different Python implementations in
> JavaScript? Are any of the implementations ready to rely on?
>
> --
> [image: Christos Jonathan Seth Hayward] 
> Jonathan S. Hayward, a full stack web developer with Python/Django and
> AngularJS/jQuery.
>
> Articles on Technology  • Book: 
> *Django
> JavaScript Integration*
> 
>  • *Email * • Github  •
> LinkedIn  • Main Website
>  • *Professional Site *
>
> I invite you to visit my professional site! 
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: seek operation in python

2015-04-29 Thread Billy Earney
if your filename is input.cpp, you first line of code should be:

file=open("input*.cpp*","r")

On Wed, Apr 29, 2015 at 1:26 PM, siva sankari R 
wrote:

> There is a file named "input.cpp"(c++ file) that contains some 80 lines of
> code.
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


a python pitfall

2015-05-14 Thread Billy Earney
Hello friends:

I saw the following example at
http://nafiulis.me/potential-pythonic-pitfalls.html#using-mutable-default-arguments
and
did not believe the output produced and had to try it for myself

def foo(a,b,c=[]):
c.append(a)
c.append(b)
print(c)

foo(1,1)
foo(1,1)
foo(1,1)

produces:
[1, 1]
[1, 1, 1, 1]
[1, 1, 1, 1, 1, 1]

One would expect the following output:
[1, 1]
[1, 1]
[1, 1]

Doesn't this valid the zen of python: "Explicit is better than implicit."  ?

Thanks!
Billy
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Pure Python Data Mangling or Encrypting

2015-06-24 Thread Billy Earney
Freenet seems to come to mind.. :)

On Wed, Jun 24, 2015 at 4:24 PM, Grant Edwards 
wrote:

> On 2015-06-24, Randall Smith  wrote:
> > On 06/24/2015 01:29 PM, Grant Edwards wrote:
> >> On 2015-06-24, Randall Smith  wrote:
> >>> On 06/24/2015 06:36 AM, Steven D'Aprano wrote:
> >>>
>  I don't understand how mangling the data is supposed to protect the
>  recipient. Don't they have the ability unmangle the data, and thus
>  expose themselves to whatever nasties are in the files?
> >>>
> >>> They never look at the data and wouldn't care to unmangle it.
> >>
> >> I obviously don't "get it". If the recipient is never going look at
> >> the data or unmangle it, why not convert every received file to a
> >> single null byte?  That way you save on disk space as well --
> >> especially if you just create links for all files after the initial
> >> one.  ;)
> >
> > These are machines storing chunks of other people's data.  The data
> > owner chunks a file, compresses and encrypts it, then sends it to
> > several storage servers.  The storage server might be a Raspberry PI
> > with a USB disk or a Windows XP machine - I can't know which.
>
> OK.  But if the recipient (the server) mangles the data and then never
> unmangles or reads the data, there doesn't seem to be any point in
> storing it.  I must be misunderstanding your statement that the data
> is never read/unmangled.
>
> --
> Grant Edwards   grant.b.edwardsYow! A can of ASPARAGUS,
>   at   73 pigeons, some LIVE
> ammo,
>   gmail.comand a FROZEN DAQUIRI!!
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: pyjs - a compiler from Python to JavaScript

2015-08-10 Thread Billy Earney
Uri,

It has been a few years since I have messed with py2js.  Have you checked
out brython?  http://brython.info
It supports javascript libraries such as jQuery, raphael.js, etc.

Billy

On Fri, Aug 7, 2015 at 6:00 AM, Uri Even-Chen  wrote:

> To Python developers,
>
> Are you familiar with pyjs ? I saw the website and I
> see that the latest stable release is from May 2012. Is it possible to use
> pyjs to compile Python to JavaScript? Which versions of Python are
> supported? Are versions 2.7 and 3.4 supported? And is it possible to use
> Django (in the client side) and JavaScript frameworks such as jQuery,
> jQuery UI and jQuery plugins together with pyjs?
>
> Thanks,
> Uri.
>
> *Uri Even-Chen*   [image: photo] Phone: +972-54-3995700
> Email: u...@speedy.net
> Website: http://www.speedysoftware.com/uri/en/
> 
> 
>   
> > Speedypedia in Hebrew and English
> 
>
> --
> https://mail.python.org/mailman/listinfo/python-list
>
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: pyjs - a compiler from Python to JavaScript

2015-08-12 Thread Billy Earney
Uri,

Brython on the other hand, tries to stay true to python (python
compatible).  As stated before it doesn't compile to stand alone
Javascript, but the compile time is usually minimal.  Access to Javascript
libraries is supported.  You really should give it a try..
http://brython.info

Billy

On Tue, Aug 11, 2015 at 7:52 PM, Chris Angelico  wrote:

> On Wed, Aug 12, 2015 at 5:08 AM, Fabio Zadrozny  wrote:
> >
> > As it's just a way to convert from a Python-like syntax to JavaScript
> syntax you can even switch to plain JavaScript later on if you want -- in
> fact, when you debug the code you'll be debugging JavaScript and not Python
> (it's like CoffeScript but with a Python-like syntax).
> >
>
> So, it functions with ECMAScript semantics everywhere? This is an
> important consideration. A Python integer is not the same as an
> ECMAScript number (which is a float), and a Python string is not the
> same as an ECMAScript string, and a Python dictionary has attributes
> and keys which don't collide.
>
> I'm more than a little tickled by the PyPyJS project:
>
> http://pypyjs.org/
>
> That's PyPy running in your web browser. The semantics are 100%
> Python, but... uhh, it does require a fairly hefty download of code
> before it can do anything. That _is_ a bit of a downside, but it's
> still a pretty cool project!
>
> ChrisA
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Is Python in the browser a dead-end ?

2011-10-28 Thread Billy Earney
I believe that python maybe had missed an opportunity to get in early and be
able to take over a large market share from javascript.  But that doesn't
mean python is dead in the browser, it just means it will have more
competition if it wants to replace javascript for Rich Internet
Applications.

there's also emscripten, which takes c code and compiles it into
javascript.  the c python compiler is one of its primary examples as you can
see here:

http://syntensity.com/static/python.html

I've also contributed some code to Skupt so that a person can do something
like


 put python code here.


Hopefully eventually, the code I submitted will be of use someday! :)

On Fri, Oct 28, 2011 at 7:07 AM, Amirouche Boubekki <
amirouche.boube...@gmail.com> wrote:

> Héllo,
>
> There was a thread recently about the missed opportunity for Python to be a
> language that could replace Javascript in the browser.
>
> They are several attempts at doing something in this spirit here are the
> ones I'm aware of:
>
> - pyjamas aka. pyjs it is to Python what GWT is to Java : http://pyjs.org/
> - py2js which compiles Python to Javascript without high level widget like
> pyjamas does https://github.com/qsnake/py2js
> - skulpt unlike py2js and pyjs there is no compilation phase
> http://www.skulpt.org/
>
> And SubScript [1], which I am the creator, a Python-like language [2] and
> Sissi [3] which aims at being the stdlib of SubScript, currently it's
> implemented with py2js. It relies heavly on Google Closure tools [4]. I'm
> planning to add streamer [5] support if I can wrap my head around it.
>
> I'm done with self advertisement.
>
> Before starting SubScript I gave it some thoughts, and I think that it can
> bring value to web development.
>
> Here are articles that backs up my vision:
>
> - Javascript gurus claims that Javascript is indeed the "assembly" of the
> web [6], which means that Javascript is viable target for a compiler
>
> - Similar projects exists with Coffescript and ClojureScript which seems to
> have the lead and are gaining traction in web development community. Dart is
> another example.
>
> - The thing that makes Javascript development difficult is that it's hard
> to debug, but map JS [7] is making its way into Firefox which will help
> greatly
>
> Why do people think that this projects are doomed ?
>
> I ask this question to understand other point of views before commiting
> myself at finish SubScript & Sissi, I don't want to code something that will
> be useless.
>
> Thanks in advance,
>
> Amirouche
>
> [1] https://bitbucket.org/abki/subscript
> [2] currently Subscript code is parsed by Python parsing library the exact
> same syntax should be supported
> [3] https://bitbucket.org/abki/sissi/overview
> [4] http://code.google.com/intl/fr/closure/
> [5] https://github.com/Gozala/streamer
> [6]
> http://www.hanselman.com/blog/JavaScriptIsAssemblyLanguageForTheWebSematicMarkupIsDeadCleanVsMachinecodedHTML.aspx
> [7] https://bugzilla.mozilla.org/show_bug.cgi?id=618650
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
-- 
http://mail.python.org/mailman/listinfo/python-list


RE: Web development with Python 3.1

2009-10-27 Thread Billy Earney
I would agree with Alan.  Most of the libraries you should use are
compatible with the 2.x series..  I still use versions 2.5 and 2.6 for all
development.

 

From: python-list-bounces+billy.earney=gmail@python.org
[mailto:python-list-bounces+billy.earney=gmail@python.org] On Behalf Of
Alan Harris-Reid
Sent: Tuesday, October 27, 2009 6:08 AM
To: Python List
Subject: Re: Web development with Python 3.1

 

Aaron Watters wrote: 

On Oct 25, 7:52 pm, Alan Harris-Reid  
 wrote:
  

I am very much new to Python, and one of my first projects is a simple
data-based website. I am starting with Python 3.1 (I can hear many of
you shouting "don't - start with 2.6"), but as far as I can see, none of
the popular python-to-web frameworks (Django, CherryPy, web.py, etc.)
are Python3 compatible yet.
 
So, what can I use to start my web programming experience using 3.1?
 
Any help would be appreciated.
 
Alan


 
Don't. use python 2.6 with WHIFF :)
  http://aaron.oirt.rutgers.edu/myapp/GenBankTree/index
  http://whiff.sourceforge.net
 
-- Aaron Watters

Thanks for the advice

Alan

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


RE: checking 'type' programmatically

2009-11-20 Thread Billy Earney
Try looking at the function 'isinstance', so for example

if isinstance(obj, str):
print "object is a string.."
elif isinstance(obj, int):
print "object is an integer.." 

-Original Message-
From: python-list-bounces+billy.earney=gmail@python.org
[mailto:python-list-bounces+billy.earney=gmail@python.org] On Behalf Of
mk
Sent: Friday, November 20, 2009 4:10 AM
To: python-list@python.org
Subject: checking 'type' programmatically


Disclaimer: this is for exploring and debugging only. Really.

I can check type or __class__ in the interactive interpreter:

Python 2.6.2 (r262:71600, Jun 16 2009, 16:49:04)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
 >>> import subprocess
 >>> 
p=subprocess.Popen(['/bin/ls'],stdout=subprocess.PIPE,stderr=subprocess.PIPE
)
 >>> p

 >>> (so, se) = p.communicate()
 >>> so
'abc.txt\nbak\nbox\nbuild\ndead.letter\nDesktop\nhrs\nmbox\nmmultbench\nmmul
tbench.c\npyinstaller\nscreenlog.0\nshutdown\ntaddm_import.log\nv2\nvm\nwork
space\n'
 >>> se
''
 >>> so.__class__

 >>> type(so)

 >>> type(se)


But when I do smth like this in code that is ran non-interactively (as 
normal program):

req.write('stderr type %s' % type(se))
req.write('stderr class %s' % str(se.__class__))

then I get empty output. WTF?

How do I get the type or __class__ into some object that I can display?


Why do that: e.g. if documentation is incomplete, e.g. documentation on 
Popen.communicate() says "communicate() returns a tuple (stdoutdata, 
stderrdata)" but doesn't say what is the class of stdoutdata and 
stderrdata (a file object to read? a string?).

Regards,
mk



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

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


RE: Visual Python programming and decompilers?

2010-03-12 Thread Billy Earney
Ludolph,

This reminds me of the orange project which is developed in python.
http://www.ailab.si/orange/
It is actually for data mining, but many of the concepts could be used for a
more general programming structure.

Billy

-Original Message-
From: python-list-bounces+billy.earney=gmail@python.org
[mailto:python-list-bounces+billy.earney=gmail@python.org] On Behalf Of
Ludolph
Sent: Thursday, March 11, 2010 12:39 PM
To: python-list@python.org
Subject: Visual Python programming and decompilers?

Hi Guys

At work I have been exposed to a Agile Platform called OutSystems. It
allows you to visually program your web applications
http://i.imgur.com/r2F0i.png and I find the idea very intriguing.

So I have started to play around with the idea on how will I be able
to visually represent Python code as in the above image and then allow
the programmer to change some of the flow/code/logic visually and then
get it back as python source code. I don't know if this have been
tried before and after some googling I can't find anything like this,
so maybe I'm just lacking basic googling skills or a python solution
like the above does not exist yet.

If anybody knows of such solution please let me know, so that I don't
spend a lot of time recreating the wheel. Otherwise help me out on the
following problem:

I decided I can use byteplay3 http://pypi.python.org/pypi/byteplay/ to
disassemble the code to workable objects, It even allows me to rebuild
the objects to bytecode. So if I define patterns on how python
interrupts the source code to bytecode I can visually represent this
and also so convert my visual representations back to bytecode.

The only problem I have at the moment is how will I get this bytecode
back to python source code. I have googled for python decompiler but
only found old projects like unpyc, decompyle and some online
services. I would like to know if anybody know of a well maintained or
at least recent module that can help me accomplish the above
mentioned, because I'm hoping I can implement this in Python 3.1.

So any input or suggestion would be greatly appreciated.

Kind Regards,

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

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


Re: Developing a program to make a family tree.

2011-01-14 Thread Billy Earney
try http://gramps-project.org/, which is created in python.. :)

On Fri, Jan 14, 2011 at 1:39 PM, Ata Jafari  wrote:

> Hi there.
> I'm trying to develop a program like family tree maker. I have all
> information, so there is no need to search on the net. This must be
> something like trees. Can someone help me? I'm at the beginning.
> Thanks.
>
> --
> Ata J. Tabrizi
> atae.tabr...@metu.edu.tr
> --
> http://mail.python.org/mailman/listinfo/python-list
>
-- 
http://mail.python.org/mailman/listinfo/python-list


looking for new members to join grid of storage nodes using tahoe-lafs which is implemented in python.

2011-02-02 Thread Billy Earney
Would you like to be able to back up ~1 TB of data to secure,
highly-reliable, off-site storage, for free?

By "highly-reliable" I mean that your data should survive pretty much
anything short of the collapse of civilization. By "free" I mean "no
monetary cost, although you have to provide some hardware and a little of
your time".

There's a very cool distributed file system project implemented in python
called Tahoe-LAFS (http://tahoe-lafs.org) . The idea is that when you store
files in this file system, they actually get split into multiple pieces and
moved to servers "elsewhere" on the Internet. Even better, the splitting is
done in such a way that even if some of the pieces get lost or destroyed,
your data is still perfectly intact and retrievable at any time. Oh and all
of your pieces are encrypted so that no one who has access to the servers
hosting them can see your data.

Where are these "other servers"? Well, they can be anywhere, but in this
case, the server grid that I'm using is provided by a group of volunteers,
all of whom want highly-reliable off-site backup storage. The cost of using
this grid is that you have to provide a backup server of your own, which
will host pieces of other peoples' data. We call it "volunteergrid2". The
two is because there's also a "volunteergrid1", which is working fine, but
I've found doesn't meet my requirements. Basically, I want to store a lot
more stuff than that grid is set up to accept, so I've been pushing for this
new grid.

Here are the basic requirements to join the grid:


   1. You have to have a computer which is always on and always connected to
   the Internet. In fact, you have to commit to keeping that machine up and
   connected at least 95% of the time (no more than 8 hours per week or 1.5
   days per month downtime). It's easier if the machine runs a Unix operating
   system, though Windows works, too.
   2. You have to provide at least 500 GB of storage to the grid.
   3. You have to be able to open a couple of ports through your
   router/firewall to expose that portion of your server to the Internet. If
   you need help with this, the members of the grid can probably help.
   4. You may consume as much storage from the grid as what you provide to
   the grid, with one caveat and one issue to consider. The issue is that when
   your files are split into pieces, depending on the splitting parameters you
   choose (and we'll be glad to help you make good choices), your files will
   get larger. So if your parameters cause your files to grow by a factor of
   three, and you provide 500 GB of storage to the grid, then you can store 170
   GB of your data in the grid. The caveat is that there is a 1 TB cap. You may
   not store more than 1 TB in the grid -- not without approval of the rest of
   the grid members, anyway. The group makes decisions by consensus.

So far, the grid has about 10 storage servers, each contributing 500 GB, for
a total of 5 TB. We'd like to get that up to at least 20 servers and 10-15
TB, and I'd really like to get to 40 servers and 30-40 TB, because with more
servers you can use more efficient splitting so you get the same level of
reliability but with less expansion.

Over time, I expect we'll gradually raise the bar, requiring all
participants to provide at least 750 GB, then 1 TB, and so on, so that our
available storage keeps pace with the growth in common drive capacities.

If you are interested, you can find out more information at
http://bigpig.org.  We have a subscription list which members use as their
main line of communication to other members.  You can subscribe at
http://tahoe-lafs.org/cgi-bin/mailman/listinfo/volunteergrid2-l

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


Re: any one used moviepy please come in!!! I need help, thanks!

2017-02-23 Thread Billy Earney
 imagemagick (ie, convert) has a policy.xml file that stops you from
accessing any resource that starts with '@'.

type 'identify -list policy'
the first line should tell you where your policy.xml file is located. My
policy.xml file is lcoated at /etc/ImageMagick-6/policy.xml

open that file, and goto to the end and comment out (or remove the line
that reads)



since this is xml, you can comment out this line by appending the line with


Hope this helps!

On Thu, Feb 23, 2017 at 1:05 AM,  wrote:

> On Thursday, January 26, 2017 at 8:12:24 AM UTC+5:30, Tony Chen wrote:
> > On Wednesday, January 25, 2017 at 8:34:01 PM UTC+13, Chris Angelico
> wrote:
> > > On Wed, Jan 25, 2017 at 6:22 PM, Tony Chen 
> wrote:
> > > > This error can be due to the fact that ImageMagick is not installed
> on your computer, or (for Windows users) that you didn't specify the path
> to the ImageMagick binary in file conf.py, or.that the path you specified
> is incorrect
> > >
> > > So... is ImageMagick installed?
> > >
> > > ChrisA
> >
> > Okay... Yes it's installed. This problem has been solved haha. Thank you
> for replying.
>
> Hi Tony,
> same issue facing by me. kindly help me
> please list the solution
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-- 
https://mail.python.org/mailman/listinfo/python-list