29. September 2009 | Ein Kommentar
Nachdem ich eine Weile erfolglos versucht habe mit PHP’s cURL POST-Requests via SSL zu senden – es trat stets der Fehler 26 “Failed to open/read local data from file/application” auf – habe ich nach einer Weile die (wieder einmal sehr simple) Antwort gefunden. Selbst wenn keine Daten per POST gesendet werden, muss folgende Option gesetzt sein:
curl_setopt($ch, CURLOPT_POSTFIELDS, '');
… dann klappt’s auch mit dem cURL POST via SSL.
THEMA: (Web) Development
10. September 2009 | keine Kommentare
In this little tutorial I will show you how to use the Python web framework Pylons and the Mako template library with the cross-browser JavaScript framework Ext JS.
I will explain how to set up a complex layout (this means an Ext.Viewport) and how to dynamically load its contents and further functionality.
First of all, you need to set up Pylons and a create a new project. Let’s name it “PylonsAndExt”. During setup, mako needs to be selected as our template engine. We do not require SQLAlchemy support…
THEMEN: (Web) Development, Ext JS, Pylons Web Framework
4. September 2009 | keine Kommentare
When I set up Pylons today in a virtual isolated Python environment on my Windows machine, I had a little fight with psycopg2 (which usually allows me to connect to my PostgreSQL database). At first, everytime I tried to “easy_install psycopg2″, I ended up with the error message “unable to find vcvarsall.bat”.
Luckily I found a solution to get the “unable to find vcvarsall.bat” problem fixed.
But unfortunately there was another error when I wanted paster to serve:
File “C:\Python26\lib\site-packages\psycopg2\__init__.py”,
line 60, in <module>
from _psycopg import BINARY, NUMBER, STRING, DATETIME, ROWID
ImportError: DLL load failed: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
Of course, reinstallation did not fix the problem. I thought the whole challenge might be caused by my virtual environment, because Jason Erickson (who publishes the psycopg Windows binaries) mentioned problems that would occur when using psycopg with virtual environments in his blog. But nothing I tried improved my situation.
Solution: Use an older version (2.0.10) of psycopg2!
Later on I found a post in Google Groups, where someone had a similar problem with psycopg2 under Windows. He figured out that there was something wrong with the build of psycopg2 (version 2.0.12) and that simply using an older version (for example 2.0.10) worked fine… That made my day!
THEMEN: (Web) Development, Pylons Web Framework
2. September 2009 | keine Kommentare
Im Rahmen meines Studium an der University of Western Sydney führe ich bis zum 17. September eine Online-Umfrage zum Thema “Web Analytics für Blogs” durch. Konkret soll anhand der Umfrage festgestellt werden, ob und wie Blogger Web Analytics betreiben, sowie herauszuarbeiten, wodurch die Entscheidung Web Analytics im Zusammenhang mit Blogs zu verwenden beeinflusst wird.

Hiermit rufe ich alle Blogger auf an der Online-Umfrage teilzunehmen und auf die Umfrage hinzuweisen.
Die Teilnahme dauert weniger als fünf Minuten und unter allen Teilnehmern wird eine Ausgabe von April Hodge Silver’s und Hasin Hayder’s WordPress 2.7 Complete (eBook) verlost!
Die Ergebnisse der auf der Umfrage aufbauenden Studie werden voraussichtlich im November auf der Website wopsta.org veröffentlicht, auf der es um Web Analytics für Blogs im Allgemeinen und die Entwicklung eines WordPress real-time Visitor Statistics Plug-in im Speziellen geht.
THEMEN: (Web) Development, MICT-Studium an der UWS, Online-Marketing, Persönliches, Verschiedenes