Sign In | Register
Home Posts User's Guide Developer's Guide Designer's Guide About

Song

public.bay.livefilestore.com/y1pVunfuv20cYqz6rCZVuiC5RbgNPO6Z74s2ytQay7_PKiYkySISNXmPdo5DYPXNa4agwsAaGNBWGCmAq88-1dzBQ/%E5%90%AF%E5%A5%8F%E7%9A%87%E4%B8%8A%E4%B9%8B%E6%96%A9%E9%A6%96.mp3 

News Syndication (United States)

Another joke

A flash video player wanted

The best flash video player wanted:

  1. Free of use;
  2. No ad. and logo;
  3. Supports flv and common mp4 formats (H.264, etc.);
  4. A big "play" button in center;
  5. auto hide controls when playing;
  6. specify a image as cover or auto-load video's first frame;
  7. when play completed, a "replay", "share", "email" buttons in center.

A joke

iPhone + Mario = iPad ?

If you have an iPhone and ask for help of Mario:

Do you need buy an iPad?

Check the flow chart if you want to buy an iPad:

Source code now moved to Mercurial

Express Me source code now moved to Mercurial! We do not use Subversion any more.

Mercurial is an open source DVCS (distributed version control system) like Git, and Google code supports Mercurial.

Using Mercurial we get better way of managing source and make branch and merge work much easier.

Install Python 2.5 and Mercurial first. To get the whole source code, you should make a "clone" by using command:

hg clone https://express-me.googlecode.com/hg/ express-me

Play

Yue Yue

How to get an iPad with only $1

Expensive to buy an iPad with $499? There is a new way to let you get your iPad with only $1 or even less.

First, download the file from here.

Then, print it out in A3 size, and make it up:

Enjoy your iPad!

Happy New Year

Happy New Year 2010!

 

Far Away From Home

I'm loving living every single day but sometimes I feel so....
I hope to find a little peace of mind and I just want to know.
 
And who can heal those tiny broken hearts, and what are we to be.
Where is home on the milkyway of stars, I dry my eyes again.
 
In my dreams I'm not so far away from home
What am I in a world so far away from home
All my life all the time so far away from home
without you I'll be so far away from home
 
If we could make it thrue the darkest Night we'd have a brither day.
the world I see beyond your pretty eyes, makes me want to stay.
 
And who can heal those tiny broken hearts, and what are we to be.
Where is home on the milkyway of stars, I dry my eyes again.
 
In my dreams I'm not so far away from home
What am I in a world so far away from home
All my life all the time so far away from home
without you I'll be so far away from home
 
I count on you, no matter what they say, cause love can find it's time.
I hope to be a part of you again, baby let us shine.
 
And who can heal those tiny broken hearts, and what are we to be.
Where is home on the milkyway of stars, I dry my eyes again.
 
In my dreams I'm not so far away from home
What am I in a world so far away from home
All my life all the time so far away from home
without you I'll be so far away from home
 
In my dreams I'm not so far away from home
What am I in a world so far away from home
All my life all the time so far away from home
without you I'll be so far away from home
 

What’s New In Python 3000

This article explains the new features in Python 3.0, compared to 2.6. Python 3.0, also known as “Python 3000” or “Py3K”, is the first ever intentionally backwards incompatible Python release. There are more changes than in a typical release, and more that are important for all Python users. Nevertheless, after digesting the changes, you’ll find that Python really hasn’t changed all that much – by and large, we’re mostly fixing well-known annoyances and warts, and removing a lot of old cruft.
 
This article doesn’t attempt to provide a complete specification of all new features, but instead tries to give a convenient overview. For full details, you should refer to the documentation for Python 3.0, and/or the many PEPs referenced in the text. If you want to understand the complete implementation and design rationale for a particular feature, PEPs usually have more details than the regular documentation; but note that PEPs usually are not kept up-to-date once a feature has been fully implemented.
 
Due to time constraints this document is not as complete as it should have been. As always for a new release, the Misc/NEWS file in the source distribution contains a wealth of detailed information about every small thing that was changed.
 
Common Stumbling Blocks
 
This section lists those few changes that are most likely to trip you up if you’re used to Python 2.5.
 

Print Is A Function

 
The print statement has been replaced with a print() function, with keyword arguments to replace most of the special syntax of the old print statement (PEP 3105). Examples:
 
Old: print "The answer is", 2*2
 
New: print("The answer is", 2*2)
 
Old: print x,           # Trailing comma suppresses newline
 
New: print(x, end=" ")  # Appends a space instead of a newline
 
Old: print              # Prints a newline
 
New: print()            # You must call the function!
 
Old: print >>sys.stderr, "fatal error"
 
New: print("fatal error", file=sys.stderr)
 
Old: print (x, y)       # prints repr((x, y))
 
New: print((x, y))      # Not the same as print(x, y)!
 
You can also customize the separator between items, e.g.:
 
print("There are <", 2**32, "> possibilities!", sep="")
 
which produces:
 
There are <4294967296> possibilities!
 
Note:
 
