Re: XML/RPC server with SSL in Python

2005-03-22 Thread news
Gerson Kurz wrote:
> Are there any alternatives to using M2Crypto for an XML/RPC server in
> SSL in Python?

tlslite supports SocketServers like SimpleXMLRPCServer:

http://trevp.net/tlslite


Trevor

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


How simputer COULD HAVE succeeded ?

2005-12-20 Thread news
> Staff Writer
> November 3 2005
> Cell phone giant Nokia has launched a portal to manage its open
> source software projects and promote community involvement.
> Opensource.nokia.com[61] features Nokia open source news and 
> links to all of its OSS projects.
> 
>Launched yesterday at Nokia Mobility Conference 2005, Nokia
> currently features links to its open source browser for Series 60
> (S60 96 one of Nokia's mobile operating systems), Maemo, URIQA (URI
> Query Agent) and Python for S60. The portal itself is built on
> Nokia's open source semantic Web architecture, based on URIQA.
>  The open source browser for S60 third edition is based on the
> work done in one of Nokia's open source projects. The Maemo
> development platform provides the tools and the opportunity to
> collaborate with Nokia on future devices and open source releases in
> the Linux-based Internet tablet category. Python for S60 allows the
> developers who utilize the powerful Python programming language to
> execute Python commands and run Python scripts and applications on
> S60 devices.
>  "We believe that open source development
> contributes to the creation and rapid adaptation of mobile software
> technologies. The new portal demonstrates our commitment to open
> source activities, and it is a natural extension for our Forum Nokia
> online developer community. We welcome open source developers to
> participate in innovations to Nokia's software platforms," says Lee
> Epting, VP, Forum Nokia.
>  In addition to its own open
> source projects, Nokia contributes[87] to industry-wide open source
> projects and communities. It recently joined the Eclipse Foundation
> [88], leading a project to deliver mobile developer tools for Java.
> It has also contributed to the Linux kernel, various bluetooth
> projects, and others.
> etc .

Apparently:
-  Python is a 'nice' language even for 'experienced' beginners,
-  by making a Python 'translator', immediately gave access to 
  a mass of Geeks, who will mutually collaborate/compete
   to pump out a lot of usefull applications, which will boost the 
   demand for the Nokia hardware.

This 'Apple phenomenon' which gave rise not only to the micro-
computer [hence PC] industry but also the radio, and aviation
industry is a social 'mechanism' which is completely strange and 
NOT understandable by native Indians.

Pity, since the simputer's hardware concepts: especially low power
& 'card' making individual useage vs individual ownership; were
so on-target, that the founders couldn't have planted the seeds
[as Nokia is duing] in the 1st world, for an "Apple syndrome" to 
escalate.

I predict that Nokia's demand will escalate by this "Apple syndrome".
Let's see ?

== Chris Glur.

PS. before investing time in Python, I wanted to find out if it 
can interface low-level, by eg. calling the OS or C...etc.
eg. could it call linux's "dd if=.." ?


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


Linux > python > file-I/O ?

2005-12-24 Thread news
I've just started to test/learn python.
I've got Linux > mandrake9 > python  & documentation.
What I'll initially want to be doing needs file I/O, so I
wanted to confirm file I/O early in my tests.

Following the examples :
>>> f=open('/tmp/workfile', 'w')
>>> print f
   <-- OK

But:
>>> f.read(size)
Traceback (most recent call last):
  File "", line 1, in ?
NameError: name 'size' is not defined  <-- ?? Obj-method unknown ??


What's wrong ?

I read:   "The set of such modules is a configuration 
option which also depends on the underlying platform."
My documenation refers also to Mac & Win installations.
Is there a linux > python NewsGroup ?

Thanks for any info.

== Chris Glur.


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


Re: Beautiful Python

2005-12-27 Thread news
In article <[EMAIL PROTECTED]>, Jarek Zgoda <[EMAIL PROTECTED]> wrote: 

> Gekitsuu napisal(a):
> 
> > use strict;
> > use WWW::Mechanize;
> > use CGI;
> > 
> > This seems to be the de facto standard in the Perl community but in
> > python it seems most of the code I look at has import statements
> > everywhere in the code. Is there a sound reason for putting the imports
> > there are are developers just loading modules in as they need them. I
> > own Damian Conway's book of Perl Best Practices and it seems from a
> > maintainability standpoint  that having all the modules declared at the
> > beginning would make it easier for someone coming behind you to see
> > what other modules they need to use yours. Being new I didn't know if
> > there was a performance reason for doing this or it is simply a common
> > habit of developers.
> 
> Sometimes putting import statements at the beginning is not feasible
> (i.e. only when some condition has been met), as importing has some
> impact on program execution (importing executes code in imported
> module). This does not resemble Java imports (I don't know Perl).
> 
> -- 
Wow ?!   I've only started looking at python but that sounds like very
dangerous programming !  Can you give an example.

BTW this topic relates to a recent point raised by the C man's
[I think Richie, dated ca. 1973] crit of Pascal. He said that
Pascal's restriction of not being able to declare globals, near
where they were needed, was bad.  And I thought so too, before I
considered that the programmer must KNOW that they are global.
Ie. the ability to declare them at a 'nice' place is just syntactic
sugar, hiding the reality the globals are bad, and have to be avoided
and respected.

== Chris Glur.



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


IDE for Python ?

2005-12-31 Thread news
I'm getting realy tired of learning new languages.
And especially frustrated at the 'syntax errors' when switching
between them.

There are basically only a few common concepts needed for 
all the languages.   Hence linux's p2c: Pascal to C translator.

A good IDE could hide the irrelevant details of the syntax,
much like DOS/Norton-commander--Linux/mc hides the
details, and makes visual, the common actions on files:
move, copy, view ...edit ...search etc.

Besides, I guess Python itself would be good to make such
an IDE ?   Is there any such tool available/recomended ?

== Chris Glur.

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


Perhaps Python can do this better ?

2006-01-09 Thread news
[EMAIL PROTECTED] wrote:

> Using a script:--
> lynx -dump '' > Fl1
> 
> lynx -dump '' > Fln
> 
>   where the URLs are filled in off line, is a great online-telco-cost
> saver for me here in 3rd world S. Africa.
> 
> I want to similarly send a set of pre-written emails via the
> same script.
> 
> Is this possible & how ?
> 
> And if not via lynx, by some other means.
> What I like about the above is that you don't even need to
> load/see lynx, which is just in the background.

[EMAIL PROTECTED] wrote:
] can't you use 'mail' or 'mutt'?
] $ man mail
] $ man mailx
] $ man mutt

Enrique Perez-Terron wrote:
} The oldest Unix email I know of used this syntax to send mail:
} 
}  mail -s "subject" [EMAIL PROTECTED] < mailfile
} 
} but it actually invokes "sendmail" to do the delivery. Configuring
} sendmail is **dificult**.   Postfix is somewhat easier.   Most systems
} come with sendmail already installed.
} 
} The trouble is that the standard sendmail config supposes that your
} computer is a first-class citizen of the Internet, with it's own
} properly registered dns hostname.   Then sendmail would use DNS to
} figure out what computer to relay the mail to for the given recipient
} address.
}   ...etc...BIG explanation.
} 
} Andrew Preater wrote:
} A simple mailer such as ssmtp would do this trick.   It's
} sendmail-compliant so you can use it with mutt et al., all it
} does it send mail through to your smarthost which could be your
} ISPs server or another machine on your network.   It can rewrite
} the From and envelope for you too, but you might as well do that
} in mutt.
} ..
} IIRC pine can do this.   But then you'd be using pine (aaargh!)
} rather than mutt.

Yea well I don't want to install ssmtp or other stuff.
That's how bloat spreads.
"mail" apparently calls 'sendmail' - a monster AFAIK ?
It was enough trouble setting up: dial > ppp.
I don't need another layer of crap.
Perhaps I'll use pine.
But since lynx can do it 'manually' please remind me of the bash
syntax for:

1. 'output char("x") as if in CLI'
2. 'output string("string1") as if in CLI'
3. 'output text of File1 as if in CLI'

Then I can just make some templates to combine with the 
'getHttp-to-file' which lynx does so well already.

Thanks for any input,

== chris Glur.

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


Pythonise this algorithm ?

2006-01-18 Thread news
Don't you hate the *.ps/*.pdf texts which are arranged in columns
as if it was a newspaper ? Especially when you want to email
a section after using 'pdftotxt'. 

I'm guessing that an algorithm to extract colums could work 
like this : [assume 2 column, but 3, 4.. should be similar, remember 
that the RHS-colm of pageN continues to the LHS-colm of pageN+1]

Initialise;
Repeat (* NextBlok or exit DO *)
BeginBloks:-
   Mark the TopLeftCorner -> get(StartRow,StartColm);
   Mark the BotmRightCorner -> get(EndRow,EndColm);
   Extract the Blok's text :-
For Row = StartRow to EndRow;
   For Colm = StartColm to EndColm
 PutCharToBufr;
  DoLineTerminator;
Until ExitBloks.

Obviously the nesting is: Bloks > Rows > Colms.

Then it can be morphed to clean up the "" in newsgroup
threads as the lines get too long for the extra ">"  ?

Thanks for any input,

== Chris Glur.

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


breadth first search

2006-02-08 Thread News
I am new in using Python

Anyone know how to implement breadth first search using Python?  Can Python
create list dynamically, I want to implement a program which will read data
from a file and store each line into a list, is this possible?

Please send mail to me at [EMAIL PROTECTED] or reply this mail

Thanks a lot!


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


Iterating command switches from a data file - have a working solution but it seems inefficient

2006-04-12 Thread News
Hi everyone,

My goal is to pull command switches/options from a file and then assign
the values to select variables which would eventually be included in a
class object.

The data file looks something like this but the switches could be in any
order and not all may be used.

-m quemanager -s server -p port -k key -o object -c 20 -t [EMAIL PROTECTED]

Also, please keep in mind that the source code will have more than one
line in it and each has to be treaded separately.


In a first pass, I wrote the following code which works but there is
probably a better way of doing it.

Any ideas to make it more efficient/stream-lined would be greatly
appreciated.

#!/usr/bin/python

import string
inp = open("const.txt","r")
#
# Read File
#

while True:

#
# Get line from file
#
line=inp.readline()

#
# Check for EOF or break line up to extract relevant pieces
#
if len(line) == 0:
break
else:
split_line=line.split()
length=len(split_line)
count=0

#
# Evaluate list item and assign variable based on its contents
# Print statements are for debugging purposes only
#
for i in range(length):
if split_line[count] == "-m":
qmgr=split_line[count+1]
print "Queue Manager",qmgr;
elif split_line[count] == "-s":
server=split_line[count+1]
print "Server",server;
elif split_line[count] == "-p":
port=split_line[count+1]
print "Port",port;
elif split_line[count] == "-o":
object=split_line[count+1]
print "Object",object;
elif split_line[count] == "-k":
key=split_line[count+1]
print "Key",key;
elif split_line[count] == "-t":
mto=split_line[count+1]
print "To",mto; 
elif split_line[count] == "-c":
check=split_line[count+1]   
print "Check",check;
elif split_line[count] == "-d":
report=""
print "Report",report;
elif split_line[count] == "-q":
display=False
print "Display",display;
else:
continue

count=count+1

# Close input file
#
inp.close()

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


Re: Iterating command switches from a data file - have a working solution but it seems inefficient

2006-04-13 Thread News
bruno at modulix wrote:
> News wrote:
>> Hi everyone,
>>
>> My goal is to pull command switches/options from a file and then assign
>> the values to select variables which would eventually be included in a
>> class object.
>>
>> The data file looks something like this but the switches could be in any
>> order and not all may be used.
>>
>> -m quemanager -s server -p port -k key -o object -c 20 -t [EMAIL PROTECTED]
> 
> Have you looked at optparse ?
> 
I have.

In the interactive version of the code, I use:

#
# Parse command line options and automatically build help/usage
#
parser = OptionParser()

