Open Android syste-wide trace file

  1. open chrome browser and go to “chrome://tracing”
  2. in the tracing page, click load and select the systrace generated html file

Podfile 新格式

老的Podfile格式install时提示如下错误:

The dependency AFNetworking (~> 2.6)  is not used in any concrete target

官方推荐新格式:

platform :ios, '8.0'
target 'MyApp' do
  pod 'AFNetworking', '~> 2.6'
end

ffprobe 查看媒体信息

ffprobe -v quiet -print_format json -show_format -show_streams #source

ref:http://blog.creke.net/803.html

Munging data four bytes at a time

void Munge32( void *data, uint32_t size ) {
    uint32_t *data32 = (uint32_t*) data;
    uint32_t *data32End = data32 + (size >> 2); /* Divide size by 4. */
    uint8_t *data8 = (uint8_t*) data32End;
    uint8_t *data8End = data8 + (size & 0x00000003); /* Strip upper 30 bits. */
    
    while( data32 != data32End ) {
        *data32++ = -*data32;
    }
    while( data8 != data8End ) {
        *data8++ = -*data8;
    }
}

Web BT on Ubuntu

add-apt-repository ppa:deluge-team/ppa
sudo apt-get install deluged deluge-web

http://IP:8112,初始密码是deluge

需要在服务器侧运行deluge-web