The print() function doesn’t support the “softspace” feature of the old print statement. For example, in Python 2.x, print "A\n", "B" would write "A\nB\n"; but in Python 3.0, print("A\n", "B") writes "A\n B\n".
 
Initially, you’ll be finding yourself typing the old print x a lot in interactive mode. Time to retrain your fingers to type print(x) instead!
 
When using the 2to3 source-to-source conversion tool, all print statements are automatically converted to print() function calls, so this is mostly a non-issue for larger projects.
 
Views And Iterators Instead Of Lists
 
Some well-known APIs no longer return lists:
 
dict methods dict.keys(), dict.items() and dict.values() return “views” instead of lists. For example, this no longer works: k = d.keys(); k.sort(). Use k = sorted(d) instead (this works in Python 2.5 too and is just as efficient).
 
Also, the dict.iterkeys(), dict.iteritems() and dict.itervalues() methods are no longer supported.
 
map() and filter() return iterators. If you really need a list, a quick fix is e.g. list(map(...)), but a better fix is often to use a list comprehension (especially when the original code uses lambda), or rewriting the code so it doesn’t need a list at all. Particularly tricky is map() invoked for the side effects of the function; the correct transformation is to use a regular for loop (since creating a list would just be wasteful).
 
range() now behaves like xrange() used to behave, except it works with values of arbitrary size. The latter no longer exists.
 
zip() now returns an iterator.
 

Ordering Comparisons

 
Python 3.0 has simplified the rules for ordering comparisons:
 
The ordering comparison operators (<, <=, >=, >) raise a TypeError exception when the operands don’t have a meaningful natural ordering. Thus, expressions like 1 < '', 0 > None or len <= len are no longer valid, and e.g. None < None raises TypeError instead of returning False. A corollary is that sorting a heterogeneous list no longer makes sense – all the elements must be comparable to each other. Note that this does not apply to the == and != operators: objects of different incomparable types always compare unequal to each other.
 
builtin.sorted() and list.sort() no longer accept the cmp argument providing a comparison function. Use the key argument instead. N.B. the key and reverse arguments are now “keyword-only”.
 
The cmp() function should be treated as gone, and the __cmp__() special method is no longer supported. Use __lt__() for sorting, __eq__() with __hash__(), and other rich comparisons as needed. (If you really need the cmp() functionality, you could use the expression (a > b) - (a < b) as the equivalent for cmp(a, b).)
 

Integers

 
PEP 0237: Essentially, long renamed to int. That is, there is only one built-in integral type, named int; but it behaves mostly like the old long type.
 
PEP 0238: An expression like 1/2 returns a float. Use 1//2 to get the truncating behavior. (The latter syntax has existed for years, at least since Python 2.2.)
 
The sys.maxint constant was removed, since there is no longer a limit to the value of integers. However, sys.maxsize can be used as an integer larger than any practical list or string index. It conforms to the implementation’s “natural” integer size and is typically the same as sys.maxint in previous releases on the same platform (assuming the same build options).
 
The repr() of a long integer doesn’t include the trailing L anymore, so code that unconditionally strips that character will chop off the last digit instead. (Use str() instead.)
 
Octal literals are no longer of the form 0720; use 0o720 instead.
 

Text Vs. Data Instead Of Unicode Vs. 8-bit

 
Everything you thought you knew about binary data and Unicode has changed.
 
Python 3.0 uses the concepts of text and (binary) data instead of Unicode strings and 8-bit strings. All text is Unicode; however encoded Unicode is represented as binary data. The type used to hold text is str, the type used to hold data is bytes. The biggest difference with the 2.x situation is that any attempt to mix text and data in Python 3.0 raises TypeError, whereas if you were to mix Unicode and 8-bit strings in Python 2.x, it would work if the 8-bit string happened to contain only 7-bit (ASCII) bytes, but you would get UnicodeDecodeError if it contained non-ASCII values. This value-specific behavior has caused numerous sad faces over the years.
 
As a consequence of this change in philosophy, pretty much all code that uses Unicode, encodings or binary data most likely has to change. The change is for the better, as in the 2.x world there were numerous bugs having to do with mixing encoded and unencoded text. To be prepared in Python 2.x, start using unicode for all unencoded text, and str for binary or encoded data only. Then the 2to3 tool will do most of the work for you.
 
You can no longer use u"..." literals for Unicode text. However, you must use b"..." literals for binary data.
 
As the str and bytes types cannot be mixed, you must always explicitly convert between them. Use str.encode() to go from str to bytes, and bytes.decode() to go from bytes to str. You can also use bytes(s, encoding=...) and str(b, encoding=...), respectively.
 
Like str, the bytes type is immutable. There is a separate mutable type to hold buffered binary data, bytearray. Nearly all APIs that accept bytes also accept bytearray. The mutable API is based on collections.MutableSequence.
 
All backslashes in raw string literals are interpreted literally. This means that '\U' and '\u' escapes in raw strings are not treated specially. For example, r'\u20ac' is a string of 6 characters in Python 3.0, whereas in 2.6, ur'\u20ac' was the single “euro” character. (Of course, this change only affects raw string literals; the euro character is '\u20ac' in Python 3.0.)
 
