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

2021-06-15 Thread Tomasz Rola
on, choose your framework 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 -- *

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"

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

2019-08-23 Thread Tomasz Rola
EPL 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 &quo

Re: ESR "Waning of Python" post

2018-10-11 Thread Tomasz Rola
i.e. 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

Re: don't quite understand mailing list

2018-09-10 Thread Tomasz Rola
r long enough, 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 t

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
: http://www.dwheeler.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** **

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

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

2014-05-11 Thread Tomasz Rola
thers 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. -- Re

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 wh

Re: My son wants me to teach him Python

2013-06-13 Thread Tomasz Rola
functional-programming-philosophical.html > Nevertheless it seems to be the best there is at the moment. Mee too! For this reason I am exploring Ocaml and SML. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As t

Re: Calculate Big Number

2013-01-07 Thread Tomasz Rola
P folks are doing: http://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.

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

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

2012-06-15 Thread Tomasz Rola
uch) even if you'd like to. Myself, I love 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 h

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

2012-06-13 Thread Tomasz Rola
to Lisp what Ansi C is to > C. > > IOWS, there does remain incompatibilities between different > Common Lisp implementations. Interesting. I play 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, perhap

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 langua

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

2012-06-11 Thread Tomasz Rola
malltalk (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 -- ** A C programmer asked whether computer had Buddha's nature.

Re: Smallest/cheapest possible Python platform?

2012-05-26 Thread Tomasz Rola
sembly. Or Forth. If you land among embedded systems, it's better to speak embeddish or you will feel uncomfortable. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did &quo

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&#x

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

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

Re: John Carmack glorifying functional programing in 3k words

2012-05-02 Thread Tomasz Rola
ings and leave him be. He may be smart but obviously hasn't figured out this yet: 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. Regards, Tomasz Ro

Re: Common LISP-style closures with Python

2012-02-04 Thread Tomasz Rola
rn those other language(s). If you'd like to try "unlimited" lambda, you might want to play with Racket, a Scheme superset. Or any other Scheme - it's simple enough to start coding after a day or two of learning (I mean Fibonaccis and Erastotenes sieves, not implementing database or

Re: slightly OT -- LaTeX

2011-09-01 Thread Tomasz Rola
://www.ctan.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.

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 compu

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 wrote: > > On Tue, 4 Jan 2011, Roy Smith wrote: > >> Alan Meyer wrote: > >>> On 1/4/2011 4:22 PM, Google Poster wrote: > >>> > >>>> The syntax reminds me of Lots

Re: Trying to decide between PHP and Python

2011-01-05 Thread Tomasz Rola
ling list for a while. Or every programmer 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.

Re: Trying to decide between PHP and Python

2011-01-04 Thread Tomasz Rola
On Wed, 5 Jan 2011, Ben Finney wrote: > > Tomasz Rola 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 pref

Re: Trying to decide between PHP and Python

2011-01-04 Thread Tomasz Rola
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, Java, whatever). Compare time and code spent... Regards :-) Tomasz Rola -- ** A C programmer asked whether computer had Buddha

Re: Trying to decide between PHP and Python

2011-01-04 Thread Tomasz Rola
rs (or maybe ten, or maybe only two) - after 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 ha

Re: Python comparison matrix

2011-01-03 Thread Tomasz Rola
CPython supported which > operating systems (e.g. the first 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.

Re: What was your strategy?

2010-11-18 Thread Tomasz Rola
is their best option IMHO. But in case of "serious"/"serial" ;-) programing, I would save Python for second or third language. I mean, I perceive it as rather "one way to do it" language and forcing this "one way" on unformed programer doesn't look good.

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

2010-08-01 Thread Tomasz Rola
int of interpreting 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

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

2010-08-01 Thread Tomasz Rola
iga were based around 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 d

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

2010-07-09 Thread Tomasz Rola
not screw something, 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 p

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 m

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

2010-07-09 Thread Tomasz Rola
needs (CGI? desktop? etc). So I would take this under consideration, too - 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

Re: Bored.

2009-11-30 Thread Tomasz Rola
ne to turn them 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

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

Re: What python can NOT do?

2009-08-29 Thread Tomasz Rola
; > > > -tkc > > > > if you don't know the answer please don't reply > > If you want to ask a silly question don't ask it. The question the OP asked was not silly. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Bu

Re: What python can NOT do?

2009-08-28 Thread Tomasz Rola
fragile code, so I decided it could be easier to learn another language... Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did "rm

Re: Is Python what I need?

2009-08-23 Thread Tomasz Rola
s, if this is going to be "let's show them how interesting it is", you should 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, i

