TL;DR: run gem update --system.What is this bug?Some versions of RubyGems try to use the exact version of Bundler listed in your Gemfile.lock anytime you run the bundle command. If you are using one of those versions of RubyGems, but do no...

Vicw.com用户头像 - ErvinCheung ErvinCheung 185 0 0

WARNING: Error loading config file: /home/$USER/.docker/config.json: open /home/$USER/.docker/config.json: permission deniedTry this:sudo chown $USER:docker ~/.docker sudo chown $USER:docker ~/.docker/config.json sudo chmod g+rw ~/.docker/c...

Vicw.com用户头像 - ErvinCheung ErvinCheung 681 0 1

新闻热点 - NBA

NBA

铁头娃讯 10月14日消息,根据腾讯体育的NBA直播单,已经恢复部分比赛的视频直播。这两场比赛分别为6点公牛对猛龙以及8点以色列马卡比对阵森林狼。另据观察者网报道,在NBA中国...

Vicw.com用户头像 - 撸猫铁头娃 撸猫铁头娃 621 1 1

To clear containers:docker rm -f $(docker ps -a -q)To clear images:docker rmi -f $(docker images -a -q)To clear volumes:docker volume rm $(docker volume ls -q)To clear networks:docker network rm $(docker network ls | tail -n+2 | awk '{if($2...

Vicw.com用户头像 - ErvinCheung ErvinCheung 365 0 0

客户端预编译的压缩包可以在如下几个站点找到:Github Release: github.com/v2ray/v2ray-coreGithub 分流: github.com/v2ray/distHomebrew: github.com/v2ray/homebrew-v2rayArch Linux: packages/community/x86_64/v2ray/Snapcr...

Vicw.com用户头像 - ErvinCheung ErvinCheung 712 0 0

查看开发的端口firewall-cmd --list-ports开放端口 10235firewall-cmd --zone=public --add-port=10235/tcp --permanent 重启firewall   firewall-cmd --reload

Vicw.com用户头像 - ErvinCheung ErvinCheung 460 0 0

回滚特定文件:rake db:migrate:down VERSION=20170726090222要查找所有迁移的版本,可以使用以下命令:rake db:migrate:statusdatabase: iotboss_08_09_b1 Status   Migration ID    Migration Name-----------------------...

Vicw.com用户头像 - ErvinCheung ErvinCheung 473 0 1

新闻热点 - 致敬阿联 !!!

从2004年雅典奥运会到2019年中国男篮世界杯、从“阿联”到“联哥”、从16岁到31岁……中国男篮不敌尼日利亚男篮的比赛,易建联完成了一场堪称伟大的个人秀,对于跟随中国男篮见...

Vicw.com用户头像 - 撸猫铁头娃 撸猫铁头娃 1065 1 2

新闻热点 - RNG VS FPX 大战一触即发!!!

经历了一个夏天今天我们一起来揭晓答案是凤鸣九洲,一飞冲天还是御剑夺魁,沐浴金雨下午16:00终局一战2019英雄联盟职业联赛夏季总决赛

Vicw.com用户头像 - 撸猫铁头娃 撸猫铁头娃 1204 1 1

清除坏的<none>:<none>镜像docker rmi $(docker images -f "dangling=true" -q)

Vicw.com用户头像 - ErvinCheung ErvinCheung 514 0 1

周琦尽力了,输球不怪他。发球出失误,只因压迫大。八成命中率,得分一十加。火锅篮板送,你还想要啥?队友全是坑,早被打成瓜。赵睿投不准,艾伦快打卡。小川总受伤,联妹...

Vicw.com用户头像 - 撸猫铁头娃 撸猫铁头娃 1214 1 1

宿主机已经运行mysql在3306端口,这个时候 映射容器中的 mysql '3306:3306' 就会和外部冲突,这个时候 映射 3308 到容器mysql的3306CONTAINER ID        IMAGE                    COMMAND    ...

Vicw.com用户头像 - ErvinCheung ErvinCheung 942 0 0

新闻热点 - 恭喜fpx成为lpl第一支进入全球总决赛的队伍!fpx将第一次代表lpl出征世界赛!

Doinb等这一刻5年了。5年前初登赛场,一手维克托名扬天下,可英雄池的属性让他饱受争议,到现在还有人提起。4年前Doinb所在的QG2比3不敌LGD,没人想到这居然是Doinb离全球总决赛最...

Vicw.com用户头像 - 撸猫铁头娃 撸猫铁头娃 1572 2 1

新闻热点 - 连续四年出征,RNG成为LPL第二支拿到S9门票的队伍

在刚刚结束的LPL夏季赛半决赛当中,RNG以3-1的比分击败TES成功挺进决赛。凭借春季赛拿到的10积分以及进入夏季赛决赛至少能够获得的90积分,RNG以保底100分的积分优势,成为继FPX之...

Vicw.com用户头像 - 撸猫铁头娃 撸猫铁头娃 1036 0 1

程序猿 - 使用阿里云加速器提升获取Docker官方镜像的速度

https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors

Vicw.com用户头像 - ErvinCheung ErvinCheung 471 0 0

程序猿 - SIMSKY Vue 前后端分离

一、技术栈基于 es6、vue、vuex、vue-router 、vue-cli 、axios 和 element-ui,(请求数据使用Mock.js进行模拟)Vue 生态圈Vue Router 是 vue 官方的路由。它能快速的帮助你构建一个单页面或者多页面...

Vicw.com用户头像 - ErvinCheung ErvinCheung 1183 0 2

 SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname='数据库名' AND pid<>pg_backend_pid(); 

Vicw.com用户头像 - ErvinCheung ErvinCheung 699 0 0

Golang Tutorial - Securing Your Go REST APIs With JWTs

Note - The full source code for this tutorial can be found here: TutorialEdge/go-jwt-tutorialJWTs, or JSON Web Tokens as they are more formally known, are a compact, URL-safe means of representing claims to be transferred between two part...

Vicw.com用户头像 - ErvinCheung ErvinCheung 931 0 0

JavaScript Frontend frameworks have undoubtedly helped to push the boundaries of what was previously possible in the context of a browser. Ever more complex applications have come out built on top of the likes of React, Angular and VueJS to...

Vicw.com用户头像 - ErvinCheung ErvinCheung 678 0 0

Golang Tutorial - Building a Solid Continuous Integration Pipeline with TravisCI for Your Go Projects

So, I recently partook in Hacktoberfest which is an event that helps to support thousands of different Open Source projects. Usually, I tend to get caught up in other projects or can't find the time or make up a hundred other excuses for ...

Vicw.com用户头像 - ErvinCheung ErvinCheung 809 0 0

ObjectivesBy the end of this tutorial, you will be able to...Encrypt text using the AES - Advanced Encryption Standard in GoWe'll then look at writing this encrypted message to a fileFinally we'll look at how we can decrypt this message usi...

Vicw.com用户头像 - ErvinCheung ErvinCheung 776 0 0

Golang Tutorial - Go Face Recognition Tutorial - Part 1

The whole area of Face Recognition is something I love reading about. Implementing a facial recognition system yourself makes you sound like you are Tony Stark and you can use them for a variety of different projects such as an automatic lo...

Vicw.com用户头像 - ErvinCheung ErvinCheung 759 0 0

Welcome fellow coders! In this tutorial, we are going to be taking a look at how you can implement your own OAuth2 Server and client using the go-oauth2/oauth2 package.This is without a doubt one of the most requested topics from commento...

Vicw.com用户头像 - ErvinCheung ErvinCheung 902 0 0

Update - The code in this tutorial has been updated to work with the breaking changes in Go v1.12Welcome All! With Go v1.11 having just been released with an experimental port to WebAssembly included, I thought it would be awesome to see h...

Vicw.com用户头像 - ErvinCheung ErvinCheung 706 0 0

Welcome fellow coders! In this tutorial, we are going to be looking at how you can utilize the Protocol Buffers data format within your Go-based applications. We'll be covering what the data format is, and why it is an improvement over more...

Vicw.com用户头像 - ErvinCheung ErvinCheung 584 0 0

Note - This tutorial was written using Go version 1.9 and googollee/go-socket.ioWebsockets are something I find interesting in the sense that they provide us with an alternative option to communication between applications as opposed to t...

Vicw.com用户头像 - ErvinCheung ErvinCheung 730 0 0

ADVANCEDWorking with Websockets and Socket.IO in Go - TutorialGo Protocol Buffer TutorialGo WebAssembly Tutorial - Building a Calculator TutorialGo Oauth2 TutorialGo Face Recognition Tutorial - Part 1Go Encryption and Decryption using AES -...

Vicw.com用户头像 - ErvinCheung ErvinCheung 2897 0 0

Go is an absolutely incredible language to build a wide variety of different applications in. From command-line interfaces to distributed microsystems and even cloud platforms, its' simplicity and concurrency baked in makes it a powerful ch...

Vicw.com用户头像 - ErvinCheung ErvinCheung 681 0 0

今天订单出了一个库存超卖的问题,查找了很久,才定位到原因,之前用rails也很少用到事务和锁,这里介绍一下它们。为什么要使用事务事务是指并发控制的单位,是用户定义的一...

Vicw.com用户头像 - MIHU MIHU 1058 1 0

user = User.find(1) user.as_json # => { "id" => 1, "name" => "Konata Izumi", "age" => 16, #     "created_at" => "2006/08/01", "awesome" => true} ActiveRecord::Base.include_root_in_json = true user.as_json # => { "user" => { "id" => 1,...

Vicw.com用户头像 - ErvinCheung ErvinCheung 774 0 0