Re: John Bokma harassment

2006-05-24 Thread Mitch
[EMAIL PROTECTED] wrote:
> Xah Lee schreef:
> 
[...]
>>
>> If you believe this lobbying to my webhosting provider is unjust,
>> please write to my web hosting provider [EMAIL PROTECTED]
>>
>> Your help is appreciated. Thank you.
>>
>>Xah
>>[EMAIL PROTECTED]
>>  ∑ http://xahlee.org/
> 
> We seem to have strayed a long way from Voltaire's
> "I do not agree with what you say, but I will defend to the death your
> right to say it.",
> but that was of course the age of enlightenment.
> Immanuel
> 

I would have to say +1 for Voltaire.  Xah has as much right to post to 
the newsgroups as I do to skip over them.  One of the reasons I enjoy 
lurking on newsgroups is the passion with which a lot of you speak; 
however, I do think there are a lot of short tempers flying around. 
Perhaps its because you've been putting up with this guy a lot longer 
than I have, but I can't imagine it takes that much effort to 
skip/block/kill file his posts.  It's his as much as anyone else's, and 
all the while this is an unmoderated medium he has the *right* to say as 
he pleases.


That said, if the ISP is kicking you off, it should be because you have 
broken a TOC.  IF you don't think that that is the case, then that is 
your beef with them.

Secondarily, all these essays end up on your site anyway, so why post 
the whole thing /again/ on the newsgroups when you could just link to 
the page, perhaps with a brief summary.  Will that not

A) still allow you to advertise the essays

B) Save resources rather than copying everything twice

and

C) Piss less people off?

I'm sure you aren't worried about pissing people off, but when it 
results in you getting kicked from your ISP, this just seems so much 
more sensible an answer.

My 2 cents.

P.S.
The Universal Declaration of Human Rights (Summary) says:


Article 19.

   Everyone has the right to freedom of opinion and expression; this 
right includes freedom to hold opinions without interference and to 
seek, receive and impart information and ideas through any media and 
regardless of frontiers.

http://www.un.org/Overview/rights.html

This debate boils down to whether or not he has broken the ISP's TOCs, 
nothing more.
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: John Bokma harassment

2006-05-24 Thread Mitch
John Bokma wrote:
[...]
> You're mistaken. All you need to do is report it. After some time Xah will 
> either walk in line with the rest of the world, or has found somewhere 
> else to yell. As long as it's not my back garden and not around 4AM, I am 
> ok with it.
> 

Walk in line with the rest of the world?  Pah.

This is no-ones back garden.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: John Bokma harassment

2006-05-24 Thread Mitch
John Bokma wrote:
> Mitch <[EMAIL PROTECTED]> wrote:
> 
>> John Bokma wrote:
>> [...]
>>> You're mistaken. All you need to do is report it. After some time Xah
>>> will either walk in line with the rest of the world, or has found
>>> somewhere else to yell. As long as it's not my back garden and not
>>> around 4AM, I am ok with it.
>>>
>> Walk in line with the rest of the world?  Pah.
>>
>> This is no-ones back garden.
> 
> Funny how people who always think they can "change Usenet" have no clue 
> about what Usenet is and how it works in the first place.

Who said anything about changing it?  I like it just the way it is.

> 
> Usenet is just that, each server participating can be thought of as being 
> the back yard of the news master.

Sure, each server has terms and conditions that apply, doesn't mean you 
should be able to ban people from speaking just because you don't like 
what they say.  My point is that this isn't *your* back garden, it isn't 
*my* back garden.  It isn't something I own, and it *IS* something I can 
filter and/or ignore.  Someone shouting in your back garden is a whole 
different ball game where your desires prevail.  Not here.  You know 
what you are getting into when you sign in, and it is your 
responsibility to deal with those you don't agree with personally.

I understand you consider his writings spam, and so can see why you have 
reported him.  All I'm saying is that as long as the articles are 
remotely on topic, I believe he has a right to post his opinions here.

> If you have no clue about how Usenet works, first read up a bit. What a 
> Usenet server is, a feed, and how Usenet is distributed.
> 
> And then come back if you finally have something to say that you can back 
> up.
> 

Thankfully I'm aware enough of all the above that I don't feel the need.

As these are all opinions, I don't see any need to "back up" any of it.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: John Bokma harassment

2006-05-24 Thread Mitch
John Bokma wrote:
> fup to poster
> 
> Mitch <[EMAIL PROTECTED]> wrote:
> 
>> John Bokma wrote:
> 
> [...]
> 
>>> Funny how people who always think they can "change Usenet" have no
>>> clue about what Usenet is and how it works in the first place.

>> Who said anything about changing it?  I like it just the way it is.