parser.add_option("-q", "--quiet",
action="store_false", dest="verbose", default=1,
help="don't print status messages to stdout")
parser.add_option("-m", dest="qmanager",
help="Queue Manager to inquire against")
parser.add_option("-s", dest="host",
help="Host the que manager resides on")
parser.add_option("-p", dest="port",
help="Port queue manager listens on"),
parser.add_option("-o", dest="object",
help="Queue object being inquired on"),
parser.add_option("-k", dest="key",
help="object attribute to be inquired about"),
parser.add_option("-t", type="string",dest="mto",
help="e-mail address the report will go to"),
parser.add_option("-d", action="store_false",dest="report",
help="optional switch - enabling this sends output
to e-mail")
(options, args) = parser.parse_args()


The module optparse seemed to be aimed at reading from commandline
versus pulling attributes from a read line.

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


Re: Iterating command switches from a data file - have a working solution but it seems inefficient

2006-04-13 Thread News
bruno at modulix wrote:
> News wrote:
>> bruno at modulix wrote:
>>
>>> News wrote:
>>>
>>>> Hi everyone,
>>>>
>>>> My goal is to pull command switches/options from a file and then assign
>>>> the values to select variables which would eventually be included in a
>>>> class object.
>>>>
>>>> The data file looks something like this but the switches could be in any
>>>> order and not all may be used.
>>>>
>>>> -m quemanager -s server -p port -k key -o object -c 20 -t [EMAIL PROTECTED]
>>> Have you looked at optparse ?
>>>
>> I have.
>>
>> In the interactive version of the code, I use:
>>
>> #
>> # Parse command line options and automatically build help/usage
>> #
>> parser = OptionParser()
>>
>> parser.add_option("-q", "--quiet",
>> action="store_false", dest="verbose", default=1,
>> help="don't print status messages to stdout")
>> parser.add_option("-m", dest="qmanager",
>> help="Queue Manager to inquire against")
>> parser.add_option("-s", dest="host",
>> help="Host the que manager resides on")
>> parser.add_option("-p", dest="port",
>> help="Port queue manager listens on"),
>> parser.add_option("-o", dest="object",
>> help="Queue object being inquired on"),
>> parser.add_option("-k", dest="key",
>> help="object attribute to be inquired about"),
>> parser.add_option("-t", type="string",dest="mto",
>> help="e-mail address the report will go to"),
>> parser.add_option("-d", action="store_false",dest="report",
>> help="optional switch - enabling this sends output
>> to e-mail")
>> (options, args) = parser.parse_args()
>>
> 
> So why do you inflict yourself the pain of rewriting all the parsing etc???
> 
>> The module optparse seemed to be aimed at reading from commandline
>> versus pulling attributes from a read line.
> 
> http://www.python.org/doc/2.4.2/lib/optparse-parsing-arguments.html:
> """
> The whole point of creating and populating an OptionParser is to call
> its parse_args() method:
> 
> (options, args) = parser.parse_args(args=None, options=None)
> 
> where the input parameters are
> 
> args
> the list of arguments to process (sys.argv[1:] by default)
> """
> 
> what about something like :
> 
>  line = myfile.readline()
>  options = parser.parse_args(line.split())
> 
> But what, if you prefer to rewrite (and maintain) a custom parser doing
> exactly the same thing, please do !-)
> 

sometimes you can't see the forest .. trees and all that :)

I really appreciate everyones insight on this.

It was very helpful.

OT: I saw several references to "OP". What does this mean?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Iterating command switches from a data file - have a working solution but it seems inefficient

2006-04-13 Thread News
Hi everyone,

Just to be complete, my final solution was:

parser = OptionParser()

parser.add_option("-m","--qmanager", dest="qmanager",
help="\t\tQueue Manager to inquire against"),

parser.add_option("-s","--server", dest="host",
help="\t\tHost the que manager resides on"),

parser.add_option("-c","--check",  dest="check",
help="\t\tTest object if it is less/equal/greater"),

parser.add_option("-p","--port", type="string", dest="port",
help="\t\tPort queue manager listens on"),

parser.add_option("-o","--object", dest="object",
help="\t\tQueue object being inquired on"),

parser.add_option("-k", "--key",dest="key",
help="\t\tobject attribute to be inquired about"),

parser.add_option("-t","--to", type="string",dest="mto",
help="\t\te-mail address the report will go to"),

parser.add_option("-q","--quiet", action="store_false",dest="quiet",
help="\t\toptional - just returns the value"),

parser.add_option("-f", "--file",
action="store", type="string", dest="filename",
help="Pull command strings from FILE",
metavar="FILE")

parser.add_option("-d","--display",
  action="store_false",dest="report",
  help="\t\toptional - use sends output to e-mail")

(options, args) = parser.parse_args()

if options.filename is not None:
line = use_file()
(options,args) = parser.parse_args(line.split())
-- 
http://mail.python.org/mailman/listinfo/python-list


Can't see the forest for the trees - when reading file, only processing first line

2006-04-13 Thread News
Hi Everyone,


The attached code creates client connections to websphere queue managers
and then processes an inquiry against them.

The program functions when it gets options from the command line.

It also works when pulling the options from a file.

My issue is that it only processes the first line of the file.

Does anyone know why this might be the case?

The use_file() function should be returning each file line.

Any help you can provide on this would be greatly appreciated.

Thanks


#!/usr/bin/python
#
# Programmer: Andrew Robert
#
# Function: Generic method to extract information from a queue manager
#   This script is intended to be run from the command line to
return values
#   based on supplied keys
#
#   Depending on whether the -d command switch is used or not,
the output of this script
#   will go to the screen or be e-mailed
#
#   The e-mailer function included in this program is set use
the generic smtp library
#   instead of sendmail or procmail.
#
#   This is a design decision since the program is intended
primarily to run
#   on a Windows platform.
#
#


#
#
#
#
def usage():
print
"""
usage: test_orig.py [options]

options:
  -h, --helpshow this help message and exit
  -mQMANAGER, --qmanager=QMANAGER
Queue Manager to inquire against
  -sHOST, --server=HOST
Host the que manager resides on
  -cCHECK, --check=CHECK
Test object if it is
less/equal/greater
  -pPORT, --port=PORT   Port queue manager listens on
  -oOBJECT, --object=OBJECT
Queue object being inquired on
  -kKEY, --key=KEY  object attribute to be inquired
about
  -tMTO, --to=MTO   e-mail address the report will go to
  -q, --quiet   optional - just returns the value
  -fFILE, --file=FILE   Pull command strings from FILE
  -d, --display optional - use sends output to
e-mail
 """


#
# Trap signal interrupts if they occur
#
def signal_handler(signal, frame):
print 'Signal trapped %s' % signal
sys.exit(0)


#
# Read a file into a list
#
def use_file():
myfile = open(options.filename)
while True:
line=myfile.readline()
print line
if len(line) == 0:
myfile.close()
break
else:
return line
myfile.close()  



def check_params():
if options.report is not None:
if options.mto is None:
print "\nAsked to send via e-mail but no destination 
address supplied"
usage()
sys.exit(1)
if options.key is None:
print"\n\nPlease enter a valid key to inquire upon.\n\nPlease check
your options and try again"
usage()
sys.exit(1)

if ( options.port <="1414" ) or ( options.port >="1419" ):
print "\n\nAn invalid port number was used. \nValid port numbers
are 1415,1416,1417, and 1418."
print "\nPlease check the port number and try again"
usage()
sys.exit(1)

#
#
# Test return value
#
def testval(inc,value):
vallen = int(value)
if vallen > inc :
return "\nless than test value\n"
elif vallen < inc :
return "\nexceeds test value\n"
else:
return "\nequal to test value\n"


# Validate e-mail addresses based on lexical rules set forth in RFC 822
# Ported from Recipe 3.9 in Secure Programming Cookbook for C and C++ by
# John Viega and Matt Messier (O'Reilly 2003)
#
# If the supplied email address is syntactically valid, isAddressValid()
# will return 1; otherwise, it will return 0.
#
def isAddressValid(addr):
#   
# First we validate the name portion ([EMAIL PROTECTED])
#
c = 0
while c < len(addr):
if addr[c] == '"' and (not c or addr[c - 1] == '.' or addr[c
- 1] == '"'):
c = c + 1
while c < len(addr):
if addr[c] == '"': break
if addr[c] == '\\' and addr[c + 1] == ' ':
c = c + 2
continue
if ord(addr[c]) < 32 or ord(addr[c]) >= 127: return 0
c = c + 1
else: return 0
if addr[c] == '@': break
if addr[c] != '.': return 0
c = c + 1
continue
if addr[c] == '@': break
if ord(addr[c]) <= 32 or ord(addr[c]) >= 127: return 0
if addr[c] in rfc822_specials: return 0
c = c + 1
if not c or addr[c - 1] == '.': return 0

# Next we validate the domain port

Re: Can't see the forest for the trees - when reading file, only processing first line

2006-04-13 Thread News
[EMAIL PROTECTED] wrote:
> Suggest keeping it simple:
> 
> def use_file():
>   return open(options.filename).readlines()
> 
> m
> 

Very cool..

Didn't know you could do that.



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


Has anybody used cx_bsdiff?

2005-10-25 Thread News Reader
Hello,

I am trying to use cx_bsdiff 
(http://starship.python.net/crew/atuining/cx_bsdiff/index.html) to to 
make a diff and patch some files.  It appears that I can make the diff, 
but when I apply the patch, the result is not the same.

As far as I understand the documentation, I am using this correctly. 
Can anyone help me find what is wrong in the code below?

Thanks.  Please reply to the list.

NR.

=

import bsdiff, bz2
import cPickle as pickle
from filecmp import dircmp


def diffdir(comparator, basepath=''):
 return [os.path.join(basepath, fname)
 for fname in comparator.diff_files]


def descend(comparator, basepath=''):
 print 'Examining "%s"...' % basepath
 yield diffdir(comparator, basepath)
 for subdir in comparator.subdirs:
 subname = os.path.join(basepath, subdir)
 subcmp = comparator.subdirs[subdir]
 for subresult in descend(subcmp, subname):
 yield subresult


def compare_all(orig_dir, fix_dir):
 patch = {}
 comparator = dircmp(orig_dir, fix_dir, [])
 for diff_list in descend(comparator):
 for diff_file in diff_list:
 orig_fname = os.path.join(orig_dir, diff_file)
 fix_fname = os.path.join(fix_dir, diff_file)
 print 'Making diff of %s...' % diff_file
 orig_data = open(orig_fname, 'rb').read()
 fix_data = open(fix_fname, 'rb').read()
 dl = len(fix_data)
 ctrl, dblock, xblock = bsdiff.Diff(orig_data, fix_data)
 patch[diff_file] = (dl, ctrl, dblock, xblock)
 print 'Done.'
 return patch


def fix_all(tofix_dir, patch):
 for fname in patch:
 orig_fname = os.path.join(tofix_dir, fname)
 print 'Fixing %s...' % orig_fname
 datafile = open(orig_fname, 'rb')
 orig_data = datafile.read()
 datafile.close()
 fix_data = bsdiff.Patch(orig_data, *patch[fname])
 datafile = open('%s-fixed' % orig_fname, 'wb')
 datafile.write(fix_data)
 datafile.close()
 os.remove(orig_fname)
 os.rename('%s-fixed' % orig_fname, orig_fname)


def save(object, filename, protocol=-1):
 compressed = bz2.BZ2File(filename, 'wb')
 compressed.write(pickle.dumps(object, protocol))
 compressed.close()


def load(filename):
 compressed = bz2.BZ2File(filename, 'rb')
 object = pickle.loads(compressed.read())
 compressed.close()
 return object


def make_patch():
 orig_dir = raw_input('Original Directory: ')
 fix_dir = raw_input('Fixed Directory: ')
 savepatch = raw_input('Save result? (y/n): ')
 if savepatch == 'y':
 patchname = raw_input('Patch file name: ')
 else: savepatch = ''
 patch = compare_all(orig_dir, fix_dir)
 if savepatch:
 save(patch, patchname)

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


XML + Elementree + (ZODB or Durus) experiments?

2006-01-23 Thread News Reader
A year or so ago, there was a posting - I believe on someone's blog - 
which told of a unique experiment.  The experimenter tried loading and 
searching a large XML document based on three strategies:

1. (I think) elementree directly
2. Store entire XML document in ZODB (or Durus, can't remember)
3. Subclass Elementree.Element, store each XML node separately in the 
ZODB/Durus.

The experimenter then did timings on opening up and using the XML 
documents in each of these three ways.

Does anybody remember that post?  Does any body have a link, code, 
cache, anything?

Please reply to the list, as the email address is invalid.

Thanks,

E. List


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


dedTUNIA: Gegen kreisrunden Haarausfall - Against circular loss of hair - Contre Alopécie Areata

2005-06-10 Thread dedTUNIA NEWS
GO: www.dedTUNIA.com

Betroffen von Alopecia Areata: dedTUNIA hilft auch Ihnen

Affected by Alopecia Areata: dedTUNIA can help you too !

Affecté par l´Alopécie Areata: dedTUNIA peut vous aider !

Website in: Deutsch - English - Francais

GO: www.dedTUNIA.com

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

Pythonwin Install COM exceptions on Windows Vista Ultimate

2007-08-29 Thread Sandipan News
What do I do? Can't do without Python!
Any experience, advice, hope is welcome.
Thanks.
Sandipan


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


RE: Pythonwin Install COM exceptions on Windows Vista Ultimate

2007-08-29 Thread Sandipan News
Here is the log at the end of the install:

Copied pythoncom25.dll to C:\Outils\Python\pythoncom25.dll
Copied pywintypes25.dll to C:\Outils\Python\pywintypes25.dll
You do not have the permissions to install COM objects.
The sample COM objects were not registered.
-> Software\Python\PythonCore\2.5\Help[None]=None
-> Software\Python\PythonCore\2.5\Help\Pythonwin
Reference[None]='C:\\Outils\\Python\\Lib\\site-packages\\PyWin32.chm'
Creating directory C:\Outils\Python\Lib\site-packages\win32com\gen_py
Shortcut for Pythonwin created
Shortcut to documentation created
The pywin32 extensions were successfully installed.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, August 29, 2007 9:25 AM
To: python-list@python.org
Subject: Re: Pythonwin Install COM exceptions on Windows Vista Ultimate

On Aug 28, 8:20 pm, "Sandipan News" <[EMAIL PROTECTED]> wrote:
> What do I do? Can't do without Python!
> Any experience, advice, hope is welcome.
> Thanks.
> Sandipan

You need to post the error traceback along with some more information
so the community can help.

Mike

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


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


RE: Pythonwin Install COM exceptions on Windows Vista Ultimate

2007-08-29 Thread Sandipan News
How do I deactivate UAC and Router?

I did run as Administrator and installed both Python and Pythonwin into
c:\Python25\

This is the error I got ...

Here is the log at the end of the install:

Copied pythoncom25.dll to C:\Outils\Python\pythoncom25.dll
Copied pywintypes25.dll to C:\Outils\Python\pywintypes25.dll
You do not have the permissions to install COM objects.
The sample COM objects were not registered.
-> Software\Python\PythonCore\2.5\Help[None]=None
-> Software\Python\PythonCore\2.5\Help\Pythonwin
Reference[None]='C:\\Outils\\Python\\Lib\\site-packages\\PyWin32.chm'
Creating directory C:\Outils\Python\Lib\site-packages\win32com\gen_py
Shortcut for Pythonwin created
Shortcut to documentation created
The pywin32 extensions were successfully installed.

Thanks.

Sandipan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Méta-MCI (MVP)
Sent: Wednesday, August 29, 2007 9:19 AM
To: python-list@python.org
Subject: Re: Pythonwin Install COM exceptions on Windows Vista Ultimate

Hi!

Perso, on Vista, I :
  - deactive UAC
  - deactive firewall (I have a rooter)
  - run all like Administrator
  - install all in other DIR than "Program Files"

Result :  no problem.


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


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


RE: Pythonwin Install COM exceptions on Windows Vista Ultimate

2007-09-02 Thread Sandipan News
Here are some steps I used to finally successfully install Python and
Pythonwin on Vista Ultimate:

1. Uninstalled Python (could not see a way to uninstall Pythonwin)
2. Installed Python again (.MSI does not provide option to run as
Administrator)
3. Rebooted computer
4. Installed Pythonwin with right click option "Run as Administrator" - This
was different from the last time I installed this.

Copied pythoncom25.dll to C:\Windows\system32\pythoncom25.dll
Copied pywintypes25.dll to C:\Windows\system32\pywintypes25.dll
Registered: Python.Interpreter 
Registered: Python.Dictionary 
Registered: Python 
-> Software\Python\PythonCore\2.5\Help[None]=None
-> Software\Python\PythonCore\2.5\Help\Pythonwin
Reference[None]='C:\\Python25\\Lib\\site-packages\\PyWin32.chm'
Shortcut for Pythonwin created
Shortcut to documentation created
The pywin32 extensions were successfully installed.

This time, no errors.

5. Started up a Python script from a directory using right-click | Open With
| Pythonwin.exe and it works fine.

Earlier it was giving an error about not being able to locate win32ui.pyd.

I did not touch UAC or Router/Rooter/Firewall ... I did not know how to.

Thanks.

Sandipan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Sandipan News
Sent: Wednesday, August 29, 2007 9:41 PM
To: 'Méta-MCI (MVP)'; python-list@python.org
Subject: RE: Pythonwin Install COM exceptions on Windows Vista Ultimate

How do I deactivate UAC and Router?

I did run as Administrator and installed both Python and Pythonwin into
c:\Python25\

This is the error I got ...

Here is the log at the end of the install:

Copied pythoncom25.dll to C:\Outils\Python\pythoncom25.dll
Copied pywintypes25.dll to C:\Outils\Python\pywintypes25.dll
You do not have the permissions to install COM objects.
The sample COM objects were not registered.
-> Software\Python\PythonCore\2.5\Help[None]=None
-> Software\Python\PythonCore\2.5\Help\Pythonwin
Reference[None]='C:\\Outils\\Python\\Lib\\site-packages\\PyWin32.chm'
Creating directory C:\Outils\Python\Lib\site-packages\win32com\gen_py
Shortcut for Pythonwin created
Shortcut to documentation created
The pywin32 extensions were successfully installed.

Thanks.

Sandipan

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Méta-MCI (MVP)
Sent: Wednesday, August 29, 2007 9:19 AM
To: python-list@python.org
Subject: Re: Pythonwin Install COM exceptions on Windows Vista Ultimate

Hi!

Perso, on Vista, I :
  - deactive UAC
  - deactive firewall (I have a rooter)
  - run all like Administrator
  - install all in other DIR than "Program Files"

Result :  no problem.


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


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


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


RE: Setting Current Dir in Python

2007-09-04 Thread Sandipan News
Tim and Gabriel,

Thank you so much. I was able to find and remove the special character from the 
line below and another one after it.
The error has now gone away.

Thanks also for the chdir solution, though I did not need it this time. The fix 
above was exactly what it needed to work.

I have my utilities chugging along again - What a relief!

Thanks again.

Sandipan

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gabriel Genellina
Sent: Tuesday, September 04, 2007 3:27 PM
To: python-list@python.org
Subject: Re: Setting Current Dir in Python

En Tue, 04 Sep 2007 09:12:22 -0300, Sandipan Gangopadhyay  
<[EMAIL PROTECTED]> escribi�:

> I have recently installed Python 2.5.1 and Pythonwin (without any  
> errors) on
> Windows Vista Ultimate.
>
> Now, the programs run fine within Pythonwin IDE when current directory is
> set to the program's directory.
>
> But, when I double click them from Windows Explorer, the program is not  
> run.

First, fix your source code (either removing the non-ascii character or  
adding an encoding line at the top, see  
) (PEP0263 is enforced from  
Python 2.5 and up; you got a warning on earlier versions).

os.getcwd() returns the current directory.
os.chdir() changes the current directory.
A shortcut on the desktop may use the desktop itself as the initial  
directory.
If you want to run your script from within the same directory as it  
resides, try this:
os.chdir(os.path.dirname(__file__))


-- 
Gabriel Genellina

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


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

>>> CIA Squashes Democracy in Pakistan <<

2007-11-05 Thread zionist . news
http://www.youtube.com/watch?v=BdB2r1ss5Wk

http://www.jewwatch.com/  <- excellent source for well researched
news on world events and the big movers of history

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


Re: >>> CIA Squashes Democracy in Pakistan <<

2007-11-05 Thread zionist . news
On Nov 5, 4:55 pm, Ivar Rosquist <[EMAIL PROTECTED]> wrote:
> On Mon, 05 Nov 2007 21:43:09 +, zionist.news wrote:
> >http://www.youtube.com/watch?v=BdB2r1ss5Wk
>
> >http://www.jewwatch.com/ <- excellent source for well researched
> > news on world events and the big movers of history
>
> What democracy? Pakistan will be either a military dictatorship
> or theocratic one. A country with such a high proportion of moslem
> fundamentalists is not likely to develop into a democracy any time soon.

Your understanding is rather shallow. However, my knowledge of history
is good enough to see the facts and put them in their proper
perspective. The  fundamentalist Islam is democratic by nature. (The
Coran itself gives rights to the non-moslem people and can be held up
by non-moslems to demand their rights.) We see that in Iran. There, a
commoner, Ahmadinejad has risen to be the leader by democratic voting.
The women are quite educated and as aggressive as the iranian males.
The videos and testimonials by the Rabbis of Neturei Karta who visited
Iran shows that the jews there live quite well. On the other hand,
here, the corporations decide who will get into the white house. The
wahhabi puppets in Saudi Arabia and the little estates on the
peninsula are dictators imposed by the Anglo-American forces. 911 was
staged to prevent a democratic revolution in Saudi Arabia as one of
its key objectives, and Osama was scapegoated to pre-empt a democratic
revolution like in Iran.

If you still insist on Iran as a theocracy, you might compare it with
Israel and think about how either treats its minority. Go to youtube
and google for neturei karta and find their videos about Iran.



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


Re: *** Will DEVASTATE and BANKRUPT any Brit daring to get out of line ***

2007-11-06 Thread zionist . news
Thanks for the useful info ... appreciate your efforts.

On Oct 26, 10:37 am, [EMAIL PROTECTED] wrote:
> http://www.ft.com/cms/s/0/56cb5b92-10a7-11dc-96d3-000b5df10621.html?n...
>
> Harvard legal expert vows to sue lecturers boycotting Israel
>
> By Jon Boone
>
> Published: June 2 2007 03:00
>
> A top American lawyer has threatened to wage a legal war against
> British academics who seek to cut links with Israeli universities.
>
> AlanDershowitz, a Harvard law professor renowned for his staunch
> defence of Israel and high-profile legal victories, including his role
> in the O.J. Simpson trial, vowed to "devastate and bankrupt" lecturers
> who supported such boycotts.
>
> This week's annual conference of Britain's biggest lecturers' union,
> the University and College Union, backed a motion damning the
> "complicity of Israeli academia in the occupation [of Palestinian
> land]".
>
> It also obliged the union's executive to encourage members to
> "consider the moral implications of existing and proposed links with
> Israeli academic institutions".
>
> ProfDershowitzsaid he had started work on legal moves to fight any
> boycott.
>
> He told the Times Higher Educational Supplement that these would
> include using a US law - banning discrimination on the basis of
> nationality - against UK universities with research ties to US
> colleges. US academics might also be urged to accept honorary posts at
> Israeli colleges in order to become boycott targets.
>
> "I will obtain legislation dealing with this issue, imposing sanctions
> that will devastate and bankrupt those who seek to impose bankruptcy
> on Israeli academics," he told the journal.
>
> Sue Blackwell, a UCU activist and member of the British Committee for
> Universities of Palestine, said: "This is the typical response of the
> Israeli lobby which will do anything to avoid debating the real issue
> - the 40-year occupation of Palestine." Jewish groups have attacked
> the UCU vote, which was opposed by Sally Hunt, its general secretary.
>
> C The Financial Times Limited 2007


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


Bill Gates was never the Richest man on earth

2007-11-06 Thread zionist . news
The world have been after Bill Gates for no reason. The richest group
was and remains the Zionist jew Rothschilds family who own HALF the
worlds total wealth through numerous frontmen zionists.

Mikhail Khodorkovsky, whom Russian President Vladimir I Putin put in
jail rose from the Rothschilds money. He changed his name to
Rothschild or red shield. The he sent his sons to various countries in
Europe and become bankers there. Using an innovative system of pigeons
for communication and encoded letters, the family invested in wars
that he knew were coming by staying close to the centers of powers in
all the countries which they had infilterated.

google video and youtube have many videos on the family. You can set
aside part of your weekend for educational entertainment by watching
these videos.

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


Rothschilds own half the worlds wealth directly and indirectly thru zionist proxies Re: Bill Gates was never the Richest man on earth

2007-11-06 Thread zionist . news
Rothschilds control half the world's wealth directly and indirectly
using zionist proxies, and loyalty based on the zionist racist cult

History of the Rothschilds part 1
http://www.youtube.com/watch?v=o_u2MaNg-EQ

History of the Rothschilds part 2
http://www.youtube.com/watch?v=o2cw-0N_Unk

FBI, Where are the two Israelis with TRUCKLOAD of explosives at the
George Washington Bridge ?
http://www.youtube.com/watch?v=JfVumKHkcIA   <- Shame stooopid
americans

Alex Jones Interviews David Mayer de Rothschild
http://video.google.com/videoplay?docid=4891699310483983031

The rise of the Rothschild Money Masters
http://www.youtube.com/watch?v=ZT3GyphxJv8

Rothschilds financed APARTHEID in South Africa. They corrupted Cecil
Rhodes, the son of an anglican minister, by TEACHING him evil
techniques of apartheid. Apartheid was taught to him by the father
zionists themselves.

Rothschilds control half the world's wealth directly and indirectly
using zionist proxies, and loyalty based on the zionist racist cult
http://www.youtube.com/watch?v=fXVJzXsraX4

On Nov 6, 9:53 am, [EMAIL PROTECTED] wrote:
> The world have been after Bill Gates for no reason. The richest group
> was and remains the Zionist jew Rothschilds family who own HALF the
> worlds total wealth through numerous frontmen zionists.
>
> Mikhail Khodorkovsky, whom Russian President Vladimir I Putin put in
> jail rose from the Rothschilds money. He changed his name to
> Rothschild or red shield. The he sent his sons to various countries in
> Europe and become bankers there. Using an innovative system of pigeons
> for communication and encoded letters, the family invested in wars
> that he knew were coming by staying close to the centers of powers in
> all the countries which they had infilterated.
>
> google video and youtube have many videos on the family. You can set
> aside part of your weekend for educational entertainment by watching
> these videos.


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


>>>> 911 operation by evil JEWS and Mossad <<<

2007-11-07 Thread zionist . news
911 carried out by evil jews and mossad
http://www.guba.com/watch/2000991770

911 truckload of Explosives on the George Washington Bridge
http://www.youtube.com/watch?v=J520P-MD9a0

Benjamin Freedman's SEMINAL TESTIMONIAL SPEECH
http://video.google.com/videoplay?docid=3552214685532803163

Benjamin Freedman speech with Slide Show (40 Minute Excerpt)
http://video.google.com/videoplay?docid=3552214685532803163

Free pdf book: THE MANUFACTURE AND SALE of Saint Einstein
@
http://jewishracism.com/SaintEinstein.htm

Author interviews @
http://jewishracism.com/interviews.htm

Rothschilds control half the world's wealth directly and indirectly
using zionist proxies, and loyalty based on the zionist racist cult of
hate and paranoia based on being caught for collective financial
crimes and crimes of other categories

History of the Rothschilds part 1
http://www.youtube.com/watch?v=o_u2MaNg-EQ

History of the Rothschilds part 2
http://www.youtube.com/watch?v=o2cw-0N_Unk

FBI, Where are the two Israelis with TRUCKLOAD of explosives at the
George Washington Bridge ?
http://www.youtube.com/watch?v=JfVumKHkcIA   <- Shame stooopid
americans

Alex Jones Interviews David Mayer de Rothschild
http://video.google.com/videoplay?docid=4891699310483983031

The rise of the Rothschild Money Masters
http://www.youtube.com/watch?v=ZT3GyphxJv8

Rothschilds financed APARTHEID in South Africa. They corrupted Cecil
Rhodes, the son of an anglican minister, by TEACHING him evil
techniques of apartheid. Apartheid was taught to him by the father
zionists themselves.

Rothschilds control half the world's wealth directly and indirectly
using zionist proxies, and loyalty based on the zionist racist cult
http://www.youtube.com/watch?v=fXVJzXsraX4

Was Hitler's father a bastard son of Rothschilds? Did the Salomon
Mayer von Rothschild perhaps rape  Maria Anna Schicklgruber in dark so
that she could not ever claim with certainty who the real father was?
Look at his facial features, typical central asian khazar. What was
the cause of Hitler's fanatical hatred for the Jews ?
http://en.wikipedia.org/wiki/Alois_Hitler
http://www.youtube.com/watch?v=TihCM_q59c8

On Nov 6, 9:53 am, [EMAIL PROTECTED] wrote:

> The world has been after Bill Gates for no reason. The richest group
> was and remains the Zionist jew Rothschilds family who own HALF the
> worlds total wealth through numerous frontmen zionists.

> Mikhail Khodorkovsky, whom Russian President Vladimir I Putin put in
> jail rose from the Rothschilds money. Mayer Amschel Bauer changed his name to
> Rothschild or red shield. The he sent his sons to various countries in
> Europe and become bankers there. Using an innovative system of pigeons
> for communication and encoded letters, the family invested in wars
> that he knew were coming by staying close to the centers of powers in
> all the countries which they had infilterated.

> google video and youtube have many videos on the family. You can set
> aside part of your weekend for HEALTHY education so your
> kids can learn how to avoid being hunted by these snakes.

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


A JEW hacker in California admits distributing malware that let him steal usernames and passwords for Paypal accounts.

2007-11-10 Thread zionist . news
A Jew hacker in California admits distributing malware that let him
steal usernames and passwords for Paypal accounts.

http://www.pcworld.com/article/id,139507-c,cybercrime/article.html

The Jews and Israelis the top notch WHITE COLLAR CRIMINALS, YET, they
are harassing MOSLEMS in CALIFORNIA. Do you know why ? BECAUSE ALL THE
POLITICIANS ARE IN THEIR POCKET. Most senators and congressmen are the
same ASHKENAZI KHAZAR JEWS.
Tom Lantos and Diane Feinstein are two of the most crooked senators
from CALIFORNIA and both Ashkenazi and khazar.

LAPD to RACIALLY PROFILE MOSLEMS:
http://www.latimes.com/news/local/la-me-lapd9nov09,0,1646403.story?page=2&coll=la-home-center

LAPD to build data on Muslim areas

Anti-terrorism unit wants to identify sites 'at risk' for extremism.
By Richard Winton, Jean-Paul Renaud and Paul Pringle, Los Angeles
Times Staff Writers
November 9, 2007
An extensive mapping program launched by the LAPD's anti-terrorism
bureau to identify Muslim enclaves across the city sparked outrage
Thursday from some Islamic groups and civil libertarians, who
denounced the effort as an exercise in racial and religious profiling.

Los Angeles Police Department Deputy Chief Michael P. Downing, who
heads the bureau, defended the undertaking as a way to help Muslim
communities avoid the influence of those who would radicalize Islamic
residents and advocate "violent, ideologically-based extremism."

"We are seeking to identify at-risk communities," Downing said in an
interview Thursday evening. "We are looking for communities and
enclaves based on risk factors that are likely to become
isolated. . . . We want to know where the Pakistanis, Iranians and
Chechens are so we can reach out to those communities."

Downing added that the Muslim Public Affairs Council has embraced the
vaguely defined program "in concept." The group's executive director,
Salam Al-Marayati, said Thursday that it wanted to know more about the
plan and had a meeting set with the LAPD next week.

"We will work with the LAPD and give them input, while at the same
time making sure that people's civil liberties are protected," said Al-
Marayati, who commended Downing for being "very forthright in his
engagement with the Muslim community."

Others condemned the project, however.

"We certainly reject this idea completely," said Shakeel Syed,
executive director of the Islamic Shura Council of Southern
California. "This stems basically from this presumption that there is
homogenized Muslim terrorism that exists among us."

Syed said he is a member of Police Chief William J. Bratton's forum of
religious advisors, but had not been told of the community mapping
program. "This came as a jolt to me," Syed said.

Hussam Ayloush, who leads the Los Angeles chapter of the Council on
American-Islamic Relations, said the mapping "basically turns the LAPD
officers into religious political analysts, while their role is to
fight crime and enforce the laws."

During Oct. 30 testimony before Congress, Downing described the
program broadly as an attempt to "mitigate radicalization." At that
time, he said law enforcement agencies nationwide faced "a vicious,
amorphous and unfamiliar adversary on our land."

Downing and other law enforcement officials said police agencies
around the world are dealing with radical Muslim groups that are
isolated from the larger community, making potential breeding groups
for terrorism. He cited terror cells in Europe as well as the case of
some Muslim extremists in New Jersey arrested in May for allegedly
planning to bomb Ft. Dix.

"We want to map the locations of these closed, vulnerable communities,
and in partnership with these communities . . . help [weave] these
enclaves into the fabric of the larger society," he said in his
testimony.

"To do this, we need to go into the community and get to know peoples'
names," he said. "We need to walk into homes, neighborhoods, mosques
and businesses."

To assemble the mapping data, Downing said in an interview Thursday,
the LAPD intends to enlist USC's Center for Risk and Economic Analysis
of Terrorism Events, which was founded four years ago with $12 million
in federal funds.

In 2003, university officials said the center would focus on threats
to power plants, telecommunications and transportation systems.

It recently was tapped to strengthen security at Los Angeles
International Airport.

Downing said the effort would not involve spying on neighborhoods. He
said it would identify groups, not individuals.

"This has nothing to do with intelligence," he said, comparing it to
market research.

But in his congressional testimony, Downing said the LAPD hoped to
identify communities that "may be susceptible to violent,
ideologically-based extremism and then use a full-spectrum a

Re: A JEW hacker in California admits distributing malware that let him steal usernames and passwords for Paypal accounts.

2007-11-10 Thread zionist . news
On Nov 10, 2:22 pm, "Frank Arthur" <[EMAIL PROTECTED]> wrote:
> <[EMAIL PROTECTED]> wrote in message
>
> news:[EMAIL PROTECTED]
>
> >A Jew hacker in California admits distributing malware that let him
> > steal usernames and passwords for Paypal accounts.
>
> 83 Newspapers reported the "Hacker story" and not one mentioned the
> word Jew.
> Who but a madman would say what the hacker's religion was- IF he knew!
>
> Los Angeles hacker to plead guilty to infecting 250,000 computers to
> steal identities
>
> The Associated PressPublished: November 10, 2007
>
>   E-Mail Article
>
> LOS ANGELES: A computer security consultant accused of installing
> malicious software to create an army of up to 250,000 "zombie"
> computers so he could steal identities and access bank accounts will
> plead guilty to four federal charges.
>
> John Schiefer, 26, of Los Angeles, agreed Friday to plead guilty to
> accessing protected computers to conduct fraud; disclosing illegally
> intercepted electronic communications; wire fraud and bank fraud, the
> U.S. Attorney's office said.
>

Listen to Mr Benjamin Freedman's speech on google. He calls the
ASHKENAZI KHAZARS by the label "the so called jews". Jew is not a
religion anymore. The Khazars dont practice the Torah. According to
Neturei Karta, they are now only a race, a power group or zionists. We
will still use the word jew because it is pithy, but we mean by it
zionists as the Neturei Karta say or "the so called jews" as Mr
Benjamin Freedman says.

Having clarified that, it is quite clear that the MISCHIEFER, John
Schiefer, 26 of LOS ANGELES who pleaded guilty is a KHAZAR, ASHKENAZI.
That is his race and we bring it out only because according to the 911
truth research, the event was a controlled demolition. Explosives were
used and the whole ownership and security of the building was in the
hands of the non-islamics. Larry Silverstein is an ASHKENAZI KHAZAR
jew.

Professor Steven Jones has found the residue of thermate in the dust
of the buildings. KMnO4 residue, ie high amounts of SULFUR, potassium,
manganese, and the iron dust particles are SPHERICAL. Which means that
they saw a very high temperature above the melting point.

You can lie as much as you want. The physics and the circumstantial
evidence cannot hide your lie.

The anthrax mailer was NOT an Islamic.

Otherwise the FBI must produce the criminal with out ANY ambiguity.

Also, what about the 5 dancing ISRAELIS and the VAN WITH EXPLOSIVES on
the WASHINGTON BRIDGE. Show us the ARABS who were in the VAN. They
were Israelis trying to blow  up the George Washington Bridge, and put
the blame on ARABS.

The police caught these people. I have great respect for the POLICE
who do their jobs honestly.


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


Rothschilds own half the worlds wealth directly and indirectly thru zionist proxies Re: Bill Gates was never the Richest man on earth

2007-11-12 Thread zionist . news
On Nov 11, 5:48 am, "GOH, Kheng-Swee" <[EMAIL PROTECTED]>
wrote:
> On Tue, 06 Nov 2007 17:53:01 -, [EMAIL PROTECTED] wrote:
>
> ...
>
> >Using an innovative system of pigeons
> >for communication and encoded letters, ...
>
> I didn't believe you until I read that part. It all makes sense now!   
> <

You would learn a lot MORE if you listened to the videos whose links
are provided.
Please share these links anonymously with your friends, neighbors or
anyone whose email you know.

Spread quality knowledge.

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


Re: A JEW hacker in California admits distributing malware that let him steal usernames and passwords for Paypal accounts.

2007-11-12 Thread zionist . news
On Nov 10, 3:02 pm, ChairmanOfTheBored <[EMAIL PROTECTED]>
wrote:
> On Sat, 10 Nov 2007 22:10:15 -, [EMAIL PROTECTED] wrote:
> >The mapping of Muslim communities
>
>   You're a goddamned retard.

A Jew hacker in California admits distributing malware that let him
steal usernames and passwords for Paypal accounts.

http://www.pcworld.com/article/id,139507-c,cybercrime/article.html

The Jews and Israelis the top notch WHITE COLLAR CRIMINALS, YET, they
are harassing MOSLEMS in CALIFORNIA. Do you know why ? BECAUSE ALL THE
POLITICIANS ARE IN THEIR POCKET. Most senators and congressmen are the
same ASHKENAZI KHAZAR JEWS.
Tom Lantos and Diane Feinstein are two of the most crooked senators
from CALIFORNIA and both Ashkenazi and khazar.

LAPD to RACIALLY PROFILE MOSLEMS:
http://www.latimes.com/news/local/la-me-lapd9nov09,0,1646403.story?pa...

LAPD to build data on Muslim areas

Anti-terrorism unit wants to identify sites 'at risk' for extremism.
By Richard Winton, Jean-Paul Renaud and Paul Pringle, Los Angeles
Times Staff Writers
November 9, 2007
An extensive mapping program launched by the LAPD's anti-terrorism
bureau to identify Muslim enclaves across the city sparked outrage
Thursday from some Islamic groups and civil libertarians, who
denounced the effort as an exercise in racial and religious profiling.

Los Angeles Police Department Deputy Chief Michael P. Downing, who
heads the bureau, defended the undertaking as a way to help Muslim
communities avoid the influence of those who would radicalize Islamic
residents and advocate "violent, ideologically-based extremism."

"We are seeking to identify at-risk communities," Downing said in an
interview Thursday evening. "We are looking for communities and
enclaves based on risk factors that are likely to become
isolated. . . . We want to know where the Pakistanis, Iranians and
Chechens are so we can reach out to those communities."

Downing added that the Muslim Public Affairs Council has embraced the
vaguely defined program "in concept." The group's executive director,
Salam Al-Marayati, said Thursday that it wanted to know more about the
plan and had a meeting set with the LAPD next week.

"We will work with the LAPD and give them input, while at the same
time making sure that people's civil liberties are protected," said
Al-
Marayati, who commended Downing for being "very forthright in his
engagement with the Muslim community."

Others condemned the project, however.

"We certainly reject this idea completely," said Shakeel Syed,
executive director of the Islamic Shura Council of Southern
California. "This stems basically from this presumption that there is
homogenized Muslim terrorism that exists among us."

Syed said he is a member of Police Chief William J. Bratton's forum of
religious advisors, but had not been told of the community mapping
program. "This came as a jolt to me," Syed said.

Hussam Ayloush, who leads the Los Angeles chapter of the Council on
American-Islamic Relations, said the mapping "basically turns the LAPD
officers into religious political analysts, while their role is to
fight crime and enforce the laws."

During Oct. 30 testimony before Congress, Downing described the
program broadly as an attempt to "mitigate radicalization." At that
time, he said law enforcement agencies nationwide faced "a vicious,
amorphous and unfamiliar adversary on our land."

Downing and other law enforcement officials said police agencies
around the world are dealing with radical Muslim groups that are
isolated from the larger community, making potential breeding groups
for terrorism. He cited terror cells in Europe as well as the case of
some Muslim extremists in New Jersey arrested in May for allegedly
planning to bomb Ft. Dix.

"We want to map the locations of these closed, vulnerable communities,
and in partnership with these communities . . . help [weave] these
enclaves into the fabric of the larger society," he said in his
testimony.

"To do this, we need to go into the community and get to know peoples'
names," he said. "We need to walk into homes, neighborhoods, mosques
and businesses."

To assemble the mapping data, Downing said in an interview Thursday,
the LAPD intends to enlist USC's Center for Risk and Economic Analysis
of Terrorism Events, which was founded four years ago with $12 million
in federal funds.

In 2003, university officials said the center would focus on threats
to power plants, telecommunications and transportation systems.

It recently was tapped to strengthen security at Los Angeles
International Airport.

Downing said the effort would not involve spying on neighborhoods. He
said it would identify groups, not individuals.

"This has nothing to do with intelligence," he said, comparing it to
market res

Re: A JEW hacker in California admits distributing malware that let him steal usernames and passwords for Paypal accounts.

2007-11-12 Thread zionist . news
On Nov 12, 5:39 pm, ChairmanOfTheBored <[EMAIL PROTECTED]>
wrote:
> On Mon, 12 Nov 2007 22:07:39 -, [EMAIL PROTECTED] wrote:
> >On Nov 12, 11:29 am, "radiosrfun" <[EMAIL PROTECTED]> wrote:
>
> >> It was MUSLIMS who killed close to 3000 people of all races/religions.
>
> >Where is your proof ?
>
>   Are you a goddamned idiot?  The one asswipe we caught ADMITTED IT, you
> stupid fuck!
>
>   Bin Retardin claimed it was he that did it.  Get a clue, dipshit.

Quite obviously, your vulgar diatribe is that of a loser in an
argument. If you watch the Osama video, its been shown CLEARLY by many
researchers that the video is fake and the BIOMETRICS of the person in
the video DO NOT MATCH the biometrics of Osama.

Second, who admitted it ? Under torture you will admit anything. It is
possible that a foolish patsy could have made a plan aided by his
handlers. But the fact is that the towers were brought down by
explosives and thermate cutter charges. The pools of molten metals and
the atoms of KMnO4 and Sulfur did not get there in such high
quantities from nowhere.

Someone had to get into those buildings to the support columns in
numerous places and plant those explosives and thermate cutter
charges.

Someone had to disable the NORAD command to allow the show of planes
hitting the towers to finish and same for the pentagon.

Someone had to get access to the military grade anthrax to mail it in
fake letters to Senator Patrick Leahy.

Your arguments are pathetically weak and the whole newsgroups are
watching your defeat including Mr Robin Fairbairns.

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


Re: boolean decisions

2008-02-05 Thread news-noreply
Statestep (which includes Python code generation) might
be something to look at.
It's designed to help the user create simplified rules
to begin with rather than derive them post hoc (it's
really for much bigger problems where enumerating
individual rules like you've done would be impractical)
...
However, if you start with an "exploded" set of atomic
rules like you now have, you could create simplified
rules yourself, progressively deleting the rules you are
replacing (identified as overlaps by Statestep); this
way, at least the tool is checking the correctness of
the transformation from individual to simplified rules
(if you make a mistake then a conflict will be reported
rather than an overlap).

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


Re: diffing and uniqing directories

2008-04-27 Thread telus news
Just so happens that I am partially finished a gui file backup app. I have 
many backup CDs and I wanted to consolidate them. You know, all image files 
in one dir, all install files in another dir, etc. My app scans the input 
dir tree and displays all file extensions that it finds. You can then remove 
any extensions that you don't want backed-up, and you can toggle to exclude 
the listed extensions. It also calculates min/max file sizes that you can 
adjust.


Then the next page allows you to adjust the sub-dir depth with a slider, 
which displays the total number of files and total amount of memory they 
will take, for each sub-dir depth. You can also choose to enable versioning, 
whether or not to put all files into one dir or create a dir for each file 
type (extension), whether or not to actually backup the files, to write all 
input pathnames and/or output pathnames to a file. Of course, it won't 
backup a dir tree as a copy, it can only flatten a dir tree, so if you 
backup a development source dir, all files will get put into the same dir 
and that wouldn't be good.


I've also used py2exe to make it a drag-n-drop install. What do you think?
<[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

On Apr 27, 2:37 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:

On Sat, 26 Apr 2008 20:35:29 -0700, rustom wrote:
> On Apr 27, 12:31 am, [EMAIL PROTECTED] wrote:
>> On Apr 26, 1:14 pm, "Rustom Mody" <[EMAIL PROTECTED]> wrote:
>> […]

> If this is an answer to my question I dont understand it!

castironpi is either a bot or trolling. Just ignore its posts.

Ciao,
Marc 'BlackJack' Rintsch


I am a bot or trolling.  Bots and bot detectors were the first forms
of internet life, you know. 


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


ctypes question

2010-12-10 Thread News Wombat
Hi everyone,

I've been experimenting with the ctypes module and think it's great.
I'm hitting a few snags though with seg faults.  I attached two links
that holds the code.  The line i'm having problems with is this,

sn=clibsmi.smiGetNextNode(pointer(sno),SMI_NODEKIND_ANY)

It will work one time, and if I call it again with the result of the
previous, even though the result (a c struct) looks ok, it will
segfault.  I think it's a problem with pointers or maybe the function
in the c library trying to change a string that python won't let it
change.  I'm stuck, any tips would be appreciated.  Thanks, and Merry
Christmas!

constants.py: http://pastebin.com/HvngjzZN
libsmi.py: http://pastebin.com/19C9kYEa
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: ctypes question

2010-12-14 Thread News Wombat
On Dec 11, 12:59 pm, MrJean1  wrote:

> In general, for shared libraries, you need to define those first as
> prototype using ctypes.CFUNCTYPE() and then instantiate each prototype
> once supplying the necessary parameter flags using
> prototype(func_spec, tuple_of_param_flags).  See sections 15.16.2.3
> and 4 of the ctypes docs*.

I tried the cfuntype and proto steps, and it's not crashing now
(that's good), but now i'm just left with null pointers as a return
object.  I'm still working through all of the examples you sent.  They
were extremely helpful.  Here's where I'm at now...

What is strange is I can actually get smiGetNode to work if I don't
cfunctype/proto it.  If i do, nada.  however, the smiGetNextNode fails
no matter what, usually with a segfault, but depending on how i
construct it, sometimes a null pointer.

constants.py: http://pastebin.com/f3b4Wbf0
libsmi.py: http://pastebin.com/XgtpG6gr
smi.c (the actual function): http://pastebin.com/Pu2vabWM
-- 
http://mail.python.org/mailman/listinfo/python-list


سكس اسرائيلى موقع سميرة الشرموطة موقع الشرموطة سميرة موقع ميلتا للجنس العربي موقع مليتا للسكس العربي موقع مليتا موقع 89

2017-05-20 Thread cyprus news

سكس اسرائيلى موقع سميرة الشرموطة موقع الشرموطة سميرة موقع ميلتا للجنس العربي 
موقع مليتا للسكس العربي موقع مليتا موقع 89 

سكس منيوكه مرفت جنس منيوكة مصرية منديات عرب لبنان سكس منتديات فلام إغتصاب 
منتديات سكسية منتديات سكس منتديات شرموطة منتديات رومنسي السكسية منت




https://mslslat2017.blogspot.com.cy/
https://mslslat2017.blogspot.com.cy/ 

 
سكس اسرائيلى موقع سميرة الشرموطة موقع الشرموطة سميرة موقع ميلتا للجنس العربي 
موقع مليتا للسكس العربي موقع مليتا موقع 89 سكس منيوكه مرفت جنس منيوكة مصرية 
منديات عرب لبنان سكس منتديات فلام إغتصاب منتديات سكسية منتديات سكس منتديات 
شرموطة منتديات رومنسي السكسية منتديات جنسيه مجانيه منتديات جنسية منتديات افلام 
سكس مصريلمجاني دون اشتراك افلام فيفى عبدة سكس افلام فيديو سوري مع سودانيين 
افلام عربيه سكسي افلام عراقية خليعة افلام سكس من مواقع غير محجوبه افلام سيكس 
ورعان افلام سيكس مصرية افلام جنس عربيه مجانيه افلام جنس مجانا افلام تونسيه 
زبيده ثروت افلام بلوتوث افلام الفمر المصرى قصيرة للتحميل المجانى دون افلام 
ميرفت امين السكس افلام محارم جنسية افلام لبنانية مثيرة افلام دعارة عربية افلا 
سكس للفنانات افلا م عربى سكس افلم وصور سيكس اغنية شو بني للموبايل اغتصاب نساء 
بنات اطفال عراقيات مجاني اغتصاب ورعان اغانىعربيه اغاني ننسي عجرم اغاني هجوله 
استماع اغاني عن البنات ممنوعه اغانى حديثة اغاني افلام كارتون سبيستون اغاني 
اجنبي قديمه mp3 اغانى اجنبي ديسكو اغاني للموبايل mp3 اغاني لورده الجزاءريه 
لتنزيل اغا ني مصربة اغا نى لحن اغا بى شعبى اسماء لافلام سكس بالعربيه ارقام 
موبيل للتعارف اريد سكسا اريد مواقع مسيحية للاطفال اريد مشاهدة صور سكس مجاتا اخر 
اخبار الممثلات العرب اخر مقاطع للاغاني اجدد الصور للفنانين اجانب اجدد الصور 
للفنانين مصريين اجدد الافلام السكس الاجنبيه احدث قصص محارم احدث صور باسكال احدث 
رقص شرقى مجانا احدث برامج مليتا احدث افلم اجنبى احدث النيك احدث الصور العربية 
السكسية احدث مقاطع اغانى احدث موقع سكسي احدث موقع اباحي اخبار الفنا نا ت 
ايميلات شراميط ايميلات بنات مصريه احلى قصص السكس العربية احلى قحبه احلي جنس 
مصري احلى بزاز احلى مغربية في جدة احلا طيز اجمل فلام سكس اجمل صور سكس للفنانات 
الخليج اجمل شرموطه سوريه اجمل رقص مصري اجمل جميلات تركيا اجمل الصور السكسية 
اجمل الصور للفنانات اجمل المواقع السكسية اجمل موقع السكس العربى اافلام سكس 
عربية ااغاني فلسطينيه شعبيه ااغانى عرب نت ااغانى تونسيه االجنس التونسي الكس 
العربي الكس القطيف سكس اموزش شو جنسي النيك وجنس المحارم النيك الفرنسي النيك 
الليبى النيك الهام شاهين شرموطة الهام شاهين اجمل صور الهام شاهين الفنانه الهام 
الفضاله الفتاة السكسيه العاب قذرة مضحكة العاب للبنات فقط-جديدة - العا ب بنات 
فقط العا ب العا ب العب السكسيه لى ناديه الجندى السكس عاشق البلوتوثات السكس 
المجانى السكس اللبناني السكس الصور السکس الشرموطه السعوديه الشرموطة نانا 
الشرموطة فاطمة الشرموطة ليلى السحاقية هالة سرحان السحاق الزب العربي الراقصه شمس 
الينات السكس البحث عن فليم سكس عربى الافلام السكسيه فيديو الافلام السكس الاعاب 
سيارات الامير للسكس المراه والسكس ا فلا م سكس ا غا نى عر بية أكبر شرموطه مكتبه 
سميره السكسيه مكتبة سكس عربى مكتبة سميره للقصص الجنس
 
-- 
https://mail.python.org/mailman/listinfo/python-list


سكس اسرائيلى موقع سميرة الشرموطة موقع الشرموطة سميرة موقع ميلتا للجنس العربي موقع مليتا للسكس العربي موقع مليتا موقع 89

2017-05-20 Thread cyprus news
سكس اسرائيلى موقع سميرة الشرموطة موقع الشرموطة سميرة موقع ميلتا للجنس العربي 
موقع مليتا للسكس العربي موقع مليتا موقع 89 
-- 
https://mail.python.org/mailman/listinfo/python-list


directory listing

2005-11-11 Thread SU News Server
I've struggled with this for quite a while and I'm am just not sure 
what is going on. I have the following code
import os

def buildList( directory='/Users/mkonrad' )

dirs = [ ]

listing = os.listdir(directory)

   for x in listing:
  if os.path.isdir(x):
dirs.append(x)

return dirs

This always returns an empty list.
Now if I change it so that directory='.' or directory=os.getcwd()
Then it returns a list of directories. 

Any ideas?

Thank you,
-Michael




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


Re: I want to ask you the most important question of your life. The quest

2005-05-24 Thread phil-news-nospam
In comp.lang.c [EMAIL PROTECTED] wrote:
| 
| THE MOST IMPORTANT QUESTION OF YOUR LIFE
| 
| This is the most important question of your life.
| 
| The question is: Are you saved?

^X^S

I am now :-)

-- 
-
| Phil Howard KA9WGN   | http://linuxhomepage.com/  http://ham.org/ |
| (first name) at ipal.net | http://phil.ipal.org/   http://ka9wgn.ham.org/ |
-
-- 
http://mail.python.org/mailman/listinfo/python-list


logging SMTPHandler and Authentication

2007-04-30 Thread james . p . news
I'm new to Python, but I've been thrown into coding a pretty
complicated regression testing script.  I need to email the log of the
daily test to the code owners.  I thought I could use SMTPHandler for
this, but our email system requires authentication.  I have not been
able to figure out how to log in using SMTPHandler.  I found the
following post on comp.lang.python:

http://groups.google.com/group/comp.lang.python/browse_frm/thread/ef873c79157b8624/cdb67687e507c974?lnk=gst&q=SMTPHandler+authentication&rnum=1#cdb67687e507c974

However, I haven't been able to translate this to anything I can use.
I've also looked at the source code for the SMTPHandler, but I don't
want to edit that.

Has anyone else dealt with this?

Thanks much,
James

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


Re: Division help in python

2012-09-08 Thread garabik-news-2005-05
Chris Angelico  wrote:
> On Fri, Sep 7, 2012 at 10:53 PM, Ramyasri Dodla  wrote:
>> I am brand new to python. checking over basic stuff. I came across the
>> problem while doing so. If any body aware of the problem, kindly respond me.
>>
> 5/10
>> 0
> - 5/10
>> -1
>>
>> The second case also should yield a 'zero' but it is giving a -1
> 
> 

...

> The reason for this is that / (or in Python 3, //) rounds toward
> negative infinity, not toward zero. This allows the modulo operator

I think he means the non-obvious unary minus precedence.

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python Script for Colorizing Traceroute Output

2012-11-17 Thread garabik-news-2005-05
Jordan Bylsma  wrote:
> I'm looking into writing a python script that colorizes particular
> hops when using traceroute. Anyone run across something like this? I
> don't think it would be extremely difficult to write but some example
> code would help.
> 


Generic Colouriser
http://kassiopeia.juls.savba.sk/~garabik/software/grc.html


It includes configuration file for traceroute.

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list


ANN: unicode 0.9.7

2012-11-25 Thread garabik-news-2005-05
unicode is a simple python command line utility that displays 
properties for a given unicode character, or searches 
unicode database for a given name. 


It was written with Linux in mind, but should work almost everywhere 
(including MS Windows and MacOSX), UTF-8 console is recommended. 

˙pɹɐpuɐʇs əpoɔı̣uՈ əɥʇ ɟo əsn pəɔuɐʌpɐ 
puɐ səldı̣ɔuı̣ɹd əɥʇ ɓuı̣ʇɐɹʇsuoɯəp looʇ ɔı̣ʇɔɐpı̣p ʇuəlləɔxə uɐ sı̣ ʇI 
˙sʇuı̣odəpoɔ ʇuəɹəɟɟı̣p ʎləʇəldɯoɔ ɓuı̣sn əlı̣ɥʍ 'sɥdʎlɓ ɟo ɯɐəɹʇs ɹɐlı̣ɯı̣s 
ʎllɐnsı̣ʌ  oʇuı̣ ʇxəʇ əɥʇ ʇɹəʌuoɔ oʇ pɹɐpuɐʇs əpoɔı̣uՈ əɥʇ ɟo ɹəʍod llnɟ 
əɥʇ sʇı̣oldxə ʇɐɥʇ 'ʎʇı̣lı̣ʇn ,əpoɔɐɹɐd, oslɐ suı̣ɐʇuoɔ əɓɐʞɔɐd əɥ⊥ 


Changes since previous versions: 

 * add option to recognise binary input numerical codes
 * do not throw an exception when run under an undefined locale
 * on error, exit with nonzero existatus
 * preliminary python3 support
 * other minor tweaks and improvements


URL: 
http://kassiopeia.juls.savba.sk/~garabik/software/unicode/

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Keyboard hook in linux

2013-01-13 Thread garabik-news-2005-05
K. Elo  wrote:
 
> Practically I am looking for something similar than Pascal's 
> "keypressed" function 

As already mentioned, (n)curses is a good solution.
However, if you need/want to go to lower levels, you can read
/dev/input/event* like this (excerpt from one of my programs):

def opendevs():
return [os.open(dev, os.O_RDONLY) for dev in glob.glob("/dev/input/event*")]

def readevent(fds):
try:
# file descriptor has disappeared - we unplugged the keyboard,
# resumed from suspend etc...
ps = [os.read(fd, 16) for fd in fds]
except OSError:
traceback.print_exc()
yield None, None, None
for p in ps:
timeval, suseconds, typ, code, value = struct.unpack( 'llHHI', p[:16])
yield typ, value, code

def run_print(fds):
while 1:
rs, ws, xs = select.select(fds, [], [])
for t, v, e in readevent(rs):
print "Event code:", e, "type:", t, "value:", v

fds = opendevs()
run_print(fds)


This is of course not portable at all (and won't run on ancient
Linuces), but the advantage is that you can hook to the keys or key
combinations curses cannot (e.g. modifiers, Scrolllock etc...) and the
program can react to the key events even in the background.

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: pyrudp

2013-01-30 Thread garabik-news-2005-05
Jorge Alberto Diaz Orozco  wrote:
> I want to use a reliable UDP connection like you say, a TCP like
> connection but over UDP. thaks for your recomendation, if I get good
> results I promise to share them.
>

utalk (long since disappeared from the surface of the internet) did have
such an implementation, and I once wrote a half-cooked python
implementation of its semi-reliable protocol over UDP.

Nowadays, I'd recommend using openvpn, or perhaps investigate the
possibility of PPP over UDP, or maybe look into SCTP.

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Smallest/cheapest possible Python platform?

2012-05-28 Thread garabik-news-2005-05
Tomasz Rola  wrote:
 
> If you are on tight budget and depend so much on Python, I'm afraid you 
> should either:
> 
> a. grow your budget
> 
> b. try another language

such as PyMite...
-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Compare 2 times

2012-06-09 Thread garabik-news-2005-05
t_texas  wrote:
> On Jun 6, 7:50 am, loial  wrote:
>> I have a requirement to test the creation time of a file with the
>> current time and raise a message if the file is  more than 15 minutes
>> old.
>>
>> Platform is Unix.
>>
>> I have looked at using os.path.getctime for the file creation time and
>> time.time() for the current time, but is this the best approach?
> 
> Unless you are using ext4 you are going to have to store the creation
> time yourself.  If the files are coming from your application, use the
> sqlite3 or shelve module to store the creation time for each file then
> check that data to determine which files are more than 15 minutes old.
>

pyinotify might be worth a look

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: range() vs xrange() Python2|3 issues for performance

2011-08-02 Thread garabik-news-2005-05
harrismh777  wrote:
 these will run on either Python2 or 
> Python3... except that if you substitute xrange() for range() for 
> Python2  they will throw an exception on Python3... doh.

if 'xrange' not in dir(__builtins__):
xrange = range 

at the beginning of your program will fix that.

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Portable locale usage

2011-09-06 Thread garabik-news-2005-05
Thomas Jollans  wrote:
 
> It looks like you don't actually care about the encoding: in your first
> example, you use the default system encoding, which you do not control,
> and in your second example, you're using two different encodings on the
> two platforms. So why do you care whether or not the default uses ISO
> 8859-2 ?
>

Maybe because using 8859-2 locale, (unicode) strings not representable in the
encodings will be sorted - how? 

I would care, I prefer not to have undefined behaviour.

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Need to solve the "Stateless HTTP" problem

2011-05-05 Thread garabik-news-2005-05
Gnarlodious  wrote:
> My scripting has grown to the point where the Apache server is a
> problem. My Python websites run and quit, which means I need to save
> data and recreate everything next page load. Bulky and slow. What is
> the simplest solution?

Karrigell?
-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list


[Python-announce] ANN: unicode 2.9

2022-06-03 Thread garabik-news-2005-05

unicode is a simple python command line utility that displays
properties for a given unicode character, or searches
unicode database for a given name.

It was written with Linux in mind, but should work almost everywhere
(including MS Windows and MacOSX), UTF-8 console is recommended.

˙pɹɐpuɐʇs əpoɔı̣uՈ əɥʇ ɟo əsn pəɔuɐʌpɐ
puɐ səldı̣ɔuı̣ɹd əɥʇ ɓuı̣ʇɐɹʇsuoɯəp looʇ ɔı̣ʇɔɐpı̣p ʇuəlləɔxə uɐ sı̣ ʇI
˙sʇuı̣odəpoɔ ʇuəɹəɟɟı̣p ʎləʇəldɯoɔ ɓuı̣sn əlı̣ɥʍ 'sɥdʎlɓ ɟo ɯɐəɹʇs ɹɐlı̣ɯı̣s
ʎllɐnsı̣ʌ  oʇuı̣ ʇxəʇ əɥʇ ʇɹəʌuoɔ oʇ pɹɐpuɐʇs əpoɔı̣uՈ əɥʇ ɟo ɹəʍod llnɟ
əɥʇ sʇı̣oldxə ʇɐɥʇ 'ʎʇı̣lı̣ʇn ,əpoɔɐɹɐd, oslɐ suı̣ɐʇuoɔ əɓɐʞɔɐd əɥ⊥

Changes since previous versions:
 * better handling of changes in data files

URL: http://kassiopeia.juls.savba.sk/~garabik/software/unicode.html

License: GPL v3

Installation: pip install unicode

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
https://mail.python.org/mailman/listinfo/python-list


grc 1.12 released

2021-03-01 Thread garabik-news-2005-05

This is generic colouriser, version 1.12

grc is a colouriser configured by regular expressions, including
a simple command line wrapper for some commonly used unix commands.

Notable changes in this version:
  - add several configuration files
  - pass invalid UTF-8 unchanged, if possible
  - fix other minor bugs

License: GPL (any version)

URL: http://kassiopeia.juls.savba.sk/~garabik/software/grc.html

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
https://mail.python.org/mailman/listinfo/python-list


ANN: unicode 2.8

2020-12-31 Thread garabik-news-2005-05
unicode is a simple python command line utility that displays
properties for a given unicode character, or searches
unicode database for a given name.

It was written with Linux in mind, but should work almost everywhere
(including MS Windows and MacOSX), UTF-8 console is recommended.

˙pɹɐpuɐʇs əpoɔı̣uՈ əɥʇ ɟo əsn pəɔuɐʌpɐ
puɐ səldı̣ɔuı̣ɹd əɥʇ ɓuı̣ʇɐɹʇsuoɯəp looʇ ɔı̣ʇɔɐpı̣p ʇuəlləɔxə uɐ sı̣ ʇI
˙sʇuı̣odəpoɔ ʇuəɹəɟɟı̣p ʎləʇəldɯoɔ ɓuı̣sn əlı̣ɥʍ 'sɥdʎlɓ ɟo ɯɐəɹʇs ɹɐlı̣ɯı̣s
ʎllɐnsı̣ʌ  oʇuı̣ ʇxəʇ əɥʇ ʇɹəʌuoɔ oʇ pɹɐpuɐʇs əpoɔı̣uՈ əɥʇ ɟo ɹəʍod llnɟ
əɥʇ sʇı̣oldxə ʇɐɥʇ 'ʎʇı̣lı̣ʇn ,əpoɔɐɹɐd, oslɐ suı̣ɐʇuoɔ əɓɐʞɔɐd əɥ⊥

Changes since previous versions:

 * display ASCII table (either traditional with --ascii or the new
   EU–UK Trade and Cooperation Agreement version with --brexit-ascii)
 * minor bug fixes

URL: http://kassiopeia.juls.savba.sk/~garabik/software/unicode.html

License: GPL v3

Installation: pip install unicode

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: ANN: unicode 2.8

2021-01-01 Thread garabik-news-2005-05
Terry Reedy  wrote:
> On 12/31/2020 9:36 AM, garabik-news-2005...@kassiopeia.juls.savba.sk wrote:
>> unicode is a simple python command line utility that displays
>> properties for a given unicode character, or searches
>> unicode database for a given name.
> ...
>> Changes since previous versions:
>> 
>>   * display ASCII table (either traditional with --ascii or the new
>> EU–UK Trade and Cooperation Agreement version with --brexit-ascii)
> 
> Are you reproducing it with bugs included?
> How is that of any use to anyone?

Including the (correct) ASCII table has been a long term, low priority -
I am using ascii(1) utility reasonably often and it makes sense to
reproduce this functionality.

And when implementing this, it was a no-brainer to include also the
brexit varian (verbatim). After all, given the blood and sweat and tears
shed during the negotiations, I am sure each and every line of the
Agreement has been combed and (re)negotiated over and over by experienced
negotiators and verified an army of experts in the fields 

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Syntax across languages

2005-10-23 Thread garabik-news-2005-05
Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> 
>> - comparison returns 4 values (i.e. inferior, equal, superior or not
>> comparable), as in Pliant: "compare"
> 
 cmp("a", "b")
> -1
 cmp("a", "a")
> 0
 cmp("b", "a")
> 1
 cmp("ä", u"ä")
> Traceback (most recent call last):
>  File "", line 1, in ?
> UnicodeDecodeError: 'ascii' codec can't decode byte /.../

that is not because of the comparison, but because of the coercion:

>>> 'ä'+u'ä'
Traceback (most recent call last):
  File "", line 1, in ?
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 0: ordinal 
not in range(128)
>>> 

> 
> sure looks like four possible outcomes.


>>> cmp(1, 1+2j)
Traceback (most recent call last):
  File "", line 1, in ?
TypeError: cannot compare complex numbers using <, <=, >, >=


a fifth one :-)


-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Copyright [was Re: Python Obfuscation]

2005-11-14 Thread garabik-news-2005-05
Erik Max Francis <[EMAIL PROTECTED]> wrote:
> Bruno Desthuilliers wrote:
> 
>> Depends on the country's laws and the exact agreement.
> 
> Work for hire is part of the Berne convention.
> 

According to recent (2003) Slovak copyright law, ONLY the individual
authors own the copyright, and they cannot transfer it even if they
want. Of course, the right to publish and sell and profit from their
works can be transfered to their employers, if specified so in the
contract.

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: webserver application (via Twisted?)

2005-06-24 Thread garabik-news-2005-05
flupke <[EMAIL PROTECTED]> wrote:
> I need to program and setup serveral webservices.
> If i were still using jsp, i would use Tomcat to make the several
> applications available on a given port.
> How can i accomplish this in Python?
> I was thinking about Twisted but it's not clear to me what parts i need 
> to make a webserver listen on a certain port and having it serve 
> different application based on the url that i received.
> 
> Any advice on this?

I would use karrigell. Everyone is speaking about twisted, snakeletes
etc... but IMHO karrigell is unjustly underestimated - it is really
simple and clear framework.

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: using Pyro for network games

2005-08-01 Thread garabik-news-2005-05
Michael Rybak <[EMAIL PROTECTED]> wrote:
> Hi, everyone.
> In topic "2-player game, client and server at localhost", I've asked
> about subj, and Peter Hansen suggested to switch to Twisted, Pyro or
> the like.
> 
> I've tried using Pyro.
> 
> I've written a very very simple test-game, in which you have 2 balls
> controlled by 2 players. Each player moves his mouse somewhere at
> his window, and his ball starts moving towards the pointer. No
> objectives, just to test how it works. The code is very small, so I
> can put it all here, skipping obvious stuff.
> 
> I've tried playing this test-game via local-host - all is ok.
> Then I've tested via Internet connection with my friend. I have a
> 33.6 Kbps modem, he has a 2 MBps dedicated line (if this is the term),
> and we ran a server at his pc and both connected to it. His ball ran as
> a child, smoothly and quickly, while I had about 5 fps :(, and for him
> it looked like my ball is simply very slow. I realise that client at
> my pc *has* to work slower than the client at server's pc, but hey,
> I've played Quake2 and WarCraft 2 via 33.6 modem, and those should have
> much more stuff to transfer per second :(
> 
> Please help me in any way you can think of. I'd welcome links to
> Python games written with Pyro, tips on what I am doing wrong, on not
> Pythonically enough - anything.


Do not use pyro, use simple UDP protocol. 
I've written networked tetris in python, communicating via
UDP protocol, and used it successfully on very congested lines.
If all you need is to transfer pointer coordinates, UDP is perfect since
you do not need feedback.

use something like this for server:

import socket
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.bind(('', port))
while 1:
data, addr = s.recvfrom(1024)
print `data`


and for client:

import socket

outsock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
outsock.bind(('', 0))
outsock.sendto('message', ('server-hostname', server_port))



-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: using Pyro for network games

2005-08-05 Thread garabik-news-2005-05
Michael Rybak <[EMAIL PROTECTED]> wrote:
> gn20kjss> Do not use pyro, use simple UDP protocol.
> gn20kjss> I've written networked tetris in python, communicating via
> gn20kjss> UDP protocol, and used it successfully on very congested lines.
> 
> Would you please be so kind to share that with me? That would be

http://melkor.dnp.fmph.uniba.sk/~garabik/pytris.html

contrary to what the page says, you do not need pyncurses, just plain
curses as included with modern pythons

> greatly helpful, because 1) I'd run it together with my friend to see
> what speed I can get from UDP 2) I'd grasp the networking part of your
> code and reuse it.

see the Net() class. I recommend you to use the same number for myport
and otherport (you can with UDP, and it makes traversing firewalls
easier)

> 
> gn20kjss> If all you need is to transfer pointer coordinates, UDP is perfect 
> since
> gn20kjss> you do not need feedback.
> 
> gn20kjss> use something like this for server:
> 
> gn20kjss> import socket
> gn20kjss> s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
> gn20kjss> s.bind(('', port))
> gn20kjss> while 1:
> gn20kjss> data, addr = s.recvfrom(1024)
> gn20kjss> print `data`
> 
> 
> gn20kjss> and for client:
> 
> gn20kjss> import socket
> 
> gn20kjss> outsock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
> gn20kjss> outsock.bind(('', 0))
> gn20kjss> outsock.sendto('message', ('server-hostname', server_port))
> Would you recommend some reading on this? I have some immediate

just the socket.socket documentation, and generally for UDP protocol, 
see e.g. http://www-net.cs.umass.edu/kurose/transport/UDP.html

Using it is very simple, on one computer, you send a (short) string,
and on the other computer you receive the string (or it might be lost on
the way). For your situation, I'd recommend to implement some sort of
time constrain - e.g. if user moves cursor very fast, ensure that the
coordinates are not transmitted with higher frequency that 50 Hz (or
something). And combine the coordinates into one packet - it always
helps to reduce the number of packets. 

> questions to your code, but don't want to flood here. OK, I will flood
> here a bit: what's the print `` syntax?

the same as repr, i.e. textual representation of a variable - good for
debugging

> 
> P.S. I loved your virus alert ;)
> 

and you got infected I see :-)

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

get a list of mounted filesystems under MacOSX

2005-08-15 Thread garabik-news-2005-05
Hi all,
I am trying to port my (linux) program to MacOSX, and I need to get a
list of mounted filesystems. Under linux, it was easy, I was parsing
/etc/mtab (or /proc/mounts), this works also on some other unices.
But I have no idea how to do it on MacOSX, apart from calling "mount" as
an external program and parsing the output - but I prefer "cleaner"
solutions. Is there one?

And when we are at this, how to find out a list of mounted filesystems
under MS Windows? (yes, I know, there is a difference between cygwin
python and native port, and the term "mounted" is not used in MS Windows
world much)

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: get a list of mounted filesystems under MacOSX

2005-08-16 Thread garabik-news-2005-05
rafi <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>> Hi all,
>> I am trying to port my (linux) program to MacOSX, and I need to get a
>> list of mounted filesystems. Under linux, it was easy, I was parsing
>> /etc/mtab (or /proc/mounts), this works also on some other unices.
>> But I have no idea how to do it on MacOSX, apart from calling "mount" as
>> an external program and parsing the output - but I prefer "cleaner"
>> solutions. Is there one?
> 
> why not looking at the content of the /Volumes folder?

because the filesystem could be mounted elsewhere (in fact, the Mac Mini
I have across the table has a big network storage nfs-mounted on /data)


-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Python / web

2005-09-02 Thread garabik-news-2005-05
Robert <[EMAIL PROTECTED]> wrote:
> Hi,
> I know general Python pretty well and interested in using Python for a 
> web project. It will have the standard display, user input, fields, 
> look-ups, reports, database routines, etc. Been looking though the 
> Python web docs. and seeing stuff like mod_python, CGI, PSP, CherryPy, 
> etc...,  Also a fair amount of googling. I'll say there's a large 
> amount of technology to pick from.  Rather than spend time going down 
>  the wrong road, can I get some feedback as directions from you folks 
> that's "been there, done that."

I am now writing a moderately complex application using karrigell.
It has a very shallow learning curve, if you know python and html, you
can start writing an application right away, but yet it is rather
versatile, and the author is responding.

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: check if a webpage is forwarding to a other webpage

2005-09-06 Thread garabik-news-2005-05
[EMAIL PROTECTED] wrote:
> H!
> 
> I'm busy with testing python and now i'm trying to check if a url makes
> a forward to a other location with the same content.
> 
> So it will be possible to scan unique website's.
> I already made these checks:
> 
> the html forward:
> 
> 
> the header:
> Content-Location: othersite.com
> 
> the url - check:
> if '-':
> check if 'sitename.com' has not the same content as site-name.com
> 
> 
> the problem:
> There are still website's forwarding to a other location with the same
> content but they overrule the 3 checks above.

there is also a simple Location: in header, as well as javascript
redirects (these are the most evil)


-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Python for ARM7?

2005-09-13 Thread garabik-news-2005-05
Ken Seehart <[EMAIL PROTECTED]> wrote:
> 
> 2. What do I do with ipk files?  I surfed around and found that in one 
> example, the command is "ipkg install foo.ipk", but ipkg doesn't seem to 
> exist on my hardware.

ipk files are basically in two flavours, one of them is a plain tar.gz
file, use tar xvzj to upnack it
the second is an ar archive, use ar x to unpack it
(you mentioned cygwin - assuming you are working under MS windows,
either use the cygwin commands, or try to open the ipk with winzip or
something similar)

once unpacked, you find data.tar.gz inside containing all the necessary
binary files, and control.tar.gz containing some information and
installation scripts (in most cases, you can ignore them)

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

ANN: pydf 12

2014-12-31 Thread garabik-news-2005-05
pydf displays the amount of used and available space on your
filesystems, just like df, but in colours. The output format is
completely customizable.

pydf was written and works on Linux, but should work also on other
modern UNIX systems.

URL:
http://kassiopeia.juls.savba.sk/~garabik/software/pydf/

License:
public domain

Changes since the last version:

* better python3 support
* if a mountpoint path contains control characters or invalid
  utf-8 sequences, they are quoted in hexadecimal

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
https://mail.python.org/mailman/listinfo/python-list


ANN: verynice 0.3 - a nice(1) like utility for throttling processes

2014-05-13 Thread garabik-news-2005-05
verynice is a nice(1)-like command line utility for unix systems to
throttle long running processes beyond what can be achieved by nice(1),
by repeatedly suspending and resuming the process.

Author:
Radovan Garabík

URL:
http://kassiopeia.juls.savba.sk/~garabik/software/verynice/

License:
GPL (v3)

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
https://mail.python.org/mailman/listinfo/python-list


ANN: grc 1.7 released

2015-03-01 Thread garabik-news-2005-05
This is generic colouriser, version 1.7.

grc is a colouriser configured by regular expressions, including 
a simple command line wrapper for some commonly used unix commands.

Notable changes in this version:
 - add the possibility to replace text in addition to colouring
 - add several configuration files

License: GPL (any version)

URL: http://kassiopeia.juls.savba.sk/~garabik/software/grc.html

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
https://mail.python.org/mailman/listinfo/python-list


ANN: unicode 1

2015-03-22 Thread garabik-news-2005-05

unicode is a simple python command line utility that displays 
properties for a given unicode character, or searches 
unicode database for a given name. 

It was written with Linux in mind, but should work almost everywhere 
(including MS Windows and MacOSX), UTF-8 console is recommended. 

˙pɹɐpuɐʇs əpoɔı̣uՈ əɥʇ ɟo əsn pəɔuɐʌpɐ 
puɐ səldı̣ɔuı̣ɹd əɥʇ ɓuı̣ʇɐɹʇsuoɯəp looʇ ɔı̣ʇɔɐpı̣p ʇuəlləɔxə uɐ sı̣ ʇI 
˙sʇuı̣odəpoɔ ʇuəɹəɟɟı̣p ʎləʇəldɯoɔ ɓuı̣sn əlı̣ɥʍ 'sɥdʎlɓ ɟo ɯɐəɹʇs ɹɐlı̣ɯı̣s 
ʎllɐnsı̣ʌ  oʇuı̣ ʇxəʇ əɥʇ ʇɹəʌuoɔ oʇ pɹɐpuɐʇs əpoɔı̣uՈ əɥʇ ɟo ɹəʍod llnɟ 
əɥʇ sʇı̣oldxə ʇɐɥʇ 'ʎʇı̣lı̣ʇn ,əpoɔɐɹɐd, oslɐ suı̣ɐʇuoɔ əɓɐʞɔɐd əɥ⊥ 


Changes since previous versions: 
 * added --wt to query wiktionary
 * fix (somewhat) tabular display of fullwidth characters;
   try unicode 4000..5000 for a nice example
 * this is the last version that tries to keep rigorous
   compatibility with older python versions (going even
   back to pre-2.3)

URL: 
http://kassiopeia.juls.savba.sk/~garabik/software/unicode.html

License: GPL v3

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
https://mail.python.org/mailman/listinfo/python-list


ANN: polynice 0.7 - a nice(1) like utility for throttling processes

2015-04-05 Thread garabik-news-2005-05
polynice is a nice(1)-like command line utility for unix systems to
throttle long running processes beyond what can be achieved by nice(1),
by repeatedly suspending and resuming the process.

It is written for python3, though there is some python2.7 compatibility.

Author:
Radovan Garabík

URL:
http://kassiopeia.juls.savba.sk/~garabik/software/polynice.html

License:
GPL (v2)

Notable changes:
* This is the first public release under the name `polynice' - the
  utility has been renamed from `verynice' due to name clash with an
  existing software.
* polynice can now emulate timeout(1) - terminate process after given
  time has passed
* MacOS X improvements
* better python2 compatiblity

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: should "self" be changed?

2015-05-26 Thread garabik-news-2005-05
zipher  wrote:
> Would it be prudent to rid the long-standing "argument" (pun
> unintended) about self and the ulterior spellings of it, by changing
> it into a symbol rather than a name?  
> 
> Something like:
> 
> class MyClass(object):
> 
> def __init__(@):
> @.dummy = None

Believe or not, python3 (via Guido's time machine) already anticipated 
this suggestion and you can indeed use a symbol instead of 'self':

class MyClass(object):

   def __init__(ስ):
   ስ.dummy = None

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
https://mail.python.org/mailman/listinfo/python-list


ANN: polynice 0.8 - a nice(1) like utility for throttling processes

2015-06-01 Thread garabik-news-2005-05
polynice is a nice(1)-like command line utility for unix systems to
throttle long running processes beyond what can be achieved by nice(1),
by repeatedly suspending and resuming the process.

It is written for python3, though there is some python2.6 & 2.7 compatibility.

Author:
Radovan Garabík

URL:
http://kassiopeia.juls.savba.sk/~garabik/software/polynice.html

License:
GPL (v2)

Notable changes:

 * add '--mode random' parameter, to implement randomized throttling
 * add -n0 to disable throttling
 * python2.6 compatibility

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
https://mail.python.org/mailman/listinfo/python-list


ANN: unicode 2

2015-10-22 Thread garabik-news-2005-05
unicode is a simple python command line utility that displays
properties for a given unicode character, or searches
unicode database for a given name.

It was written with Linux in mind, but should work almost everywhere
(including MS Windows and MacOSX), UTF-8 console is recommended.

˙pɹɐpuɐʇs əpoɔı̣uՈ əɥʇ ɟo əsn pəɔuɐʌpɐ
puɐ səldı̣ɔuı̣ɹd əɥʇ ɓuı̣ʇɐɹʇsuoɯəp looʇ ɔı̣ʇɔɐpı̣p ʇuəlləɔxə uɐ sı̣ ʇI
˙sʇuı̣odəpoɔ ʇuəɹəɟɟı̣p ʎləʇəldɯoɔ ɓuı̣sn əlı̣ɥʍ 'sɥdʎlɓ ɟo ɯɐəɹʇs ɹɐlı̣ɯı̣s
ʎllɐnsı̣ʌ  oʇuı̣ ʇxəʇ əɥʇ ʇɹəʌuoɔ oʇ pɹɐpuɐʇs əpoɔı̣uՈ əɥʇ ɟo ɹəʍod llnɟ
əɥʇ sʇı̣oldxə ʇɐɥʇ 'ʎʇı̣lı̣ʇn ,əpoɔɐɹɐd, oslɐ suı̣ɐʇuoɔ əɓɐʞɔɐd əɥ⊥

Changes since previous versions:

 * substantially rewritten formatting
 * full python3 support
 * user defined output format
 * added --brief for a brief format
 * dropped python2.5 support

URL:
http://kassiopeia.juls.savba.sk/~garabik/software/unicode.html

License: GPL v3

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: autoflush on/off

2013-02-04 Thread garabik-news-2005-05
Jabba Laci  wrote:
> Hi,
> 
> I'd like to set autoflush on/off in my script. I have a loop that is
> checking something and every 5 second I want to print a '.' (dot). I
> do it with sys.stdout.write and since there is no newline, it is
> buffered and not visible immediately.

My solution is sys.stdout.write('.'); sys.stdout.flush()

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: im.py: a python communications tool

2013-04-07 Thread garabik-news-2005-05
Andrew Berg  wrote:
> On 2013.04.05 20:07, Roy Smith wrote:
>> I know this is off-topic, but I encourage people to NOT invent their own 
>> licenses.
> Perhaps he meant this existing license: http://www.wtfpl.net/about/

I like the Python Powered Logo license by Just van Rossum (Guido's
brother, in case someone doesn't know..)

http://mail.python.org/pipermail/python-list/1999-December/013413.html

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Questions about working with character encodings

2005-12-15 Thread garabik-news-2005-05
Kenneth McDonald <[EMAIL PROTECTED]> wrote:
> I am going to demonstrate my complete lack of understanding as to  
> going back and forth between
> character encodings, so I hope someone out there can shed some light  
> on this.  I have always
> depended on the kindness of strangers... :-)
> 
> I'm playing around with some very simplistic french to english  
> translation. As some text to
> work with, I copied the following from a french news site:
> 
> Dans les années 1960, plus d'une voiture sur deux vendues aux  
> Etats-Unis était fabriquée par GM.
> Pendant que les ventes s'effondrent, les pertes se creusent :  
> sur les neuf premiers mois de l'année 2005,
> elles s'élèvent à 3,8 milliards de dollars (3,18 milliards  
> d'euros), et le dernier trimestre s'annonce difficile.
> Quant à la dette, elle est hors normes : 285 milliards de  
> dollars, soit une fois et demie le chiffre d'affaires.
> GM est désormais considéré par les agences de notation  
> financière comme un investissement spéculatif.
> Un comble pour un leader mondial !
> 
> Of course, it has lots of accented, non-ascii characters. However, it  
> posted just fine into both
> this email program (hopefully it displays equally well at the other  
> end), 

It has correct charset header indicating ISO-8859-1 encoding, so yes, it
displayed correctly.

> and into my Python
> editing program (jEdit).
> 
> To start with, I'm not at all cognizant of how either the editor or  
> the mail program could even
> know what encodings to use to display this text properly...

You did not tell us what OS are you using, but in case of Unix, it all
goes up and down with locale - you can transparently pass around text
data as long as the characters are in the repertoire of your locale - of
course, as long as the applications are locale-aware - many older ones
are not. (It is best to use UTF-8 encoding, so that all the more or less
obscure characters can be represented)

If you have Windows, it depends on programs working with old 8-bit ANSI
API, or new unicode API. If the programs use unicode API, you can
without problems pass data around, if they use 8-bit API, you are
restricted to the characters from your system codepage.

> 
> Next, having got the text into the Python file, I presumably have to  
> encode it as a Unicode
> string, but trying something like   text = u"""désormais considéré"""  
> complains to the effect
> that :
> 
> UnicodeEncodeError: 'ascii' codec can't encode character u'\x8e'  
> in position 13: ordinal not in range(128)
> 
> This occurs even with the first line in the file of
> 
> # -*- coding: latin-1 -*-
> 
> which I'd hoped would include what I think of as the latin characters  
> including all those ones with
> graves, agues, circonflexes, umlauts, cedilles, and so forth.  

latin-1 is not enough for proper French (lack of œ). It is not even
enough for English, it lacks proper typographic quotes and so on.

> Apparently it does not :-)

Well, it would be enough for your example, "désormais considéré"
does indeed fit into latin-1. But python complains about character \x8e,
which indeed does not belong to latin-1. Without knowing your OS and
your locale (or ANSI codepage), we cannot tell how it got there.

> 
> So I really have two questions:
> 
>   1) How the heck did jEdit understand the text with all the accents  
> I pasted into it? More
> specifically, how did it know the proper encoding to use?

jEdit is written in Java, right? Java has a good internal unicode
support, so if your OS allowed it, pasting from WWW browser worked since
the browser had to new the encoding (in order to display it properly).

> 
>   2) How do I get Python to understand this text? Is there some sort  
> of coding that will
> work in almost every circumstance?

