sqlite3 import performance

2008-09-05 Thread Ben Lee
hi folks -- a quick python and sqlite3 performance question. i find that inserting a million rows of in-memory data into an in-memory database via a single executemany() is about 30% slower than using the sqlite3 CLI and the .import command (reading the same data from a disk file, even.) i find

Wx Python - Code Structure & Event Handling

2008-09-09 Thread lee . walczak
Hi, I have just started writing a GUI using wxpython after finding a limitation using Tkinter. I have read most tutorials on wxpython and slowly becoming accustomed considering I started with the latter GUI tool first! I must quote first that I am a novice user of python so the issue(s) I have may

Re: Wx Python - Code Structure & Event Handling

2008-09-10 Thread lee . walczak
Thanks for the feedback. It is greatly appreciated. Let me check out your references and see where they take me. Will post back and let you know how useful this was. thanks! Lee -- http://mail.python.org/mailman/listinfo/python-list

decorator and API

2008-09-17 Thread Lee Harr
I have a class with certain methods from which I want to select one at random, with weighting. The way I have done it is this import random def weight(value): def set_weight(method): method.weight = value return method return set_weight class A(object): def a

Xah's Edu Corner: The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations

2006-03-15 Thread Xah Lee
The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations Xah Lee, 2006-03-15 Let me summarize: The LISP notation, is a functional notation, and is not a so-called pre-fix notation or algebraic notation. Algebraic notations have the concept of operators, meaning

Re: Xah's Edu Corner: The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations

2006-03-16 Thread Xah Lee
Xah Lee wrote: « The Concepts and Confusions of Pre-fix, In-fix, Post-fix and Fully Functional Notations http://xahlee.org/UnixResource_dir/writ/notations.html » A side note: the terminology “Algebraic” Notation is a misnomer. It seems to imply that such notations have something to do with the

Re: Xah's Edu Corner: What is Expressiveness in a Computer Language

2006-03-19 Thread Xah Lee
What is Expressiveness in a Computer Language Xah Lee, 200502, 200603. In languages human or computer, there's a notion of expressiveness. English for example, is very expressive in manifestation, witness all the poetry and implications and allusions and connotations and dictions. There

Python has a new Logo

2006-03-23 Thread Xah Lee
Python has a new logo! See http://python.org/ And it is a fantastic logo. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python has a new Logo

2006-03-23 Thread Xah Lee
is there larger versions of the logo? and, any usage restrictions? i also like to find out the the artist name. Any pointer is appreciated. Thanks. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ Felipe Almeida Lessa wrote: > Em Qui, 2006-03-23 às 07:43 -0800, Xah Lee escreveu: > &g

Re: OT: unix newbie questions

2006-03-27 Thread Inyeol Lee
On Sat, Mar 25, 2006 at 03:45:56AM -0800, Gerard Flanagan wrote: [...] > * If I want to do : > > mv mypackage-1.0.2.tar.gz subdir/mypackage-1.0.2.tar.gz > > then tab-completion gives me the first occurrence of the file, but I > have to type the second occurrence - is there a way of

A Lambda Logo Tour

2006-04-05 Thread Xah Lee
A Lambda Logo Tour (and why LISP languages using λ as logo should not be looked upon kindly) Xah Lee, 2002-02 Dear lispers, The lambda character λ, always struck a awe in me, as with other mathematical symbols. In my mind, i imagine that those obscure math symbolism are etched in stone by god

[ANNC] pybotwar-0.7

2009-11-29 Thread Lee Harr
pybotwar is a fun and educational game where players write computer programs to control simulated robots. http://pybotwar.googlecode.com/ pybotwar uses pybox2d for the physical simulation. It can be run in text-only mode -- useful for longer tournaments -- or use pyqt or pygame for a graphical

Xah's Edu Corner: Teach Ourself Programing In Ten Years?

