Diderot - A Python based WikiWriter
Grok Headline matches for Diderot - A Python based WikiWriter
Python and XML: XML Namespaces Support
in Python Tools, Part Three
Python and XML: XML Namespaces Support
in Python Tools, Part Three
06/30/2004 07:31 PMIn this month's Python and XML column Uche Ogbuji examines the
namespace support in ElementTree, PyRXPU, and libxml.
Python and XML: XML Namespaces Support
in Python Tools, Part Two
Python and XML: XML Namespaces Support
in Python Tools, Part Two
05/13/2004 07:55 PMIn his latest Python and XML column, Uche Ogbuji continues his tour of
XML namespaces support in Python tools, focusing this time on 4Suite.
Backporting from Python 2.3 to Python
2.2
Backporting from Python 2.3 to Python
2.2
06/08/2004 11:18 PMWe have a home-grown templating system at work, which I
intend to dedicate an entry to some time in the future. We originally
wrote it in Python 2.2, but upgraded to Python 2.3 a while ago and
have since been evolving our code in that environment. Today I found a
need to load the most recent version of our templating system on to a
small, long neglected application that had been running the original
version ever since it had enough features to be usable.
Unfortunately, this application was running on a server
that only had Python 2.2. Installing Python 2.3 would have been
somewhat more painful here than on other servers we run for reasons I
won't go in to, so I decided to have a go at getting our current code
to run under the older Python version.
In the end, I only had to make three minor changes, all at
the top of the file in question.
I added from __future__ import
generators as the very first line of the file. We use
generators (with the yield statement) in a
few places - this feature was only properly added in Python 2.3, but
was made available in Python 2.2 as a "future enhancement" through the
aforementioned obscure import.
I added True, False = 1,
0 on the next line down. Surprisingly, Python 2.2 had no
support for a boolean type and instead used a test for non-zero
instead. The above line defines constants that behave enough like
Python 2.3's True and False to avoid any problems.
I defined an enumerate
function, which was introduced for real in Python 2.3. Here's the code
I used:
def enumerate(obj):
for i, item in zip(range(len(obj)), obj):
yield i, item
All in all it only took around ten minutes to put the
above together, after which the script worked just fine. It was
interesting to see how our code had grown to rely on Python 2.3
features without us realising it.
Web-based Timesheet Provider Replicon
Inc. Launches Web-based Resource
Scheduling Software
Web-based Timesheet Provider Replicon
Inc. Launches Web-based Resource
Scheduling Software
04/06/2005 02:38 AMReplicon’s Web Resource to Replace the use of Traditional Spreadsheets
for Employee Project Scheduling [PRWEB Apr 6, 2005]
Spry Launches Windows Based Virtual
Private Server Hosting Based on
Microsoft Windows Server 2003
Spry Launches Windows Based Virtual
Private Server Hosting Based on
Microsoft Windows Server 2003
03/14/2005 04:40 PMVirtual Private Server (VPS) technologies have allowed webhosting
users on Linux for years to have control of their own servers while
minimizing cost. Spry now offers this ability to the Microsoft Windows
hosting community. Spry is known as a leading VPS hosting and
colocation provider in Seattle, Washington. [PRWEB Mar 14, 2005]
Python 2.3
Python 2.3
10/28/2003 11:06 PM
Python 2.3 was released
yesterday... and not a moment too soon. I was just swearing under my
breath about this sort of nonsense:
>>> cosmos = technorati.cosmos('http://diveintomark.org/')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "technorati.py", line 214, in cosmos
xmldoc = minidom.parseString(rawdata)
File "/usr/lib/python2.2/site-packages/_xmlplus/dom/minidom.py",
line 1605, in parseString
return expatbuilder.parseString(string)
, in parseString
return builder.parseString(string)
File
"/usr/lib/python2.2/site-packages/_xmlplus/dom/expatbuilder.py",
line 187, in parseString
parser = self.getParser()
File
"/usr/lib/python2.2/site-packages/_xmlplus/dom/expatbuilder.py",
line 119, in getParser
self._parser = self.createParser()
File
"/usr/lib/python2.2/site-packages/_xmlplus/dom/expatbuilder.py",
line 734, in createParser
parser.namespace_prefixes = True
AttributeError: namespace_prefixes
OS X users, don't be discouraged by the mention of there being no
MacPython version yet or daunted by the task of compiling it from
source --
MacP
ython 2.3 lives and is just a few glorious GUI installer clicks
away.
Python-SIP 3.9
Python-SIP 3.9
12/08/2003 04:42 PMA tool to generate Python bindings from C++ code.
XML with Xen and with Python
XML with Xen and with Python
12/19/2004 03:53 PMHere is a comment on the paper "Programming with Circles,
Triangles and Rectangles" by Erik Meijer et al. Perhaps interesting
for XML programmers.
Another look at PHP and Python
Another look at PHP and Python
02/10/2004 02:46 AMPostscript: Some people have got the impression from this article
that I am moving away from PHP. That is far from the truth. I will
continue to use PHP extensively today, tomorrow and for the forseeable
future.
I find Python harder than PHP.
It could be because we are programming multi-threaded networked
servers in Python, and that
could be inherently harder than coding dynamic web-sites.
Another reason could be lack of familiarity with
Python. For example, I couldn't find the equivalent of htmlspecialchars
and other functions, so i had to roll my own.
Despite all these issues, we are continuing to develop this in
Python because (AFAIK) PHP does not have stable networking frameworks.
So what do I like about Python?
- Neat Syntax
The use of indentation for compound statements discourages deep
nesting, and thus more modular code.
- More Safety Checks
In PHP, when you search using a regular expression, an associative
array is returned.
In Python, a typed object, "match" is returned when a regular
expression search is performed,
and not a generic dictionary. You cannot perform arithmetic on
strings, an explicit cast is required; neither
can you concatenate numbers with strings, explicit typecasts are
needed.
- Supports Multi-Threaded Apps
There exists a global lock in Python that prevents multi-threading
from working effectively on multiple processors - nevertheless Python
has reasonable thread support and allows me to develop reasonably
responsive servers.
- Python's Compiler is Standard
Python has a standard compiler and byte-code format. There is no
such standard in the PHP world, and
most ISP's don't support Zend or Turck MMCache encoded PHP. Better
still, a debugger is included in the package too.
- Python Fully Supports Unicode
Python 2.0 and later has full support for unicode. For example to
convert big5 to unicode is the simple:
unicode_str = unicode(tw_chinese_string, 'big5')
In contrast, see how complicated it is to perform
double-byte to unicode conversions in PHP (see User Notes).
The only issue i had with the unicode support is that it doesn't
come with a complete set of double-byte decoders (eg. big5, gb). After
a 20 minute google search, i found this set of python cjk decoders.
And what I dislike about Python
- Python Is Not Rapid Enough?
I think that PHP is a better tool for rapid application
development, especially for web-sites. Minor type issues are handled
for you transparently in PHP. In Python, once a variable is set,
stricter type-checking is performed on most operations.
So you can argue that Python is safer. But PHP coding is definitely
more rapid.
Another thing i dislike is that Python's import/load facility does
not check .py file modification dates. If i modify a .py file,
Python's run-time environment will not recompile it until i restart
Python, or perform a reload manually from the command-line
interpreter.
- Database Access
Python does not have official database drivers, and you have to
select and download these drivers
yourself. It's easy to get it wrong. For example, only after coding
the adodb_odbc module using PythonWin
odbc extension did i
realize how awful PythonWin odbc was. I then found the mxODBC
extension - unfortunately the mxODBC requires commercial
licensing ($75 per CPU).
- Python is Not That Popular
Popularity is relative. There are lots of Python programmers - but
there are perhaps 3 times more PHP programmers than Python ones. In
Malaysia, the ratio of PHP to Python programmers is probably much
worse (10:1?). And there are many training centers offering PHP
courses. AFAIK, there are no centers in Malaysia offering Python
training.
A quick search in monster.com reveals the following (numbers might
change over time):
PHP: 131 jobs
http://jobsearch.monster.com/jobsearch.asp?q=php&re=0&sort=rv&tm=&fn=6
60&vw=b&cy=US&brd=1%2C1862%2C1863
Python: 41 jobs
http://jobsearch.monster.com/jobsearch.asp?q=python&re=0&sort=rv&t
m=&fn=660&vw=b&cy=US&brd=1%2C1862%2C1863