> 
> You don't.
> 

All that I snipped is your opinion, which is yours to do with as you 
please.  "I like it just the way it is." is *MY* opinion, so please 
don't try to change it.  I think I know my opinion best.

And as for setting it to reply to only you, I changed that back.  I 
don't think you censoring (redirecting) other peoples replies/opinions 
serves the purpose of this thread well.
-- 
http://mail.python.org/mailman/listinfo/python-list


Stuck on Jythonc --all w/ ZipException PyMethod

2005-03-02 Thread Mitch Amiano
I'm getting started working with Jython (hope this is an ok group for 
the question), and ran into a stumbling block using the jythonc tool.

It is a fairly simple Jython script which uses the Apache Batik SVG 
library, imports the SVG Canvas, and puts up a simple Swing interface to 
let the user load and display an SVG file. (I translated the script from 
a Batik Java example.) The script runs fine under jython, but so far 
I've been unable to get a working jar file using jythonc.

After various problems involving CLASSPATH and the registry (protected 
members not showing up), it is persistently giving a ZipException: 
Duplicate entry error on the PyMethod class. Altering the CLASSPATH 
seems to have no effect on the problem.

Is this a problem between jythonc and newer jvms? I've also tried with 
j2sdk 1.4.2_05, with the same results.

I've exhausted other means, and at my wits end.
Thanks in advance for any pointers.

My command line is:
C:\jython-2.1\jythonc.bat --compiler C:\jdk1.5.0_01\bin\javac.exe --all 
-j usebatik.jar usebatik.py

The output is:
processing usebatik
Required packages:
  javax.swing
  org.w3c.dom
  java.awt.event
  java.lang
  java.io
  org.apache
Creating adapters:
  java.awt.event.ActionListener used in usebatik
Creating .java files:
  usebatik module
Compiling .java to .class...
Compiling with args: ['C:\\jdk1.5.0_01\\bin\\javac.exe', '-classpath', 
'C:\\jython-2.1\\jython.jar;;.\\jpywork;;C:\\jython-2.1\\Tools\\jythonc;C:\\Documents 
and Settings\\Valued 
Customer\\Desktop\\Grazer\\usebatik\\.;C:\\jython-2.1\\Lib;C:\\jython-2.1', 
'.\\jpywork\\usebatik.java']
0  Note: * uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Building archive: usebatik.jar
Tracking java dependencies:
Traceback (innermost last):
  File "C:\jython-2.1\Tools\jythonc\jythonc.py", line 5, in ?
  File "C:\jython-2.1\Tools\jythonc\main.py", line 301, in main
  File "C:\jython-2.1\Tools\jythonc\main.py", line 294, in writeResults
  File "C:\jython-2.1\Tools\jythonc\jar.py", line 98, in dump
  File "C:\jython-2.1\Tools\jythonc\jar.py", line 92, in dumpFiles
  File "C:\jython-2.1\Tools\jythonc\jar.py", line 111, in addPackage
java.util.zip.ZipException: duplicate entry: org/python/core/PyMethod.class
	at java.util.zip.ZipOutputStream.putNextEntry(Unknown Source)
	at sun.reflect.GeneratedMethodAccessor30.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
	at java.lang.reflect.Method.invoke(Unknown Source)
	at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java)
	at org.python.core.PyMethod.__call__(PyMethod.java)
	at org.python.core.PyObject.__call__(PyObject.java)
	at org.python.core.PyInstance.invoke(PyInstance.java)
	at jar$py.addPackage$11(C:\jython-2.1\Tools\jythonc\jar.py:111)
	at jar$py.call_function(C:\jython-2.1\Tools\jythonc\jar.py)
	at org.python.core.PyTableCode.call(PyTableCode.java)
	at org.python.core.PyTableCode.call(PyTableCode.java)
	at org.python.core.PyFunction.__call__(PyFunction.java)
	at org.python.core.PyInstance.invoke(PyInstance.java)
	at jar$py.dumpFiles$9(C:\jython-2.1\Tools\jythonc\jar.py:92)
	at jar$py.call_function(C:\jython-2.1\Tools\jythonc\jar.py)
	at org.python.core.PyTableCode.call(PyTableCode.java)
	at org.python.core.PyTableCode.call(PyTableCode.java)
	at org.python.core.PyFunction.__call__(PyFunction.java)
	at org.python.core.PyInstance.invoke(PyInstance.java)
	at jar$py.dump$10(C:\jython-2.1\Tools\jythonc\jar.py:98)
	at jar$py.call_function(C:\jython-2.1\Tools\jythonc\jar.py)
	at org.python.core.PyTableCode.call(PyTableCode.java)
	at org.python.core.PyTableCode.call(PyTableCode.java)
	at org.python.core.PyFunction.__call__(PyFunction.java)
	at org.python.core.PyInstance.invoke(PyInstance.java)
	at main$py.writeResults$8(C:\jython-2.1\Tools\jythonc\main.py:294)
	at main$py.call_function(C:\jython-2.1\Tools\jythonc\main.py)
	at org.python.core.PyTableCode.call(PyTableCode.java)
	at org.python.core.PyTableCode.call(PyTableCode.java)
	at org.python.core.PyFunction.__call__(PyFunction.java)
	at main$py.main$9(C:\jython-2.1\Tools\jythonc\main.py:301)
	at main$py.call_function(C:\jython-2.1\Tools\jythonc\main.py)
	at org.python.core.PyTableCode.call(PyTableCode.java)
	at org.python.core.PyTableCode.call(PyTableCode.java)
	at org.python.core.PyFunction.__call__(PyFunction.java)
	at org.python.core.PyObject.invoke(PyObject.java)
	at org.python.pycode._pyx0.f$0(C:\jython-2.1\Tools\jythonc\jythonc.py:5)
	at 