2010-01-02 Thread Xah Lee
t version follows. ------ The Condition of Industrial Programers Xah Lee, 2006-05 Before i stepped into the computing industry, my first industrial programing experience was at Wolfram Research Inc as a intern in 1995. (Wolfram Research is famously known for their highly su

Re: interactive terminal in Ubuntu Linux : libreadline5-dev works only in Python 2.6 not 3.1

2010-01-12 Thread Lee Harr
> And my original problem still there : fouled up keys in interactive > terminal. When you first had this problem, was python3 installed from source, or was it from the Ubuntu repository? (ie, did you install using apt-get or synaptic or did you just start out building from source?) I have pyt

Re: interactive terminal in Ubuntu Linux : libreadline5-dev works only in Python 2.6 not 3.1

2010-01-13 Thread Lee Harr
>> When you first had this problem, was python3 installed from >> source, or was it from the Ubuntu repository? > Over a month ago I downloaded the tarball Python-3.1.1 from > the python website.  Then the Synaptic Package Manager did not > contain this ( latest ) version. There is already pytho

Xah's Edu Corner: Unix Pipe As Functional Language

2010-01-25 Thread Xah Lee
Dear comrades, Hot from the press: • Unix Pipe As Functional Language http://xahlee.org/comp/unix_pipes_and_functional_lang.html plain text version follows: -- Unix Pipe As Functional Language Xah Lee, 2010-01-25 Found the following juicy

python 3's adoption

2010-01-26 Thread Xah Lee
Some thoughts about Python 3 Adoption. Xah Lee, 2010-01-26 Some notes of Wikipedia readings related to Python. Unladen Swallow, a new project from Google. It is a new python compiler with the goal of 5 times faster than the de facto standand implementation CPython. Also note Stackless Python

Re: python 3's adoption

2010-01-27 Thread Xah Lee
e_dir/why_cant_you_be_normal.html Xah On Jan 26, 7:12 pm, "Alf P. Steinbach" wrote: > * John Bokma: > > > "Alf P. Steinbach" writes: > > >> Please don't post more noise and ad hominem attacks to the group, > >> Steve. > > > Funny that you

Re: python 3's adoption

2010-01-27 Thread Xah Lee
On Jan 26, 3:47 pm, Xah Lee wrote: > * Many functions that return lists now returns “Views” or > “Iterators” Instead. A fucking fuck all fucked up shit. A extraneous > “oop engineering” complication. (See: Lambda in Python 3000) See also: “Iterators: Signs of Weakness in Object

Re: some turtle questions

2010-01-27 Thread Lee Harr
> I am trying to think of things to do with the turtle module > 1) is there a way to determine the current screen pixel color? This would not use the included turtle module, but you could use the turtle module from the pygsear collection: http://www.nongnu.org/pygsear/ It requires pygame, but

Haskell's new logo, and the idiocy of tech geekers

2009-10-02 Thread Xah Lee
Haskell has a new logo. A fantastic one. Beautiful. For creator, context, detail, see bottom of: • A Lambda Logo Tour http://xahlee.org/UnixResource_dir/lambda_logo.html this is posted here because it relates to various computer software/ language's logo, a subject discussed by me several times

[ANNC] acromania-0.5

2009-11-15 Thread Lee Harr
Acromania is a word game of acronyms. This program is a computer moderator for networked games of acromania. It can connect to a channel on IRC, or start a standalone server which can be accessed much like a MUD. http://acromania.googlecode.com/ Acromania uses Twisted and SQLite. Optionally, i

Time travel

2009-11-17 Thread Lee Merrill
ht cause a 4000 seconds backwards jump on March 9th of last year? I would have expected 3600 seconds. Thanks, Lee P.S. A full program demonstrating the question: #!/usr/bin/env python import time, datetime d1 = datetime.datetime(2008, 3, 9, 2, 59, 0).timetuple() #!/usr/bin/env python import time,

Re: Time travel

