数组的值不能重复
作者归档:杨龙
r.js打包方法&七牛上传
r.js打包方法
http://www.cnblogs.com/breakdown/p/3503556.html
node r.js -o build.js optimize=uglify
— 七牛上传
qshell fput xxxxxx reward/dist/js/util.min.js reward/dist/js/util.min.js true
Usage: qshell fput <Bucket> <Key> <LocalFile> [<Overwrite>] [<MimeType>] [<UpHost>]
Form upload a local file
android去除标题栏
跟踪
android:theme="@style/AppTheme"
进入修改style.xml文件,这里还可以修改颜色,还可以全屏
<resources>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar">
<!-- Customize your theme here. -->
<!--<item name="colorPrimary">@color/colorPrimary</item>-->
<!--<item name="colorPrimaryDark">@color/colorPrimaryDark</item>-->
<!--<item name="colorAccent">@color/colorAccent</item>-->
<item name="android:windowFullscreen">true</item>
</style>
</resources>
Couldn’t load memtrack module (No such file or directory)
Only the original thread that created a view hierarchy can touch its views.
android.os.NetworkOnMainThreadException
在php中如何快速交换数组元素的值
最简单的办法:
list($source[2], $source[1]) = array($source[1], $source[2]);
本文出自 “凡星的技术博客” 博客,请务必保留此出处http://ustb80.blog.51cto.com/6139482/1030880
solr内存配置,solr时区配置
配置文件位置:/etc/default/solr.in.sh
配置内存
SOLR_JAVA_MEM=”-Xms1g -Xmx6g”
这两个配置分别为最小内存和最大内存
配置時區
SOLR_TIMEZONE=”Asia/Shanghai”
其他配置
SOLR_PID_DIR=”/mnt/www/solr”
SOLR_HOME=”/mnt/www/solr/data”
LOG4J_PROPS=”/mnt/www/solr/log4j.properties”
SOLR_LOGS_DIR=”/mnt/www/solr/logs”
SOLR_PORT=”8983″
Increased maximum number of open files to 10032 (it was originally set to 1024).
redis崩溃
git filter-branch 瘦身 爽歪歪
git filter-branch –tree-filter ‘rm release/xxxx-201*’ HEAD