画椭圆型
摘要:let testRad = circleRadius * 40// let clip : UIBezierPath = UIBezierPath(arcCenter: pt, radius:// CGF...
阅读全文
异常分析
摘要:This is the point at which we caught the crash. "sigtramp" is the signal "trampoline." That's a fancy way of saying "I caught a signal (crash) and now...
阅读全文
新版本需要新增的表,也需要新增的记录
摘要:stock_app.t_fund_groupstock_app.t_fund_liststock_app.t_fund_tagstock_app.t_recommand
阅读全文
go 语言的库文件放在哪里?如何通过nginx代理后还能正确获取远程地址
摘要:/usr/local/Cellar/go/1.5.1/libexec/src/他的RemoteAddr 是从哪里获取?func (c *conn) RemoteAddr() Addr { if !c.ok() { return nil } return c.fd.raddr} 使用远程地址的被...
阅读全文
defer 要放在return之前
摘要:虽然defer可以在函数退出的时候执行,但是也要把它放在return之前,否则不会调用到。错误的示范:res, err := Resource.open()if err != nil { return err;}defer res.Close()
阅读全文
nginx
摘要:reload有时候不能生效,需要停止服务后再启动多个版本的反向代理URL路径被覆盖,导致访问不到 XXX/v2/version路径,经过这样修改可以避免出现这个问题。location / { proxy_pass : host1;}location /v2 { proxy_pass :host2...
阅读全文
搞两台服务器不断间隔重启
摘要:这样会不会防止程序挂死,资源没有释放的问题?
阅读全文
终于发现为什么SQL没有释放句柄,原来是保存句柄的变量被覆盖了,丢失了原来的句柄
摘要:stmt = xxx , stmt = yyy , stmt.close() 之前的xxx 没有close掉
阅读全文
Go prepare statment超过mysql最大数
摘要:mysql_stmt_prepare failed! error(1461)Can't create more than max_prepared_stmt_count statements (current value: 16382)。给出的回复如下:max_prepared_stmt_count...
阅读全文
chart crash
摘要:* thread #155: tid = 0x1fcc10, 0x0000000107626745 gpxj`static gpxj.ChartUtils.decimals (gpxj.ChartUtils.Type)(Swift.Double) -> Swift.Int at ChartUtils...
阅读全文