Other articles

  1. Mixed encoding content converter



    $ mpv 江南-93157.ape
    Playing: 江南-93157.ape
     (+) Audio --aid=1 (ape)
    File tags:
     Artist: ÁÖ¿¡½Ü
     Album: ½­ÄÏ
     Genre: R&B
     Title: ½­ÄÏ
     Track: 2
    AO: [pulse] 44100Hz stereo 2ch s16 …
    read more
  2. Placement new

    For advanced C++ programmers, placement new is nothing special. It can initialize a pre-allocated memory block. However, placement new is more than what you think. It accpets an arbitrary number of arguments of arbitrary types.

    See the following code snippet:

    #include <iostream>
    #include <string>
    #include <vector>
    void* operator new(size_t …
    read more