Author: Echo

Avatar

四阶魔方层先法-第四层

魔方初始:白对黄,橙对红,蓝对绿 W:白 Y:黄 O:橙 R:红 B:蓝 G:绿 L: 左面 R: 右面 U: 顶面 D: 底面 F: 正面 B: 背面 Lw: 左两层 ML: 左第二层 Rw: 右两层 MR: 右第二层 Uw: 顶两层 MU: 顶第二层 旋转; 从所在面来看顺逆方向: 默认为顺时针旋转90°,不带标记 ‘ : 逆时针旋转90° 2: 重复旋转两次,即180°旋转 ================================== 底面W 顶面Y,第4层 STEP1: 角块同色 🧮角块同色算法; 右手算法/角块右面黄; 算法1: ———————– R’ U L U’ R U L’ U’ ———————– 🧮角块同色算法’ ; 左手算法/角块左面黄: ———————– L U’ R’ U L’ U’ R U ———————– 🧮三阶魔方的顶层十字算法; 正面翻棱 STEP2: 还原角块 两点同色的角块放在背面 🧮角块还原算法: ———————– L F ;构造…

Read More »

如何防止泳鏡起霧

防止泳鏡起霧的步驟: 1. 用洗潔精抹勻鏡片內外,流水洗淨,甩去水分; 2. 左右鏡片內部各加一小滴洗潔精,用手指肚打圈抹勻; 3. 靜置兩分鐘後,泳鏡內裝入清水,搖晃之後倒掉; 4. 陰乾泳鏡。 該方法效果明顯。

Read More »

Install MariaDB 10.4 + Apache2(httpd) 2.4 + PHP 7.3 on CentOS 7.6

1. 准备 cat /etc/redhat-release # CentOS Linux release 7.6.1810 (Core) 2. 安装MariaDB 10.4 cat | sudo tee /etc/yum.repos.d/mariadb.repo <<EOF [mariadb] name = MariaDB baseurl = https://yum.mariadb.org/10.4/rhel7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 EOF sudo yum install MariaDB-server MariaDB-client sudo systemctl start mariadb sudo systemctl enable mariadb #表名大小写不敏感 sudo sed -i ‘s/\[mysqld\]/[mysqld]\nlower_case_table_names=1/’ /etc/my.cnf sudo mysql_secure_installation Create database. Let’s take wordpress as an example: $ mysql -u root -p MariaDB [(none)]> CREATE DATABASE `wordpress` DEFAULT CHARACTER SET utf8 COLLATE utf8_bin; MariaDB [(none)]> grant all on wordpress.*…

Read More »

Centos7.4安装网易云音乐

转自「http://tieba.baidu.com/p/5593470159」 步骤如下: 1. 前往网易云音乐下载地址http://music.163.com/#/download,下载乌班图64位版本安装程序,例如netease-cloud-music_1.1.0_amd64_ubuntu.deb。 2. 解压netease-cloud-music_1.1.0_amd64_ubuntu.deb文件,执行如下命令: sudo ar -vx netease-cloud-music_1.1.0_amd64_ubuntu.deb 得到如下三个文件: x – debian-binary x – control.tar.gz x – data.tar.xz 继续解压data.tar.xz文件,执行如下命令: sudo xz -dk data.tar.xz sudo tar -xvf data.tar 解压后得到的usr目录,目录中包含bin、lib、share三个文件夹。 3. 将这个usr文件夹放入到CentOS7中的/usr目录下,执行如下命令: sudo cp -r usr/* /usr/ 4. 安装vlc,执行如下命令: sudo rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm sudo yum update sudo yum install vlc 5. 安装libXScrnSaver,执行如下命令: sudo yum install libXScrnSaver 6. 安装Anaconda,前往https://www.anaconda.com/download/#download网站,下载Python 3.6 version * “64-Bit (x86) Installer (551 MB)”文件,例如“Anaconda3-5.1.0-Linux-x86_64.sh”,下载完成后,执行如下命令: sudo sh Anaconda3-5.1.0-Linux-x86_64.sh 然后一路yes,直至安装结束。 7. 查看本机libgcc库信息,执行如下命令: sudo strings /usr/lib64/libstdc++.so.6 | grep GLIBC 可能会显示如下信息,视各人机器情况: GLIBCXX_3.4 GLIBCXX_3.4.1…

Read More »

How to change the default font of Linux

You’ll need to edit/create the file ~/.fonts.conf. The file does not exist by default. However, if you’ve used things like Font Manager, then there might be a placeholder file at ~/.fonts.conf telling you to use ~/.config/font-manager/local.conf instead, in which case you should create the latter. You should first open ~/.fonts.conf to check. To check if the file exists, a simple way would be to open the file manager, go to “Home”, check “View->Show Hidden Files” and see if you can find .fonts.conf. Once you’ve created the file, put…

Read More »

Install CloudStack 4.11.1.0 on CentOS 7.5

1 Preparation 1.1 设置selinux sed -i s#’SELINUX=enforcing’#’SELINUX=permissive’#g /etc/selinux/config setenforce 0 1.2 安装NTP(时间同步) yum -y install ntp systemctl enable ntpd 1.3 安装cloudstack.repo cat <<EOF > /etc/yum.repos.d/cloudstack.repo [cloudstack] name=cloudstack baseurl=http://cloudstack.apt-get.eu/centos/7/4.11/ enabled=1 gpgcheck=0 EOF 1.4 设置防火墙 firewall-cmd –permanent –add-port=111/tcp firewall-cmd –permanent –add-port=111/udp firewall-cmd –permanent –add-port=2049/tcp firewall-cmd –permanent –add-port=32803/tcp firewall-cmd –permanent –add-port=32769/udp firewall-cmd –permanent –add-port=892/tcp firewall-cmd –permanent –add-port=892/udp firewall-cmd –permanent –add-port=875/tcp firewall-cmd –permanent –add-port=875/udp firewall-cmd –permanent –add-port=662/tcp firewall-cmd –permanent –add-port=662/udp firewall-cmd –permanent –add-port=8080/tcp firewall-cmd –reload firewall-cmd –list-all 2 Installation 2.1 安装cloudstack-management yum -y install…

Read More »

Install fcitx-cloudpinyin on CentOS 7.5

1. 卸载ibus yum remove ibus imsettings 2. 安装拼音输入法 yum install imsettings fcitx yum install fcitx-cloudpinyin fcitx-configtool imsettings-switch fcitx 3. 配置Fcitx 在~/.bashrc中添加如下内容 export GTK_IM_MODULE=fcitx export QT_IM_MODULE=fcitx export XMODIFIERS=”@im=fcitx” 打开fcitx的配置工具,选择输入法标签点”+”可以搜索并添加输入法 4. Logout & Login Reference https://blog.csdn.net/maokexu123/article/details/44495395

Read More »