[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

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:

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: Where to start in the field of AI with Python

2017-03-19 Thread garabik-news-2005-05
Robert O'Shea wrote: > I just want to get into the basics for the moment, eventually getting into > stuff like machine learning and NLP (Natural Language Processing). You cannot do wrong by starting with NLTK (https://www.nltk.org/) and scikit (http://scikit-learn.org/) --

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

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

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

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

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

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

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

Re: Using Python for a demonstration in historical linguistics

2010-11-06 Thread garabik-news-2005-05
Dax Bloom wrote: ... > I look to have > python take a dictionary file or a string input and replace the > consonants in it with the Grimm rule equivalent. ... > How easy is it to find the python functions > to do that? > http://code.activestate.com/recipes/81330-single-pass-multiple-replace/ --

Re: Webcam support

2010-08-26 Thread garabik-news-2005-05
Navkirat Singh wrote: > Hi Guys, > > I am programming a web centric app in python for customer, which needs > to click a snap of the customer and forward the pic to the server via > POST. I am not very familiar with how I can achieve this. Any > direction would be much appreciated. > For somethi

Re: Is there any way to minimize str()/unicode() objects memory usage ?[Python 2.6.4] ?

2010-08-06 Thread garabik-news-2005-05
dmtr wrote: > > What I'm really looking for is a dict() that maps short unicode > strings into tuples with integers. But just having a *compact* list > container for unicode strings would help a lot (because I could add a > __dict__ and go from it). > At this point, I'd suggest to use one of th

Re: Is there any module/utility like 'rsync' in python

2010-04-08 Thread garabik-news-2005-05
hiral wrote: > Hi, > > Is there any module/utility like 'rsync' in python. > http://freshmeat.net/projects/pysync/ http://vdesmedt.com/~vds2212/rsync.html -- --- | Radovan Garabík http://kassiopeia.juls.savba.sk/~garabik/ | | __..--^^^-

Re: GIF89A and PIL

2010-03-28 Thread garabik-news-2005-05
Harishankar wrote: > >> Just opening, and then saving the same file with no changes at all, >> resulted in a 72 byte file growing to 920. >> >> I thought it was GIF87a vs GIF89a... but have since come to determine it >> doesn't appear to be. I decided to give PNG a try again, since those >> extr

Re: Are there in Python some static web site generating tools like?webgen, nanoc or webby in Ruby ?

2010-03-09 Thread garabik-news-2005-05
KLEIN Stéphane wrote: > Hi, > > Today, I've show this static web site generating tools write in ruby : > > * http://webgen.rubyforge.org/index.html > * http://nanoc.stoneship.org/about/ > * http://webby.rubyforge.org/tutorial/ > > I like this tools, I'm wonder if there are similar tools in Pyth

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: Python Statements/Keyword Localization

2009-11-25 Thread garabik-news-2005-05
Emanuele D'Arrigo wrote: > Greetings everybody, > > some time ago I saw a paper that used an XSL transformation sheet to > transform (if I remember correctly) a Chinese xml file (inclusive of > Chinese-script XML tags) into an XHTML file. > > More recently you might have all heard how the ICANN

Re: python server developer

2009-11-21 Thread garabik-news-2005-05
Bobby wrote: > Hello, > We are looking for Python server developer > location : Hyderabad > Experience : 3 years . > Send me your updated resume with availability for Telephonic interview Hyderabad, India or Hyderabad, Pakistan? (no, I am not going to apply in either case, even if I think I do qu

Re: #define (from C) in Python

2009-11-15 Thread garabik-news-2005-05
Santiago Romero wrote: >> Hey, I got 100% with ASM ZX Spectrum emulator on a low end 386 :-) (I do >> not remember the CPU freqeuncy anymore, maybe 25MHz). > > Yes, in ASM a simple 25 or 33Mhz 386 computer was able to emulate > the > Spectrum. At least, under MSDOS, like did Warajevo, Z80, x128 a

Re: #define (from C) in Python

2009-11-13 Thread garabik-news-2005-05
Santiago Romero wrote: > >> > #define STORE_nn_rr(dreg) \ >> >                         r_opl = Z80ReadMem(r_PC); r_PC++;\ >> >                         r_oph = Z80ReadMem(r_PC); r_PC++; \ >> >                         r_tmp = dreg; \ >> >                         Z80WriteMem((r_op),r_tmpl, regs); \

Re: rfc: a self-editing script

2009-10-10 Thread garabik-news-2005-05
Steven D'Aprano wrote: ... > But if you absolutely have to write to the program file, then append your > data to the end of the file (as a comment) and later read that, rather > than modifying the actual code in place. That is, you fetch the > LAST_VERSION by reading the last non-empty line in

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 >

Re: ImageFont family mojibake

2009-09-12 Thread garabik-news-2005-05
Donn wrote: > On Saturday 12 September 2009 07:55:14 Lie Ryan wrote: >> > f=ImageFont.truetype("FGTshgyo.TTF",1,encoding="utf-8") >> > print f.font.family >> > '?s' >> Are you sure that your terminal (Command Prompt/bash/IDLE/etc) supports >> utf-8 and that it is properly set up to display

Re: ANN: dh, the daemon helper

2009-09-09 Thread garabik-news-2005-05
John Kelly wrote: > > dh, the daemon helper ... > dh is its name; a natural companion to sh. > A useful little program, but... this might be OT, but let me point out that the name collides with Debian's debhelper (also invoked as dh) -- -

Re: An assessment of the Unicode standard

2009-08-30 Thread garabik-news-2005-05
r wrote: > Some may say well how can we possibly force countries/people to speak/ > code in a uniform manner? Well that's simple, you just stop supporting > their cryptic languages by dumping Unicode and returning to the > beautiful ASCII and adopting English as the universal world language. v>

Re: Numeric literals in other than base 10 - was Annoying octal?notation

2009-08-24 Thread garabik-news-2005-05
J. Cliff Dyer wrote: > I had an objection to using spaces in numeric literals last time around > and it still stands, and it still stands in the new one. > Or, we can use U+00A0 NO-BREAK SPACE, once we already have unicode variable names :-) (probably some people would find it difficult to type,

Re: Numeric literals in other than base 10 - was Annoying octal notation

2009-08-23 Thread garabik-news-2005-05
In comp.lang.python James Harris wrote: > On 22 Aug, 10:27, David <71da...@libero.it> wrote: ... >> >> What about 2_1011, 8_7621, 16_c26h or 2;1011, 8;7621, 16;c26h ? > > They look good - which is important. The trouble (for me) is that I > want the notation for a new programming language and a

Re: create shell history with python

2009-08-12 Thread garabik-news-2005-05
Diez B. Roggisch wrote: > Joel Juvenal Rivera Rivera schrieb: >> I been thinking how to make a 'bash like history shell' in python, >> i don't know if with stdin and stdout i can accomplish this or do i >> need something like curses and stuff like that, anyway im start to >> figure this out. >> Do

Re: install tarball package Python on Debian, necessary modules not found

2009-08-10 Thread garabik-news-2005-05
Frédéric Léger wrote: > I use Debian Lenny and I tried to install the tarball packaging of the > lastest python realease (http://www.python.org/download/, release > 3.1). After read README file I launch standard Makefile commands. But > at the end of "make" command, I have got this message: > M

Re: unicode() vs. s.decode()

2009-08-08 Thread garabik-news-2005-05
Thorsten Kampe wrote: > lines". That *is* *exactly* nothing. > > Another guy claims he gets times between 2.9 and 6.2 seconds when > running decode/unicode in various manifestations over "18 million over a sample of 60 words (sorry for not being able to explain myself clear enough so th

Re: unicode() vs. s.decode()

2009-08-08 Thread garabik-news-2005-05
Thorsten Kampe wrote: > * garabik-news-2005...@kassiopeia.juls.savba.sk (Fri, 7 Aug 2009 > 17:41:38 + (UTC)) >> Thorsten Kampe wrote: >> > If you increase the number of loops to one million or one billion or >> > whatever even the slightest completely negligible difference will >> > occur. T

Re: unicode() vs. s.decode()

2009-08-07 Thread garabik-news-2005-05
Thorsten Kampe wrote: > * Steven D'Aprano (06 Aug 2009 19:17:30 GMT) >> What if you're writing a loop which takes one million different lines of >> text and decodes them once each? >> >> >>> setup = 'L = ["abc"*(n%100) for n in xrange(100)]' >> >>> t1 = timeit.Timer('for line in L: line.deco

Re: Queryable Daemon

2009-08-01 Thread garabik-news-2005-05
MRAB wrote: > Justin DeCell wrote: >> Hi All, >> ... >> The only other way I thought >> of would be to write to a file on disk every so often from the daemon >> and just read the from the query process but it seems like there should >> be a more elegant way to do this... >> >> By the way I'

Re: Colour of output text

2009-07-10 Thread garabik-news-2005-05
Tim Harig wrote: > On 2009-07-09, Alex Rosslyn wrote: >> I would like to learn a way of changing the colour of a particular >> part of the output text. I've tried the following > On Unix operating systems this would be done through the curses interface: > > http://docs.python.org/library/curses

Re: wikipedia with python

2009-06-22 Thread garabik-news-2005-05
Andre Engels wrote: > On Mon, Jun 22, 2009 at 6:58 PM, zelegolas wrote: >> Let me know if it's the right place to ask. >> >> I'm looking for wiki writen with python where I can import all >> wikipedia site. >> If you have any links please let me know. > > I don't think that's possible. If you wna

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

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

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

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

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

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

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

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