general function for sorting a matrix

2007-08-29 Thread Xah Lee
sorting a matrix (i.e. list of lists) is rather common. With this function, i can have a single interface to deal with any list (including list of lists). It is ideal, that a language's function for sort actually are of this generality. (See “What is Expressiveness in a Computer Language”, Xah Lee,

Re: general function for sorting a matrix

2007-09-10 Thread Xah Lee
hi, just a quick reply. You are right, the python version i have is really terrible. I'll look at your solution and possibly reply later. Thanks for your code. It's great! Xah On Aug 29, 9:40 am, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > On We

printing list containing unicode string

2007-09-10 Thread Xah Lee
I can of course write a loop then for each string use "encode("utf-8")", but is there a easier way? Thx. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: printing list containing unicode string

2007-09-10 Thread Xah Lee
On Sep 10, 8:12 am, Carsten Haese <[EMAIL PROTECTED]> wrote: Xah Lee wrote: If i have a nested list, where the atoms are unicode strings, e.g. # -*- coding: utf-8 -*- ttt=[[u"→",u"↑"], [u"αβγ"],...] print ttt how can i print it without getting the u'\u

Re: printing list containing unicode string

2007-09-10 Thread Xah Lee
Google groups seems to be stripping my quotation markslately. Here's a retry to post my previous message. ------ Xah Lee wrote: If i have a nested list, where the atoms are unicode strings, e.g. # -*- coding: utf-8 -*- tt

Re: encoding latin1 to utf-8

2007-09-10 Thread Xah Lee
uot; / Encoding http://xahlee.org/perl-python/charset_encoding.html Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: printing list containing unicode string

2007-09-10 Thread Xah Lee
ttp://xahlee.org/perl-python/unicodedata_module.html ・ Emacs and Unicode Tips http://xahlee.org/emacs/emacs_n_unicode.html ・ Java Tutorial: Unicode in Java http://xahlee.org/java-a-day/unicode_in_java.html ・ Character Sets and Encoding in HTML http://xahlee.org/js/html_chars.html Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: printing list containing unicode string

2007-09-11 Thread Xah Lee
for some reason message posted thru google groups service since the past week or so are stripping off the unicode chars double angle brackets (U+00AB and U+00BB). For that reason, in this msg i've also used double curly quotes "" whenever i have double angle brackets. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: need scsh in a wikip article

2007-09-11 Thread Xah Lee
On Sep 11, Xah Lee wrote: i was browsinghttp://en.wikipedia.org/wiki/Comparison_of_computer_shells quite fucking ridiculous that it contains Python shell and Ruby shell, and, there's no mentioning of scsh. Fuck the schemer morons. someone please add scsh there. -- 2007-

The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations

