gowhich.com
JAVA - 分类 - Gowhich
http://www.gowhich.com/category/JAVA
这里使用了com.alibaba.fastjson这个包maven 很不错的包管理器 安装方式 dependency groupId com.alibaba /groupId artifactId fastjson /artifactId version 1.2.12 /version /dependency 使用方法importcom.alibaba.fastjson.JSON;/ 字符串转换为可使用的对象 Map Stringstr=;/ 这里就是一个json字符串JSON.parseObject(str);HashMap String,String jsonMap=JSON.parseObject(str,newHashMap String,String ().getClass() ;/ 去除里面的值for(Stringkey:jsonMap.keySet() {String . 在Ubuntu 14.04 LTS中安装Java环境. Android SDK Manager 下载缓慢解决办法. 1,删除work里面对应的项目的缓存文件,比如我的app是news,那么我就删除news就好了2,清空浏...
gowhich.com
Nginx - 分类 - Gowhich
http://www.gowhich.com/category/Nginx
Nginx Nodejs (110: Connection timed) 错误处理. 最近服务器出现问题了,error.log日志里面多了很多的 110:Connectiontimed 这个错误。 参考 http:/ stackoverflow.com/questions/10395807/nginx-close-upstream-connection-after-requestlocation/{proxy http version1.1;proxy set headerConnection;}本来我的upstream中只加了server这段信息的,现在参考了这里的话,也加了下keepalive;upstrea. 嗯,今晚记录下,由于最近观察google分析工具发现我网站存在www.gowhich.com和gowhich.com同时存在的一些问题,建议将其中的一个做301跳转,这个还是超级简单的啦,不过还是记录一下吧,方便记性不好的。 为LNMP设置空头主机防止恶意解析 Linux nginx Mysql Php. Nginx 之 Location基础配置 及 Location最佳实践. 多个loca...
gowhich.com
Memcached - 分类 - Gowhich
http://www.gowhich.com/category/Memcached
1)安装Memcache服务端sudoapt-getinstallmemcached安装完Memcache服务端以后,我们需要启动该服务 memcached-d-m128-p11211-uwwwmemcached服务的启动参数 -p监听的端口-l连接的IP地址,默认是本机-dstart启动memcached服务-drestart重起memcached服务-dstop shutdown关闭正在运行的memcached服务-dinstall安装memcached服务-duninstall卸载memcached服务-u以的身份运行(仅在以root运行的时候有效)-m最大内存使用,单位MB。 Memcache也提供用于通信对话 session handler 的处理。 更多Memcache模块相关信息可以到http:/ www.danga.com/memcached/查阅。 11memcache在php.ini中的配置项列表memcache在php.ini中的配置项列表名称默认值是否可变改变日志memcache.allow fail. Gitlab 之 mail room.
gowhich.com
CSS - 分类 - Gowhich
http://www.gowhich.com/category/CSS
Css截切字符串width:180px;text-overflow:ellipsis;-o-text-overflow:ellipsis;overflow:hidden;height:25px;white-space:nowrap;. 前端技能 Google Fonts API @font-css. 开篇之前,先来几个链接http:/ www.font-face.com/#google announcement对于前端,强大不是一般般般的。 先来看几个例子 html head linkrel=stylesheettype=text/csshref=http:/ fonts.googleapis.com/css? Family=Tangerine style body{font-family:Tangerine,serif;font-size:48px;} /style /head body div Makingthe&n. 看看我自定义的table列表css代码:table.smoth{width:100%}table.smoththeadtr.captiontd.ite...元素透明的做法,大概如下#...
gowhich.com
MAC OS X - 分类 - Gowhich
http://www.gowhich.com/category/MAC+OS+X
Category: MAC OS X. Docker国内镜像配置收集/ DaoClouddocker-machinesshdefaultsudosed-is EXTRA ARGS= EXTRA ARGS=- registry-mirror=http:/ 723acd29.m.daocloud.io g/var/lib/boot2docker/profile/ 灵雀云docker-machinesshdefaultsudosh-cechoEXTRA ARGS=- registry-mirror=http:/ houchaohann.m.alauda.cn /var/lib/boot2docker/profile/ 是速云docker-machinecreate-dvirtualbox- engine-registry-mirrorhttp:/ dapeng89.m.tenxcloud.netmydocker. 第一招 同时按Option(Alt) Command(苹果) ESC键,这时会跳出一个,像工作管理员的面板,这时对应着应用程序点一下,再按强制结束就可以了。 1如何横/竖分屏打开新文件:spfile...
gowhich.com
Html - 分类 - Gowhich
http://www.gowhich.com/category/Html
Bootstrap下面有个glyphicon-refresh,但是不会自定动态spin[旋转],下面提供下我的实例.spin{-webkit-transform-origin:50%50%;transform-origin:50%50%;-ms-transform-origin:50%50%;/*IE9*/-webkit-animation:spin.8sinfinitelinear;-moz-animation:spin.8sinfinitelinear;-o-animation:spin.8sinfinitelinear;animation:spin.8sinfinitelinear;}@-webkit-keyframesspin{0%{ . 实例代码如下 thead colgroup col /col col /col col /col col /col col /col colwidth=20% /col col /col col /col /colgroup tr th 用户名称 /th th 登录方式 /th &. 输出 json格式的头 - json文件如何在头文件里体现. 标准写法的ap...
gowhich.com
Linux - 分类 - Gowhich
http://www.gowhich.com/category/Linux
Gitlab 之 mail room. 最近使用docker部署gitlab,启动后会有一个问题,不知道哪里会一直在执行mail room这个命令,查看了下配置# Replybyemail#Allowuserstocommentonissuesandmergerequestsbyreplyingtonotificationemails.#Fordocumentationonhowtosetthisup,seehttp:/ doc.gitlab.com/ce/incoming email/README.htmlgitlab rails[incoming email enabled]=true# #Theemailaddressincludingthe`%{key}`placeholderthatwillbereplacedtoreferencetheitembeingrepliedto.# The` %{. Mac 之 git mergetool的安装使用. 如何查看一个文件的修改历史记录 第一个步骤就是找到某个文件的修改历史gitlog- pretty=oneline./static/js/de...
gowhich.com
IOS - 分类 - Gowhich
http://www.gowhich.com/category/IOS
IOS 牛刀小试 swift- 操练起来 CoreLocation. 按照下面的顺序在终端中敲入依次敲入命令 $gemsources- removehttps:/ rubygems.org/ /等有反应之后再敲入以下命令$gemsources-ahttp:/ ruby.taobao.org/为了验证你的Ruby镜像是并且仅是taobao,可以用以下命令查看 $gemsources-l只有在终端中出现下面文字才表明. NSString 中的 字符串拼接 和 多行书写字符串变量. 一、字符串拼接NSString*str1=@我是durban;NSString*str2=@我是wenwen;NSString*result;/ 方法1result=[str1stringByAppendingString:str2];NSLog(result,nil);/ 方法2result=[NSStringstringWithFormat:@%@%@,str1,str2];NSLog(result,nil);/ 方法3result=[@stringByAppendingFormat:@%@%@,str1,str2];NSLo...
gowhich.com
NodeJs - 分类 - Gowhich
http://www.gowhich.com/category/NodeJs
StaticvalidateIdNumberToAgeYear(str){letdate=newDate();letcurrentYear=date.getFullYear();letcurrentMonth=date.getMonth() 1;letcurrentDate=date.getDate();letidxSexStart=str.length= 18? 16:14;letbirthYearSpan=str.length= 18? 4:2;letyear;letmonth;letday;letsex;let . Nodejs中,在做加密解密的时候,会得到第三方的各种各样的加密文件,其后缀也就那么几种吧,.key/.pem/.pfx等,是不是可以自定义,反正就是一个文件。 第一个命令是:opensslpkcs12-inxxxx.pfx-nocerts-nodes-outdomain encrypted.key第二个命令是:opensslrsa-indomain encrypted.key-outprivate.key哪位大神知道的,可以告知下,谢谢了。 Pm2 npm start 方法.
gowhich.com
DotNet - 分类 - Gowhich
http://www.gowhich.com/category/DotNet
初试 asp.net Mac环境下开发 web应用示例. 一、环境的搭建开发工具的下载 Mono我下载的时候名称好像不对,但是网络上说的是这个我列一下自己下载的文件吧XamarinStudio-4.0.12-3.dmgMonoMREinstallerMonoMDKinstaller这是文件下载完后,直接安装就好了。 二、项目的创建启动XamarinStudio,开始创建项目,如下图写上项目的名称,然后确定接下来是创建Controller和View创建Controller是这样的,请看下图创建View是这样的,如下图,右击键Views目录,创建一个Home目录,然后在Home目录创建一个Index.aspx文件最后的结构目录如下图 HomeController文件的内容如下 usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Web;usingSystem.Web.Mvc;names. Gitlab 之 mail room. Sublime Text 3 之 MAC版本的 主题设置.