2017软考系统架构设计师--记我的软考之路
2017年通过了系统架构设计师,达到了期待已久的“三高”。我的软考历程:2017 系统架构设计师2010 系统分析师2009 信息系统项目管理师2003 高级程序员2002 高级程序员 <未通过>2001 计算机四级2009年考信息系统项目管理师,当...
Windows下磁盘只读
1. 打开命令行运行"diskpart"C:\Users\xxx>diskpart2. 在新窗口执行 list volDISKPART> list vol Volume ### Ltr Label Fs Type Size Status Info ---------- --- ---...
记录一下以前发表的文章
WebService开发常见问题http://tech.it168.com/a2009/0331/270/000000270148.shtmlJMS与WebService负载均衡http://tech.it168.com/a2009/0414/272/000000272206_all.shtmlWeb services cxf 视频教程http://21ca.iteye.com/blog/305642
JWT Token存储在Cookie还是LocalStorage
JWT 是将web 应用无状态化的一种方式。1. 首先拿到JWT TokenHTTP/1.1POST /tokenHost: galaxies.comContent-Type: application/x-www-form-urlencodedusername=abc&password=password服务器返回HTTP/1.1 200 OK { "access_token": "eyJhbGciOiJIUzI1NiIsI.eyJpc3MiOiJodHRwczotcGxlL.m...
可扩展性笔记一
关键原则 Key tenets人技术过程可扩展性衡量维度 Dimensions负载可扩展性 Load Scalability 功能可扩展性 Functionality Scalability 集成可扩展性 Integration Scalability 地域可扩展性 Geographic Scalability 可扩展性软件层面的挑战...
Appium测试ContactManager.apk
启动 虚拟设备参考:Appium笔记 下载 ContactManager.apkhttps://raw.githubusercontent.com/appium/sample-code/master/sample-code/apps/ContactManager/ContactManager.apk 安装ContactManager.apkC:\Program Files (x86)\Android\android-sdk\platform-tools>adb install D:\xxx\ContactManager.apkJava代码...
Appium笔记
安装Android SDK,AndroidSDK_installer_r24.4.1-windows.exe用Admistrator运行"SDK Manager.exe", Tools 下选择SDK Tools, SDK Platform-tools, SDK Build-tools 安装安装 nodejsnodejs 下安装 appiumnpm install -g appiumnpm install -g appium-doctor...
Spark Stream 简单例子
pom.xml<dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-streaming_2.11</artifactId> <version>2.1.0</version></dependency>import java.io.OutputStream;...
Spark SQL 最简单例子
pom.xml org.apache.spark spark-core_2.10 &...
Embeded Jetty with JSP
Simple Jetty server with JSP supported. public static void main(String[] args) throws Exception { Server server = new Server(8082); ...
Redis sentinel
三个 Master, 端口号 7001, 7002, 7003三个 Slave,端口号 7004, 7005, 7006两个 Sentinel 端口号 26378, 26379sentinel.confport 26379dir tmpsentinel monitor mymaster1 127.0.0.1 7001 2sentinel monitor mymaster2 127.0.0.1 7002 2senti...
Redis cluster on Windows
1. Create new folder 'cluster' under redis-64.3.0.503. Create subfolder 7001 -7006 under the folder 'cluster'. Copy redis.windows.conf. redis |---7001/redis.conf |---7002/redis.conf &n...
Redis master and slave
1. Download Redis zip package for Windows: https://github.com/ServiceStack/redis-windows2. Copy redis.windos.conf to master.conf and slave.conf.3. master.conf port: 63794. slave.conf port: 6378 slaveof 127.0.0.1 63795. Start Redis &nbs...
HDFS read and write
import java.io.OutputStream;import java.net.URI;import java.net.URL;import org.apache.commons.io.IOUtils;import org.apache.hadoop.conf.Configuration;import org.apache.hadoop.fs.FSDataInputStream;...
Spark master standalong
~/.bashrcexport JAVA_HOME=/usr/java/latest/export HADOOP_HOME=~/hadoopexport SPARK_HOME=~/sparkexport PATH=.:$HADOOP_HOME/sbin:$HADOOP_HOME/bin:$SPARK_HOME/bin:$SPARK_HOME/sbin:$PATHexport SPARK_MASTER_HOST=192.168.202.134export SPARK_LOCAL_IP=192.168.202.134spark/conf/spark-env....
Spark example
pom.xml点击(此处)折叠或打开...
Windows 10 安装Spark2.1
下载并解压 spark-2.1.0-bin-hadoop2.7 hadoop-2.7.3 scala-2.12.1下载winutils.exe。 这里https://github.com/sdravida/hadoop2.6_Win_x64.git复制winutils.exe 到hadoop-2.7.3\bin,并执行 winutils.exe chmod 777 D:\tmp\hive设置she'zhi环境变量H...
2017目标
1. 读十本技术图书2. 锻炼身体,体重到1303. 全家旅游
写代码就像诗,一定要记住
简洁明了。一定要简单,很容易看懂推敲每个命名。例如金庸小说 东方不败,任我行,从名字就能看出来格式,对齐,工整。就算不看内容,光是瞟一眼就知道是好诗。
单链表快速排序
点击(此处)折叠或打开public class LinkedListSortTest { //bubble up public static ListNode sortList(ListNode head) { ListNode m = head;...