2009-11-17 Thread Lee Merrill
And I can't do arithmetic, it is actually about 3600--never mind! On Nov 17, 10:37 am, Lee Merrill wrote: > I'm seeing an anomaly in the python time function on March 9, 2008 > (the "spring foward" time): > > >>> time.mktime((2008, 3, 9, 2, 59, 59, 0,

python admin abuse complaint

2010-02-02 Thread Xah Lee
This is a short complaint on admin abuse on #python irc channel on freenode.net. Here's a log: 2010-02-02 (12:11:57 PM) The topic for #python is: NO LOL | http://pound-python.org/ | It's too early to use Python 3.x | Pasting > 3 lines? Pastebin: http://paste.pocoo.org/ | Tutorial: http://docs.py

Python's Reference And Internal Model Of Computing Languages

2010-02-02 Thread Xah Lee
just wrote this essay. Comment & feedback very welcome. Python's Reference And Internal Model Of Computing Languages Xah Lee, 2010-02-02 In Python, there are 2 ways to clear a hash: “myHash = {}” and “myHash.clear()”. What is the difference? ↓ The difference is that “m

Re: Python's Reference And Internal Model Of Computing Languages

2010-02-02 Thread Xah Lee
()On Feb 2, 6:46 pm, Ryan Kelly wrote: > > On Tue, 2010-02-02 at 17:28 -0800, Xah Lee wrote: > > I know, I know, do not feed the trolls.  But this is just so *wrong* > that I can't help myself. > > > In Python, there are 2 ways to clear a hash: > > No, n

Re: python admin abuse complaint

2010-02-04 Thread Xah Lee
ank you. For anyone reading this thread and interested in my opinions, i have written many essays related to this and netiquette. Many of which detail other similar incidences that i personally experienced, such as freenode's irc ban in #emacs channel. If you are interested, they can be

[ANNC] pynguin-0.1 (python-based turtle graphics application)

2010-02-28 Thread Lee Harr
pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This is the in

NoSQL Movement?

2010-03-03 Thread Xah Lee
ng. So, i thought i'd post here to solicit some opinins from the programer community i know. Here's the plain text version - The NoSQL Movement Xah Lee, 2010-01-26 In the past few years, there's new fashionable thinking about anti relational database, now bl

[ANNC] pynguin-0.2 (python turtle graphics application)

2010-03-07 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release c

Re: NoSQL Movement?

2010-03-08 Thread Xah Lee
obably number one among the world's user of databases, probably double or triple than the second user with the most large datasize. At that point, it seems logical that they need their own db, relational or not. Xah ∑ http://xahlee.org/ ☄ On Mar 4, 10:35 pm, John Nagle wrote: > Xah Lee wr

Re: NoSQL Movement?

2010-03-09 Thread Xah Lee
On Mar 8, 11:14 am, Duncan Booth wrote: > Xah Lee wrote: > > For example, consider, if you are within world's top 100th user of > > database in terms of database size, such as Google, then it may be > > that the off-the-shelf tools may be limiting. But how many users &g

Re: NoSQL Movement?

2010-03-10 Thread Xah Lee
scale it. Right, but that doesn't seems to have any relevance about my point. Many says that scalability is key to NoSQL, i pointed out that unless you are like google, or ranked top 1000 in the world in terms data size, the scalability reason isn't that strong. Xah Lee wrote: > man

Some PyCon videos won't play

2010-03-13 Thread Lee Harr
I am having a great time watching videos from PyCon. Thanks to everyone who presented, and to those who did such a great job putting the videos up at: http://pycon.blip.tv/ My trouble is that, although most of the videos play perfectly, there are a few that refuse to play at all. Like: Python 10

[ANNC] pynguin-0.4 (python turtle graphics application)

2010-03-14 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release c

Hacker News, Xahlee.Org, and What is Politics?

2010-03-15 Thread Xah Lee
A essay related to the recent discussion of banning, and lisp associated group at ycombinator.com . - Hacker News, Xahlee.Org, and What is Politics? Xah Lee, 2010-03-14 Today, i noticed that someone posted one of my article “Why Emacs is still so

Re: to RG - Lisp lunacy and Perl psychosis

2010-03-17 Thread Xah Lee
2010-03-17 On Mar 10, 9:17 am, Ben Morrow wrote: > Also, flamebait language-comparison xposts involving Lisp are one > of Xah Lee's trademarks. You might want to look into not imitating > him/her/it. being a professional programer today, typically you know more than just one language. Practical

Google AI challenge: planet war. Lisp won.

2010-12-02 Thread Xah Lee
discovered this rather late. Google has a AI Challenge: planet wars. http://ai-contest.com/index.php it started sometimes 2 months ago and ended first this month. the winner is Gábor Melis, with his code written in lisp. Congrats lispers! Gábor wrote a blog about it here http://quotenil.com/Pl

Re: Google AI challenge: planet war. Lisp won.

2010-12-22 Thread Xah Lee
On Dec 20, 10:06 pm, "Jon Harrop" wrote: > Wasn't that the "challenge" where they wouldn't even accept solutions > written in many other languages (including both OCaml and F#)? Ocaml is one of the supported lang. See: http://ai-contest.com/starter_packages.php there are 12 teams using OCaml. S

opinion: comp lang docs style

2011-01-04 Thread Xah Lee
a opinion piece. 〈The Idiocy of Computer Language Docs〉 http://xahlee.org/comp/idiocy_of_comp_lang.html -- The Idiocy of Computer Language Docs Xah Lee, 2011-01-03 Worked with Mathematica for a whole day yesterday, after about 10 years hiatus

Re: opinion: comp lang docs style

2011-01-06 Thread Xah Lee
On Jan 4, 3:17 pm, "ru...@yahoo.com" wrote: > On 01/04/2011 01:34 PM, Terry Reedy wrote: > > > On 1/4/2011 1:24 PM, an Arrogant Ignoramus wrote: > > > what he called > >> a opinion piece. > > > I normally do not respond to trolls, but while expressing his opinions, > > AI made statements that are

do you know what's CGI? (web history personal story)

2011-01-14 Thread Xah Lee
some extempore thought. Do you know what is CGI? Worked with Mathematica for 5 hours yesterday. Fantastic! This old hand can still do something! lol. My plane curve packages soon to be out n am gonna be rich. ...gosh what godly hours i've spend on Mathematica in 1990s. Surprised to find that i e

Re: do you know what's CGI? (web history personal story)

2011-01-15 Thread Xah Lee
7;s Point Of View. 〈Avatar and District 9 Movie Review〉 http://xahlee.org/Periodic_dosage_dir/skina/avatar.html ------ Avatar and District 9 Movie Review Xah Lee, 2010-01-07 -- Avatar Went to watch the movie Avatar (2009 fil

Guy Steele on Parallel Programing

2011-02-05 Thread Xah Lee
might be interesting. 〈Guy Steele on Parallel Programing〉 http://xahlee.org/comp/Guy_Steele_parallel_computing.html -- Guy Steele on Parallel Programing Xah Lee, 2011-02-05 A fascinating talk by the well respected computer scientist Guy Steele

Re: How to Write grep in Emacs Lisp (tutorial)

2011-02-08 Thread Xah Lee
On Feb 8, 9:32 am, Icarus Sparry wrote: > On Tue, 08 Feb 2011 13:51:54 +0100, Petter Gustad wrote: > > Xah Lee writes: > > >> problem with find xargs is that they spawn grep for each file, which > >> becomes too slow to be usable. > > > find . -maxdepth

Re: How to Write grep in Emacs Lisp (tutorial)

2011-02-11 Thread Xah Lee
On Feb 11, 2:06 am, Alexander Gattin wrote: > Hello, > > On Tue, Feb 08, 2011 at 05:32:05PM +, Icarus > > Sparry wrote: > > The key thing which makes this 'modern' is the > > '+' at the end of the command, rather than '\;'. > > This causes find to execute the grep once per > > group of files,

How to run another python script?

2011-02-14 Thread Dan Lee
Hi. I just knew what python is. Now I'm about to write backup script.Now I got 2 scripts. AAA : generate zip file BBB : delete old file. AAA is done. Now I'm going to code BBB file. and I will fix AAA to call BBB to delete dump file at the end. Please let me know How can I call the BBB file from

Problems of Symbol Congestion in Computer Languages

2011-02-16 Thread Xah Lee
might be interesting. 〈Problems of Symbol Congestion in Computer Languages (ASCII Jam; Unicode; Fortress)〉 http://xahlee.org/comp/comp_lang_unicode.html -- Problems of Symbol Congestion in Computer Languages (ASCII Jam; Unicode; Fortress) Xah Lee

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Xah Lee
On 2011-02-16, Xah Lee  wrote: │ Vast majority of computer languages use ASCII as its character set. │ This means, it jams multitude of operators into about 20 symbols. │ Often, a symbol has multiple meanings depending on contex. On 2011-02-17, rantingrick wrote: … On 2011-02-17, Cthun wrote

Re: Problems of Symbol Congestion in Computer Languages

2011-02-18 Thread Xah Lee
i think for special purposes OSes, they have quite a lot ... from Mitsubishi, NEC, etc... in their huge robotics industry among others. (again, this is all second hand knowledge) ... i recall having read non-english comp lang that appeared recently... Xah Lee -- http://mail.python.org/mailman/listinfo/python-list

Re: C-style static variables in Python?

2010-04-05 Thread Lee Harr
> Another approach would be to stuff the static values in the function's > __dict__. That's how I did it when I wanted something similar. I created this decorator: def static(**kw):     '''     Used to create a decorator function that will add an     attribute to a function and initialize it.

[ANNC] pynguin-0.7 (python turtle graphics application)

2010-04-11 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release c

write a 20GB file

2010-05-14 Thread Jackie Lee
Hello there, I have a 22 GB binary file, a want to change values of specific positions. Because of the volume of the file, I doubt my code a efficient one: #! /usr/bin/env python #coding=utf-8 import sys import struct try: f=open(sys.argv[1],'rb+') except (IOError,Exception): print '

Re: write a 20GB file

2010-05-14 Thread Jackie Lee
(-2,1) f.write(struct.pack('>h',1)) f.seek(210,1) f.seek(ns*4,1) f.close() On Fri, May 14, 2010 at 6:04 PM, Dave Angel wrote: > Jackie Lee wrote: >> >> Hello there, >> >> I have a 22 GB binary file, a want to change values of specific >

Re: write a 20GB file

2010-05-14 Thread Jackie Lee
Thanks to y'all. I should have be more careful reading the documentation. Cheers On Fri, May 14, 2010 at 10:07 PM, Martin v. Loewis wrote: >> The code works fine. I just don't know how f.write works. It says that >> file.write won't write the file until file.close or file.flush. > > You are misi

[ANNC] pynguin-0.8 python turtle graphics application

2010-06-08 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release c

Re: Scope (?) question

2010-06-15 Thread Inyeol Lee
On Jun 15, 3:22 pm, Peter wrote: > I am puzzled by what appears to be a scope issue - obviously I have > something wrong :-) > > Why does this work: > > if __name__ == 'main': >   execfile('test-data.py') >   print data > > and yet this doesn't (I get "NameError: global name 'data' not > defined")

Emacs Form Feed (^L) Display Suggestion and Tips

2010-06-24 Thread Xah Lee
• Emacs Form Feed (^L) Display Suggestion and Tips http://xahlee.org/emacs/modernization_formfeed.html plain text version follows -- Emacs Form Feed (^L) Display Suggestion and Tips Xah Lee, 2010-06-24 This page discusses some problems involving the Form feed

Re: Emacs Form Feed (^L) Display Suggestion and Tips

2010-06-24 Thread Xah Lee
On Jun 24, 5:41 am, Xah Lee wrote: > • Emacs Form Feed (^L) Display Suggestion and Tips > http://xahlee.org/emacs/modernization_formfeed.html a follow up question. when i was learning python in ~2005, i remember seeing it in python code, but i haven't done much python since. Does py

Re: Emacs Form Feed (^L) Display Suggestion and Tips

2010-06-25 Thread Xah Lee
On Jun 24, 11:12 am, Tassilo Horn wrote: > Xah Lee writes: > > Hi Xah, > > > also, besides emacs elisp, does anyone see the form feed char in other > > lang source code? > > It's quite often used in messages in newsgroups and mailing lists.  The > Gnus n

Famous Emacs People With Hand Injuries

2010-06-28 Thread Xah Lee
• Famous Emacs People With Hand Injuries http://xahlee.org/emacs/emacs_hand_pain_celebrity.html plain text version follows. - Famous Emacs People With Hand Injuries Xah Lee, 2010-06-28 This page collect tales of computer programer

disputing the history of lisp machines

2010-06-28 Thread Xah Lee
just discovered a blog written by a old lisper Dan Weinreb, refuting on a story on Lisp Machine companies as told by Richard Stallman. “Rebuttal to Stallman’s Story About The Formation of Symbolics and LMI” (2007-11), by Dan Weinreb. At http://danweinreb.org/blog/rebuttal-to-stallmans-story-about-

Re: Cpp + Python: static data dynamic initialization in *nix shared lib?

2010-07-13 Thread Jonathan Lee
> Problem (C) is outside the realm of the C++ standard, since the C++ standard > doesn't support shared libraries, and I've never actually used *nix shared > libraries so I don't /know/... > > Is such dynamic initialization guaranteed? > Not guaranteed, though I think there's a combination of dlop

death of newsgroups (Microsoft closing their newsgroups)

2010-07-13 Thread Xah Lee
• Death of Newsgroups http://xahlee.org/UnixResource_dir/writ2/death_of_newsgroups.html plain text version follows. -- Death of Newsgroups Xah Lee, 2010-07-13 Microsoft is closing down their newsgroups. See: microsoft.public.windows.powershell

[ANNC] pynguin-0.9 (python turtle graphics application)

2010-07-15 Thread Lee Harr
Pynguin is a python-based turtle graphics application.     It combines an editor, interactive interpreter, and     graphics display area. It is meant to be an easy environment for introducing     some programming concepts to beginning programmers. http://pynguin.googlecode.com/ This release h

have you read emacs manual cover to cover?; (was Do we need a "Stevens" book?)

2010-07-30 Thread Xah Lee
cleaned up and extended my previous post. Sentences and ideas made more precise and detailed. • Emacs Idolization: Have You Read the Emacs Manual From Cover to Cover? http://xahlee.org/emacs/emacs_manual_cover_to_cover.html plain text version follows: ---

finding homopolymers in both directions

2010-08-03 Thread Lee Sander
Hi, Suppose I have a string such as this 'aabccefghiiijkr' I would like to print out all the positions that are flanked by a run of symbols. So for example, I would like to the output for the above input as follows: 2 b 1 aa 2 b -1 cc 10 e -1 cc 11 f 1 g 17 h 1 iii 17

a article on does lang influence thought

2010-08-10 Thread Xah Lee
Great article. 〈Lost in Translation〉 (2010-07-23), by By Lera Boroditsky. From The Wall Street Journal. “New cognitive research suggests that language profoundly influences the way people see the world; a different sense of blame in Japanese and Spanish” http://online.wsj.com/article/SB100014240

Re: segfault with small pyqt script

2010-08-12 Thread Lee Harr
> I'm desperate. I'm having a real application, which fails rather often > when finishing it. I'm not sure, whether any serious problem could be > hidden behind it > > The script is a pyqt script, which segfaults most of the time on my > ubuntu 10.4 linux 64 bit and I'm having trouble to understan

math symbols in unicode (grouped by purpose)

2010-08-13 Thread Xah Lee
some collection of math symbols in unicode. • Math Symbols in Unicode http://xahlee.org/comp/unicode_math_operators.html • Arrows in Unicode http://xahlee.org/comp/unicode_arrows.html • Matching Brackets in Unicode http://xahlee.org/comp/unicode_matching_brackets.html these are grouped by

Re: math symbols in unicode (grouped by purpose)

2010-08-15 Thread Xah Lee
hi kenny! Xah Lee wrote: > some collection of math symbols in unicode. > • Math Symbols in Unicode >    http://xahlee.org/comp/unicode_math_operators.html Kenneth Tilton wrote: > I am surprised you do not include the numeric character codes. i thought about it, but the page would

Re: What text editor is everyone using for Python

2009-06-05 Thread Xah Lee
On May 25, 10:35 am, LittleGrasshopper wrote: > With so many choices, I was wondering what editor is the one you > prefer when coding Python, and why. I normally use vi, and just got > into Python, so I am looking for suitable syntax files for it, and > extra utilities. I dabbled with emacs at som

is there python image lib that does imagemagick?

2009-06-08 Thread Xah Lee
is there a python image library that does pretty much what imagemagick does? all i need is for converting png/jpg, and scaling images. No need other fancy things imagemagick does. i know there's a python wrapper for imagemagick, but i need independent ones that doesn't require shell calls. Basica

a evaluation of Google-code-prettify

2009-06-21 Thread Xah Lee
For those of you interested in the Google tech of syntax coloring source code in html on the fly using javascript, i've spent few hours for a evaluation. See: • Google-code-prettify Examples http://xahlee.org/js/google-code-prettify/index.html Xah ∑ http://xahlee.org/ ☄ -- http://mail.pytho

talk of concurrency by Anders Hejlsberg and Guy Steele

2009-06-24 Thread Xah Lee
of recent talks about concurrency, this video interview would be of interest: http://channel9.msdn.com/posts/Charles/Anders-Hejlsberg-and-Guy-Steele-Concurrency-and-Language-Design/ Anders Hejlsberg and Guy Steele: Concurrency and Language Design Posted By: Charles | Oct 6th, 2008 @ 6:27 AM | 75,

[ANNC] acromania-0.4

2009-07-01 Thread Lee Harr
Acromania is a word game of acronyms. This program is a computer moderator for networked games of acromania. It can connect to a channel on IRC, or start a standalone server which can be accessed much like a MUD. http://acromania.googlecode.com/ Acromania uses Twisted and SQLite. Optionally, i

OT: unix to Windows technology

2009-07-08 Thread Xah Lee
Dear unixers & lispers, i've been using Mac for the past 19 years, and been a professional sys admin or web app developers on the unix platform, since 1998 (maily Solaris, Apache, Perl, Java, SQL, PHP). In june, i bought a PC (not for the first time though), and made a switch to Windows, for the f

Re: OT: unix to Windows technology

2009-07-08 Thread Xah Lee
Xah Lee wrote: > • Switching from Mac/Unix To PC/Windows > http://xahlee.org/mswin/switch_to_windows.html Kenneth Tilton wrote: > You just discovered PCs are cheaper? > > The funny thing is that that is Microsoft's answer to the Apple Mac-PC > ads, they show people sho

Re: OT: unix to Windows technology

2009-07-09 Thread Xah Lee
a fried showed me this today: http://xahlee.org/funny/Microsoft_eula.html not sure which site originally reported it. Xah ∑ http://xahlee.org/ ☄ -- http://mail.python.org/mailman/listinfo/python-list

Re: If Scheme is so good why MIT drops it?

2009-07-25 Thread Xah Lee
PHP is popular because it is geared for the server-side web scripting lang, and simpler and easy to use, than popular free alternatives at the time (such as Perl and Java's JSP). Python became popular primarily because its ease-to-read syntax. Btween the two, PHP is much easier to use, and much a

[ANNC] pybotwar-0.3

2009-08-03 Thread Lee Harr
pybotwar is a fun and educational game where players create computer programs to control simulated robots to compete in a battle arena. http://pybotwar.googlecode.com/ pybotwar uses pybox2d for the physical simulation, and uses pygame and pygsear for the visualization. pybotwar is released und

[ANNC] pybotwar-0.4

2009-08-04 Thread Lee Harr
pybotwar is a fun and educational game where players create computer programs to control simulated robots to compete in a battle arena. http://pybotwar.googlecode.com/ pybotwar uses pybox2d for the physical simulation, and uses pygame and pygsear for the visualization. pybotwar is released und

Google sitemap generator in python gone?

2009-08-05 Thread Xah Lee
google used to have a sitemap generator written in python, at: https://www.google.com/webmasters/tools/docs/en/sitemap-generator.html but the url is gone. It seems the current version is moved here: http://code.google.com/p/googlesitemapgenerator/ and is written in JavaScript. is the old python

[ANNC] pybotwar-0.5

2009-08-09 Thread Lee Harr
pybotwar is a fun and educational game where players create computer programs to control simulated robots to compete in a battle arena. http://pybotwar.googlecode.com/ pybotwar uses pybox2d for the physical simulation, and uses pygame and pygsear for the visualization. pybotwar is released und

Social problems of Python doc [was Re: Python docs disappointing]

2009-08-09 Thread Xah Lee
The prob with python docs is with the python priests. there are frequent posts about python doc's poor quality, and some efforts to improve the doc (such as wiki or seggestions), about few times a year (in so much as i've seen), the typical response is pissing fight, with python priests to tell th

Help newbie with how to call a source command

2009-08-13 Thread Joni Lee
Hi all,   I'm landing here because I need some help that I couldn't get through it. Question 1. I want to call a source command from python script. It will source some variables enviroment for further commands. I tried the following which did not work os.sys('source '+source_text) call(['source'

A Exhibition Of Tech Geekers Incompetence: Emacs whitespace-mode

2009-08-13 Thread Xah Lee
Lee, 2009-08-13 Just wanted to express some frustration with whitespace-mode. Emacs 23, just released, has this whitespace-mode feature. It renders spaces, tabs, newlines characters with a visible glyph. This feature, is in Microsoft Word since about 1992. This feature is important in practical

Re: A Exhibition Of Tech Geekers Incompetence: Emacs whitespace-mode

2009-08-15 Thread Xah Lee
Fresh out of the oven: • How to use and setup Emacs's whitespace-mode http://xahlee.org/emacs/whitespace-mode.html Xah ∑ http://xahlee.org/ ☄ On Aug 13, 6:36 pm, Xah Lee wrote: > • A Exhibition Of Tech Geekers Incompetence: Emacs whitespace-mode > http://xahlee.org/UnixResour

Xah's Edu Corner: The importance of syntax & notations.

2009-08-15 Thread Xah Lee
Xah's Edu Corner: The importance of syntax & notations. http://www.stephenwolfram.com/publications/recent/mathml/mathml_abstract.html this article should teach the coding sophomorons and computer “science” idiotic authors who harbor the notion that syntax is not important, picked up by all the el

Re: Social problems of Python doc [was Re: Python docs disappointing]

2009-08-16 Thread Xah Lee
now valid html. Good riddence of the fucking TeX. Also, code examples have syntax coloring on. Xah ∑ http://xahlee.org/ ☄ On Aug 12, 12:15 pm, Raymond Hettinger wrote: > [Xah Lee] > > > i've wrote several articles about this issue, total time spend on this > > is prob

python doc available in emacs info format?

2009-08-16 Thread Xah Lee
e_dir/writ/lang_purity_cult_deception.html Xah ∑ http://xahlee.org/ ☄ On Dec 11 2008, 6:56 am, Matthias wrote: > Xah Lee writes: > > in programing elisp in emacs, i can press “Ctrl+h f” to lookup > > the doc for the function under cursor. is there such facility > > when c

Re: Xah's Edu Corner: The importance of syntax & notations.

2009-08-16 Thread Xah Lee
gh. I was expecting he'd go into some details about the science of math notations, or, as he put it aptly: “linguistics of math notations”. However, he didn't touch the subject, except saying that it haven't been studied. Xah On Aug 15, 10:54 pm, Xah Lee wrote: > Xah's E

Re: Social problems of Python doc [was Re: Python docs disappointing]

2009-08-16 Thread Xah Lee
On Aug 12, 12:15 pm, Raymond Hettinger wrote: > [Xah Lee] > > > i've wrote several articles about this issue, total time spend on this > > is probably more than 2 months full-time work. See: > > > • Python Documentation Problems > > http://xahlee.org/p

Re: python doc available in emacs info format?

2009-08-17 Thread Xah Lee
info format for Xah Lee writes: > in programing elisp in emacs, i can press “Ctrl+h f” to lookup > the doc for the function under cursor. is there such facility > when coding in perl, python, php? On Dec 11 2008, 6:56 am, Matthias wrote: > Yes, try C-h S (or similarly S):

Re: Xah's Edu Corner: The importance of syntax & notations.

2009-08-17 Thread Xah Lee
2009-08-17 On Aug 16, 10:32 pm, Xah Lee wrote: > Personally, particular interesting info i've learned is that, for all > my trouble in the past decade expressing problems of traditional math > notation, i learned from his article this single-phrase summary: > “traditional math

Re: python doc available in emacs info format?

2009-08-17 Thread Xah Lee
y in commericial software about 10 years ago. Xah ∑ http://xahlee.org/ ☄ On Aug 17, 4:32 am, "Colin S. Miller" wrote: > Xah Lee wrote: > > btw, is there still info format for python doc? > > > i feel kinda sad that emacs info format has pretty much been > > d

Re: Xah's Edu Corner: The importance of syntax & notations.

2009-08-18 Thread Xah Lee
he date of this speech also explains parts of the writings about some mysterious “fundamental science work”, which now we know is his controversial book A New Kind Of Science (2002). Xah ∑ http://xahlee.org/ ☄ ------ Xah Lee wrote: Personally, particular interesting info i

a popen question. Please help

2009-08-30 Thread Joni Lee
Hi all, I write a small script texts = os.popen('top').readlines() print texts It calls the command line "top" and will print out some texts. But first I have to press the keyboard "q" to quit the subprocess "top", then the texts will be printed, otherwise it just stands by with blank. Questio

a popen command line question

2009-08-30 Thread Joni Lee
Hi all, I write a small script status = os.popen('top').readlines() print status It calls the command line "top" and will print out the status. But I have to press the keyboard "q" to quit "top", then the status will be printed, otherwise it just stands by with blank. Question is. Do you know

<    5   6   7   8   9   10   11   12   13   14   >