- 浏览: 99976 次
- 性别:
- 来自: 西安
最新评论
-
feikiss:
wuchsh2013 写道英文水平很牛逼。不敢当。。。小儿科- ...
java socket performance investigation -
wuchsh2013:
英文水平很牛逼。
java socket performance investigation -
feikiss:
随着业务逻辑的深入,重构也会无处不在。
测试驱动开发的实践 -
feikiss:
li498833284 写道不好意思阿 ,发了点测试用的东西, ...
头疼的快捷键 -
li498833284:
不好意思阿 ,发了点测试用的东西,别介意呀
头疼的快捷键
文章列表
最近在公司参与一个项目,项目挺大,耗时一年左右,具体业务就不说了。。。
之后在项目开发将近结束时,公司用Coverity工具对整体代码进行了检视,结果发现了N多问题,好多都是自己不注意的细节,在感叹此工具的强大的 ...
docker exec -it container id /bin/bash
1. 使用git server 最新版覆盖本地的修改:
git fetch --all
git reset --hard origin/master
OR If you are on some other branch
git reset --hard origin/your_branch
http://stackoverflow.com/questions/1125968/force-git-to-overwrite-local-files-on-pull
[持续更新中]
1. 如何将int64转换为string:
package main
import (
"fmt"
"strconv"
)
func main() {
var val int64 = 123456789
str := strconv.FormatInt(val, 10) // use base 10 for sanity purpose
fmt.Println(str) // int64 converted ...
http://www.geo.mtu.edu/geoschem/docs/putty_install.html
-----windows下的快捷键--------
Alt+R : 开启正则表达式功能
Alt+Enter: 找到匹配目标后全部选择
Ctrl+R:前往 method(mac下⌘R)
Ctrl+M:跳转到对应括号
按Ctrl+Shift+上下键,可替换行
Ctrl+D:选择单词,重复可增加选择下一个相同的单词
Ctrl+L:选择行,重复可依次增加选择下一行
Ctrl+Shift+P:打开命令面板
Ctrl+P:搜索项目中的文件(mac下⌘P),在里面输入:
admi@auto 可以定位到相应文件夹(admin.html)下的相应方法(auto)。
Ctrl+G:跳转到第几行
Ctrl+W:关闭当 ...
Best Practices for Designing a Pragmatic RESTful API
Your data model has started to stabilize and you're in a position to create a public API for your web app. You realize it's hard to make significant changes to your API once it's released and want to get as much right as possible up front. Now, th ...
作者: nickwolfe@CCF 从某网站上面看到的,觉得讲的很精彩,故借鉴过来。
CURL? 嗯,说来话长了~~~~
这东西现在已经是苹果机上内置的命令行工具之一了,可见其魅力之一斑
1)
二话不说,先从这里开始吧!
curl http://www.yahoo.com
回车 ...
谦卑并不是软件架构师一个非常常见的特质。我曾与一些可怕的架构师共事过,最近也与一位非常棒的架构师合作过。基于此,我根据每个架构师都喜欢的方式将我过去的经验汇聚起来,以规则集的形式写出来,与大家一起分享 ...
these days I'm confused about the Tcp performance while using java socket. In fact the java code is very simple. details as below:
1. server open a port and begin to listen.
2. client request and after connect to server, client begin to write to socket.
3. after server got the request, it will open ...
In Java API, there is the method System.getenv(), but no interface to set the env. This is because Java forbid the operation based on platform. But sometimes we need to change the env to finish some unit test. The following way just like a hack but it is ok to unit test:
private void setNewEnviron ...
While we are writing the unit test cases, we may meet some method that is real-time based. It'll be a challenge to get the expected result as they are changing with time, then it's time to use the Mock tool.
today I meet the same issue, I need to test one method timeFormat(), this method is to form ...
Editors are an integral part of a programmer’s life. If you have good proficiency in using an editor thats a great advantage. It comes very handy to debug. Traditional notepad and SOPs (System.out.println) are the way we start learning a language but that is not sufficient, so beginners start using a ...
今天在stackoverflow上面看到一个帖子讨论说关于提高数组效率的问题,看了下他的问题,是关于一个四维数组的效率问题,四维数组类似这样子:
ushort[, , ,] map = new ushort[3000, 3000, 3, 3];
暂且先不管为啥要搞一个四维数组(毕竟四维已经超出了人的立体思维想象了-_-),我随手写了一个测试类来测试,但是发现了一个更有意思的现象,数组声明方式不同会导致初始化的效率极大区别:
声明方式一:
int [][][][] map = new int[3000][3000][3][3];
声明方式二:
int [][][][] map2 = new in ...
以此作为笔记,记录一些小碎片,省得以后再去找。
1. 如何读取和当前class位于同一目录下的文件,也可以是其他相对路径:
xml在随意某个包路径下:
String s_xmlpath="com/spf/web/ext/hotspot/hotspotxml/hotspot.xml";
ClassLoader classLoade ...