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 ə
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
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:
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
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/)
--
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
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
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
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
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
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
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
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
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
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
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
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()
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
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
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
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
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.
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
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.
--
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?
--
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/
--
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
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
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/ |
| __..--^^^-
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
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
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
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
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
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
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); \
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
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
>
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
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)
--
-
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>
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,
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
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
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
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
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
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
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'
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
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
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
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
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
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
--
-
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
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
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
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
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
[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
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
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
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
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
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
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
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
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
[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
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
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
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
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
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
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
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
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
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
[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
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
81 matches
Mail list logo