gruene.de finally online

filled under:
March 20, 2009 

Three weeks of hard work are over and we’re done. http://gruene.de is online since 9am today and the feedback seems overall to be positive though of what I’ve heard and read:

http://search.twitter.com/search?q=gruene.de
http://meedia.de/nc/details/article/wahljahr-09–grne-setzen-web-mastbe_100018828.html

I guess we’ll polish some things in within the next few weeks but in general I like it. However – I’ve slept only 4 hours tonight, after 18 hours of final spurt and still have another time critical task on my list …

coffee!

tags:

work around for zend validate’s markAsError respectively addError

filled under:
February 5, 2009 

Yesterday I ran into a problem with zend form and zend validate which was quite confusing. I wanted to check if a multiCheckbox has less or equal 2 selections. I really thought there would be some “shipped” validator but there isn’t. Then I’ve tried to write my own validator for that purpose, but Zend Validate didn’t pass the MultiCheckbox values as an array but as strings and I wasnt in the mood to hack the Zend “core” itself. Then I tried to use addError(), markAsError() or set _errorsExists explicit but that didn’t work either, as described here. Maybe I am blind and there is an much easier way … but the following works quite fine for me.

  1. Create an Validator which always fails.
  2. Check right after the isPost() condition if “your condition” matches.
  3. Assign the “will-always-fail” validator to your element and you’re done.
// save as 'Zend/Validate/CustomError.php
require_once 'Zend/Validate/Abstract.php';

class Zend_Validate_CustomError extends Zend_Validate_Abstract  {

    const SOME_ERROR = 'someError';

	// configure to whatever you like, or override it with setMessage()
    protected $_messageTemplates = array(
        self::SOME_ERROR => "is not valid"
    );

	// sets the element as invalid
    public function isValid($value)
    {
        $valueString = (string) $value;
        $this->_setValue($valueString);
		$this->_error();
        return false;
    }

}

And in your form controller add right after the isPost() condition:

if(sizeof($_POST['yourelement'])>2) {
	$customError = new Zend_Validate_CustomError();
	$customError->setMessage('You must select less than 2');
	self::getElement('yourelement')->addValidator($customError);
}
tags:

daily madness

filled under:
September 24, 2008 

I got up to late today and my ticket list is ways to long plus I need to finish some work for a client. However – the weather is fine today and I don’t feel stressed or something like that. I bought the new Roots Manuva and really like it. I had a “club-mate” and a delicious Panini toast (yummy) and I am very looking forward to have an after work beer – in about 2 hours ;)

At my work we usually do Java/JSP stuff but a few weeks I did a small PHP Job here and today I made the statistic in mysql. Actually nothing special but a welcome change if you imagine stupid JSP Struts tasks day in and day out and boring style-stasi requests from project managers and so on. But I am hip to the spirit and love computer work – or at least the creative-innovative part of it – the rest I try to reject and forget. Actually it is always the same – some project manager come up with a kick ass idea and then during the production it gets reduced to something really boring and forgettable unimportant whatsoever.

My coffee is empty [...] ^^

tags:

Stupid New Media

filled under:
September 17, 2008 

A Project manager recently emailed me about a non working link but without to mention which link he was taking about, so I replied: «What kind of link, in what situation – how can I reproduce it?» – After a short while he sent me a screen shot and said it would happen when he clicks on a flash file. (Why does he bother me? He has sent me the flash file and someone else created it.)

Nevertheless I am a very kind IT guy and explained the issue to him – So I wrote him that a link to an external resource always consist out of: 1) a protocol name, 2) an instruction for the browser that it is an external resource :// and finally 3) the domain name and last but not least the TLD and optional paths or parameters.

You may call me a fault finder but that’s something that happened not the first time. I guess this is a classic example of: stupid new media. People who are working in the new media should knew what a friggin link is – especially when they are Project Manager of a website!

medizin-online.de finally online now and hello north

filled under:
June 17, 2008 

It took us 3 weeks more than expected(stupid things like a missing index = up to 140 server-load) but since last week medizin-online.de it’s online. YAY! ;) However! Tomorrow we’ll go to Sylt and to be more precise to »List«, relaxing for 3-4 Days at the beach and maybe doing a day trip to Rømø. I really love the northern part of Germany – because that’s where I’m from and »List« is “the northernmost municipality in Germany, located on the North Sea island of Sylt close to Denmark in the district of Nordfriesland in the state of Schleswig-Holstein (wiki).

On the way back we’ll visit my family, especially my Grandma, Mom and Cousin, because I haven’t seen them for quite a while. I guess 2 Years for now and plus that: my Dear haven’t seen Hamburg yet! Haha, that’s a lot of things to do in just 5 Days. 3 Cities and approximately 1.000 km by car – but the beach will excuse everything ;)

tags:

just launched springer business media

filled under:
June 3, 2008 

It took a while but it’s finally online. Just abuse your mouse and click on the screenshot below to view the site. Nothing special and I’ve saw a few minutes ago I gotta fix some stuff but visually it’s ok and everthing seems to work. SBM is my first project I’ve done with struts. I do not like struts that much – actually it sucks IMHO but that’s just me ;)

springer business media screenshot