内网穿透

内网穿透 https://github.com/ehang-io/nps https://github.com/ehang-io/nps/releases docker pull ffdfgdfg/nps docker run -d --name nps --net=host -v nps-config:/conf ffdfgdfg/nps 内网穿透 https://github.com/ehang-io/nps https://github.com/ehang-io/nps/releases docker pull ffdfgdfg/nps docker run -d --name nps --net=host -v nps-config:/conf ffdfgdfg/nps

2020-04-28 · 1 min · 30 words · -

google voice

google voice Apple客服: +1(800)275-2273 微软客服: +1 (800) 642-7676 Google Voice简介及使用&保号 保号 电话呼出 可以找有GV的熟人互打,相信网友为了隐私起见是不会和你互打的。这里也提供几个免费的美国号码供大家拨打: +1 (415) 787-4253 某IFTTT的定时拨号服务御用号码,是机器人 +1 (888) 280-4331 亚马逊免费客服电话 电话呼入 IFTTT 我觉得这是最优解,用IFTTT的定时服务定期拨打电话给你即可,这里推荐两个service Keep Google Voice Active 一个月拨打一次,可自定义时间和日期 Alarm Clock Phone Call 强迫症福利,可自定义拨打频率、时间

2020-02-08 · 1 min · 34 words · -

idea config, 配置

idea config, 配置 intellij idea 设置显示空格 View>Active Editor>show whitespaces 在IDEA里输入中文,fcitx vim /sbin/idea export XMODIFIERS="@im=fcitx" export GTK_IM_MODULE="fcitx" export QT_IM_MODULE="fcitx" https://blog.csdn.net/shiyibodec/article/details/73549501 java compiler File > Settings > Build, Execution, Deployment > Compiler > Java Compiler Change Target bytecode version to 1.8 of the module that you are working for. https://yangbingdong.com/2017/note-of-learning-idea-under-ubuntu/ font JetBrain推出了一个新的字体 JetBrain Mono. 号称是最适合程序员的编码的字体 terminal 字体 Setting->Editor->Color Scheme->Console Font openjdk source Go to Project Structure dialog, select the “SDKs” node, select your JDK, ...

2019-04-14 · 1 min · 161 words · -

MySQL 字符串操作函数

MySQL 字符串操作函数 substring substring(‘sqlstudy.com’, 4, 2) 从字符串的第 4 个字符位置开始取,取 2 个字符。 -- 下标从1开始 MySQL> select substring('sqlstudy.com', 4, 2); +---------------------------------+ | substring('sqlstudy.com', 4, 2) | +---------------------------------+ | st | +---------------------------------+ http://www.cnblogs.com/xiangxiaodong/archive/2011/02/21/1959589.html MySQL常用字符串操作函数大全,以及实例 今天在论坛中看到一个关于MySQL的问题,问题如下 good_id cat_id 12654 665,569 12655 601,4722 goods_id是商品id cat_id是分类id 当我,怎么根据这种分类ID查数据 (一个商品有多个分类,而且用逗号隔开了) 我现在用的是like 这样的话,输入一个分类id是688,或者4722都能出来这个商品,但输入一个722也出来这个商品了。 如果用like做的话,肯定会有问题的,我的开始的想法是,把cat_id里面的字符串换成数组,这样可以利用MySQL里面的in操作,这样就不会出现查找722,而4722类别下的产品都跑出来了。我从网上找了半天,这方面的字符串操作函数,没找到,不过我发现了find_in_set这个函数虽然不能,将字符串转换成数组,但是也不会出现上面的情况。我发现自己有好多函数不知道,所以我从手册中,以及网上收集了半天,做了一些例子。 一,测试准备 查看复制打印? 测试表 CREATE TABLE string_test ( id int(11) NOT NULL auto_increment COMMENT ‘用户ID’, name varchar(50) NOT NULL default " COMMENT ‘名称’, ...

2016-04-11 · 7 min · 1357 words · -

MySQL 实现 row_number() over(partition by) 分组排序功能

MySQL 实现 row_number() over(partition by) 分组排序功能 mysql 8 MySQL ROW_NUMBER()从8.0版开始引入了功能。这ROW_NUMBER()是一个窗口函数或分析函数,它为从1开始应用的每一行分配一个序号。 mysql 8 之前的替代方案 SELECT t.*, @rownum := @rownum + 1 AS rank FROM YOUR_TABLE t, (SELECT @rownum := 0) r http://mrcelite.blog.51cto.com/2977858/745913 原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://mrcelite.blog.51cto.com/2977858/745913 由于MySQL没有提供类似ORACLE中OVER()这样丰富的分析函数. 所以在MySQL里需要实现这样的功能,我们只能用一些灵活的办法: 首先我们来创建实例数据: drop table if exists c; CREATE TABLE `heyf_t10` ( `empid` INT(11) NULL DEFAULT NULL, `deptid` INT(11) NULL DEFAULT NULL, `line` DECIMAL(10,2) NULL DEFAULT NULL ) COLLATE='utf8mb4_unicode_ci' ENGINE=InnoDB ; INSERT INTO `heyf_t10` (`empid`, `deptid`, `line`) VALUES (1,10,5500.00), (2,10,4500.00), (3,20,1900.00), (4,20,4800.00), (5,40,6500.00), (6,40,14500.00), (7,40,44500.00), (8,50,6500.00), (9,50,7500.00); 确定需求: 根据部门来分组,显示各员工在部门里按薪水排名名次. 显示结果预期如下: +——-+——–+———-+——+ | empid | deptid | line | rank | +——-+——–+———-+——+ | 1 | 10 | 5500.00 | 1 | | 2 | 10 | 4500.00 | 2 | | 3 | 20 | 1900.00 | 1 | | 4 | 20 | 4800.00 | 2 | | 5 | 40 | 6500.00 | 1 | | 6 | 40 | 14500.00 | 2 | | 7 | 40 | 44500.00 | 3 | | 8 | 50 | 6500.00 | 1 | | 9 | 50 | 7500.00 | 2 | +——-+——–+———-+——+ ...

2015-08-06 · 2 min · 394 words · -

MySQL 横表和纵表转换

MySQL 横表和纵表转换 (1) 表tb1有如下数据: 姓名 语文 数学 物理 张三 68 89 99 李四 90 66 78 现在要求写出查询语句得到如下查询结果 name subject score 张三 语文 68 张三 数学 89 张三 物理 99 李四 语文 90 李四 数学 66 李四 物理 78 sql语句如下: select 姓名 as name,‘语文’ as subject,语文 as score from tb1 union select 姓名 as name,‘数学’ as subject,数学 as score from tb1 union select 姓名 as name,‘物理’ as subject,物理 as score from tb1 ...

2014-01-17 · 2 min · 252 words · -