Now something intechnical.. since i wrote most times something about php, css or mysql ;-)
I just got back this week from my honeymoon at Buenos Aires and i have to say, it was really lovely there. Living in the City, talking to people and dancing was really helping shutting down the normally technical problems ..
I should add i did not speak spanish, so i had to learn some words to make my way through, although they all speak english and there is always a way to comunicate, even without words...
Finally i managed to ask how much something costs in spanish, but the problem was, i did not understand what they were answering.. *lol*.. so i had to learn some new techniques to find it out without using english and without looking like someone who is not able to speak spanish...
But i managed and now i am going to take some lessons so i may do more than just ask a few questions.. I think this is one reason to travel to a foreign country, to learn about their culture, their language, their life... it's not always different then ours, but it's definetly fun!
Of course i also had some Troubles to realize that i am married now.. i mean nothing changed except now i have a wife... i mean a real Wife... well, let's take one step after another.. tomorrow i will realize that we will have to get some childrens some day.. ;-))
Wednesday, February 15, 2006
get rid of the white flashes when loading a flash
Everyone knows it... the little white flash when loading a flash into your website... and it get really on our nerves....
Well finally i managed to find a very little trick.. it is so easy i feel ashamed i did not come up with it further..
just add the wmode="transparent" to the object (and of course the same to the embed part) and you have no more flashes. Of course you should check if the background is working accordingly and does not add aditional problems..
Well finally i managed to find a very little trick.. it is so easy i feel ashamed i did not come up with it further..
just add the wmode="transparent" to the object (and of course the same to the embed part) and you have no more flashes. Of course you should check if the background is working accordingly and does not add aditional problems..
Friday, January 20, 2006
PHP5 parent:: Object
Working with PHP5 getting you used to work with real Object Orientatet Classes. Extended Classes or using the parent:: Object in such an extended Class is nothing new.
But i did not know (till now) that it is possible to jump over an extended Class to that parent.
To explain what i mean we have this Example:
But what if you need an extend on fooA, but you don't want to run through it, you just want to run through fooB->bar and then foo->bar, without fooA?
I thought there is no solution for it, but there is! If you just change the function in fooB, where it says: "parent::bar();" to "foo::bar();" it will jump directly to foo, without fooA and it is not static as you may first think!
The Result will display: "fooBfoo: 2"
But i did not know (till now) that it is possible to jump over an extended Class to that parent.
To explain what i mean we have this Example:
class foo {In this example we have 3 Classes, each extended by the next. Normally calling $oFoo->bar(); will output: "fooBfooA:foo: 3" which indicates that it starts with the latest class fooB, then runs through fooA to foo.
protected $iFoo = 0;
protected function bar() {
$this->iFoo++;
echo "foo: {$this->iFoo}
";
}
}
class fooA extends foo {
protected function bar() {
$this->iFoo++;
echo 'fooA:';
parent::bar();
}
}
class fooB extends fooA {
public function bar() {
$this->iFoo++;
echo'fooB';
parent::bar();
}
}
$oFoo = new fooB();
$oFoo->bar();
But what if you need an extend on fooA, but you don't want to run through it, you just want to run through fooB->bar and then foo->bar, without fooA?
I thought there is no solution for it, but there is! If you just change the function in fooB, where it says: "parent::bar();" to "foo::bar();" it will jump directly to foo, without fooA and it is not static as you may first think!
The Result will display: "fooBfoo: 2"
Subscribe to:
Posts (Atom)