Re: Php vs Python gui (tkinter...) for small remote database app

2021-06-15 Thread Tomasz Rola
k and do the gui. If you go with tkinter, then you will have to do the job already done by authors of web server and web framework, you will have to rethink various problems they gave their thoughts to, but in much shorter time and on your own. -- Regards, Tomasz Rola -- ** A C programme

Re: convert script awk in python

2021-03-23 Thread Tomasz Rola
then with rewrite one also has to make sure new code is drop in replacement for the old. There is very nice documentation to gawk (Gnu AWK). -- Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did "rm -rif" on th

Re: How to record the console's content in the interpreter?

2019-08-23 Thread Tomasz Rola
REPL for Emacs and with an interface similar to command shells such as bash, zsh, rc, or 4dos. [ https://www.gnu.org/software/emacs/manual/html_mono/eshell.html ] -- Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did "rm -rif"

Re: ESR "Waning of Python" post

2018-10-11 Thread Tomasz Rola
nodes, I assume? How many edges (arcs, lines) for a node, on average? on max? I am curious, as always. Because it is nice of him to rant, but technical/mathematical side of decision making is still a bit too foggy for me and I cannot assess it. -- Regards, Tomasz Rola -- ** A C programmer aske

Re: don't quite understand mailing list

2018-09-10 Thread Tomasz Rola
you will finally learn enough to solve your problem(s). Maybe you will even be able to unsubscribe on your very own? HTH -- Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did "rm -rif" on the programmer's home

Re: How to install matplotlib in Debian 9

2018-06-11 Thread Tomasz Rola
so, you may want to make sure it does not mess with the stable part before you run it. The stable part - i.e. the part of the Debian that is maintained with aptitude/apt* commands. Like /usr, /bin, good part of /var etc. HTH -- Regards, Tomasz Rola -- ** A C programmer asked whethe

Re: Quick way to calculate lines of code/comments in a collection of Python scripts?

2016-10-24 Thread Tomasz Rola
late, I use lisp interpreter interactively (believe it or not). Spritesheep, like Excel, has some merits but I consider them poor choice for computing anything important (I see no formula, I see no errors). -- Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature

Re: Quick way to calculate lines of code/comments in a collection of Python scripts?

2016-10-23 Thread Tomasz Rola
wheeler.com/sloccount/ -- Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did "rm -rif" on the programmer's home** ** directory. And then the

Re: Fortran (Was: The does Python have variables? debate)

2014-05-11 Thread Tomasz Rola
of the subject). I hope others will not be influenced by such attitude :-). Neglecting someone's effort to make working flawless code, forcing people into periodic rewrites of things that used to work, such events always blink red in my head. -- Regards, Tomasz Rola -- ** A C programmer asked

Re: Fortran

2014-05-11 Thread Tomasz Rola
On Mon, May 12, 2014 at 02:42:13AM +1000, Chris Angelico wrote: On Mon, May 12, 2014 at 2:09 AM, Tomasz Rola rto...@ceti.pl wrote: Given that Fortran is here for almost 60 years and lot of effort has been spent to keep it backwards compatible (AFAIK), I wouldn't hold my breath. Something

Re: My son wants me to teach him Python

2013-06-13 Thread Tomasz Rola
! For this reason I am exploring Ocaml and SML. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer became enlightened

Re: My son wants me to teach him Python

2013-06-13 Thread Tomasz Rola
I've reposted on another list and got this reply. At first I was sceptic a bit, but for the sake of completeness, here goes. Processing language seems to be interesting in its own right. Examples are Java-flavoured, images are ok. Regards, Tomasz Rola -- ** A C programmer asked whether

Re: Calculate Big Number

2013-01-07 Thread Tomasz Rola
://en.wikipedia.org/wiki/GNU_Multi-Precision_Library Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer became enlightened

Re: which one do you prefer? python with C# or java?

2012-06-15 Thread Tomasz Rola
more choice, but of course everybody can have his own preferences. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer became enlightened

Re: which one do you prefer? python with C# or java?

2012-06-15 Thread Tomasz Rola
On Fri, 15 Jun 2012, Terry Reedy wrote: On 6/15/2012 1:03 PM, Tomasz Rola wrote: Last time I checked, Python didn't have linked lists - arrayed lists are nice, but their elements can't be automatically GC-ed (or, this requires very nontrivial GC algorithm), the easiest way I can think

Re: which one do you prefer? python with C# or java?

2012-06-13 Thread Tomasz Rola
with CL for some time but haven't rammed this particular wall yet. Do you remember more about it? If you can't be specific, perhaps some hint will do. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif

Re: which one do you prefer? python with C# or java?

