| |||||
| Auteur | Sujet : blabla@web |
|---|---|
koskoz They see me trollin they hatin | Reprise du message précédent :
--------------- |
Publicité | Posté le 27-07-2010 à 13:55:01 ![]() ![]() |
flo850 moi je | le parent se charge de la sauvegarde, et la classe fille de son code spécifique perso , je ne factoriserai pas plus que ce que tu as fait ( mais je ferai peut etre une fonction updateAdvertiserId() ) Message cité 1 fois Message édité par flo850 le 27-07-2010 à 13:56:59 |
0x90 → | Euh, le parent::save(); en double il a une raison ? Message édité par 0x90 le 27-07-2010 à 13:57:25 --------------- Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck. |
skeye |
--------------- Can't buy what I want because it's free - |
skeye |
[edit]
Message édité par skeye le 27-07-2010 à 13:58:21 --------------- Can't buy what I want because it's free - |
flo850 moi je | ce 'est pas la même , si j'ai bien compris, a chaque fois il mets a jour un champ différent en base de données avec des valeurs spécifique |
skeye |
--------------- Can't buy what I want because it's free - |
koskoz They see me trollin they hatin | Eheh, j'étais sûr que vous alliez tiquer pour le parent::save() --------------- |
flo850 moi je |
ça me semble bizarre Message cité 1 fois Message édité par flo850 le 27-07-2010 à 14:00:42 |
koskoz They see me trollin they hatin |
--------------- |
Publicité | Posté le 27-07-2010 à 14:00:57 ![]() ![]() |
flo850 moi je |
|
koskoz They see me trollin they hatin |
--------------- |
koskoz They see me trollin they hatin |
--------------- |
gatsu35 Blablaté par Harko |
ton parent:save(), il est dans le if et dans le else, et faire
Arrête l'informatique... Message cité 3 fois Message édité par gatsu35 le 27-07-2010 à 15:46:07 --------------- Blablaté par Harko |
skeye |
--------------- Can't buy what I want because it's free - |
the real moins moins |
--------------- Hey toi, tu veux acheter des minifigurines Lego, non ? |
koskoz They see me trollin they hatin |
--------------- |
masklinn í dag viðrar vel til loftárása |
En l'occurrence, ici, si parent:save set $this->Id — ce qui semble être le cas — ben t'as ton test qui sera plus jamais exécuté puisqu'il dépend de la nullité de $this->Id. Donc le cas correct pour une extraction de parent:save serait
Ou alors modifier la signature de save() pour qu'il renvoie true ou false selon qu'il crée un nouvel objet ou pas
3e possibilité, save() prend un bloc pour une création et un bloc pour une édition:
Message cité 1 fois Message édité par masklinn le 27-07-2010 à 16:01:27 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
gatsu35 Blablaté par Harko |
--------------- Blablaté par Harko |
flo850 moi je |
|
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 27-07-2010 à 16:30:35 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Shinuza This is unexecpected |
Non.
Non. La bonne solution c'est celle que 0x90 suggère (la seconde), tu mémorises les coordonées de tes images en mémoire, et ensuite tu fais un test de collision sur la position de ton curseur. --------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
Taiche (╯°□°)╯︵ ┻━┻ |
--------------- Everyone thinks of changing the world, but no one thinks of changing himself | It is the peculiar quality of a fool to perceive the faults of others and to forget his own | Early clumsiness is not a verdict, it’s an essential ingredient. |
0x90 → |
Parce que si les coordonnées correspondaient au centre des pixels, alors quand tu fais un fill (d'un rectangle avec coordonnées entières), les bords du rectangle seraient flous. Il faut choisir entre avoir les stroke et les fill de flou, ils ont préféré les stroke Si _vraiment_ tu préfères avoir tes coordonnées au centre, tu translate au tout début de (0.5, 0.5) et wala. Message édité par 0x90 le 27-07-2010 à 19:42:25 --------------- Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck. |
the real moins moins | alors là, ça sent l'explication intelligente et pleine de sens, mais je comprend pas --------------- Hey toi, tu veux acheter des minifigurines Lego, non ? |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
koskoz They see me trollin they hatin |
nraynaud lol |
--------------- trainoo.com, c'est fini |
koskoz They see me trollin they hatin |
Shinuza This is unexecpected | Première fois que je vois l'embed html5 en action --------------- Mains power can kill, and it will hurt the entire time you’re dying from it. |
skeye |
--------------- Can't buy what I want because it's free - |
uriel blood pt.2 |
nraynaud lol |
--------------- trainoo.com, c'est fini |
skeye |
--------------- Can't buy what I want because it's free - |
0x90 → |
Message cité 1 fois Message édité par 0x90 le 28-07-2010 à 12:50:16 --------------- Me: Django Localization, Yogo Puzzle, Chrome Grapher, C++ Signals, Brainf*ck. |
the real moins moins |
--------------- Hey toi, tu veux acheter des minifigurines Lego, non ? |
the real moins moins |
--------------- Hey toi, tu veux acheter des minifigurines Lego, non ? |
the real moins moins | Y'a du monde qui bosse dans un environnement Java ici, ou bien ?
--------------- Hey toi, tu veux acheter des minifigurines Lego, non ? |
Publicité | Posté le ![]() ![]() |






