Author Archives: Shining Star

A few useful develop tools

Design & implement a website: Bootstrap: http://getbootstrap.com/ A web-based UI for controlling MySQL database Lazy Mofo: http://lazymofo.wdschools.com/ Push notifications: Pushwoosh: http://docs.pushwoosh.com/ Cross platform app design: Corona: https://coronalabs.com/products/corona-sdk/ another one is Monkey, not used. W3C school for web design: http://www.w3.org/Consortium/ Advertisements

Posted in Uncategorized | Leave a comment

[leetcode] Substring with Concatenation of All Words

You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in wordsexactly once and without any … Continue reading

Posted in coding | Leave a comment

Matlab Basic

1. Sub matrix: 1.提取大矩阵的一列、一行元素: 一列元素:  A(:,j)表示提取A矩阵的第j列全部元素 一行元素:  A(i,:)表示提取A矩阵的第i行元素, A(i, j)表示提取A矩阵的第i行第j列的元素。 2.提取多行多列元素 多行元素:  A(i:i+m,:)表示提取A的第i行到第i+m行的元素。 多列元素:  A(:,j:j+n)表示提取A的第j列到第j+n列的元素。 提取块:     A(i:i+m, j:j+n)表示的是mxn的一个子块的元素。 2. Delete Data: clear;  (clear all data) clear m; (just delete m) 3. Model comparison: http://blog.sina.com.cn/s/blog_628033fa0100kjjy.html RMSE (root mean squared … Continue reading

Posted in Uncategorized | Leave a comment

Odroid Freq Configure

Verified on XU+E //CPU FILE_CPU_CURRENT_SCALING_FREQ = “/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq”; FILE_CPU_SCALING_FREQ = “/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed”; FILE_CPU_SCALING_GOVERNER = “/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor”; FILE_CPU_AVAILABLE_FREQS = “/sys/devices/system/cpu/cpufreq/iks-cpufreq/freq_table”; FILE_CPU_AVAILABLE_GOVERNERS = “/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors”; //GPU FILE_GPU_CURRENT_FREQ = “/sys/devices/platform/pvrsrvkm.0/sgx_dvfs_cur_clk”; FILE_GPU_MIN_FREQ = “/sys/devices/platform/pvrsrvkm.0/sgx_dvfs_min_lock”; FILE_GPU_MAX_FREQ = “/sys/devices/platform/pvrsrvkm.0/sgx_dvfs_max_lock”; FILE_GPU_AVAILABLE_FREQS = “/sys/devices/platform/pvrsrvkm.0/sgx_dvfs_table”; //Mem FILE_MEM_CURRENT_FREQ = “/sys/devices/platform/exynos5-busfreq-mif/devfreq/exynos5-busfreq-mif/cur_freq”; FILE_MEM_MIN_FREQ = “/sys/devices/platform/exynos5-busfreq-mif/devfreq/exynos5-busfreq-mif/min_freq”; FILE_MEM_MAX_FREQ … Continue reading

Posted in Uncategorized | Leave a comment

NPB benchmark on Linux

NAS Parallel Benchmarks http://www.nas.nasa.gov/publications/npb.html Usually use in multi-core system to compare performance. It supports three implementations, and works on Linux and Android. If the time is limited to wait for the official version, another way is to download Phoronix Test … Continue reading

Posted in Uncategorized | Leave a comment

Android Benchmarks

1. 3DMark – The Gamer’s Benchmark:  https://play.google.com/store/apps/details?id=com.futuremark.dmandroid.application 2.Multi-thread:  (Not tried) 2.1 CompuBench:  http://compubench.com/result.jsp 2.2 Linpack:   https://play.google.com/store/apps/details?id=com.greenecomputing.linpack&hl=en 2.3 RGBench:  http://www.walkingrandomly.com/?p=3079 3. Benchmark suits (includes a group of benchmarks focus on different part) 3.1 GeekBench (cross multiple platform): http://www.primatelabs.com/geekbench/ 3.2 Antutu, show some score 3.3 … Continue reading

Posted in Uncategorized | Leave a comment

ARM big.Little Coherency

http://www.arm.com/files/pdf/big_LITTLE_Technology_the_Futue_of_Mobile.pdf, http://www.arm.com/products/system-ip/interconnect/corelink-cci-400.php   ”Cache Coherent Interconnect” – in this case the ARM CoreLink™ CCI-400 interconnect IP. The system is completed by the CoreLink GIC-400, which provides dynamically configurable interrupt distribution to all the cores. the bus interfaces of Cortex-A15 and … Continue reading

Posted in Uncategorized | Leave a comment