2012-06-11 Thread Tomasz Rola
and Fortran but I tend to avoid such situations and thus life gets much simpler). If you would like to bend your mind a little, Racket or Forth or Smalltalk (in a form of SqueakVM) could do the job. Every time I read about Smalltalk and think how Java took over, I mentally weep. Regards, Tomasz Rola

Re: which one do you prefer? python with C# or java?

2012-06-11 Thread Tomasz Rola
On Mon, 11 Jun 2012, Tomasz Rola wrote: If you want to delve into Java world, well, I consider Java an unbearably ugly hog. When I was younger and fearless I programmed a bit in Java, but nowadays, the only way I myself could swallow this would be to use some other language on top

Re: Smallest/cheapest possible Python platform?

2012-05-26 Thread Tomasz Rola
uncomfortable. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer became enlightened

Re: John Carmack glorifying functional programing in 3k words

2012-05-02 Thread Tomasz Rola
and more permamently towards you. Perhaps he should develop an alter ego that could stand side by side with Dalai Lama and see which one gets more attention. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif

Re: John Carmack glorifying functional programing in 3k words

2012-05-02 Thread Tomasz Rola
On Thu, 3 May 2012, Chris Angelico wrote: On Thu, May 3, 2012 at 1:31 AM, Tomasz Rola rto...@ceti.pl wrote: He may be smart but obviously hasn't figured out this yet: positive aura drives more people and more permamently towards you. You catch more flies with honey than with vinegar

Re: John Carmack glorifying functional programing in 3k words

2012-05-02 Thread Tomasz Rola
On Wed, 2 May 2012, Tim Wintle wrote: On Wed, 2012-05-02 at 17:31 +0200, Tomasz Rola wrote: positive aura drives more people and more permamently towards you. Perhaps he should develop an alter ego that could stand side by side with Dalai Lama and see which one gets more attention

Re: John Carmack glorifying functional programing in 3k words

2012-05-02 Thread Tomasz Rola
On Wed, 2 May 2012, Michael Torrie wrote: On 05/02/2012 09:31 AM, Tomasz Rola wrote: On Wed, 2 May 2012, jaialai.technol...@gmail.com wrote: OP lives out of his car and his main source of income seems to be ad revenue from his website. I'm always curious about this sort of thing. Do

Re: Common LISP-style closures with Python

2012-02-04 Thread Tomasz Rola
than the other way, but that's just me. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer became enlightened

Re: slightly OT -- LaTeX

2011-09-01 Thread Tomasz Rola
Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer became enlightened... ** ** ** ** Tomasz Rola

Re: Trying to decide between PHP and Python

2011-01-05 Thread Tomasz Rola
regardless of his/her current language. HTDP is interesting book, pity I couldn't read it when it might have made a bigger difference to my development. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif

Re: Trying to decide between PHP and Python

2011-01-05 Thread Tomasz Rola
On Wed, 5 Jan 2011, Grant Edwards wrote: On 2011-01-05, Tomasz Rola rto...@ceti.com.pl wrote: On Tue, 4 Jan 2011, Roy Smith wrote: Alan Meyer amey...@yahoo.com wrote: On 1/4/2011 4:22 PM, Google Poster wrote: The syntax reminds me of Lots of Interspersed Silly Parentheses (L.I.S.P

Re: Trying to decide between PHP and Python

2011-01-05 Thread Tomasz Rola
On Tue, 4 Jan 2011, Roy Smith wrote: There. Now that I've tossed some gasoline on the language wars fire, I'll duck and run in the other direction :-) May I suggest a better strategy? Run first, duck next :-). Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's

Re: Trying to decide between PHP and Python

2011-01-04 Thread Tomasz Rola
that, you can learn PHP and Perl if you really want to :-). I guess stackoverflow can give some pointers about it. Myself, I see neither of the two as promising for me, so I deflect them. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer

Re: Trying to decide between PHP and Python

2011-01-04 Thread Tomasz Rola
with some other language of your preference (Python, Java, whatever). Compare time and code spent... Regards :-) Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C

Re: Trying to decide between PHP and Python

2011-01-04 Thread Tomasz Rola
On Wed, 5 Jan 2011, Ben Finney wrote: Tomasz Rola rto...@ceti.com.pl writes: Heh. One day, guys, when you have nothing better to do, try writing a parser for Lisp-like language (Common Lisp, Scheme, whatever). After that, do the same with some other language of your preference (Python

Re: Python comparison matrix

2011-01-03 Thread Tomasz Rola
and last Python release that works on Windows 98 or Mac OS 9)? The best I've found so far is PEP 11 Nothing comes to my head ATM. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home

Re: What was your strategy?

2010-11-18 Thread Tomasz Rola
it as rather one way to do it language and forcing this one way on unformed programer doesn't look good. No offence. See? I'm still here. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home

