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. > >Lau

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(siz

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 >

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

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

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

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

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 serve

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 som

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 v

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

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 l

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 co

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)

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/lis

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
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 -- ht

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\

RE: Pythonwin Install COM exceptions on Windows Vista Ultimate

2007-09-02 Thread Sandipan News
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

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

>>> 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 eve

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

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 mone

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, W

>>>> 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

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

2007-11-10 Thread zionist . news
://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, 200

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 ac

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!

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
nators 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

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 ???

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) ...

Re: diffing and uniqing directories

2008-04-27 Thread telus news
IL 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&qu

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,

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

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

2017-05-20 Thread cyprus news
سكس اسرائيلى موقع سميرة الشرموطة موقع الشرموطة سميرة موقع ميلتا للجنس العربي موقع مليتا للسكس العربي موقع مليتا موقع 89 سكس منيوكه مرفت جنس منيوكة مصرية منديات عرب لبنان سكس منتديات فلام إغتصاب منتديات سكسية منتديات سكس منتديات شرموطة منتديات رومنسي السكسية منت https://mslslat2017.blogspot

سكس اسرائيلى موقع سميرة الشرموطة موقع الشرموطة سميرة موقع ميلتا للجنس العربي موقع مليتا للسكس العربي موقع مليتا موقع 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):

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 KA9W

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 lo

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

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

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

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()

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 implemen

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.

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 a

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. --

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 t

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? --

[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 ə

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

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 əp

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. > ... >> C

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 "", l

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 cann

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 par

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

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? T

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

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

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

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

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 t

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

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

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 configurat

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

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: htt

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

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 UR

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 əp

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.st

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

Re: Questions about working with character encodings

2005-12-15 Thread garabik-news-2005-05
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

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 im

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

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

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, t

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 a

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 ema

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 f

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 -- -

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.or

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

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

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) schedu

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://kas

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(li

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

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-f

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 m

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

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) > (p

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

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 coul

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 o

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 >

  1   2   >