PHP Everywhere: Python vs. PHP?
PHP Everywhere: Python vs. PHP?
03/30/2005 09:12 AMFrom
PHP
Everywhere today:
MPY (MPi for pYthon)
MPY (MPi for pYthon)
06/26/2004 05:20 PMMPY Version 0.1 Released
Python-SIP 4.0
Python-SIP 4.0
06/23/2004 12:48 PMA tool to generate Python bindings from C++ code.
Python-SIP 4.1.1
Python-SIP 4.1.1
09/24/2004 03:30 PMA tool to generate Python bindings from C++ code.
Python-SIP 4.0.1
Python-SIP 4.0.1
07/06/2004 06:45 AMA tool to generate Python bindings from C++ code.
Python 2.3.3
Python 2.3.3
12/30/2003 05:13 PMA high-level scripting language.
X Python Newsreader 0.3.0
X Python Newsreader 0.3.0
06/18/2004 02:27 PMAn online newsreader with Unicode support.
"my Python code"
"my Python code"
06/08/2004 08:54 AMPython X Library
Python X Library
01/27/2004 11:33 AMMaintainer wanted
Introduction to Python.
Introduction to Python.
04/12/2005 11:12 AMOk, first part is going to be fairly boring, but put up with it. Im
just going to go through...
Python on Panther
Python on Panther
04/09/2004 04:08 PMMac DevCenter has an
interesting article on using Python with Panther (I
wonder who’d win out of those two…), with particular focus
on the CoreGraphics library of image manipulation tools.
This is an interesting alternative to the PHP/
ImageMagick combination which I
currently employ on this site.
What Python Can Do for the Enterprise
What Python Can Do for the Enterprise
03/20/2003 01:05 PMWith all the attention focused on Java and C#, companies may be
missing out on a programming language that might be better suited to
their needs. It is called Python, and it is known for its simplicity
-- no small feat for a programming language. But can it crack the
enterprise market?
Python Scripting For .NET
Python Scripting For .NET
03/19/2003 10:41 PM
Brian
Lloyd: I've finally been able to post an initial
(experimental) version of Python Scripting for .NET [via
Sean
McGrath]
First impressions: this looks like the first step towards where
PerlNET has
ended up: two VMs, two garbage collected heaps, but on the bright
side, every existing Python application runs without change or
without any performance degradation.
Python SOAP
Python SOAP
12/02/2003 02:41 PMTransition to sourceforge.net
Python vs Parrot
Python vs Parrot
12/17/2004 06:34 PMIn many ways, it seems like Python and Parrot are from different
planets. In Python, the general approach seems to be to reduce
everything possible to a canonical form as early as possible, and then
deal with everything consistently. In Parrot, the general approach
seems
to be to leave everything in its original form as long as possible,
and
then deal with everything separately. ...
Python Web Objects 0.72
Python Web Objects 0.72
03/16/2003 05:54 AMA dynamic page generation system for embedding Python code in HTML.
Acme-Python-0.01
Acme-Python-0.01
04/05/2005 04:53 PMPython Web Objects 0.71
Python Web Objects 0.71
03/16/2003 03:05 AMA dynamic page generation system for embedding Python code in HTML.
Nokia Python
Nokia Python
12/24/2004 12:47 PM
Feet Up!
More
Nokia Python
It looks like people haven’t been slow to get using
Nokia’s Python project, and Matt
Croydon has been collating projects and news on his Pyth
on for Series 60 wiki page.
Seeing as there’s no
central clearing house(other than Forum Nokia) for Nokia Python
projects right now, I reckon this is as good a focal point as
any.
The official public release of Python on Series
60 just came out on the 22nd of December. You can get it on
Forum Nokia site.
Comment -
TrackBack
Writev for Python 0.0.3
Writev for Python 0.0.3
12/27/2004 03:22 PMA Python module that provides access to the POSIX writev call.
Movable Python
Movable Python
12/31/2004 10:57 AMPre-release Available
Python on the 6600
Python on the 6600
03/06/2004 01:56 AMI just saw python running on the Nokia 6600. Soo cool. I can't wait
to get my hands on it. You may have heard, but python is coming first,
not perl. My next python script will be a bot from my phone.
Python-Bytecode-2.6
Python-Bytecode-2.6
07/16/2004 06:53 AMPython::Bytecode
Python::Bytecode
07/15/2004 10:08 AMFWIW, this is up to version 2.5. (I see something fetching the 2.2
archive, but I've not looked at what's doing it) If you want to play,
install that from CPAN, though it seems to have test issues on some
systems that I need to track down at some point, to duck the smoke
test messages if nothing else. This version added support for reading
complex numbers, unicode strings, and proper handling (I think) of
bignums. With this release all the piethon bytecode can be read
without error, though of course that's a big step away from actually
doing anything...
Python Infusion
Python Infusion
02/01/2005 09:12 PMWe're not dead
Web Services for Python
Web Services for Python
11/11/2003 09:12 PMZSI 1.4 available
Python-Bytecode-2.5
Python-Bytecode-2.5
07/14/2004 11:46 PM[USN-73-1] Python vulnerability
[USN-73-1] Python vulnerability
02/05/2005 09:38 PMMartin Pitt (Feb 03 2005)
"Python for Series 60"
"Python for Series 60"
12/26/2004 11:13 PMOptimising Python
Optimising Python
10/29/2003 12:12 AMSome great tips for optimising Python, courtesy of Ian Bicking:
Grok Description matches for Diderot - A Python based WikiWriter
GrokA matches for Diderot - A Python based WikiWriter
HHtml python module
HHtml python module
02/16/2004 11:59 AMHHtml python module initial release (1.0)
PyCLIPS Python Module
PyCLIPS Python Module
07/20/2004 07:53 AMReplaced PyCLIPS 1.0 packages
Python Twain Module
Python Twain Module
04/16/2005 05:02 AMPython 2.4 Build
Python parsing module
Python parsing module
12/18/2003 01:00 PMpyParsing Python library - version 1.0.1 released
Trusted Pickle - Python module
Trusted Pickle - Python module
12/31/2003 07:19 PMNew project: TrustedPickle
"paramiko is a module for python that
implements the SSH2 protocol"
"paramiko is a module for python that
implements the SSH2 protocol"
06/02/2004 04:49 PMmysqldb
mysqldb
10/16/2002 05:46 PMmysql_db provides access to MySQL using these methods:
open() - connects to database
query() - runs SQL query against the connected database
last_id() - gets last insert id for the connection
close() - close database connection
Errors are handled via properties $db->errtype and $db->errstr, which
can be tested for.
Sql injection in jPortal version 2.3.1
(module banner)
Sql injection in jPortal version 2.3.1
(module banner)
04/11/2005 05:53 PMPosted by Marcin \, Apr 11 2005
Cross Site Scripting in XOOPS Version
2.x Dictionary module
Cross Site Scripting in XOOPS Version
2.x Dictionary module
08/31/2004 04:41 AMCyruxNET (Aug 28 2004)
Pentek Announces Ruggedized Version of
Popular Multiband Digital Receiver PMC
Module
Pentek Announces Ruggedized Version of
Popular Multiband Digital Receiver PMC
Module
04/01/2005 04:43 AM16-Channel Multiband Digital Receiver with Dual 14-bit A/Ds. On-board
User-Configurable Xilinx Virtex-II FPGA. Optimized GateFlow FPGA
Resources. Flexible A/D Channel Switching and Receiver Bypass Mode. Up
to 80 Board Synchronization. Operating Temperatures From -20ºC to
65ºC. Shock Plus Sine- and Random-Vibration Qualified. [PRWEB Apr 1,
2005]
DeltaGraph 5.5
DeltaGraph 5.5
01/08/2004 08:48 PMCombines powerful statistical tools with stunning data visualization
capabilities.
DeltaGraph 5
DeltaGraph 5
11/15/2003 02:14 AMThe more I used DeltaGraph, the more I liked it. By Neale Monks
(Applelust via MyAppleMenu)
DeltaGraph 5.5 now available for Panther
DeltaGraph 5.5 now available for Panther
01/07/2004 06:43 PMRed Rock Software today announced the availability of Red Rock
DeltaGraph 5.5, the latest version of the company's data analysis,
charting and graphing software...
Update: Deltagraph 5.6
Update: Deltagraph 5.6
04/07/2005 12:39 PMThe 2D and 3D charting application adds file compatibility between the
Mac and Windows versions, improved EPS import, drag-and-drop import of
CricketGraph data files, and other changes.
Red Rock announces DeltaGraph 5.6
Red Rock announces DeltaGraph 5.6
04/05/2005 08:49 AMRed Rock Software today announced DeltaGraph 5.6, the latest update to
its award-winning line of data analysis, charting and graphing
applications for professional publishing, market, and scientific
research...
DeltaGraph 5.5 publishes graphs, charts
on the Web
DeltaGraph 5.5 publishes graphs, charts
on the Web
07/21/2004 07:19 AMRed Rock Software has released a free update to its data analysis,
charting and graphing software,
DeltaGraph
5.5. The upgrade adds the ability to publish charts and graphs on
a Web site and update them as new data is received. DeltaGraph 5.5
automates the entire process with an AppleScript that extracts data
from any database with the ability to export delimited text files,
creates charts or graphs and posts them to the Web in a user-specified
format. When the data changes, the user runs the AppleScript again.
The software requires Mac OS X v10.1.5 or higher, 128MB RAM and 60MB
hard drive space, with pricing for the full version at US$199 for
academic use and $299 for commercial use.
News: DeltaGraph 5.6 improves Windows
interoperability
News: DeltaGraph 5.6 improves Windows
interoperability
04/05/2005 09:28 AMRed Rock Software on Tuesday announced DeltaGraph 5.6, an update to
its charting, graphing and data analysis software for Mac OS X and
Windows. The new version gains more than 30 enhancements. While the
list of changes varies in the Mac and PC releases, the Mac update can
now open DeltaGraph 5.6 Windows files and improves copy/paste and drag
and drop actions. What's more, DeltaGraph can edit drawn elements
copied from and pasted back to a drawing canvas. DeltaGraph 5.6 is a
free update for current users. A new license costs US$299.
Macworld: Free Red Rock DeltaGraph 5.5
upgrade
Macworld: Free Red Rock DeltaGraph 5.5
upgrade
01/08/2004 07:28 PMRed Rock Software announced on
Wednesday that a free upgrade is now available for Red Rock DeltaGraph
5.5, its data analysis, charting and graphing application. The
software is now compatible with Mac OS X v10.3 (Panther), and the
update also includes new features for both Mac OS X and Mac OS 9
users.
AValonRF Announces the Availability of
Module A, a Micro MPEG4 Encoder Module
AValonRF Announces the Availability of
Module A, a Micro MPEG4 Encoder Module
01/05/2005 03:27 AMAValonRF, Inc., announces the immediate availability of it’s Micro
MPEG4 Encoder module AFCEA West Expo 2005 February 1-3, 2005, San
Diego, CA, USA, Booth 1451 [PRWEB Jan 5, 2005]
Tested: 64-Bit P4
Tested: 64-Bit P4
03/19/2005 03:25 AMIntel's 64-bit Pentium 4 and Pentium 4 Extreme Edition desktop
processors launched in February, giving the 64-bit computing future
that started with AMD's Athlon 64 chips even more traction.
What does 64-bit computing offer you beyond today's 32-bit platform?
We compared two of the new chips, the 3.73-GHz P4 EE and the 3.6-GHz
P4 660, with a 32-bit 3.8-GHz P4 (the fastest 32-bit P4), a 2.6-GHz
Athlon 64 FX-55, and a 2.4-GHz Athlon 64 3800+. Results are mixed:
You'll get a slight boost over a 32-bit P4, but you will pay about
$100 to $200 more for an Intel PC than for an AMD one with similar or
slightly better performance.

View:
The full story

News source:
PCWorldRead full story...Have Your iSight Tested
Have Your iSight Tested
12/30/2003 06:25 PMApple's iSight video camera is not a new idea but it is a solid piece
of tech that does a simple job extremely well. By Aoife White
(ElectricNews.net via MyAppleMenu)
Computers to be truly tested
Computers to be truly tested
04/06/2005 08:32 PMThe Border Mail Apr 7 2005 12:44AM GMT
CPAN-Mini-Tested-0.21
CPAN-Mini-Tested-0.21
04/01/2005 11:57 AMForceware 56.55 Drivers Tested
Forceware 56.55 Drivers Tested
02/16/2004 10:45 PMCPAN-Mini-Tested-0.01
CPAN-Mini-Tested-0.01
01/06/2005 05:51 PMCPAN-Mini-Tested-0.20
CPAN-Mini-Tested-0.20
02/06/2005 01:17 AMCPAN-Mini-Tested-0.02
CPAN-Mini-Tested-0.02
01/06/2005 05:51 PM Diderot - A Python based WikiWriter