在这篇短文中,我们记录了如何在使用 [Ubuntu][] 1804 LTS
操作系统的单台服务器上,建立用户隔离的 [JupyterLab][] Web 环境。
目标是:
- 操作系统的用户可以各自不受干扰的使用独立的 [JupyterLab][]
- 各个用户的 [Conda][] 环境可以自动的出现在 [JupyterLab][] 的
Kernel
列表中
version: "3.9" | |
services: | |
db: | |
image: mysql/mysql-server:5.7 | |
environment: | |
MYSQL_DATABASE: 'db' | |
MYSQL_ROOT_PASSWORD: 'secret-pw' | |
MYSQL_ROOT_HOST: '%' | |
ports: | |
- '3306:3306' |
brew install automake libtool wget | |
wget https://github.com/google/protobuf/releases/download/v2.5.0/protobuf-2.5.0.tar.bz2 | |
tar -xvjf protobuf-2.5.0.tar.bz2 | |
cd protobuf-2.5.0 | |
./autogen.sh | |
./configure | |
make; make check | |
sudo make install | |
Validate the successful installation: |
import org.apache.flink.api.common.functions.MapFunction; | |
import org.apache.flink.api.java.tuple.Tuple3; | |
import org.apache.flink.streaming.api.TimeCharacteristic; | |
import org.apache.flink.streaming.api.datastream.DataStream; | |
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment; | |
import org.apache.flink.streaming.api.functions.timestamps.AscendingTimestampExtractor; | |
import org.apache.flink.table.api.Table; | |
import org.apache.flink.table.api.TableEnvironment; | |
import org.apache.flink.table.api.java.StreamTableEnvironment; | |
import org.apache.flink.types.Row; |
# DELETE A TABLE IN THE HIVE METASTORE | |
# BE CAREFUL! BACKUP THE DB BEFORE PROCEEDING! | |
set @table_name = ''; | |
SELECT @tbl_id := TBl_ID FROM TBLS WHERE TBL_NAME = @table_name; | |
-- Delete partition key vals | |
DELETE pvk | |
FROM PARTITION_KEY_VALS pvk |
There's an issue with cairo 14.x that results in the axis fonts on the graphs being HUUUUUGE. Downgrading to 12.6 helps:
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
Previous versions used homebrew to install the various versions. As suggested in the comments, it's better to use pyenv
instead. If you are looking for the previous version of this document, see the revision history.
$ brew update
$ brew install pyenv
$ pyenv install 3.5.0
$ pyenv install 3.4.3
$ pyenv install 3.3.6
$ pyenv install 3.2.6
$ pyenv install 2.7.10
$ pyenv install 2.6.9