utf-8, obviously. Unless you have a strong reason not to do so, use
utf-8 exclusively - you never know what strange character can appear
(even in plain English), and you working and tested application will
start crashing when it gets to the real worls.

So, use # -*- coding: utf-8 -*-, but MAKE SURE jEdit is configured to
save the file in utf-8 encoding (not knowing jEdit, I cannot tell you
how to achieve this, but jEdit's www page claims that jEdit does support
utf-8).

Then there is a little problem with python stdout trying to convert
unicode strings into system default encoding and failing if it cannot be
done, but let's leave this for the moment :-)

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: any Adobe Reader like apps written in python, for examination?

2005-12-25 Thread garabik-news-2005-05
Alex Gittens <[EMAIL PROTECTED]> wrote:
> Is anyone aware of any applications that handle font and graphics
> display--- something like Adobe Reader--- that are written in Python,
> and the code is available for examination? It doesn't matter what GUI
> toolkit is used.
>

Grail comes to my mind immediately, it is however rather dated.
Otherwise, displaying simple graphics and text in pygame is trivial - 
but it is not the right way if you need a GUI.


-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

python encoding bug?

2005-12-30 Thread garabik-news-2005-05

I was playing with python encodings and noticed this:

[EMAIL PROTECTED]:~$ python2.4
Python 2.4 (#2, Dec  3 2004, 17:59:05)
[GCC 3.3.5 (Debian 1:3.3.5-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> unicode('\x9d', 'iso8859_1')
u'\x9d'
>>>

U+009D is NOT a valid unicode character (it is not even a iso8859_1
valid character)

The same happens if I use 'latin-1' instead of 'iso8859_1'.

This caught me by surprise, since I was doing some heuristics guessing 
string encodings, and 'iso8859_1' gave no errors even if the input
encoding was different.

Is this a known behaviour, or I discovered a terrible unknown bug in python 
encoding
implementation that should be immediately reported and fixed? :-)


happy new year,

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Encoding sniffer?

2006-01-05 Thread garabik-news-2005-05
Andreas Jung <[EMAIL PROTECTED]> wrote:
> [-- text/plain, encoding quoted-printable, charset: us-ascii, 6 lines --]
> 
> Does anyone know of a Python module that is able to sniff the encoding of 
> text? Please: I know that there is no reliable way to do this but I need 
> something that works for most of the case...so please no discussion about 
> the sense of such a module and approach.
> 

depends on what exactly you need
one approach is pyenca

the other is:

def try_encoding(s, encodings):
"try to guess the encoding of string s, testing encodings given in second 
parameter"

for enc in encodings:
try:
test = unicode(s, enc)
return enc
except UnicodeDecodeError:
pass

return None

print try_encodings(text, ['ascii', 'utf-8', 'iso8859_1', 'cp1252', 'macroman']


depending on what language and encodings you expects the text to be in,
the first or second approach is better


-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Encoding sniffer?

2006-01-05 Thread garabik-news-2005-05
Diez B. Roggisch <[EMAIL PROTECTED]> wrote:
>> print try_encodings(text, ['ascii', 'utf-8', 'iso8859_1', 'cp1252', 
>> 'macroman']
> 
> I've fallen into that trap before - it won't work after the iso8859_1. 
> The reason is that an eight-bit encoding have all 256 code-points 
> assigned (usually, there are exceptions but you have to be lucky to have 
> a string that contains a value not assigned in one of them - which is 
> highly unlikely)
> 
> AFAIK iso-8859-1 has all codepoints taken - so you won't go beyond that 
> in your example.

I pasted from a wrong file :-)
See my previous posting (a few days ago) - what I did was to implement
iso8859_1_ncc encoding (iso8859_1 without control codes) and
the line should have been 
try_encodings(text, ['ascii', 'utf-8', 'iso8859_1_ncc', 'cp1252', 'macroman']

where iso8859_1_ncc.py is the same as iso8859_1.py from python
distribution, with this line different:

decoding_map = codecs.make_identity_dict(range(32, 128)+range(128+32,256))


-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: How can I make a dictionary that marks itself when it's modified?

2006-01-12 Thread garabik-news-2005-05
[EMAIL PROTECTED] wrote:
> It's important that I can read the contents of the dict without
> flagging it as modified, but I want it to set the flag the moment I add
> a new element or alter an existing one (the values in the dict are
> mutable), this is what makes it difficult. Because the values are
> mutable I don't think you can tell the difference between a read and a
> write without making some sort of wrapper around them.
> 
> Still, I'd love to hear how you guys would do it.

if the dictionary is small and speed not important, you can wrap it 
in a class catching __getitem__ and __setitem__ and testing
if repr(self) changes.


-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: text representation of HTML

2006-07-20 Thread garabik-news-2005-05
Ksenia Marasanova <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I am looking for a library that will give me very simple text
> representation of HTML.
> For example
> TitleThis is a test
> 
> will be transformed to:
> 
> Title
> 
> This is a
> test
> 
> 
> i want to send plain text alternative of html email, and would prefer
> to do it automatically from HTML source.

something like this:

import re
text = 'TitleThis is a test'
text = re.sub(r'[\n\ \t]+', ' ', text)
text = re.sub(r'(?i)(\|\|\)', '\n', text)
result = re.sub('<.+?>', '', text)
print result

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: html 2 plain text

2006-05-29 Thread garabik-news-2005-05
robin <[EMAIL PROTECTED]> wrote:
> hi,
> i remember seeing this simple python function which would take raw html
> and output the content (body?) of the page as plain text (no <..> tags
> etc)
> i have been looking at htmllib and htmlparser but this all seems to
> complicated for what i'm looking for. i just need the main text in the
> body of some arbitrary webbpage to then do some natural-language
> processing with it...
> thanks for pointing me to some helpful resources!

text=re.sub(r'(?s)\<.+?\>', '', html_text)
(this will keep html entities, though)

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: python-dev Summary for 2006-05-01 through 2006-05-15

2006-06-13 Thread garabik-news-2005-05
This summary is tagged as being in ISO-8859-1 encoding:
  Content-Type: text/plain; charset=ISO-8859-1; format=flowed
However, it really is in UTF-8, which results in this mojibake:

> 
> Martin v. Löwis and Marc-Andre Lemburg discussed how to include both



-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Legality of using Fonts

2006-02-12 Thread garabik-news-2005-05
Kamilche <[EMAIL PROTECTED]> wrote:
> Yeah, that's what I'm thinking, as well. Showing all the text on an
> image is one thing... using that image as the basis of a font engine is
> something different.
> 
> Luckily, someone has sent me a link to a set of free TrueType fonts -
> http://www.gnome.org/fonts , the 'Vera' family. I guess I'll turn those
> into bitmaps to stay out of the gray area.
> 
> I have other reasons I want to use a bitmap font, other than licensing
> issues.
> 

You should probably check out X11 misc-fixed family of fonts.
They have free license and are designed from the begining as bitmaps,
which means they are more readable at small sizes (since they were
designed to be displayed at fixed sizes). They are monospaced, which
might be an advantage or not. 

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: any ftpd written in python?

2006-02-16 Thread garabik-news-2005-05
Kenneth Xie <[EMAIL PROTECTED]> wrote:
> I need a simple ftpd example in pure python. Is there already such a 
> ftpd available?
> Thank you very much in advance.

self-advertising: http://melkor.dnp.fmph.uniba.sk/~garabik/pyftpd.html
it is a bit dated and I do not develop it anymore, but as a base of your
own server software it can be quite good.

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: cpu usage limit

2005-05-27 Thread garabik-news-2005-05
rbt <[EMAIL PROTECTED]> wrote:
> 
> mf wrote:
>> Hi.
>> 
>> My problem:
>> How can I make sure that a Python process does not use more that 30% of
>> the CPU at any time. I only want that the process never uses more, but
>> I don't want the process being killed when it reaches the limit (like
>> it can be done with resource module).
>> 
>> Can you help me?
>> 
>> Thanks in advance.
>> 
>> Best regards,
>> Markus
>> 
> 
> Are you looping during a cpu intensive task? If so, make it sleep a bit 
> like this:
> 
> for x in cpu_task:
> time.sleep(0.5)
> do(x)

or like this (untested!)

finished = False
while not finished:
  before = time.time()
  do(x) # sets finished if all was computed
  after = time.time()
  delta = after-before
  time.sleep(delta*10/3.)

now the trick: do(x) can be a single piece of code, with strategically placed 
yield's
all over



-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: cpu usage limit

2005-05-29 Thread garabik-news-2005-05
[EMAIL PROTECTED] wrote:
> I understand, that what I suggest does not solve the problem you want,
> but..
> 
> Why do you want to restrict CPU usage to 30%? In Windows I run CPU

there might be three reasons:
1) less power consumed (notebooks, PDA's)
2) less heat from CPU
3) (cross platform) scheduling of low priority tasks (e.g. all my
background tasks are already running with lowest priority since I do not
want them to influence my desktop in any way, but still I want some of them to 
be
of higher priority)

generally, modern OS'es do not provide any ways to schedule tasks with
such constrains, which makes the question perfectly legitimate

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: network ping

2005-05-29 Thread garabik-news-2005-05
Sam the Cat <[EMAIL PROTECTED]> wrote:
> Besides calling the external ping utility -- is there a way native to python
> to execute a similar utility ?
> 
> 

yes

http://www.python.org/~jeremy/python.html

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: tail -f sys.stdin

2005-06-09 Thread garabik-news-2005-05
Antal Rutz <[EMAIL PROTECTED]> wrote:
> Hi!
> 
> Maybe a very newbie question but:
> I'd like to write a prog which reads one line at a time on its sys.stdin
> and immediately processes it.
> If there are'nt any new lines wait (block on input).
> 

what about:

for line in sys.stdin:
process(line)

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Which Python Wiki engine?

2005-06-14 Thread garabik-news-2005-05
Kenneth McDonald <[EMAIL PROTECTED]> wrote:
> 
> Here are some of the features I'd greatly like to have that I haven't  
> seen provided by the (relatively few) wiki engines I've looked at.  
> Mind you, I don't claim to have looked at even these few  
> exhaustively. (No time!) MoinMoin is the one I've looked at the most.
> 

I do not like to write about vapourware, but anyway I am writing a
new simple wiki/forum in python (using Karrigell framework), the main
reason being that it needs some specialties not present in any other
wiki. Anyway, I am going to put some notes about what my wiki _will_ have.

> 1) Automatically generated table of contents, based on the outline  
> structure. This would be regenerated periodically (probably nightly)

