Recherche avancée

Médias (0)

Mot : - Tags -/masques

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

Autres articles (72)

Sur d’autres sites (13368)

  • Révision 17738 : parametre retour facultatif dans ask_php_auth (utilisé dans l’extension forum)

    20 avril 2011, par cedric -
  • The Fastest Way To Learn Assembly Language

    4 septembre 2011, par Multimedia Mike — Programming

    I saw an old StackOverflow thread linked from Hacker News asking how to whether it’s worthwhile to learn assembly language and how to go about doing so. I’d like to take a stab at the last question.

    The fastest way to learn an assembly language is to reverse engineer something. Seriously, start with something that you know (like a C program that you wrote yourself) and take it apart. The good news is that assembly language is very simple and you will get a lot of practice in a short amount of time with RE.

    So here’s how you do it :

    • Take a simple program in C and build it with your tool chain, whether GNU gcc on Linux, Xcode on Mac, or MSVC on Windows. Also, make sure to turn on debugging symbols during compilation (this will help annotate the disassembly).
    • On Linux, use objdump : objdump -d program_binary
    • On Mac, use otool : otool -tV program_binary
    • On Windows : I admit, I’m a bit fuzzy on this one– I’m quite certain there’s a standard MSVC tool that prints the assembly listing.

    Anyway, look at the disassembled code and find the main() function. Work from there. Whatever the first instruction is, look it up on Google. You’ll likely find various CPU manuals that will explain the simple operation of the instruction. Look up the next unfamiliar instruction, then the next. Trust me, you’ll become an ASM expert in no time.

    Good luck !

  • create thumbnails on laravel with ffmpeg

    30 octobre 2016, par rafitio

    i want to create a thumbnails on video that uploaded, i’ve been using mmpeg, i’ve been try this code but it not working yet

    this is my code on controller

    use ffmpeg\FFMPEG;

       public function store(Request $request)
    {

       $news = new News;

       $filename = $request->file('attachment')->getClientOriginalName();
       $request->file('attachment')->storeAs('attachment', $filename);

       $thumbnails = new FFMPEG;
       $thumbnails->getThumbnails($filename, 'thumbnails', 5);
    }  

    i’ve been also setting on config/app.php like this

    LinkThrow\Ffmpeg\Provider\FfmpegServiceProvider::class, //providers

    'FFMPEG' => LinkThrow\Ffmpeg\Facade\FfmpegFacade::class, //aliases

    the error is

    Class ’ffmpeg\FFMPEG’ not found

    is there need to setting up on config/ffmpeg.php too ?