Re: Why is python not written in C++ ?

2010-08-01 Thread Tomasz Rola
the same concept. It seems, that Comeau C++ compiler (which I never tried) still requires C compiler as a backend (and is highly regarded by some). Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif

Re: Why is python not written in C++ ?

2010-08-01 Thread Tomasz Rola
or JIT, yet they stand in a way. While this could be solved (with some headache, I suspect), C is far simpler and function calls or manipulating structs are actually trivial... Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master

Re: Opinions please -- how big should a single module grow?

2010-07-09 Thread Tomasz Rola
- how many times per second (minute, day) this code will be executed? Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer became enlightened

Re: Opinions please -- how big should a single module grow?

2010-07-09 Thread Tomasz Rola
On Fri, 9 Jul 2010, Tomasz Rola wrote: On Fri, 9 Jul 2010, Steven D'Aprano wrote: This is a style question rather than a programming question. How large (how many KB, lines, classes, whatever unit of code you like to measure in) should a module grow before I should break it up

Re: Opinions please -- how big should a single module grow?

2010-07-09 Thread Tomasz Rola
, a typical Python code size is far below 1KLOC (wc counts all lines, so my result includes all comments and blanks too). Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory

Re: Bored.

2009-11-30 Thread Tomasz Rola
into code. Look out the window. Read a book. Repeat. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer became enlightened

Re: What python can NOT do?

2009-08-29 Thread Tomasz Rola
question don't ask it. The question the OP asked was not silly. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer became enlightened

Re: What python can NOT do?

2009-08-29 Thread Tomasz Rola
On Sat, 29 Aug 2009, Steven D'Aprano wrote: On Sat, 29 Aug 2009 05:37:34 +0200, Tomasz Rola wrote: My private list of things that when implemented in Python would be ugly to the point of calling it difficult: 1. AMB operator - my very favourite. In one sentence, either language

Re: What python can NOT do?

2009-08-28 Thread Tomasz Rola
to be informative, not offensive. BTW2. As I said, these are _possible_ things (Turing complete language, and so on). But adding them would require some hard work and would produce ugly and/or fragile code, so I decided it could be easier to learn another language... Regards, Tomasz Rola

Re: Is Python what I need?

2009-08-23 Thread Tomasz Rola
stay away from languages more complicated, like Java. Those who are going to learn Java, will learn it anyway. Knowing something different and cool first should not kill them. Quite the contrary, it can be an eye opener. Regards Tomasz Rola -- ** A C programmer asked whether computer had Buddha's

Re: #elements of seq A in seq B

2009-08-19 Thread Tomasz Rola
elements of A and use it to count elements of B. I.e., tree nodes would be counters. Building trees in Python, however, I guess it is a little bit tricky. Of course it is possible. But maybe you would rather have this tree maintained in C. Regards Tomasz Rola -- ** A C programmer asked whether

Re: Nimrod programming language

2009-05-16 Thread Tomasz Rola
On Mon, 11 May 2009, k...@fiber-space.de wrote: On 12 Mai, 02:10, Tomasz Rola rto...@ceti.com.pl wrote: On Mon, 11 May 2009, rump...@web.de wrote: One question I ask myself upon seeing a new language is if it is possible to program amb (amb=ambiguous) operator in it. This page

Re: Nimrod programming language

2009-05-11 Thread Tomasz Rola
continuations are extremely hard to implement efficiently, so probably it won't be done in Nimrod. Pity, a little. But not really big problem for me. Nimrod may be interesting anyway, time will tell :-). Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature

Re: Nimrod programming language

2009-05-10 Thread Tomasz Rola
/amb/index.html Anyway, I think amb is quite a test of a language. If you can do it, please show the code. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C

Re: Is python worth learning as a second language?

2009-03-21 Thread Tomasz Rola
On Sat, 21 Mar 2009, Aahz wrote: In article pine.lnx.4.64.0903210534130.6...@tau.ceti.pl, Tomasz Rola rto...@ceti.com.pl wrote: On Sat, 20 Mar 2009, Aahz wrote: Taking C++ and turning it into a VM model does not exactly strike me as particularly good use of resources. It doesn't

Re: Is python worth learning as a second language?

2009-03-21 Thread Tomasz Rola
choice. Since we are already a little offtopic :-), did you see any speed difference between PHP and Python? I understand, that you are doing web devel in those two? -Alex Goretoy http://www.goretoy.com Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature

Re: Is python worth learning as a second language?

2009-03-21 Thread Tomasz Rola
into a div with ajax, preferrably jquery but you can use any framework for that too I see. Thanks for answering. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory

Re: Is python worth learning as a second language?

