Python 提供了两个基本的 socket 模块:
Socket
它提供了标准的BSD Socket API。SocketServer
它提供了服务器重心,可以简化网络服务器的开发。
下面讲解下 Socket模块功能。
As the template database can't be deleted directly, so should change it into non-template database first; | |
$ psql -U postgres postgres | |
$ update pg_database set datistemplate='f' where datname='template_database'; | |
$ drop database template_database; | |
create a database based on the defined template database; | |
$ createdb -T template_database newdatabase; |
# -*- coding: utf-8 -*- | |
from django import forms | |
from crispy_forms.helper import FormHelper | |
from crispy_forms.layout import Layout, Div, Submit, HTML, Button, Row, Field | |
from crispy_forms.bootstrap import AppendedText, PrependedText, FormActions | |
class MessageForm(forms.Form): | |
text_input = forms.CharField() |
var vv = window, | |
w = vv.innerWidth, | |
h = vv.innerHeight; | |
var svg = d3.select("#animviz") | |
.append("svg") | |
.attr("width", w) | |
.attr("height", h); | |
svg.append("g").attr("class", "links"); |
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0 | |
description: OPNFV-Demo-flavor | |
# NOT USED | |
#imports: | |
# - tacker_nfv_defs.yaml | |
# - tacker_defs.yaml | |
metadata: |
#!/bin/sh | |
# https://github.com/bigswitch/deployment-support/blob/master/openstack/clean-devices.sh | |
set -e | |
for qvb in `ifconfig -a | grep qvb | cut -d' ' -f1` | |
do | |
`sudo ip link set $qvb down` | |
`sudo ip link delete $qvb` |
|
Some Time there is a shallow update not allowed issue in your cloned GIT repo.
This means that you have to unshallow your repository. To do so you will need to add your old remote again.
git remote add origin <path-to-old-remote>
After that we use git fetch to fetch the remaining history from the old remote (as suggested in this answer).
git fetch --unshallow origin
And now you should be able to push into your new remote repository.