First, go to the bit. ly website (bit. ly) to apply for an account and obtain the API key. After registration, there will be records of the domain name shortening service through this account, which can help users analyze and so on.
After registering an account, you only need to enter setting to view your API key.
API description:
RestAPI response ¶
/V3/shorten tables ¶
For A Long URL,/V3/shorten encodes
Write the ly-tab component of the mobile terminal inertial slide rebound Vue navigation bar, and the terminal inertial slide
Some time ago I wrote a mobile terminal adaptive sliding Vue navigation bar component. I think it is practical and you may use it. (Of course, if some bosses write better, it is unnecessary ), so I sorted it out two days ago. Now it has been released to npm and GitHub. Click me to npm and click me to GitHub. If you need it, you
Shortened Google, bit. ly, is. gd, and x. co URLs
-->
$velocityCount-->
-->
1.[Code][PHP] code
11) // get the longurl. if the length is short, it is useless to compress {$ url = $ _ GET ["u"]; if (filter_var ($ url, FILTER_VALIDATE_URL, FILTER_FLAG_HOST_REQUIRED) {$ longurl = urlencode ($ url); // begin bitly $ login = "helong"; // bitly login name $ apikey = "success "; // bitly apikey https://www.php1.cn/javasformat= "txt"; // bitly api format
0x0. Origin:On a new Fedora 25 today, following official documentation, after installing docker-compose using curl, verify that an error occurred when the installation was successful:The command used for installation is;Curl-l https://github.com/docker/compose/releases/download/1.14.0-rc2/docker-compose-' uname-s '-' ur/local/bin/ Docker-composechmod +x/usr/local
http://hongge.blog.51cto.com/ Docker Compose Project Compose Project Introduction The compose project originates from the previous Fig project and is written in Python code. The Compose project is primarily used to orchestrate the deployment of Docker-based applications. It has a high degree of coordination with Docker
One pattern in functional programming is to implement a combination function by combining functions of multiple functions. A tool library that generally supports functional programming implements this pattern, which is commonly referred to as compose and pipe. For example, the Ramda tool Library, known as the functional type.
const R = require('ramda');function inc (num) { return ++num;}const fun1 = R.compose(Math.abs, inc, Math.pow)const fun2 = R.p
Create yml using docker compose
The format version of The docker compose file must correspond to the docker version, which can be found on the official website.
Search address:Https://docs.docker.com/compose/compose-file/compose-file-v2/#
Compose and docker compatibility: The compose file format has three versions: 1, 2.x, and 3.x. Currently, the mainstream versions are 3.x, which support common parameters for docker 1.13.0 and later versions: version # specify the version services of the compose file # define all service information. The first-level key under services is a service name build # sp
Create
Many languages, including English, use the immersion character (accented character). Because these characters are not part of the ASCII character set, it is difficult to write code that uses these characters without looking at the Unicode value or using the Unicode editor and turning it into a known character set.
Oracle9i introduces the COMPOSE function, which accepts a string of Unicode characters and rules its text. This means that it can a
In the previous part, " Run the ASPDOTNETCOREMVC program on Docker-part4: Load Balancing ", We have several more complex steps on the Docker platform to achieve the load balance of the website program, configuration steps are more. If the actual site is less, the overall architecture is relatively simple case, this does not have much problem, if the application of more time, will be prone to error. At this point we may think of writing scripts to automate, of course, this is possible. Docker, ho
Docker-compose is an open-source Docker management tool for simplifying complex container environments.Docker-compose can easily deploy a set of environments in conjunction with Swarm and Docker process container deployments.The specific process is as follows:650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/80/46/wKioL1c9LSrwieMrAAA9K-eHDy4315.png "title=" 1.png " alt= "Wkiol1c9lsrwiemraaa9k-ehdy4
Get readyFirst, before using and installing the Docker compose, we should make sure that we have the Docker engine installed.installationThere are a variety of installation methods on the official website, as we are now using Docker, and personally feel that we should consider the problem in Docker-we will install the Docker-compose in container way.1. Check the compose
Directory
Docker Compose
Brief introduction
Installation
WEBAPI Project
Create a project
Writing Dockfile
Web MVC Project
Create a project
Writing Dockfile
Writing docker-compose.yml files
Run the project
Source
Reference
This article simulates a relatively
For details about how to install docker-ce and docker-compose in ubuntu,Install docker in mint 18.2 (Sonya)
Similar to ubuntu installation, refer to the ubuntu installation method provided on the official website.Delete the original version
Sudo apt-get remove docker-engine docker. io (this step is recommended) now the default docker file system is overlay2. If you need to use aufs (the early docker File System), execute the following command
sudo apt
Functions of docker-compose
Docker-comopse can help us quickly build a development environment. For example, you can deploy redis, MongoDB, rabbitmq, MySQL, Eureka, and configserver on the local machine once, and then let them be the basis of other projects, which can be implemented.Communication between containers-links
Since each docker instance is a closed environment, it cannot be shared by default, that is, your rabbit container cannot connect to
Believe that the small partners in the use of Rxjava and retrofit request network, have encountered such a scenario, in the IO thread request network parsing data, and then return to the main thread SetData, update view attempt, then also certainly familiar with the following lines of code:.subscribeOn(Schedulers.io()).unsubscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribe(subscriber);If the number of network requests is relatively small, as a sloppy (lazy cancer) in
Docker-compose Use Example
Using Docker to build a MySQL + Java service + Nginx, a total of 4 Docker containers, if used Docker run way a container to create very cumbersome. In order to create containers more efficiently, Docker introduced the Docker-compose tool to quickly fix the creation of a set of containers just by defining a docker-compose.yml file.
MySQL:
image:daocloud.io/yjmyzz/mysql-os
app:restart:always Build:./app working_dir:/app volumes:-. /app:/app-~/.m2:/root/.m2 Expose:-"8080" depends_on:-nginx-mysql command:mvn clean s Pring-boot:run-dspring-boot.run.profiles=docker
version: ‘3‘: Represents the use of a third-generation syntax to build a Docker-compose.yaml file.
services: Used to indicate the service that compose needs to start, we can see that there are three services in this file: Nginx, MySQL, app.
co
Tags: latest src dock different error compose scheme wrong PNGREDIS+MONGODB Two db is used in demo environment, so you can use Docker Redids and MongoDB image directly, and use Docker-compose for federated deployment. The following versions are used: Docker: Using Yum-y install Docker Docker-compose: use pip install Docker-c
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.