2007-05-23 Thread Xah Lee
The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations Xah Lee, 2006-03-15 [This articles explains away the confusion of common terms for notation systems used in computer languages: prefix, infix, postfix, algebraic, functional. These notation's relation t

Re: The Concepts and Confusions of Prefix, Infix, Postfix and Fully Functional Notations

2007-05-30 Thread Xah Lee
ble Perl both in theory AND in practice. (in lisp, its power of syntax variation comes in the guise of macros.) And, more importantly, Perlers clamor about Perl's “expressiveness” more or less on the syntax level but don't realize that semantic expressibility is far more important. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

The Modernization of Emacs

2007-06-17 Thread Xah Lee
[this post is a excerpt from The Modernization of Emacs, Xah Lee, 2006-04 at http://xahlee.org/emacs/modernization.html ] The Modernization of Emacs THE PROBLEM Emacs is a great editor. It is perhaps the most powerful and most versatile text editor. And

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-06-19 Thread Xah Lee
emacs palpable to the vast number of people who ever need to use a computer to write. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: not dumb down

2007-06-19 Thread Xah Lee
e design issues into popularity vs elegance. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: technically superior

2007-06-19 Thread Xah Lee
it is openly questionable that emacs's ways of operation induced by its default user interface allows faster or more efficient operation than a user interface based on modern software conventions. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: exists already

2007-06-19 Thread Xah Lee
the menus), [T] (for Transfer), [L] (for Load). Suppose Microsoft hired a third party to release a variant called MS AquaWord. This would not help Microsoft Word the software itself, and is likely to complicate the issue around Microsoft Word. Xah [EMAIL PROTECTED] ∑ http://xahlee.

What are OOP's Jargons and Complexities

2007-03-29 Thread Xah Lee
What are OOP's Jargons and Complexities Xah Lee, 20050128 Classes, Methods, Objects In computer languages, often a function definition looks like this: subroutine f (x1, x2, ...) { variables ... do this or that } In advanced languages such as LISP family, it is not uncommon to d

Requirements For A Visualization Software System For 2010

2007-04-03 Thread Xah Lee
REQUIREMENTS FOR A VISUALIZATION SOFTWARE SYSTEM FOR 2010 Xah Lee, 2007-03-16 In this essay, i give a list of requirements that i think is necessary for a software system for creating scientific visualization for the next decade (2007-2017). (for a HTML version with images, please see http

is laziness a programer's virtue?

2007-04-15 Thread Xah Lee
Laziness, Perl, and Larry Wall Xah Lee, 20021124 In the unix community there's quite a large confusion and wishful thinking about the word laziness. In this post, i'd like to make some clarifications. American Heritage Dictionary third edition defines laziness as: “Resistant to work o

Re: is laziness a programer's virtue?

2007-04-15 Thread Xah Lee
the community is in fact very tolerant in general (which is to Larry's credit), when compared to the motherfucking Pythoners (who knew SHIT) as well as many of the self-appointed lisp bigwig characters. [disclaimer: my statement about Larry Wall is opinion only.] With Knowledge, and, Love.

is laziness a programer's virtue?

2007-04-16 Thread Xah Lee
politics, mutual sneering, closed- mindedness, and careless postings. References: “Tech Geekers versus Spammers” http://xahlee.org/UnixResource_dir/writ/tech_geekers_vs_spammers.html Netiquette Guidelines, 1995, by S Hambridge. (RFC 1855) http://tools.ietf.org/html/rfc1855 Xah [EMAIL PROTECT

The Hack of bitmask used as Predicate Parameters

2007-04-23 Thread Xah Lee
reciate other examples you know in the above languages, and or in particular if Java, Lisp, Haskell. This article is a modified excerpt from “Linden Scripting Language Problems” at http://xahlee.org/sl/ls-prob.html Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

ignorance and intolerance in computing communties

2007-05-02 Thread Xah Lee
age design book or latest computer engineering practice guide or forum argumentation or wiki or Open Sourcing zeitgeist fuck, to read a text book or learn on the above topics. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: ignorance and intolerance in computing communties

2007-05-03 Thread Xah Lee
Xah Lee wrote: « ... “Ignorance And Intolerance In Online Computing Communities” http://xahlee.org/Netiquette_dir/ignorance_intolerance.html ... As i have indicated in my post, it is non-trivial to implement a function that returns the positive angle of a vector » I have now coded this. I

Re: Why stay with lisp when there are python and perl?

2007-05-03 Thread Xah Lee
ar as i know, does not exist in some other high-level functional programing languages such as Haskell. I'm not familiar with many functional languages except Lisp and Mathematica. I'm curious, as to how Haskell, which itself is quite with capable of symbolic computation i think, deals with

what are the most frequently used functions?

2006-10-28 Thread Xah Lee
own syntax. However, this is still not trivial, and amounts to several programing efforts. Anyone would be interested in this problem? PS bpalmer on #emacs irc.freenode wrote a elisp quicky to deal with lisp, but that program is currently not fully working... see bottom http://paste.lisp.org/

Re: what are the most frequently used functions?

2006-10-28 Thread Xah Lee
For Python and Java, i think the report will also have to count method call since that what these langs deal with... slightly quite more complex than just functional langs... Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

logo design

2006-10-28 Thread Xah Lee
xahlee.org/UnixResource_dir/complang.html (computer language logos) Again: the primary purpose of this message, is to beseach that the power-that-be of lispers, seriously think about getting themselves a official logo. Thanks. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailma

Re: logo design

2006-11-01 Thread Xah Lee
eds a logo, i'll post a reply to this thread wthin a month. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ [EMAIL PROTECTED] wrote: > On Oct 28, 10:24 pm, "Xah Lee" <[EMAIL PROTECTED]> wrote: > > I have brought this topic here here before... that i think LISP really

The Semicolon Wars as a software industry and human condition

2006-08-17 Thread Xah Lee
Languages to Hate, Xah Lee, 2002 http://xahlee.org/UnixResource_dir/writ/language_to_hate.html Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

A Editor Feature for Extending Selection based on Language Syntax

2006-08-20 Thread Xah Lee
bvious. But however, suppose the cursor is at t in the “alternate” inside the “link” tag, then it would first select the whole “alternate” word, then the whole “rel="alternate"”, then the whole link tag, then the whole content of the entry tag, then including the “” tags itself. (i

Re: A Sort Optimization Technique: decorate-sort-dedecorate

2006-09-08 Thread Xah Lee
stupid. I may or may not write a detailed account later. If you have specific questions, or want to know specific reasons of my claims, please don't hesitate to email. (privately if you deem it proper) Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ [EMAIL PROTECTED] wrote: > Last year, i

String Pattern Matching: regex and Python regex documentation

2006-09-17 Thread Xah Lee
e: • Scsh manual, Chapter 6: Pattern-matching strings with regular expressions http://www.scsh.net/docu/html/man-Z-H-7.html • Mathematica Book, section 2.8.4 String Patterns http://documents.wolfram.com/mathematica/book/section-2.8.4 Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.

Re: String Pattern Matching: regex and Python regex documentation

2006-09-24 Thread Xah Lee
Xah Lee wrote: « the Python regex documentation is available at: http://xahlee.org/perl-python/python_re-write/lib/module-re.html ...» Jürgen Exner wrote: «Yeah, sure, and the Perl regex documentation is available at 'perldoc perlre'. So what? Is that anything new or surprising?»

Computer Language Popularity Trend

2006-09-26 Thread Xah Lee
.html Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

A critic of Guido's blog on Python's lambda

2006-05-05 Thread Xah Lee
Python, Lambda, and Guido van Rossum Xah Lee, 2006-05-05 In this post, i'd like to deconstruct one of Guido's recent blog about lambda in Python. In Guido's blog written in 2006-02-10 at http://www.artima.com/weblogs/viewpost.jsp?thread=147358 is first of all, the title “Languag

algorithmic mathematical art

2006-05-07 Thread Xah Lee
nd other algorithmic mathematical art, please let me know! Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Tabs versus Spaces in Source Code

2006-05-14 Thread Xah Lee
Tabs versus Spaces in Source Code Xah Lee, 2006-05-13 In coding a computer program, there's often the choices of tabs or spaces for code indentation. There is a large amount of confusion about which is better. It has become what's known as “religious war” — a heated fight over trivi

Software Needs Philosophers

2006-05-21 Thread Xah Lee
issue. SLIME doesn't cut it, either, as beautiful as SLIME is. Can't use it on Windows to save your life, for instance. But that's one of a thousand problems with the Lisp IDE situation; it's pointless to try to discuss them all in blogger. It's probably pointless to discuss them at all, because it's just going to make me more miserable that no decent IDE exists for Lisp, except for Emacs-as-Elisp-IDE. Which is why I get my Lisp fix by hacking elisp these days. This post is archived at: http://steve-yegge.blogspot.com/2006/04/software-needs-philosophers.html and http://xahlee.org/Periodic_dosage_dir/_p/software_phil.html This essay is reported with permission. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Tabs versus Spaces in Source Code

2006-05-23 Thread Xah Lee
o replace all spaces to tabs. But also, many unix languages contains a so-called construct of “heredoc” as a mean to embed a literal block of text. For example, here's a PHP construct of heredoc: $novelText = <<http://xahlee.org/ Xah Lee wrote: > Tabs versus Spaces in Source Code >

John Bokma harassment

2006-05-24 Thread Xah Lee
ml If you believe this lobbying to my webhosting provider is unjust, please write to my web hosting provider [EMAIL PROTECTED] Your help is appreciated. Thank you. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Software Needs Philosophers

2006-05-31 Thread Xah Lee
The Condition of Industrial Programers Xah Lee, 2006-05 Before i stepped into the computing industry, my first industrial programing experience is at Wolfram Research Inc as a intern in 1995. (Wolfram Research is famously known for their highly successful flagship product Mathematica) I thought

Re: John Bokma harassment

2006-05-31 Thread Xah Lee
f you do know a web hosting company that can take some 80 G of bandwidth/month for less than $25 a month, please let me know! (i do hope if someone here runs a hosting business and can host my site. I will certainly return the favor.) Thanks. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ Xa

The Nature of the “Unix Philosophy”

2006-06-07 Thread Xah Lee
The Nature of the “Unix Philosophy” Xah Lee, 2006-05 In the computing industry, especially among unix community, we often hear that there's a “Unix Philosophy”. In this essay, i dissect the nature and characterization of such “unix philosophy”, as have been described by Brian Kernighan, Rob

What is Expressiveness in a Computer Language

2006-06-08 Thread Xah Lee
, 1990. http://www.ccs.neu.edu/home/cobbe/pl-seminar-jr/notes/2003-sep-26/expressive-slides.pdf Has anyone read this paper? And, would anyone be interested in giving a summary? thanks. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: What is Expressiveness in a Computer Language

2006-06-14 Thread Xah Lee
ive of extraneous concepts in languages, i'll have to write a essay in detail some other day. Thanks for the summary. Is there no one else who are able to read that paper? Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ > Xah Lee wrote: > > in March, i posted a essay "

Interactive Find and Replace String Patterns on Multiple Files

2006-06-14 Thread Xah Lee
Interactive Find and Replace String Patterns on Multiple Files Xah Lee, 2006-06 Suppose you need to do find and replace of a string pattern, for all files in a directory. However, you do not want to replace all of them. You need to look at it in a case-by-case basis. What can you do? Answer

Re: logo design

2006-12-05 Thread Xah Lee
Logo LISP Xah Lee, 2006-12 Ken Tilton wrote: «Small problem. You forget that Ron Garret wants us to change the name of Common Lisp as the sure-fire way to make it more popular (well, hang on, he says it is necessary, not sufficient. Anyway...) I do not think we can safely pick a new logo

Xah's Edu Corner: Introduction to 3D Graphics Programing

2006-12-22 Thread Xah Lee
..etc) that are quite common in computer graphics literatures. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Xah's Edu Corner: Introduction to 3D Graphics Programing

2006-12-27 Thread Xah Lee
far as i know, Mathematica is the platform that allows one to do graphics programing. But, i think Flash probably is another platform that does it. And i think VisualPython is also. I'm interested in other platforms that allows one to do this. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ J

Re: Xah's Edu Corner: Introduction to 3D Graphics Programing

2006-12-27 Thread Xah Lee
Here's their license: http://www.vpython.org/webdoc/visual/license.txt I read it wrong before. Thanks for correction. This is superb! I'll be looking into vpython! Xah Ravi Teja wrote: > Xah Lee wrote: > > > Regarding VisualPython... i saw a demo in 2002 by a professor

Re: Xah's Edu Corner: Introduction to 3D Graphics Programing

2007-01-21 Thread Xah Lee
Xah Lee wrote in 2006-12-22: > Of Interest: > > Introduction to 3D Graphics Programing > http://xahlee.org/3d/index.html Folks, i have expanded my tutorial to several pages in the past nearly two months, and thank you very much for those who have given encouragement. I had plans to

On Java's Interface (the meaning of interface in computer programing)

2007-03-20 Thread Xah Lee
On Java's Interface Xah Lee, 20050223 In Java the language, there's this a keyword “interface”. In a functional language, a function can be specified by its name and parameter specs. For example: f(3) f(3, [9,2]) f("some string") are usage examples of 3 functions all havin

Microsoft Hatred FAQ

2005-10-14 Thread Xah Lee
Microsoft Hatred, FAQ Xah Lee, 20020518 Question: U.S. Judges are not morons, and quite a few others are not morons. They find MS guilty, so it must be true. Answer: so did the German population thought Jews are morons by heritage, to the point that Jews should be exterminated from earth

tuple versus list

2005-10-16 Thread Xah Lee
list? Thanks. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Perl-Python-a-Day: split a file full path

2005-10-16 Thread Xah Lee
Split File Fullpath Into Parts Xah Lee, 20051016 Often, we are given a file fullpath and we need to split it into the directory name and file name. The file name is often split into a core part and a extension part. For example: '/Users/t/web/perl-python/I_Love_You.html' becomes &#x

Re: bizarro world (was Re: Python Doc Problem Example: sort() (reprise))

2005-10-17 Thread Xah Lee
Bryan wrote: > mr. xah... would you be willing to give a lecture at pycon 2006? i'm sure you > would draw a huge crowd and a lot of people would like to meet you in > person... > > thanks. I'd be delight to. My requirements are: 1 cup of fat-free milk, free, and

Re: Perl-Python-a-Day: split a file full path

2005-10-17 Thread Xah Lee
Xah Lee wrote: > > In Perl, spliting a full path into parts is done like this: Dr.Ruud wrote: > And then follows Perl-code that only works with an optional .html > "extension", Thanks for the note. I've corrected it here: http://xahlee.org/perl-python/split_fullp

write a loopin one line; process file paths

2005-10-18 Thread Xah Lee
ileExtension if os.path.exists(p2): p=p2 imgPaths.append(p) temp=[] print imgPaths Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: write a loopin one line; process file paths

2005-10-18 Thread Xah Lee
Xah Lee wrote: > is there a way to condense the following loop into one line? > > # -*- coding: utf-8 -*- > # python > > import re, os.path > > imgPaths=[u'/Users/t/web/Periodic_dosage_dir/lanci/t4/oh/DSCN2059m-s.jpg', > u'/Users/t/web/Periodic_dosage_di

Python Doc Error: os.makedirs

2005-10-18 Thread Xah Lee
hrows an OSError exception”. i think the function shouldn't complain if dir already exists. How is a programer to distinguish if the dir already exists, or if there's a problem creating the dir? Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/

Re: write a loopin one line; process file paths

2005-10-18 Thread Xah Lee
Peter Hansen wrote: > Xah Lee wrote: > > If you think i have a point, ... > > You have neither that, nor a clue. Dear Peter Hansen, My messages speak themselfs. You and your cohorts's stamping of it does not change its nature. And if this is done with repetitiousness, it gi

Re: Jargons of Info Tech industry

2005-10-18 Thread Xah Lee
> Xah Lee, on Aug 22, 2:43 pm wrote: > Unix, RFC, and Line Truncation > http://xahlee.org/UnixResource_dir/writ/truncate_line.html Steve wrote: > I've seen this argument before. There's at least one VERY good reason > to hard-code linebreaks in text: to preserve a cover

Re: write a loopin one line; process file paths

2005-10-18 Thread Xah Lee
xpr falseExpr) ) is there a way to similate it? Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ [EMAIL PROTECTED] wrote: > what do you mean by one line ? Using map/filter, I believe it is > possible. > > Somthing like: > > map(lambda (s,f): os.path.exists(f) and f or s, > map

Re: write a loopin one line; process file paths

2005-10-19 Thread Xah Lee
t i do hate the mother fucking fuckheads Pythoners for one thing that they don't know what functional programing really is, and on the other hand fucking trumpet their righteousness and lies thru their teeth of their ignorance. (that Guido guy with his Python 3000 article on his blog is one ex

Re: write a loopin one line; process file paths

2005-10-19 Thread Xah Lee
hing cross-posted is considered as troll, and the inter-language communication has been essentially completely cut off. Basically, the only ones generating all the garbage posts are these troll-criers themselves. (will have to flesh out on this particular point of net-sociology in a essay some other d

Perl-Python-a-Day: one-liner loop Functional Style

2005-10-20 Thread Xah Lee
One-Liner Loop in Functional Style Xah Lee, 200510 Today we show a example of a loop done as a one-liner of Functional Programing style. Suppose you have a list of file full paths of images: /Users/t/t4/oh/DSCN2059m-s.jpg /Users/t/t4/oh/DSCN2062m-s.jpg /Users/t/t4/oh/DSCN2097m-s.jpg /Users/t

Re: Python Doc Error: os.makedirs

2005-10-20 Thread Xah Lee
Thomas Bellman wrote: >try: > os.makedirs("/tmp/trh/spam/norwegian/blue/parrot/cheese") >except os.error, e: > if e.errno != errno.EEXIST: > raise This is what i want. Thanks. (the doc needs quite some improvement...) Xah [EMAIL PROTE

a Haskell a Day

2005-10-26 Thread Xah Lee
ng list at Yahoo.com. To see the mailing list, go to: http://groups.yahoo.com/group/haskell-a-day To subscribe, send a email to: haskell-a-day-subscribe @ yahoogroups.com Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

tool for syntax coloring in html

2005-10-26 Thread Xah Lee
. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: learning emacs lisp

2005-10-30 Thread Xah Lee
imer: all mention of real person are opinion only. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ rgb wrote: > > i'm looking for something example based... for senior professional > > programers who may want to pickup some elisp for practical macro. > > Unfortunately the path

Xah's edu corner: the Journey of Foreign Characters thru Internet

2005-11-01 Thread Xah Lee
the Journey of Foreign Characters thru Internet Xah Lee, 20051101 There's a bunch of confusions about the display of non-ascii characters such as the bullet "•". These confusions are justifiable, because the underlying stuff is technology, computing technologies, are in a laymen s

Python doc problem example: gzip module (reprise)

2005-11-05 Thread Xah Lee
Python Doc Problem Example: gzip Xah Lee, 20050831 Today i need to use Python to compress/decompress gzip files. Since i've read the official Python tutorial 8 months ago, have spent 30 minutes with Python 3 times a week since, have 14 years of computing experience, 8 years in mathema

Re: Sorting Documentation

2005-11-08 Thread Xah Lee
[EMAIL PROTECTED] wrote: «I want to read a little bit about sorting in Python (sorted() and method sort()). But I can't seem to find anything in the documentation at the homepage?» if you want some detailed account on the sort method, see: http://www.xahlee.org/perl-python/sort_list.html

Re: Python doc problem example: gzip module (reprise)

2005-11-08 Thread Xah Lee
Newsgroups: comp.lang.perl.misc From: "Veli-Pekka Tätilä" Date: Sat, 5 Nov 2005 17:25:35 +0200 Subject: Re: Python doc problem example: gzip module (reprise) Xah Lee wrote: > Today i need to use Python to compress/decompress gzip files. > However, scanning the doc after 20 se

Xah's Edu Corner: Sophie's World

2005-11-24 Thread Xah Lee
Recommended: Sophie's World, by Jostein Gaarder, 1995. http://en.wikipedia.org/wiki/Sophie%27s_World http://www.amazon.com/gp/product/0425152251/ Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

20050111: list basics

2005-01-11 Thread Xah Lee
d list is', Dumper [EMAIL PROTECTED]; # to extrat element from nested list, $c = $b[2]->[1]; print '$b[2]=>[1] is', $c; # the syntax of nested lists in perl is quite arty, see # perldoc -t perldata Xah [EMAIL PROTECTED] http://xahlee.org/PageTwo_dir/more.html -- http://mail.python.org/mailman/listinfo/python-list

[perl-python] 20050112 while statement

2005-01-13 Thread Xah Lee
# here's a while statement in python. a,b = 0,1 while b < 20: print b a,b = b,a+b --- # here's the same code in perl ($a,$b)=(0,1); while ($b<20) { print $b, "\n"; ($a,$b)= ($b, $a+$b); } Xah [EMAIL PROTECTED] http://xahlee.org/PageTwo_dir/more.html

how to stop google from messing Python code

2005-01-13 Thread Xah Lee
i'm using groups-beta.google.com to post python code. Is there a way to stop google from messing with my format? it seems to have eaten the spaces in my python code. thanks. Xah [EMAIL PROTECTED] http://xahlee.org/PageTwo_dir/more.html -- http://mail.python.org/mailman/listinfo/python-list

Re: how to stop google from messing Python code

2005-01-13 Thread Xah Lee
thing that prevents google from reformating the post. Xah [EMAIL PROTECTED] http://xahlee.org/PageTwo_dir/more.html -- http://mail.python.org/mailman/listinfo/python-list

[perl-python] 20050113 looking up syntax

2005-01-14 Thread Xah Lee
--- Note: this post is from the Perl-Python a-day mailing list at http://groups.yahoo.com/group/perl-python/ to subscribe, send an email to [EMAIL PROTECTED] if you are reading it on a web page, program examples may not run because they've been changed by yahoo.com or google.co

[perl-python] 20050114 if statement

2005-01-14 Thread Xah Lee
ython a-day mailing list at . http://groups.yahoo.com/group/perl-python/ . to subscribe, send an email to [EMAIL PROTECTED] . if you are reading it on a web page, program examples may not run . because html conversion often breaks the code. . . Xah . [EMAIL PROTECTED] . http://xahlee.org/PageTwo_dir/more.html -- http://mail.python.org/mailman/listinfo/python-list

[perl-python] 20050115, for statement

2005-01-15 Thread Xah Lee
examples may not run because © groups.google.com changes the post slightly. © © Xah © [EMAIL PROTECTED] © http://xahlee.org/PageTwo_dir/more.html -- http://mail.python.org/mailman/listinfo/python-list

python mode indentation problem

2005-01-15 Thread Xah Lee
does anyone know why the Python mode in emacs uses spaces for first level indentation but one tab for second level? i'm using emacs 21.3.50.1. Xah [EMAIL PROTECTED] http://xahlee.org/PageTwo_dir/more.html -- http://mail.python.org/mailman/listinfo/python-list

Re: python mode indentation problem

2005-01-15 Thread Xah Lee
el, 2 tabs. © © who the fuck coded the python mode in emacs? fuckhead please peruse: © http://xahlee.org/UnixResource_dir/writ/responsible_license.html © © PS Thanks for the tip on (setq-default indent-tabs-mode nil). © © Xah © [EMAIL PROTECTED] © http://xahlee.org/PageTwo_dir/mor

[perl-python] 20050116 defining a function

2005-01-16 Thread Xah Lee
s of a copy of © # the list returned by fib(5), so that © # Dumper can print it. © # see Òperldoc -t perldataÓ or perlref © # for unix-styled technicalities. © © Xah © [EMAIL PROTECTED] © http://xahlee.org/PageTwo_dir/more.html -- http://mail.python.org/mailman/listinfo/python-list

[perl-python] 20050117, filter, map

2005-01-16 Thread Xah Lee
ay mailing list at © http://groups.yahoo.com/group/perl-python/ © to subscribe, send an email to © [EMAIL PROTECTED] if © you are reading it on a web page, © program examples may not run because © html conversion often breaks the code. © © Xah © [EMAIL PROTECTED] © http://xahlee.org/PageT

Re: [perl-python] 20050116 defining a function

2005-01-17 Thread Xah Lee
errata: * the variables in the perl section should be declared inside the subroutine. * the @_[0] should've been $_[0] thanks for Dave Cross for pointing them out. * the Mathematica Apply should be Select... Xah [EMAIL PROTECTED] http://xahlee.org/PageTwo_dir/more.html --

Re: [perl-python] 20050117, filter, map

2005-01-17 Thread Xah Lee
erratum: the Mathematica Apply should've been Select. ... Xah [EMAIL PROTECTED] http://xahlee.org/PageTwo_dir/more.html -- http://mail.python.org/mailman/listinfo/python-list

Re: [perl-python] 20050117, filter, map

2005-01-17 Thread Xah Lee
erratum: the Mathematica Apply should've been Select. ... Xah [EMAIL PROTECTED] http://xahlee.org/PageTwo_dir/more.html -- http://mail.python.org/mailman/listinfo/python-list

[perl-python] 20050118 keyed list

2005-01-17 Thread Xah Lee
© use Data::Dumper qw(Dumper); © print Dumper \%a; © © # the syntax of keyed list in Perl is too complex © # to be covered in a short message. © # see "perldoc perldata" for an unix-styled course. © © Xah © [EMAIL PROTECTED] © http://xahlee.org/PageTwo_dir/more.html -- http://mail.python.org/mailman/listinfo/python-list

[perl-python] 20050119 writing modules

2005-01-18 Thread Xah Lee
print Dumper [&mymodule::f1(7)]; © © # this is about the simplest way © # to write a modlue in perl and © # calling its function. © # for an inscrutable treatment, © # see "perldoc perlmod" © © Xah © [EMAIL PROTECTED] © http://xahlee.org/PageTwo_dir/more.html -- http://mail

Re: Jargons of Info Tech industry

2005-08-22 Thread Xah Lee
Unix, RFC, and Line Truncation [Note: unix tradition requires that a return be inserted at every 70 characters in email messages or so so that each line are less than 80 characters. Unixers made this as a requirement into an RFC document.] Xah Lee, 20020511 This truncation of lines business is

OpenSource documentation problems

2005-08-27 Thread Xah Lee
's docs, but do not exhibit jargon abuse, rambling, author masturbation, or hodgepodge as do the OpenSource ones mentioned above. Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Python doc problems example: gzip module

2005-08-31 Thread Xah Lee
nning, please someone tell me what the fuck is it talking about? Fuck the Python programing morons. Thanks. I just need to decompress files. Is it: import gzip; gzip.GzipFile("/Users/xah/access_log.1.gz"); can someone put a example into that fucking doc so that people don't have to wad

Re: Python doc problems example: gzip module

2005-08-31 Thread Xah Lee
dule really just want to compress or decompress a file. Fuck unix advocates and fuck Perlers and fuck Python morons. PS For more about Python doc, please see: http://xahlee.org/perl-python/re-write_notes.html Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

change date format

2005-08-31 Thread Xah Lee
Apache by default uses the following format for date: 30/Aug/2005 is there a module that turn this directly into mmdd? Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenSource documentation problems

2005-09-01 Thread Xah Lee
reduced to the general public.) this post is archived at http://xahlee.org/UnixResource_dir/writ/python_doc.html Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenSource documentation problems

2005-09-01 Thread Xah Lee
On Python's Documentation Xah Lee, 20050831 I'm very sorry to say, that the Python doc is one of the worst possible in the industry. I'm very sick of Perl and its intentional obfuscation and juvenile drivel style of its docs. I always wanted to learn Python as a replacement of

Re: Python doc problems example: gzip module

2005-09-01 Thread Xah Lee
nothing personal my friend. But just in case you are interested about getting it: the question here is about quality of documentation, not about whether you got it. http://xahlee.org/UnixResource_dir/writ/python_doc.html Xah [EMAIL PROTECTED] ∑ http://xahlee.org/ Sybren Stuvel wrote: >

<    1   2   3   4   5   6   >