... hab' ich mitzuteilen - L's blog

... with a touch of python - Didaktik der Informatik, Informatische Bildung, ...
Sun, 30 Jul 2006
treemap 1.01 [ 15:26 Uhr ] [ 193 Worte ]

[ SVG-Abbildung ] Daten visualisieren - immer wieder eine Herausforderung. Hier gelöst mit Hilfe von Python. Um treemap (unter Debian) installieren zu können, muss python-matplotlib installiert sein [ apt-get install python-matplotlib ]. Dies ist eine Voraussetzung, damit die Anzeige durch pylab realisiert werden kann.
Dargestellt ist die Baumstruktur (als geschachtelte Liste dargestellt: tree= ((5,(3,5,2,(0.1,0.1,0.6),1)), 4, (5,2,(2,3,(3,2, (2,5,2),2)),(3,3)), (3,2,(0.2,0.2,0.2)) ))

Treeview creator with interactive viewer
...
Then I remembered treemaps. They're a great way of viewing trees where the nodes are considered to have a size. I couldn't find a decent viewer in python, so I thought I'd knock one up. It seems quick enough and does the job. I even used pylab to allow the use to zoom in on particular nodes to see whats going on in a busy part.
2006-07-30 02:06:13.00Z
[ rss20 Feed ] http://cheeseshop.python.org/pypi?%3Aaction=rss [ Verweis - Nachrichtenkanal ]

[ xhtml ] http://cheeseshop.python.org/pypi/treemap/1.01 [ Verweis - Eintrag ]

Wed, 26 Jul 2006
Sun, 23 Jul 2006
Buch zu SQLite verfügbar [ 11:43 Uhr ] [ 122 Worte ]

The Definitive Guide to SQLite

SQLite stellt eine sehr effiziente Möglichkeit dar, auch auf sehr kleinen Systemen Datenbankfunktionalität zur Verfügung zu haben, da sie sich mit ca. 250 KB begnügt.

Da ist es gut, dass sich jemand mal hingesetzt hat und das Buch zu SQLite geschrieben hat. Kapitel 1 steht zur Anprobe bereit.

Der Autor
Mike Owens »is the original creator of Pysqlite, the Python extension for SQLite.« Auf der Webseite zum Buch (Buch zu SQLite) steht der im Buch besprochene Quellcode zum Kopieren auf das eigene System bereit.
Buchdeckel SQLite - The Definitive Guide
Fri, 21 Jul 2006
TLS Lite [ 00:36 Uhr ] [ 88 Worte ]

TLS Lite - nette kleine Python-only Lib für SSL, TLS und low-level X509 Handling. Recht brauchbar für Quick-Off Projekte und für grössere Systeme integriert es mit andren PKI-Libraries für Python.

[ Datum/Zeit: ] Wed, 19 Jul 2006 15:00:55 +0200
[ rss20 Feed ] http://hugo.muensterland.org/feed/ [ Verweis - Nachrichtenkanal ]

[ xhtml ] http://trevp.net/tlslite/ [ Verweis - Eintrag ]

Thu, 20 Jul 2006
[Andrew Kuchling] Next: a threading HOWTO [ 16:31 Uhr ] [ 92 Worte ]

[Andrew Kuchling] Next: a threading HOWTO «Thanks for your suggestions, everyone! Lots of people liked the threading HOWTO idea and there doesn't seem to be an existing document or book that covers the same territory.»
[ rss20 Feed ] http://www.pythonware.com/daily/rss2.xml [ Verweis - Nachrichtenkanal ]

[ xhtml ] http://www.pythonware.com/daily/index.htm#115332025776783211 [ Verweis - Eintrag ]

Tue, 18 Jul 2006
[PJE on Programming] Schema Analysis and the need for Python-based DSLs [ 00:16 Uhr ] [ 253 Worte ]

DSL == Domain Specific Language

[PJE on Programming] Schema Analysis and the need for Python-based DSLs «I recently came across this interesting project: 'The Alloy Analyzer is a tool developed by the Software Design Group for analyzing models written in Alloy, a simple structural modeling language based on first-order logic. The tool can generate instances of invariants, simulate the execution of operations (even those defined implicitly), and check user-specified properties of a model. Alloy and its analyzer have been used primarily to explore abstract software designs. Its use in analyzing code for conformance to a specification and as an automatic test case generator are being investigated in ongoing research projects.' I took a little time to go through the tutorial, and discovered that the language is very much like the domain-relational calculus, meaning that it expresses a schema in terms of sets and relationships between them. It actually seems like a terrific language for designing object schemas and expressing constraints over them. It's gotten me to wondering whether I could perhaps find a way to extend this Python cookbook recipe for expressing prolog-like rules to support the full expressiveness of Alloy, but using a nice Pythonic syntax.»
[ rss20 Feed ] http://www.pythonware.com/daily/rss2.xml [ Verweis - Nachrichtenkanal ]

[ xhtml ] http://www.pythonware.com/daily/index.htm#115314661602080753 [ Verweis - Eintrag ]

[COM.lounge: Christian Scholz] EuroPython 2006 videos: Keynote by Alan Kay, part 1 [ 00:14 Uhr ] [ 109 Worte ]

[COM.lounge: Christian Scholz] EuroPython 2006 videos: Keynote by Alan Kay, part 1 «This is the first episode with footage from the EuroPython Conference 2006 in Geneva. It features the first part of the Keynote by Alan Kay, inventor of Smalltalk and now working on the $100 laptop which the keynote is about.»
[ rss20 Feed ] http://www.pythonware.com/daily/rss2.xml [ Verweis - Nachrichtenkanal ]

[ xhtml ] http://www.pythonware.com/daily/index.htm#115314663894812543 [ Verweis - Eintrag ]

Mon, 17 Jul 2006
[Cheese Shop] dirmon 1 [ 11:51 Uhr ] [ 105 Worte ]

Direkt auf das eigene System kopieren: http://home.comcast.net/%7Efaulkner612/programming/python/dirmon.py

[Cheese Shop] dirmon 1 «Directory Monitoring Daemon class»

Feed the Monitor class directory names and functions to be called when something happens to a file in one of those directories, then call an instance to enter a mainloop.
[ rss20 Feed ] http://www.pythonware.com/daily/rss2.xml [ Verweis - Nachrichtenkanal ]

[ xhtml ] http://www.pythonware.com/daily/index.htm#115309766079001556 [ Verweis - Eintrag ]

[Python Cookbook] Dynamically determine execution path of a file [ 11:48 Uhr ] [ 170 Worte ]

[Python Cookbook] Dynamically determine execution path of a file «I ran into a dilemma when writing a PyUnit test case that read in sample data from a text file in the same package as the test. How I could successfully reference the relative location of the file changed depending on how I executed the code. So for example, when I ran the unit test in isolation, it passed, but when I ran the test as part of a suite, it failed, because the code was being executed from a different location. I needed to find a way to determine the relative location of the file at run-time no matter how it was executed.»
[ rss20 Feed ] http://www.pythonware.com/daily/rss2.xml [ Verweis - Nachrichtenkanal ]

[ xhtml ] http://www.pythonware.com/daily/index.htm#115309769047823637 [ Verweis - Eintrag ]

<<  0 1 2 3 4 5 6 7 8 9 10 11 12 13 [14] 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35  >>


Inhalte unterliegen dem Copyright von L. Humbert.
Creative Commons License
Die Inhalte stehen unter einer Creative Commons License.