Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (48)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • L’utiliser, en parler, le critiquer

    10 avril 2011

    La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
    Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
    Une liste de discussion est disponible pour tout échange entre utilisateurs.

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

Sur d’autres sites (6558)

  • Anomalie #4717 : Erreurs nombre d’argument des filtres

    14 avril 2021, par jluc -

    Le compilateur peut vérifier l’arité min et max d’une fonction PHP :

    function getCountOfNotOptionalParameters(ReflectionFunction $refl) 
        $i=0 ;
        foreach( $refl->getParameters() as $param)
            if ($param->isOptional()) break ;
            $i++ ;
        
        return $i ;
    
    $reflection = new ReflectionFunction(’filtre_implode_dist’) ;
    $min = getCountOfNotOptionalParameters($reflection) ;
    $max = $reflection->getNumberOfParameters()."\n" ;
    echo "il faut mini $min arguments et au maximum $max" ;
    
  • Anomalie #4717 : Erreurs nombre d’argument des filtres

    8 avril 2021, par b b

    C’est amha le prix à payer de la compatibilité avec des versions de PHP récentes, je ne suis pas certain qu’on doive faire le grand écart pour que SPIP soit plus tolérant que son moteur (PHP) au risque d’avoir à prévoir plein de cas foireux dans SPIP, mais si on peut le faire sans trop d’effort et de lourdeur de code, gogogo bien sûr :)

  • SDL and iOS main() methods conflict

    15 novembre 2016, par 谢小进

    I have learnt that SDL project need main() method to run loop, code like this :

    #include "SDL.h"

    int main(int argc, char *argv[])
    {
       if (SDL_Init(SDL_INIT_VIDEO) < 0) {
           printf("%s\n", SDL_GetError());
       }

       SDL_Window *window = SDL_CreateWindow(NULL, 0, 0, 320, 640, SDL_WINDOW_OPENGL | SDL_WINDOW_FULLSCREEN);
       SDL_Renderer *renderer = SDL_CreateRenderer(window, 0, 0);

       SDL_Surface *bmp_surface = SDL_LoadBMP("space.bmp");
       SDL_Texture *space = SDL_CreateTextureFromSurface(renderer, bmp_surface);
       SDL_FreeSurface(bmp_surface);

       SDL_RenderCopy(renderer, space, NULL, NULL);
       SDL_RenderPresent(renderer);

       int done = 0;
       while (!done) {
           Uint32 startFrame = SDL_GetTicks();
           SDL_Event event;
           while (SDL_PollEvent(&event)) {
               if (event.type == SDL_QUIT) {
                   done = 1;
               }
           }
           Uint32 endFrame = SDL_GetTicks();

           Sint32 delay = MILLESECONDS_PER_FRAME - (endFrame - startFrame);
           if (delay < 0) {
               delay = 0;
           } else if (delay > MILLESECONDS_PER_FRAME) {
               delay = MILLESECONDS_PER_FRAME;
           }
           SDL_Delay(delay);
       }

       SDL_DestroyTexture(space);
       SDL_Quit();

       return 0;
    }

    And iOS project also need main() method, code like this :

    #import <uikit></uikit>UIKit.h>

    #import "AppDelegate.h"

    int main(int argc, char * argv[])
    {
       @autoreleasepool {
           return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
       }
    }

    Now I need integrate SDL library to an iOS project, but there need two main() methods. How ? If yes, can anybody show some more codes ? Thanks.