How to launch Android Emulator using command line

Cd to the directory of the emulator which contains the “emulator.exe”; run emulator -list-avds to list all the available avds’ name; run emulator -avds [avd-name] to run the specific avd.

Using Firebase to host multi website

Initiate your project cd into your working directory, using firebaes init to initiate your website. Then three files will appear under your folder, “.firebaserc”, “.gitignore” and “firebase.json”. Change your setting In “firebase.json” file, it contains your hosting settings. a configuration example below: { “hosting”: { “site”: “XXXXXXX”, // the site name in your Firebase console…

kafka related articles

how to caculate kafka Cluster machine Number https://docs.confluent.io/current/streams/sizing.html#id1 https://www.cnblogs.com/huxi2b/p/6124937.html kafka consumer 多线程实例 https://www.cnblogs.com/huxi2b/p/6124937.html kafka producer 多线程实例 http://distantlight1.iteye.com/blog/2293778 如何为Kafka集群选择合适的Topic/Partitions数量 https://blog.csdn.net/yyqq188/article/details/79387494 【机器学习】在生产环境使用Kafka构建和部署大规模机器学习 https://blog.csdn.net/np4rhi455vg29y2/article/details/79435119 zookeeper、kafka的安装与配置以及集群 https://blog.csdn.net/wngua/article/details/62045245 kafka入门:简介、使用场景、设计原理、主要配置及集群搭建(转) https://www.cnblogs.com/likehua/p/3999538.html

Gastrointestinal bleeding

胃出血 总结: 1、提前通知时间 地点 内容 2、提问时间 3、最后总结重点

git config example

[core] repositoryformatversion = 0 filemode = false bare = false logallrefupdates = true symlinks = false ignorecase = true [remote “origin”] url = git@code.aliyun.com:airportcloud/airport-cloud.git fetch = +refs/heads/*:refs/remotes/origin/* [branch “master”] remote = origin merge = refs/heads/master [branch “dev”] remote = origin merge = refs/heads/dev [gui] wmstate = normal geometry = 835×475+26+26 185 214

git ignore

target/ .idea/ api/ *.iml *.vscode/ webapp/ src/main/resources/generatorConfig.xml *swagger.json *.class # BlueJ files *.ctxt # Mobile Tools for Java (J2ME) .mtj.tmp/ # Package Files # *.jar *.war *.ear # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* # 工具类 guest-util/* # 数据库配置文件 src/main/resources/application.properties # 数据库配置文件 src/main/resources/log4j.properties

git创建管理远程分支

1.远程分支就是本地分支push到服务器上的时候产生的。比如master就是一个最典型的远程分支(默认)。 1 $: git push origin master 除了master之外,我们还可以随便创建分支,然后push到服务器上去。例如: 1 $: git push origin develop 2 Counting objects: 27, done. 3 Delta compression using up to 2 threads. 4 Compressing objects: 100% (15/15), done. 5 Writing objects: 100% (15/15), 7.30 KiB, done. 6 Total 15 (delta 10), reused 0 (delta 0) 7 To git@search.ued.taobao.net:projects/search.git 8    1b95a57..779dbe1  develop -> develop…

spring DI ,@Value spring static parameters ERROR

1.配置文件中配置 <bean id=”configProperties”class=”org.springframework.beans.factory.config.PropertiesFactoryBean”> <property name=”locations”> <list> <value>classpath:/config/*.properties</value> </list> </property> </bean> <bean id=”propertyConfigurer”class=”org.springframework.beans.factory.config.PreferencesPlaceholderConfigurer”> <property name=”properties”ref=”configProperties”/> </bean> PropertiesFactoryBean:就是从指定的文档中读取配置信息并且加载到系统中。 PreferencesPlaceholderConfigurer,它是PropertyPlaceholderConfigurer的一个子类,总的来说,该配置就是用来搜索properties中的key,然后可以获取对应key的值。 2.可以用@Value注解获取pro 这里的@Value的注解有两种用法: @Value(“${key}”) @Value(“#{configProperties[‘key’]}”): 比如: @Value(“${UnionPayAddr}”) private  String UnionPayAddr; 如果是注入到xml文件中,可以直接”${key}”读取 3.在编写程序时,发现以下代码怎么也无法注入properties,后来知道,静态变量是无法通过注解直接注入之中 @Value(“${UnionPayAddr}”) private  static String UnionPayAddr; 解决方法 private static String UnionPayAddr; @Value(“${UnionPayAddr}”) public  void setUnionPayAddr(String unionPayAddr) { UnionPayAddr = unionPayAddr; } 相当于给set方法的参数注入了值,然后赋值给静态变量。

ubuntu14.04安装配置FFmpeg+opencv-3.1.0+python 调用opencv模块

http://blog.csdn.net/u010106759/article/details/51931815   ubuntu14.04安装配置FFmpeg+opencv-3.1.0+python 调用opencv模块 这次因为写python时候要调opencv的函数,在ubuntu14.04安装了opencv,中间出现一个安装错误: /usr/bin/ld: /usr/local/lib/libavcodec.a(avpacket.o): relocation R_X86_64_32 against `.rodata.str1.1′ can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libavcodec.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status make[2]: *** [lib/libopencv_videoio.so.3.0.0] Error 1 make[1]: *** [modules/videoio/CMakeFiles/opencv_videoio.dir/all] Error 2 make: *** [all] Error 2 1 2 3 4…

ubuntu10.04 screen command list

reference:http://blog.csdn.net/msdnchina/article/details/44567877 默认情况下rhel6 是不安装screen命令的: [root@rhel63single yum.repos.d]# yum install screen Loaded plugins: product-id, refresh-packagekit, security, subscription-manager Updating certificate-based repositories. Unable to read consumer identity rhel-source                                                                                                                          | 4.0 kB     00:00 … rhel-source-beta                                                                                                                     | 4.0 kB     00:00 … Setting up Install Process Resolving Dependencies —> Running transaction check —> Package screen.x86_64 0:4.0.3-16.el6 will be installed —> Finished Dependency Resolution Dependencies Resolved ============================================================================================================================================================  Package                           Arch                              Version                                   Repository                              Size ============================================================================================================================================================ Installing:  screen                            x86_64                            4.0.3-16.el6                              rhel-source                            494 k Transaction Summary ============================================================================================================================================================ Install       1 Package(s) Total download size: 494 k Installed size: 795 k Is this ok [y/N]: y Downloading Packages: Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction   Installing : screen-4.0.3-16.el6.x86_64                                                                                                                          1/1 Installed products updated.   Verifying  : screen-4.0.3-16.el6.x86_64                                                                                                                          1/1 Installed:   screen.x86_64 0:4.0.3-16.el6 Complete! [root@rhel63single yum.repos.d]# which screen /usr/bin/screen [root@rhel63single yum.repos.d]# 一、screen 的建立 [root@rhel63single ~]# screen -ls No Sockets found in /var/run/screen/S-root. [root@rhel63single ~]# [root@rhel63single ~]# [root@rhel63single ~]# screen -dmS lei1 [root@rhel63single ~]# screen -ls There is a screen on:         5786.lei1       (Detached) 1 Socket in /var/run/screen/S-root. [root@rhel63single ~]# 其中:5786是linux的ospid。lei1是会话的名称。 二、screen 的进入…