Other articles


  1. Mixed encoding content converter

    標題可能下的含糊不清,意義不明,且讓我娓娓道來

    昨天,我用youtube-dl從酷我音樂上載了林俊傑的江南下來。載下來的檔案是ape格式,我還是第一次看到,用VLC開一堆error,所以我就用mpv聽:

    $ 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
  3. 孤單北半球

    有一天在和幾個同學唸書,有人忽然提到孤單北半球這首歌。這首歌最早是誰唱的?眾說紛紜,不一而足。或曰林依晨,或曰歐得洋。上Google一查,原唱是歐得洋。長久以來,我和幾位同學一直以為是林依晨原唱,竟是個天大的笑話!先入為主的成見和憑空臆測使我們長久以來抱持錯誤的認知,若非網路上訊息的快速流通,孤單北半球這首歌的原唱 …

    read more

social