摘要:【问题】 android基于go的NDK开发中配置gomobile参考官方WIKI:https://github.com/golang/go/wiki/Mobile,大致步骤: 1、下载gomobile:$ go get golang.org/x/mobile/cmd/gomobile 2、初始化
阅读全文
摘要:【需求】 在一个1G多大的文本文件中,查找给定的字符串,并删除这些字符串所在的行 【解决】 sed -ie '/指定字符串/d' 文件名.log
阅读全文
摘要:颜色 英文代码 形像颜色 HEX格式 RGB格式 LightPink 浅粉红 #FFB6C1 255,182,193 Pink 粉红 #FFC0CB 255,192,203 Crimson 猩红 #DC143C 220,20,60 LavenderBlush 脸红的淡紫色 #FFF0F5 255,2
阅读全文
摘要:转自“https://github.com/zLulus/NotePractice/blob/dev3/Website/DotNetCore/CoreAngular/src/app/json-examples/json-examples.component.ts” import { Componen
阅读全文
摘要:【问题现象】 自搭postgres数据库,然后执行 #psql -U postgres 提示psql: FATAL: Peer authentication failed for user "postgres" 【解决】 切换到Linux用户postgres,然后执行psql: $ su - pos
阅读全文
摘要:【问题】 使用nginx作为代理服务器,nginx.conf配置文件中已添加 location / { proxy_pass http://127.0.0.1:88383; add_header Access-Control-Allow-Origin "*";} 使用普通的post请求时,一切ok,
阅读全文
摘要:【问题】 使用nginx服务,使用 ng build --prod 后生成dist目录,在nginx.conf配置中指向dist后发现除了首页正常,其他都是404 Not Found 【解决】 其实官网已有解答,增加映射即可,参考我的nginx.conf的配置文件 server { listen 8
阅读全文
摘要:【问题现象】 go使用go-sql-driver连接mariaDB,如下,提示: panic: commands out of sync. Did you run multiple statements at once 示例: 【问题解决】 这个提示很是误导了我,实际上,问题原因是port填错了,坑
阅读全文