Failed to load http://127.0.0.1:8090/console/post: No 'Access-Control-Allow-Origin' header is presen
...

Read More...


Cloning into 'kubernetes'...
remote: Enumerating objects: 251, done.
remote: Counting objects: 100% 
...

Read More...


wildcard route id conflicts with existing children in path

panic: wildcard route ':id' conflicts with existing children in path '/console/post/:id/edit'

gorou
...

Read More...


Parsing error x-invalid-end-tag

error: Parsing error: x-invalid-end-tag (vue/no-parsing-error)

很明显,这是因为 iview的内置 标签

比如 Row Col 等等

...

Read More...


Invalid default value for 'created_at'

Error 1067: Invalid default value for 'created_at'

mysql数据库升级到5.7+ 之后,以前的默认创建时间和更新时间的sql执行不成功了!

那么

...

Read More...


math/rand 随机一个整数有个小坑

假如需要一个随机的六位数

package main

import (
    "fmt"
    mathRand "math/rand"
)

func main() {
    a := mat
...

Read More...


glide update 报错

Error scanning google.golang.org/grpc/metadata: cannot find package "." in:
    /Users/zhu/.glide/ca
...

Read More...


protoc执行报错

➜ user-service git:(dev) ✗ protoc ./pb/user.proto --go_out=plugins=grpc:.

protoc-gen-go: program no
...

Read More...


426 upgrade required

426 upgrade required

请求返回 426

nginx 反向代理默认走的http 1.0版本

但是 被反向代理的服务器是1.1版本的!

so 在反向代理的时候加上一句

prox

...

Read More...


could not find driver

[Doctrine\DBAL\Driver\PDOException] could not find driver

这是执行

php artisan migrate

后报的错!

一种是 没有配

...

Read More...


Go语言的goroutines、信道和死锁

最近看到一个问题,然后看到一个channel,想想目前工作中还未用到过,遂,想了解下这是啥玩意儿!然后看到这篇文章,然后保存下来了!源地址是 https://blog.csdn.net/kjfcpua

...

Read More...


golang身份证邮箱手机号等等敏感信息加星

// 各种字符串加星

匹配 手机号,邮箱,中文,身份证等等

// 各种字符串加星
func HideStar(str string) (result string) {
    if str ==
...

Read More...


当你能力不能满足你的野心的时候,你就该沉下心来学习