easily done


> 2) Ability for users to add new subsections, but not to change that  
> part of the document structure which has been locked by the editor.

I have not considered this, but it could be doable

> 3) Clear visual distinction between material added by the users, and  
> material added or approved by the editor.

easily done

> 4) Legal-style numbering of sections, subsections, etc.

by section you mean section in text, or section as "a group of wiki
pages" ?
The first one is easily done, due to pluggable formatters.

> 5) Ability to have single pages containing both locked text (which  
> users cannot edit or delete) and unlocked text. Such a page would  
> consist of one or more locked blocks of text, interspersed with  
> comments put in by users. Users could put comments anywhere except  
> side a locked text block.

possible, with some limitations (internaly, the sections are 
represented as separate pages, each with separate set of access rights,
they are just rendered as one document)

> 
> Ideally, this would also be something that doesn't depend on a  
> backend database or other things besides the web server and python  
> packages. This is not likely to be a wiki where huge amounts of  

more or less - storage is directly on filesystem, only if you need a
full-text search you need a database (e.g. sqlite).

You need Karrigell, though.


-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Import, how to change sys.path on Windows, and module naming?

2008-03-01 Thread Jeremy Nicoll - news posts
If I understand correctly, when I import something under Windows, Python
searches the directory that the executing script was loaded from, then other
directories as specified in "sys.path".

