speich.net logo

Tutorial Part 1: REST with Dojo and PHP

February 13th, 2010 Simon No comments

I only started recently to dig into REST, so I’m in no way an expert in this field. There are not that many tutorials on the internet, and the ones I found were only of limited help. They all seemed to miss something or, rather, I missed something. So I decided to write my own tutorial about my findings to help others that might have the same problems. On the client side, I’ll use the Dojo Toolkit, on the server side, PHP.

I will focus mainly on providing and explaining some working code examples including server PHP code. At the end of this article you can find all code as a downloadable zip-file. As an introduction to REST, read some of the tutorials linked at the end of this article, because I’m not going to repeat some of the things you can read there.

Read more…

Categories: JavaScript, PHP Tags: ,

Satellitenempfänger Technisat Digit HD8-S

December 5th, 2009 Simon No comments

So sollte Technik sein: Anschliessen, Einschalten und Benützen.

Im Falle des Satellitenreceivers HD8-S von Technisat ist dies tatsächlich auch der Fall. Die Benutzerführung ist einfach und intuitiv. Dies ist keine Selbstverständlichkeit, da als Eingabegerät ja nur eine Fernbedienung zur Verfügung steht. Das Einzige was mich bis jetzt gestört hat, ist dass es keine Taste “zu den Favoriten hinzufügen” gibt, sondern man umständlich aus einer Liste auswählen muss.

Der Empfänger verfügt über eine Aufnahmemöglichkeit (PVR = Personal Video Recorder) auf eine externe Festplatte via USB. Dies Funktioniert bestens, und ermöglicht zeitversetztes Fernsehen (aber nicht gleichzeitiges Anschauen). Leider sind Aufnahmen nur auf eine mit dem Dateisystem FAT32 formatierte Harddisk möglich. Da Windows XP keine Unterstützung für das Formatieren von Platten mit 1 TB bietet, musste ich zuerst das Werkzeug fat32formatter installieren. Damit war’s dann ein Kinderspiel.

Update 31.01.2010:  Das einzig wirklich Störende ist, dass das Vorwärts- / Rückwärtsspulen bei 1080i nicht recht funktioniert. Das Bild steht still und springt nur ab und zu weiter, also alles andere als flüssiges und schnelles Spulen. Bei niedrigeren Auflösungen ist dies aber kein Problem.

Read more…

Categories: Übrige Tags: ,

Mozilla Testcase for DHMTL Performance

October 18th, 2009 Simon No comments

It started 2003 as a little project to learn the basics of 3D-programming and with a question on how to improve performance in the mozillaZine Forums. I was asked to file a bug (Bug 229391) and to create the Mozilla Testcase Slow (3D) DHTML performance compared to IE for it . From there it made it into the performance suites Dromaeo, SunSpider and The Betanews Comprehensive Relative Performance Index (CRPI) to measure browser speed.

The test is also mentioned in the article “Surf-Triathlon – Geschwindigkeit und Speicherverbrauch aktueller Browser” in the German computer magazine c’t from 19/2008 on page 182.

Categories: JavaScript Tags:

PHP, und SQLite mit kurzen oder langen Spaltennamen

September 6th, 2009 Simon No comments

Je nach Version von SQLite werden Tabellenspalten nach einer SELECT Abfrage mit oder ohne Tabellennamen zurückgegeben. Zum Beispiel liefert die Abfrage:

SELECT Spalte FROM Tabelle t

die Spalten als t.Spalte oder als Spalte. Dies kann mit der PRAGMA Abfrage

pragma short_column_names = 0

auf t.Spalte gesetzt

oder mit

pragma short_column_names = 1

auf nur Spalte gesetzt werden (Stand PHP5.3).

Categories: PHP Tags:

Dojo BorderContainer Demo

January 23rd, 2009 Simon No comments

Demonstration eines mit der Bibliothek Dojo erstellten Layouts, in welchem die Dijit-Klassen BorderContainer, TabContainer und ContentPane zur Anwendung gelangen.

Categories: JavaScript Tags:

Integration von phpDocumentor in Eclipse oder Aptana

July 25th, 2008 Simon No comments

phpDocumentor kann direkt aus Aptana oder Eclipse ausgeführt werden. Das zu dokumentierende Projekt muss dazu geöffnet sein.

1. ‘External Tools’ Dialog aufrufen über ‘Run -> External Tools -> External Tools…’

Read more…

Categories: PHP Tags: ,

Visualisierung mit jsviz

September 14th, 2007 Simon No comments

Beispiel einer Visualisierung von Datenbankvariablen mit der JavaScript Bibliothek jsviz. Da die Klasse ForceDirectedLayout nur Linien, aber keine Pfeile als Verbindung zwischen zwei Knoten zeichnet, musste die Bibliothek für das Projekt NAFIDAS des Schweizerischen Landesforstinventars LFI um diese Funktion erweitert werden (siehe auch die Google Groups von jsviz).

  • Knoten des Graphen können mit der Maus durch Klicken und Ziehen verschoben werden.
  • Doppelklick auf einen Knoten blendet Info aus/ein.
Categories: JavaScript Tags:

© 2009 speich.net, Konzept und Programmierung Simon Speich.

Die Artikel auf dieser Seite laufen mit WordPress. Theme by NeoEase