ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1
run the command vim /etc/mysql/my.cnf.
comment bind-address = 127.0.0.1 using the # symbol.
restart your mysql server once.
"""Genetic Algorithmn Implementation | |
""" | |
#引入随机函数 | |
import random | |
#定义基因遗传算法顶层接口 | |
class GeneticAlgorithm(object): | |
# 定义算法初始化 | |
def __init__(self, genetics): |
#!/bin/bash | |
#Modify this with your IP range | |
MY_IP_RANGE="192\.168\.1" | |
#You usually wouldn't have to modify this | |
PORT_BASE=5555 | |
#List the devices on the screen for your viewing pleasure | |
adb devices |
#!/bin/sh | |
opkg update | |
for ipk in $(opkg list-upgradable | awk '$1!~/^kmod|^Multiple/{print $1}'); do | |
opkg upgrade $ipk | |
done |
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |
美国企业号是宇宙飞船,官方名称是“星舰”。比现在的海军巡洋舰有点大,它是Starfleet服务中规模最大,最现代化的船只。它有一个430人的船员,其中约三分之一是女性。
The U.S.S. Enterprise is a spaceship, official designation "starship." Somewhat larger than a present-day naval cruiser, it is the largest and most modern type vessel in the Starfleet Service. It has a crew of 430 persons, approximately one-third of them female.
ffmpeg -i "Apache Sqoop Tutorial Part 1.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
ffmpeg -i "Apache Sqoop Tutorial Part 2.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate2.ts
ffmpeg -i "Apache Sqoop Tutorial Part 3.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate3.ts
ffmpeg -i "Apache Sqoop Tutorial Part 4.mp4" -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate4.ts
ffmpeg -i "concat:intermediate1.ts|intermediate2.ts|intermediate3.ts|intermediate4.ts" -c copy -bsf:a aac_adtstoasc "Apache Sqoop Tutorial.mp4"