2009-03-20 Thread Tomasz Rola
On Thu, 19 Mar 2009, Aahz wrote: --===0027953262== In article 49b58b35$0$3548$426a7...@news.free.fr, Bruno Desthuilliers bdesth.quelquech...@free.quelquepart.fr wrote: Tomasz Rola a écrit : I may not be objective (tried Java, hated it after 6 years). Arf - only took me 6

Re: cross compile Python to Linux-ARM

2009-03-20 Thread Tomasz Rola
compilation altogether ? Depends. If you know for sure when they are going to be here and if they will be price-performance-competitive. Regards Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home

Re: Is python worth learning as a second language?

2009-03-20 Thread Tomasz Rola
not so resource hungry. Not that it makes Java much better, but your choice could be better informed. Eh, English - not sure if it is really what I've wanted to say :-). Regards Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif

Re: Is python worth learning as a second language?

2009-03-09 Thread Tomasz Rola
/index.html and later: http://docs.python.org/ http://diveintopython.org/ Thanks pl.comp.lang.python ;-) Regards/Pozdrawiam, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory

Re: Is python worth learning as a second language?

2009-03-09 Thread Tomasz Rola
On Mon, 9 Mar 2009, Bruno Desthuilliers wrote: Tomasz Rola a écrit : (snip) I may not be objective (tried Java, hated it after 6 years). Arf - only took me 6 months !-) I guess sometimes I need to be knocked really hard ;-/. But it works both ways - I cannot imagine what should Java

Re: Why not Ruby?

2009-01-01 Thread Tomasz Rola
a small plus, rather than zero or minus. But I do not remember him being blunt or agressive. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer became

Re: Python is slow

2008-12-15 Thread Tomasz Rola
and/or Haskell. As evolutionary step, they look very promising to me, they just are not quite there yet. As of C++, I cannot tell before I read their new standard. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif

Re: Programming exercises/challenges

2008-11-18 Thread Tomasz Rola
an opportunity to learn some python libraries, which is a good thing too. Nice attitude :-). Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer

Re: Is there a faster way to do this?

2008-08-05 Thread Tomasz Rola
generation, about 3 minutes to sort the list, and few more seconds to skim it (writing should not be much longer). All summed up, about 18 minutes of real time, with some other programs computing a little etc in the background - so, much less then 2 hours. Regards, Tomasz Rola -- ** A C programmer

Re: Limits of Metaprogramming

2008-08-04 Thread Tomasz Rola
): http://www.plt-scheme.org/ Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer became enlightened

Re: Limits of Metaprogramming

2008-08-04 Thread Tomasz Rola
. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer became enlightened

Re: up to date books?

2005-08-18 Thread Tomasz Rola
sense to me. This would give me some hints about how much I need to learn and on what level. Regards, Tomasz Rola - -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer

Re: How to run python script in background after i logout

2005-07-24 Thread Tomasz Rola
that the script died when I logged off. How do I make sure it stays running? Besides at and cron commands (mentioned by the others), have a look at nohup, too. Regards, Tomasz Rola - -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif

Re: Initializing interactive Python

2005-07-24 Thread Tomasz Rola
(i.e. the way you want it) initialised interpreter. Regards, Tomasz Rola - -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer became enlightened

Re: without shell

2005-06-10 Thread Tomasz Rola
without sacrificing the whole OS, and with less work. But this subject is quite broad and so there is not much more to say. regards, KM Regards, Tomasz Rola - -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home

Re: without shell

2005-06-10 Thread Tomasz Rola
watch tv and write mails at the same time. regards, KM Regards, Tomasz Rola - -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer became enlightened

Re: Help with choice of suitable Architecture

2005-05-28 Thread Tomasz Rola
. Regards, Tomasz Rola - -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer became enlightened

Re: Is there already a Python module to access the USPTO web site?

2005-05-28 Thread Tomasz Rola
. This would left only parsing responces from the server to you. But I had no time to play with it, so if I am wrong, don't beat me too hard. Regards, Tomasz Rola - -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home

Re: speeding up Python script

2005-05-18 Thread Tomasz Rola
0maxresident)k 0inputs+0outputs (357major+183minor)pagefaults 0swaps 1064960 Regards, Tomasz Rola - -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did rm -rif on the programmer's home** ** directory. And then the C programmer became enlightened

Re: how to control the mouse pointer with python?

2005-01-13 Thread Tomasz Rola
... ** ** ** ** Tomasz Rola mailto:[EMAIL PROTECTED] ** -BEGIN PGP SIGNATURE- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQA/AwUBQecSpRETUsyL9vbiEQJsCgCg8tkt/dPJu7pajgJrKsiK6tfz/sEAmgI9 28mUchbUqdzjSwUUvezVRnT5 =XJx5 -END PGP SIGNATURE