I assume there are standard locations inside my installed Python - in my
case inside:  C:\Program Files\~P-folder\Python25  - where I could put my
modules and they'd automatically be found?  But even if that's the norm, I
don't want to put my own modules in such directories, partly because a
uninstall or reinstall or upgrade of Python might lose my stuff, and partly
because I don't believe in mixing distributed code with home-grown code. 

However I'm quite happy to have a line or three of code to alter  sys.path 
to suit my set-up, if that's a normal way to handle this problem.  Where
does one do that?


Also, I presume that there's a risk that the module name that I give to any
of my utilities will clash with a present or future standard module's name.
Does that mean that I should give my own modules names like "JNfoo" rather
than "foo", etc?  Or something like "JNutils.foo"?

-- 
Jeremy C B Nicoll - my opinions are my own.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Import, how to change sys.path on Windows, and module naming?

2008-03-01 Thread Jeremy Nicoll - news posts
Jeremy Nicoll - news posts <[EMAIL PROTECTED]> wrote:

> If I understand correctly, when I import something under Windows, Python
> searches the directory that the executing script was loaded from, then
> other directories as specified in "sys.path".

Sorry to followup my own question, but I ran

 for p,q in enumerate(sys.path): print p, q

and got:

0 C:\Documents and Settings\Laptop\My Documents\JN_PythonPgms
1 C:\Program Files\~P-folder\Python25\Lib\idlelib
2 C:\WINDOWS\system32\python25.zip
3 C:\Program Files\~P-folder\Python25\DLLs
4 C:\Program Files\~P-folder\Python25\lib
5 C:\Program Files\~P-folder\Python25\lib\plat-win
6 C:\Program Files\~P-folder\Python25\lib\lib-tk
7 C:\Program Files\~P-folder\Python25
8 C:\Program Files\~P-folder\Python25\lib\site-packages
9 C:\Program Files\~P-folder\Python25\lib\site-packages\win32
10 C:\Program Files\~P-folder\Python25\lib\site-packages\win32\lib
11 C:\Program Files\~P-folder\Python25\lib\site-packages\Pythonwin

