2015-05-05 AllanChan
git fetch Admin mdev (先Fetch) git merge FETCH_HEAD (再合并) 回滚 git reset --hard commit-id 查看当个文件 git log --pretty=oneline 文件名 跟新单个文件 git checkout origin/master -- path/to/file 继续阅读 »
2019-01-05 LEo
这是一个系列文章,主要分享python的使用建议和技巧,每次分享3点,希望你能有所收获。 1 获取文件绝对路径 ```python !/usr/bin/python coding=utf-8 import os absolute_path = os.path.realpath(file) print absolute_path ``` 继续阅读 »
2017-03-09 YongHao Hu
go
``` var maxFileSize int64 = 10 * 1000 * 1000 //limit upload file to 10m if r.ContentLength > maxFileSize { http.Error(w, "request too large", http.StatusExpectationFailed) return } r.Body = http.MaxBytesReader(w, r.Body, maxFileSize) 继续阅读 »
2016-05-19 Roger
如何减小PNG图片大小 原文链接 : Reducing PNG file Size 原文作者 : Colt McAnlis 译者 : rogero0o 继续阅读 »
2015-02-08 KasperDeng
== Java == What The constant pool contains the constants associated with the class or interface defined by the file. Constants are stored in the constant pool. literal strings final variable values fully qualified names of classes and interfaces field names and descriptors method names and descriptors Symbolic refer 继续阅读 »
2015-11-20 Klaus Ma
Named namespaces in Google Code Style Namespaces wrap the entire source file after includes, gflags definitions/declarations and forward declarations of classes from other namespaces. 继续阅读 »
2015-06-02 Eric Wang
Git
检查SSH keys的设置 bash $ cd ~/.ssh/ 如果显示"No such file or directory",跳到第三步,否则继续。 备份和移除原来的SSH key设置 如果已经存在key文件,需要备份该数据并删除之 bash $ ls id_rsa id_rsa.pub known_hosts $ mkdir key_backup $ cp id_rsa* key_backup/ $ rm id_rsa* 生成新的SSH key 输入下面的代码,可以生成新的key文件,只需要使用默认的设置即可,当需要输入文件名的时候,回车即可 bash $ ssh-keygen -t rsa -C "你的邮箱 继续阅读 »
2017-08-03 summer
问题 准备熟悉一下perl下的AES加密的功能,但是在安装Crypt::OpenSSL::AES模块时,系统一直提示找不到 openssl/aes.h 文件,openssl重新安装和升级到最新版本一直都是这样的错误。 ''' AES.xs:5:10: fatal error: 'openssl/aes.h' file not found #include ^ 1 error generated. make: *** [AES.o] Error 1 TTAR/Crypt-OpenSSL-AES-0.02.tar.gz /usr/bin/make -- NOT OK 'Y 继续阅读 »
2015-04-19 Eric Wang
Apache Commons是Apache软件基金会的项目,曾隶属于Jakarta项目。Commons的目的是提供可重用的、开源的Java代码。Commons由三部分组成:Proper(是一些已发布的项目)、Sandbox(是一些正在开发的项目)和Dormant(是一些刚启动或者已经停止维护的项目)。 目前Commons-IO包稳定版本是Version 2.4,可惜的是,对于我目前很需要的copyInputStreamToFile(final InputStream source, final File destination, boolean closeSource)方法,只能等到Version 2.5了,关于详情参见:http 继续阅读 »
2014-10-23 Xie Jingyi
鉴于U盘中Sublime的配置常常莫名其妙地消失,在此将其记录一下。 Code { "cmd": ["fpc", "-S2", "${file}", "-o${file_path}/${file_base_name}.exe"], "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "working_dir": "${file_path}", "selector": "source.pascal", "variants": [ { "name": "Run", "c 继续阅读 »