November 19, 2009 by spierala
Hello,
today I became nearly crazy by trying to embed a googlemap in a silverstripe template. It was usually quite easy even with typo3…
I tried this with the help of jquery:
http://marcgrabanski.com/article/jquery-google-maps-tutorial-basics
Standalone in a single html page the code worked perfectly. Then in my silverstripe generated site the map never appeared and I got javascript errors in firefox like these:
Error: google.maps is undefined
GMap2 is not defined
Then i saw another interesting thing: The map appeared properly in IE! after searching nearly the whole Internet I found this post in the silverstripe forums that explained that there is a problem with the doctype used by silverstripe generated html files…
The post´s solution:
remove the first line on the default template of silverstripe:
<?xml version=”1.0″ encoding=”UTF-8″?>
silverstripe community seems to be great. you never code alone!
cheers,
flo
Tags: googlemaps, javascript, Silverstripe
Posted in Silverstripe, Uncategorized | 1 Comment »
November 16, 2009 by spierala
hello folks,
stilbezirk launched its new blog. it´s all about video in the web, collecting all interesting trends of web video like moderated web-sites and so on. of course i used wordpress to create the blog. you can check it out here: stilbezirk blog
have fun,
flooooo
Tags: stilbezirk
Posted in Uncategorized | Leave a Comment »
November 22, 2008 by spierala
Hello folks,
I was searching the web for an example you could call MVC for dummies… What I found were mostly complex examples decorating the basic MVC relevant code with a lot of other stuff, which makes it difficult to focus on and understand the pure MVC thing.
Therefore i decided to code a very basic and minimalistic MVC example to share it with you. The result is a tiny slideshow application that allows you to navigate through a group of pictures. Very easy thing nobody would ever use a MVC pattern for…, but i hope this simple MVC will be a good starting point for someone trying to understand the Model View Controller Design Pattern.
Here you can watch a online demo (you can switch to View Source Mode via right-click). View Source Mode gives you the possibility to download the source files.

MVC SlideShow Application

Project Structure
By exploring the Actionscript Classes of the slideshow application you can easily understand the distribution of tasks within the the MVC pattern:
Model: holds the data of the slideshow (e.g. the array of image filepaths or the current Image Url). The Model contains functions to manipulate models Data and dispatches update-events as soon as its data changes.
View: holds references of both Model and Contoller. The View connects to the data of the Model as soon as it receives notification by the Model (in this case by listening for the Model´s update-events). The View accepts user interactions (here of the back and next buttons) and can call the corresponding functions of the Controller.
Controller: Controller contains functions which are called directly by the View or are triggered by Model´s update-events. The controller contains the main logic of the application.
Sounds not too difficult… and with this easy MVC example you get the quintessence of MVC on a plate.
Tags: Actionscript, Design Pattern, Flash, Model View Contoller, MVC
Posted in Design Patterns | 11 Comments »
November 10, 2008 by spierala
Hello,
i use the chance to show here some flash work that I´m developing at the agency stilbezirk.
I´m working in this company now for nearly half an year. This company is the main reason why there is no time for pictionary anymore
But it´s lots of fun there! Interesting jobs and a great team!
One of the biggest projects so far was www.welivit-newenergy.de. During this project I had my first experiences with typo3
It´s ok but I prefer to code Actionscript… Fortunately there are some swfs that made life interesting
check it out and click the screenshots to see the swfs…

solarParks

solarPark Details

History TimeLine
Posted in stilbezirk work | Leave a Comment »
July 13, 2008 by spierala
Hallo Fahrradfreunde,
die Fahrradstadt Freiburg..
Radfahren in Freiburg kostet 10 Euro. So vermittelt es zumindest diese Quittung, die ich mir in meinen letzten Freiburger Tagen eingehandelt habe.
Fahrradfahrer in der Freiburger Innenstadt haben ein schweres Los. Große Teile der Innenstadt sind Fußgängerzone. Paradoxerweise rasen Straßenbahnen durch diese “Fußgängerzonen”, die insbesondere durch rücksichtlose Fahrweise auffallen. Fahrradfahrer hingegen werden nicht geduldet und hemmungslos durch die örtlichen Behörden verfolgt. Auch das Abstellen von Fahrrädern wurde im Zentrum der Innenstadt Freiburgs verboten. Die Fahrradstadt Freiburg gibt es nicht. Das Ausweichen auf öffentliche Verkehrsmittel ist teuer. Schade eigentlich. Freiburg ist eine wunderbare Stadt, doch Fahrradfahren ist dort keine Freude. Dabei galt Freiburg doch immer als “grüne” Stadt…

Fahrradstadt Freiburg
Tags: Fahrrad, Freiburg, Rad
Posted in Uncategorized | 5 Comments »