Nodejs (1): mac installs nodejs & electronic environment develops desktop applications

1. Download the node installation package https://github.com/electron/electron Electron is a cross-platform desktop application development tool released by Github, which supports the development of desktop applications by Web technology. It is developed based on C++. The core of GUI is from Chrome, while the JavaScript engine uses v8. mac ...

Posted by kaos057 on Wed, 02 Jan 2019 20:33:10 -0800

Key Points about ActiveSupport::Concern

ActiveSupport::Concern module is a very common and important module in Ruby. It encourages extractable reusable logic to be placed in different concerns, standardizes the code style of module mix, and solves the dependency problem between module loads. Encouraging Common Logic Extraction to Normalize Code Style Resolve dependencies betwe ...

Posted by AshrakTheWhite on Tue, 01 Jan 2019 00:54:08 -0800

ruby block & proc & lambda

List contents First, what is block in ruby? Block is a general term, Chinese name is also called closure, English is Closure, in the form of block, Proc and Lambda. Proc is an object-oriented encapsulation of block, lambda is a further encapsulation of Proc. block Writing Style Braces + code {p'hi'} do... end, which is also a blo ...

Posted by Adika on Thu, 27 Dec 2018 10:36:06 -0800

Building centos+jdk+tomcat_CENTOS in docker environment

Preface (1) Written earlier, since there is little experience in installing jdk+tomcat and other environments in linux or unix-like systems, we chose to install it in the docker container to prevent installation failure and failure to restore the system. (2) We need to download the docker image of the corresponding system, such as cento ...

Posted by AndreGuatemala on Tue, 25 Dec 2018 13:27:06 -0800

Centos 7.3 realizes disk sharing based on iscsi+pacemaker+corosync+gfs2+clvmd

demand One of our services needs to be able to access the stored data by mounting the data directory on the shared storage, so as to achieve high availability of multi-node clusters. Previous blog posts pacemaker+drbd dual master We use drbd+gfs2 to implement it. Is there a simpler way? This article will introduce iscsi+pace ...

Posted by SWI03 on Sat, 22 Dec 2018 04:27:06 -0800

[MD] Yum install -- download only download dependency packages, off-line installation of salt

The original post was published at the beginning of 17 years. This time, it was re-edited and perfected with md. copyright: wangn 2017-1-16 CentOS-7-x86_64-Minimal-1511.iso CentOS Linux release 7.2.1511 (Core) When deploying linux programs in offline production environment, rpm installation is often needed. T ...

Posted by CodeX on Tue, 18 Dec 2018 11:15:05 -0800

High Availability Practice in Kubernetes 1.9 Production Environment--Installing kubelet and proxy in 005-node

This article follows Kubernetes 1.9 Production Environment High Availability Practice - Installing flannel Network Plug-ins in 004-node. This paper mainly talks about how to install kubelet and proxy in kubernetes 1.9 in the server yds-dev-svc02-node01. In the process of configuration, I will copy all the out ...

Posted by rizi on Sun, 16 Dec 2018 15:33:04 -0800

Doker Actual Warfare 2 (Application of Doker Swarm, Construction of Doker Cluster, Creation and Update of Deployed Services in Doker Cluster)

Preface: In the past, I wrote a tutorial about the creation of docker cluster, but it is not deep enough. It just stays on the initialization of the cluster and the joining of nodes. This time, it is specific to the service and explains the principle in detail. And it summarizes a lot of pits that we have trampled in the process of doing it o ...

Posted by DavidT on Sat, 15 Dec 2018 21:18:04 -0800

Using ngx_http_image_filter_module of Nginx to make real-time picture thumbnails

You're still using it. ImageMagick Create thumbnails of uploaded pictures on the website? In fact, there are better ways to put one in place, simple and effective. Nowadays, there are many cloud storage services supporting image space, and according to the set rules to generate image thumbnails in the space, such as UpYun, Aliyun OSS support. ...

Posted by skatermike21988 on Wed, 12 Dec 2018 22:36:07 -0800

Install Python 3 under Centos 7; use pip&virtualenv&SS to build a virtual environment and build SS services;

First, python is installed by default under Centos, but it is still python 2. To better use the extension adapted to Python 3, we installed Python 3. Installation of basic dependencies: sudo yum install -y ncurses-libs zlib-devel mysql-devel bzip2-devel openssl-devel sudo yum groupinstall 'Development Tools' II. Prepa ...

Posted by bluns on Wed, 12 Dec 2018 09:33:06 -0800