I'm a developer of 企鹅FM. Our app constantly report ClassCastException on ArrayMap, some stack trace looks like this.
Intent i = new Intent(ACTION);
i.putExtra(KEY, VALUE); // crashes here| #! /usr/bin/env bash | |
| #author taylorcyang@tencent.com | |
| #download project | |
| git clone https://github.com/Bilibili/ijkplayer.git | |
| #enter work directory | |
| cd ijkplayer |
| #! /usr/bin/env bash | |
| #author taylorcyang@tencent.com | |
| #def | |
| IJK_PROJECT_DIR=ijkplayer | |
| SO_LIB_PATH=android/ijkmediaplayer/libs/armeabi-v7a | |
| PROJECT_LIBS_DIR=../libs/armeabi | |
| #! /usr/bin/env bash | |
| #-------------------- | |
| # Standard options: | |
| export COMMON_FF_CFG_FLAGS= | |
| # export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --prefix=PREFIX" | |
| # Licensing options: | |
| export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --disable-gpl" | |
| # export COMMON_FF_CFG_FLAGS="$COMMON_FF_CFG_FLAGS --enable-version3" |
| buildscript { | |
| repositories { | |
| jcenter() | |
| } | |
| dependencies { | |
| classpath 'com.android.tools.build:gradle:2.2.0' | |
| classpath 'com.neenbedankt.gradle.plugins:android-apt:1.4' | |
| // NOTE: Do not place your application dependencies here; they belong | |
| // in the individual module build.gradle files |
| # 30 minutes Lisp in Ruby | |
| # Hong Minhee <http://dahlia.kr/> | |
| # | |
| # This Lisp implementation does not provide a s-expression reader. | |
| # Instead, it uses Ruby syntax like following code: | |
| # | |
| # [:def, :factorial, | |
| # [:lambda, [:n], | |
| # [:if, [:"=", :n, 1], | |
| # 1, |
I'm a developer of 企鹅FM. Our app constantly report ClassCastException on ArrayMap, some stack trace looks like this.
Intent i = new Intent(ACTION);
i.putExtra(KEY, VALUE); // crashes here| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| from __future__ import print_function | |
| ''' | |
| analyze /proc/<pid>/smaps | |
| doc | |
| http://liutaihua.github.io/2013/04/25/process-smaps-analysis.html |
| ADB=${ANDROID_HOME}/platform-tools/adb | |
| HPROF_CONV=${ANDROID_HOME}/platform-tools/hprof-conv | |
| # customized functions | |
| # dump droid heap | |
| function droid_hd() { | |
| PACKAGE_NAME=$1 | |
| TIME=$(date +"%Y%m%d_%H%M%S") | |
| FILE_NAME="${PACKAGE_NAME}-${TIME}-heap.hprof" |
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| # depends on | |
| # pip install pillow numpy | |
| from PIL import Image | |
| import numpy as np | |
| import sys |