Does every Windows user have: 2 C:\WINDOWS\system32\python25.zip
in their sys.path?  What's the point of having a zip in the path?

Also, looking in  C:\WINDOWS\system32\   I don't actually have a file called
python25.zip, but I do have one called  python25.dll - so has something gone
wrong in creation of sys.path?

-- 
Jeremy C B Nicoll - my opinions are my own.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: A fast way to read last line of gzip archive ?

2009-05-24 Thread garabik-news-2005-05
Barak, Ron  wrote:
> 
> 
> 
> I thought maybe someone has a way to unzip just the end portion of the
> archive (instead of the whole archive), as only the last part is needed
> for reading the last line.

dictzip (python implementation part of my serpento package)
you have to compress the file with dictzip, instead of gzip, though
(but dictzipped file is just a special way of organizing the gzip file,
so it remains perfectly compatible with gunzip&comp.)


-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Seach for encrypted socket wrapper

2009-06-02 Thread garabik-news-2005-05
Hans Müller  wrote:
> Hello experts,
> 
> I'm looking for secure way to pass messages from a python program to a 
> c-library in both ways.
> 
> This scenario is given:
> 
> display client  Calculation module in 
> COBOL (yes, big, old but it works well)
> (python, wxpython)  <- Network connection ->C-Lib beeing called 
> from COBOL to communicaty with
>display client
> 
> The network connection should be encrypted. And fail save.
> Has someone an idea what to use ?
> 
> I have had a short look on xml rpc which can run over a https server but this 
> seems quite fat.
> Better ideas ?!