Re: #elements of seq A in seq B

2009-08-19 Thread Tomasz Rola
tree from 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 aske

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

Re: Nimrod programming language

2009-05-11 Thread Tomasz Rola
s kind of stuff plays more and more important role in my programing. > It seems to require continuations. AFAIK > 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 inte

Re: Nimrod programming language

2009-05-10 Thread Tomasz Rola
//planet.plt-scheme.org/package-source/murphy/amb.plt/1/0/planet-docs/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, ma

Re: Is python worth learning as a second language?

2009-03-21 Thread Tomasz Rola
that you > can load on the page 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&qu

Re: Is python worth learning as a second language?

2009-03-21 Thread Tomasz Rola
an Perl. But this is just my personal 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 wh

Re: Is python worth learning as a second language?

2009-03-21 Thread Tomasz Rola
On Sat, 21 Mar 2009, Aahz wrote: > In article , > Tomasz Rola 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

Re: Is python worth learning as a second language?

2009-03-20 Thread Tomasz Rola
ut few other Java implementations, some of them 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 Buddh

Re: cross compile Python to Linux-ARM

2009-03-20 Thread Tomasz Rola
rial spec Intel Atom boards to avoid > the cross 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. ** *

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 wrote: > >Tomasz Rola a écrit : > >> > >> I may not be objective (tried Java, hated it after 6 years). > &

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 canno

Re: Is python worth learning as a second language?

2009-03-09 Thread Tomasz Rola
his, for a start: http://docs.python.org/tutorial/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 answ

Re: Why not Ruby?

2009-01-01 Thread Tomasz Rola
he writes is informative, too. A bit redundant but still, I would give him 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.

Re: Python is slow

2008-12-15 Thread Tomasz Rola
robably will be some descendant of Erlang 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&

Re: Programming exercises/challenges

2008-11-18 Thread Tomasz Rola
th bigger ones. Writing real life programs will give you 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&qu

Re: Is there a faster way to do this?

2008-08-05 Thread Tomasz Rola
time, with some other programs computing a little etc in the background - so, much less then 2 hours. 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** ** direct

Re: Limits of Metaprogramming

2008-08-04 Thread Tomasz Rola
akes me feel better. Or rather, knowing I can easily merge the two (or more) ways. Regards, Tomasz Rola -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did "rm -rif" on the

Re: Limits of Metaprogramming

2008-08-04 Thread Tomasz Rola
erstood. And, last but not least, it has metaprogramming included with nice bunch of additional stuff. For a start, PLT's DrScheme looks nice (IMHO - yes, there are other nice looking Scheme implementations but this one is probably best fitted for a beginner): http://www.plt-scheme.or

Re: up to date books?

2005-08-18 Thread Tomasz Rola
ny *.py file made any 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 ho

Re: Initializing interactive Python

2005-07-24 Thread Tomasz Rola
cuting a script, you are presented a prompt from properly (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 h

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

2005-07-24 Thread Tomasz Rola
off ssh I notice 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. ** *

Re: without shell

2005-06-10 Thread Tomasz Rola
bit offtopic in my previous mail. Shouldn't 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

Re: without shell

2005-06-10 Thread Tomasz Rola
nel. Again, sometimes you can get similar or better results 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'

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

2005-05-28 Thread Tomasz Rola
able to browse in automatic way. 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, ma

Re: Help with choice of suitable Architecture

2005-05-28 Thread Tomasz Rola
t it is up to you to taste both languages and decide which one is better in your case. Regards, Tomasz Rola - -- ** A C programmer asked whether computer had Buddha's nature. ** ** As the answer, master did "rm -rif"

Re: speeding up Python script

2005-05-18 Thread Tomasz Rola
a miala mak.ba' | wc -c psyco.full start psyco.full end 18.27user 0.03system 0:19.00elapsed 96%CPU (0avgtext+0avgdata 0maxresident)k 0inputs+0outputs (357major+183minor)pagefaults 0swaps 1064960 Regards, Tomasz Rola - -- ** A C programmer asked whether computer had Buddha's nature

Re: how to control the mouse pointer with python?

2005-01-13 Thread Tomasz Rola
d then the C programmer became enlightened... ** ** ** ** Tomasz Rola mailto:[EMAIL PROTECTED] ** -BEGIN PGP SIGNATURE- Version: PGPfreeware 5.0i for non-commercial use Charset: noconv iQA/AwUBQecSpRETUsyL9vbiEQJsCgCg8tkt/dPJu7pajgJrKsiK6tfz/sEAmgI9 28mUchbUqdz