The builtin basestring abstract type was removed. Use str instead. The str and bytes types don’t have functionality enough in common to warrant a shared base class. The 2to3 tool (see below) replaces every occurrence of basestring with str.
 

 

PPP: Python Programming Philosophy

Python is a multi-paradigm programming language. Rather than forcing programmers to adopt a particular style of programming, it permits several styles: object-oriented programming and structured programming are fully supported, and there are a number of language features which support functional programming and aspect-oriented programming (including by metaprogramming and by magic methods). Many other paradigms are supported using extensions, such as pyDBC and Contracts for Python which allow Design by Contract.
 
Python uses dynamic typing and a combination of reference counting and a cycle-detecting garbage collector for memory management. An important feature of Python is dynamic name resolution (late binding), which binds method and variable names during program execution.
 
Rather than requiring all desired functionality to be built into the language's core, Python was designed to be highly extensible. New built-in modules can be easily written in C or C++. Python can also be used as an extension language for existing modules and applications that need a programmable interface. This design of a small core language with a large standard library and an easily extensible interpreter was intended by Van Rossum from the very start because of his frustrations with ABC (which espoused the opposite mindset).
 
The design of Python offers only limited support for functional programming in the Lisp tradition. However, Python's design philosophy exhibits significant similarities to those of minimalist Lisp-family languages, such as Scheme[citation needed]. The library has two modules (itertools and functools) that implement proven functional tools borrowed from Haskell and Standard ML.
 
While offering choice in coding methodology, the Python philosophy rejects exuberant syntax, such as in Perl, in favor of a sparser, less-cluttered grammar. Python's developers expressly promote a particular "culture" or ideology based on what they want the language to be, favoring language forms they see as "beautiful", "explicit" and "simple". As Alex Martelli put it in his Python Cookbook (2nd ed., p. 230): "To describe something as clever is NOT considered a compliment in the Python culture." Python's philosophy rejects the Perl "there is more than one way to do it" approach to language design in favor of "there should be one—and preferably only one—obvious way to do it".
 
Python's developers eschew premature optimization, and moreover, reject patches to non-critical parts of CPython which would offer a marginal increase in speed at the cost of clarity. It is sometimes described as "slow". However, by the Pareto principle, most problems and sections of programs are not speed critical. When speed is a problem, Python programmers tend to try to optimize bottlenecks by algorithm improvements or data structure changes, using a JIT compiler such as Psyco, rewriting the time-critical functions in "closer to the metal" languages such as C, or by translating Python code to C code using tools like Cython.
 
The core philosophy of the language is summarized by the document "PEP 20 (The Zen of Python)".

Photo Services Now Support PicasaWeb and Flickr

Photo Services Now Support PicasaWeb and Flickr!

See documentation for more information.

StarCraft II will release soon

The StarCraft II will release in the late 2010.

New Theme 'blue-max' Now Release

We are pleased to announce that new theme 'blue-max' is now released.

To apply the new theme, first update your web site, then select 'manage' - 'setting' - 'theme' - 'blue-max'

Enjoy!

AppEngine SDK download

Google AppEngine is a powerful pack for you to create web site for FREE!

Download the latest Google AppEngine for Python from:

code.google.com/appengine/downloads.html#Google_App_Engine_SDK_for_Python

Based on your operating system (Windows, OS X, Linux/Unix).

Google App Engine lets you run your web applications on Google's infrastructure. App Engine applications are easy to build, easy to maintain, and easy to scale as your traffic and data storage needs grow. With App Engine, there are no servers to maintain: You just upload your application, and it's ready to serve your users.

Python 2.5.4 release

Here you may need Python 2.5.4 when you running your app on Google AppEngine:

For windows binary installer:

www.python.org/ftp/python/2.5.4/python-2.5.4.msi

For linux/unix source:

www.python.org/ftp/python/2.5.4/Python-2.5.4.tgz

Python is a general-purpose high-level programming language. Its design philosophy emphasizes code readability. Python claims to "[combine] remarkable power with very clear syntax", and its standard library is large and comprehensive. Its use of indentation for block delimiters is unusual among popular programming languages.
 
Python supports multiple programming paradigms (primarily object oriented, imperative, and functional) and features a fully dynamic type system and automatic memory management, similar to that of Perl, Ruby, Scheme, and Tcl. Like other dynamic languages, Python is often used as a scripting language.
 
The language has an open, community-based development model managed by the non-profit Python Software Foundation, which maintains the de facto definition of the language in CPython, the reference implementation.

 

ExpressMe Wiki Online

We are pleased to announce that the beta version of wiki in ExpressMe has been online now!

Enjoy!

Express Me 1.0 released

Hi

Express Me 1.0 released!

by Michael Liao, author of ExpressMe.

Keep Update

Music Box

Burning

Recent Tweets

Loading...

Google Adsense

Copyright©2010, powered by ExpressMe