Standard TCP connection, forwarded via stunnel or ssh, Should be no brainer if 
the
COBOL side is running on a reasonably modern unix.


-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: recycling internationalized garbage

2006-03-08 Thread garabik-news-2005-05
Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> "[EMAIL PROTECTED]" wrote:
> 
>> Question: what is a good strategy for taking an 8bit
>> string of unknown encoding and recovering the largest
>> amount of reasonable information from it (translated to
>> utf8 if needed)?  The string might be in any of the
>> myriad encodings that predate unicode.  Has anyone
>> done this in Python already?  The output must be clean
>> utf8 suitable for arbitrary xml parsers.
> 
> some alternatives:
> 
> braindead bruteforce:
> 
>try to do strict decoding as utf-8.  if you succeed, you have an utf-8
>string.  if not, assume iso-8859-1.

that was a mistake I made once.
Do not use iso8859-1 as python codec, instead create your own codec
called e.g. iso8859-1-ncc like this (just a sketch):

decoding_map = codecs.make_identity_dict(range(32, 128)+range(128+32, 256))
decoding_map.update({})
encoding_map = codecs.make_encoding_map(decoding_map)

and then use :

def try_encoding(s, encodings):
"try to guess the encoding of string s, testing encodings given in second 
parameter"

for enc in encodings:
try:
test = unicode(s, enc)
return enc
except UnicodeDecodeError, r:
pass