org.python.pycode._pyx0.call_function(C:\jython-2.1\Tools\jythonc\jythonc.py)
	at org.python.core.PyTableCode.call(PyTableCode.java)
	at org.python.core.PyCode.call(PyCode.java)
	at org.python.core.Py.runCode(Py.java)
	at org.python.core.__builtin__.execfile_flags(__builtin__.java)
	at org.python.util.PythonInterpreter.execfile(PythonInterpreter.java)
	at org.python.util.jyth

Re: Distributing applications

2005-03-02 Thread Mitch Amiano
I'm fairly new to python myself (with about 16 years of various 
languages); I found py2exe fairly straightforward to use.
The instructions are ok, but if you care to see it I took some notes and 
threw them into an article on my company site.

<http://home.agilemarkup.com/index.php?option=content&task=view&id=64&Itemid=27>
Regards
- Mitch
Phillip Mills wrote:
I've learned enough of the Python language to be mildly dangerous and 
have used it in a few personal projects.  All my development of 
commercial (or production) products over the past dozen years have been 
done with C++ or Java.

For a program I'm planning -- to begin during the summer -- having an 
interpreter as part of the application would be very desirable to allow 
sophisticated users to provide their own extensions.  Java would be 
do-able, but

My problems are:
  - I'd like the process of installing the application to be one step; 
no "first download a Python interpreter then a GUI library" kind of 
thing.
  - I also need the core part of the application to be reasonably 
protected.  I'm not looking to defeat hackers, but something equivalent 
to the way Java's class files stored in jars stay where they're supposed 
to be and aren't immediately readable.

I've looked at various web sites for this topic, but most I've found are 
just arguments for using the Python language.  OK, I'll pretend I'm 
convinced...now any comments or references on the mechanics of creating 
a self-contained distribution?

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


Problem with httplib and HEAD request

2006-03-28 Thread Mitch . Garnaat
Hi -

I'm writing some Python code to interact with Amazon's S3 service.  One
feature of S3 is that it will allow you to use the HTTP HEAD request to
retrieve metadata about an S3 object without actually retrieving the
content of the object.  In trying to use this feature, I'm running into
what I think is a bug in httplib.py.

If the resource I perform the HEAD request on exists within S3 then
everything is fine.  If, however, the resource doesn't exist then a 404
is returned.  If the request had been a GET rather than a HEAD the body
of the response would be some XML that gave further information about
the error status returned.  However, for a HEAD request no body can be
returned so the body is empty.  The error response, for either HEAD or
GET, does include the following header:

transfer-encoding: chunked

And this seems to be causing confusion in httplib.py.  I have to call
the read method of the response or else I get a ResponseNotReady
exception on my next request.  When I attempt to read the body of the
error response to the HEAD request it is passed onto the _read_chunked
method where it immediately tries to do a readline() on the connection
which, of course, hangs because no body has been sent in the response.

So, I know this is kind of a boundary condition and perhaps it hasn't
come up before but it seems that the behavior of httplib is incorrect.
I think something needs to be added to the _read_chunked method which
checks if the request is a GET and, if so, just reads zero bytes from
the socket and returns.

Any comments?  Thanks,

Mitch

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


Re: Problem with httplib and HEAD request

2006-03-28 Thread Mitch . Garnaat
For what it's worth, I made the following change to httplib.py and it
seems to have solved my problems:

c455
< if self.chunked:
---
> if self.chunked and self._method != 'HEAD':

I'm using Python 2.4.1 on MacOS.

Mitch

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