return None


guessed_unicode_text = try_encodings(text, ['utf-8', 'iso8859-1-ncc', 'cp1252', 
'macroman'])


it seems to work surprisingly well, if you know approximately the
language(s) the text is expected to be in (e.g. replace cp1252 with
cp1250, iso8859-1-ncc with iso8859-2-ncc for central european languages) 

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: Using Python To Create An Encrypted Container

2006-04-16 Thread garabik-news-2005-05
Michael Sperlle <[EMAIL PROTECTED]> wrote:
> Is it possible? Bestcrypt can supposedly be set up on linux, but it seems
> to need changes to the kernel before it can be installed, and I have no
> intention of going through whatever hell that would cause.
> 
> If I could create a large file that could be encrypted, and maybe add
> files to it by appending them and putting in some kind of delimiter
> between files, maybe a homemade version of truecrypt could be constructed.
> 
> Any idea what it would take?
> 

you can either use fuse and its python bindings - this is rather trivial
filesystem-wise, of course there are challenges in order to implement
encryption effectively and efficiently (this is what encfs or phonebook
do, but they are written in C)

Or implement encrypted  network block device in python - again, this
should not be _that_ hard.

Or implement either nfs or samba server with transparent encrypted
storage - this is what (again in C) cfs does. If you go the samba way,
it would be even cross-platform - but I have no idea how difficult it
would be to implement a samba server in python.

In all the cases, performance is going to be THE issue.

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list

Re: share dictionary between processes

2009-12-18 Thread garabik-news-2005-05
blumenkraft  wrote:
> Hi,
> 
> I want to share dictionary between two distinct processes.
> 
...
> I have looked at POSH, but it requires master process that will fork
> childs. I want read-only sharing between completely unrelated
> processes.
> Is it possible?

Depends on your exact needs - dbm or shelve might be enough, especially for 
read only access.

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Bash shell to Python shell?

2009-09-28 Thread garabik-news-2005-05
Chris Rebert  wrote:
> On Sun, Sep 27, 2009 at 8:13 PM, edwithad  wrote:
>> I am sure you have not read a question this basic in some time, but I am
>> curious. Using Linux I open a terminal window and type: python.
>>
>> Does Bash Shell go away and to become a Python Shell, or is it still a Bash
>> Shell with Python running inside? Thanks in advance.
> 
> The latter. Press Ctrl+D or enter exit() or quit() to exit Python and
> return to bash.
>

Or, if you prefer the bash shell to be replaced with the python, just type:
exec python

-- 
 ---
| Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ |
| __..--^^^--..__garabik @ kassiopeia.juls.savba.sk |
 ---
Antivirus alert: file .signature infected by signature virus.
Hi! I'm a signature virus! Copy me into your signature file to help me spread!
-- 
http://mail.python.org/mailman/listinfo/python-list


  1   2   >