上一页 1 2 3 4 5 6 7 8 9 ··· 34 下一页

2021年1月13日

查看系统中安装了哪些python版本

摘要: 命令行里输入:whereis python 阅读全文

posted @ 2021-01-13 17:14 cag2050 阅读(885) 评论(0) 推荐(0)

-p py, --python py target interpreter for which to create a virtual (either absolute path or identifier string) 中 identifier string 的含义

摘要: $ virtualenv --help -p py, --python py target interpreter for which to create a virtual (either absolute path or identifier string) (default: /Library 阅读全文

posted @ 2021-01-13 15:09 cag2050 阅读(90) 评论(0) 推荐(0)

2021年1月12日

peewee 报错:ImportError: No module named 'MySQLdb';pymysql 报错:from . import connections # noqa: E402

摘要: 报错内容: Traceback (most recent call last): File "/data/app/abadmin/current/venv/lib/python3.5/site-packages/peewee.py", line 49, in <module> import MySQ 阅读全文

posted @ 2021-01-12 17:02 cag2050 阅读(931) 评论(0) 推荐(0)

2020年12月31日

Flask 学习资料

摘要: Flask 学习资料 网址 Flask 中文文档 http://www.pythondoc.com/flask/index.html (http://www.pythondoc.com/ 上面很多python中文文档,所在github:https://github.com/sixu05202004/ 阅读全文

posted @ 2020-12-31 11:18 cag2050 阅读(114) 评论(0) 推荐(0)

2020年12月21日

指标相关术语

摘要: 指标 英文 说明 CAC Customer Acquisition Cost 用户获取成本 COC Customer Operation Cost 用户运营成本 阅读全文

posted @ 2020-12-21 21:18 cag2050 阅读(166) 评论(0) 推荐(0)

2020年12月15日

hive表插入列时,必须按照列的顺序一对一写插入的字段

摘要: hive表插入列时,必须按照列的顺序一对一写插入的字段 阅读全文

posted @ 2020-12-15 21:27 cag2050 阅读(693) 评论(0) 推荐(0)

乱码示例及产生原因

摘要: 阅读全文

posted @ 2020-12-15 21:24 cag2050 阅读(381) 评论(0) 推荐(0)

2020年11月27日

ECharts series data 数组里面的元素,可以是对象

摘要: 修改自:https://echarts.apache.org/examples/zh/editor.html?c=line-stack 注意: 对象里面value的值,用来显示在y轴上。 option = { title: { text: '折线图堆叠' }, tooltip: { trigger: 阅读全文

posted @ 2020-11-27 18:37 cag2050 阅读(7272) 评论(0) 推荐(0)

2020年11月22日

Docker for Mac 配置镜像加速器,加快镜像下载速度

摘要: https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors 针对安装了Docker for Mac的用户,您可以参考以下配置步骤: 在任务栏点击 Docker Desktop 应用图标 -> Perferences,在左侧导航菜单选择 Do 阅读全文

posted @ 2020-11-22 23:03 cag2050 阅读(1070) 评论(0) 推荐(0)

2020年11月20日

sql函数split在presto、spark、hive中的不同

摘要: 执行此sql:select split('85076|0','\\|')[0],结果如下表: 查询引擎 结果 presto 85076|0 spark 85076 hive 85076 阅读全文

posted @ 2020-11-20 19:40 cag2050 阅读(3476) 评论(0) 推荐(0)

2020年11月18日

字段类型为:map<string,string> 时,查询取值(必须使用单引号)

摘要: 举例: field字段类型为:map<string,string>,里面有key为extra(必须使用单引号) select field['extra'] from your_table_name where 分区限制 阅读全文

posted @ 2020-11-18 13:59 cag2050 阅读(1960) 评论(0) 推荐(0)

2020年11月13日

vendor模式下get报错:go get: disabled by -mod=vendor,此时go env里 GOFLAGS=" -mod=vendor"

摘要: 出处:https://segmentfault.com/a/1190000019314903 vendor模式下get报错 goland编辑器勾选vender后会开启vendor模式。 `` go get: disabled by -mod=vendor mod有三个取值 mod can be '' 阅读全文

posted @ 2020-11-13 10:54 cag2050 阅读(642) 评论(0) 推荐(0)

2020年11月12日

Etcd使用go module的灾难(包依赖问题)

摘要: https://colobu.com/2020/04/09/accidents-of-etcd-and-go-module/ 阅读全文

posted @ 2020-11-12 20:55 cag2050 阅读(218) 评论(0) 推荐(0)

Go time.Parse转时间戳为啥会自动加8小时?

摘要: https://www.zhihu.com/question/57382175 阅读全文

posted @ 2020-11-12 11:56 cag2050 阅读(470) 评论(0) 推荐(0)

2020年11月2日

scala 下划线使用指南

摘要: https://dongkelun.com/2018/03/29/scalaUnderscoreUseGuide/ 阅读全文

posted @ 2020-11-02 17:41 cag2050 阅读(92) 评论(0) 推荐(0)

【Spark】遍历DataFrame中的每一行数据

摘要: https://blog.csdn.net/m0_37773338/article/details/104098441 阅读全文

posted @ 2020-11-02 11:02 cag2050 阅读(4307) 评论(0) 推荐(0)

2020年10月29日

正确使用shell返回值

摘要: https://itxx00.github.io/blog/2013/05/17/bash-shell-exit-code/ 阅读全文

posted @ 2020-10-29 17:45 cag2050 阅读(139) 评论(0) 推荐(0)

2020年10月27日

VS Code 使用

摘要: 去掉编辑区域右侧的预览功能:搜索"editor.minimap.enabled",默认值为打钩,我们只需要把钩去掉即可 自动换行: 阅读全文

posted @ 2020-10-27 20:20 cag2050 阅读(59) 评论(0) 推荐(0)

2020年10月24日

scala之case class 和case object

摘要: https://www.cnblogs.com/itboys/p/12747218.html 阅读全文

posted @ 2020-10-24 13:38 cag2050 阅读(178) 评论(0) 推荐(0)

2020年10月23日

Spark 遇到问题汇总

摘要: Spark 遇到问题汇总 说明 WARN Utils: Truncated the string representation of a plan since it was too large. This behavior can be adjusted by setting 'spark.debu 阅读全文

posted @ 2020-10-23 16:19 cag2050 阅读(1714) 评论(0) 推荐(0)

PHP 知识点

摘要: 菜鸟教程,看到:https://www.runoob.com/php/php-syntax.html ⇒ 是数组成员访问符号 → 是对象成员访问符号 :: 是引用类中静态方法或静态属性 调试php: var_dump(变量);exit; echo 和 print 区别: echo - 可以输出一个或 阅读全文

posted @ 2020-10-23 11:10 cag2050 阅读(101) 评论(0) 推荐(0)

PHP 学习资料

摘要: PHP 学习资料 网址 PHP 菜鸟教程 https://www.runoob.com/php/php-tutorial.html 阅读全文

posted @ 2020-10-23 11:06 cag2050 阅读(170) 评论(0) 推荐(0)

2020年10月15日

intelli idea新建无scala class选项解决方案

摘要: 出处:https://blog.csdn.net/ningyanggege/article/details/86622023 阅读全文

posted @ 2020-10-15 18:52 cag2050 阅读(144) 评论(0) 推荐(0)

sbt:构建工具

摘要: 官方中文文档,看到:https://www.scala-sbt.org/1.x/docs/zh-cn/Appending-Values.html 资料 网址 官方中文文档 https://www.scala-sbt.org/1.x/docs/zh-cn/Getting-Started.html sb 阅读全文

posted @ 2020-10-15 15:49 cag2050 阅读(249) 评论(0) 推荐(0)

2020年10月13日

详述 SQL 中的 distinct 和 row_number() over() 的区别及用法

摘要: 出处:https://blog.csdn.net/qq_35246620/article/details/56290903 阅读全文

posted @ 2020-10-13 20:54 cag2050 阅读(152) 评论(0) 推荐(0)

2020年10月9日

高性能日志库:zap

摘要: 资料 网址 github https://github.com/uber-go/zap 文档 https://pkg.go.dev/go.uber.org/zap 阅读全文

posted @ 2020-10-09 14:25 cag2050 阅读(178) 评论(0) 推荐(0)

2020年9月27日

C++ 知识点(菜鸟教程)

摘要: 看到:https://www.runoob.com/cplusplus/cpp-namespaces.html 资料 | 网址 | C++ 教程 | https://www.runoob.com/cplusplus/cpp-tutorial.html C++ 是 C 的一个超集,事实上,任何合法的 阅读全文

posted @ 2020-09-27 20:10 cag2050 阅读(376) 评论(0) 推荐(0)

2020年9月25日

Spark 学习资料

摘要: Spark 学习资料 网址 spark 2.4.0 官方 http://spark.apache.org/docs/2.4.0/ spark 2.4.0 scala api http://spark.apache.org/docs/2.4.0/api/scala/index.html#org.apa 阅读全文

posted @ 2020-09-25 02:03 cag2050 阅读(259) 评论(0) 推荐(0)

Hive 和 Parquet 底层文件存储类型,不一样

摘要: 资料 网址 hive doesn't change parquet schema https://stackoverflow.com/questions/36085891/hive-doesnt-change-parquet-schema HIVE底层文件存储类型PARQUET https://ww 阅读全文

posted @ 2020-09-25 01:32 cag2050 阅读(309) 评论(0) 推荐(0)

2020年9月24日

Hive 中,CHANGE COLUMN 和 REPLACE COLUMNS 的区别(不明白,待补充)

摘要: 资料 网址 Alter Column https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL#LanguageManualDDL-AlterColumn 参考资料: 存储信息存放在了表的元数据信息中。当对表执行一个SEL 阅读全文

posted @ 2020-09-24 18:20 cag2050 阅读(2312) 评论(0) 推荐(0)

2020年9月23日

Hive 学习资料

摘要: Hive 学习资料 网址 Apache Hive 中文手册 https://www.docs4dev.com/docs/zh/apache-hive/3.1.1/reference Hive 配置属性(官方英文) https://cwiki.apache.org/confluence/display 阅读全文

posted @ 2020-09-23 21:32 cag2050 阅读(181) 评论(0) 推荐(0)

2020年9月17日

Scala 待解决问题列表

摘要: Scala 待解决问题列表 object、base object、class、base class 区别? def定义的函数的返回值可以省略? 阅读全文

posted @ 2020-09-17 16:25 cag2050 阅读(127) 评论(0) 推荐(0)

2020年9月16日

Scala 知识点

摘要: Scala 与 Java 的最大区别是:Scala 语句末尾的分号 ; 是可选的。 符号"\("在 Scala 中也看作为字母。然而以"\)"开头的标识符为保留的 Scala 编译器产生的标志符使用,应用程序应该避免使用"$"开始的标识符,以免造成冲突。 Scala 内部实现时会使用转义的标志符,比 阅读全文

posted @ 2020-09-16 19:46 cag2050 阅读(203) 评论(0) 推荐(0)

2020年9月10日

在 Python3 中,bytes 和 str 的互相转换方式是:str.encode('utf-8')、bytes.decode('utf-8')

摘要: 在 Python3 中,bytes 和 str 的互相转换方式是: str.encode('utf-8')、 bytes.decode('utf-8') 阅读全文

posted @ 2020-09-10 10:33 cag2050 阅读(1279) 评论(0) 推荐(0)

2020年9月5日

Python 字符串前面加u,r,b的含义

摘要: https://www.cnblogs.com/liangmingshen/p/9274021.html 阅读全文

posted @ 2020-09-05 23:55 cag2050 阅读(150) 评论(0) 推荐(0)

2020年9月4日

Python 中值为 false 的所有情况

摘要: 在Python中所有的对象都可以进行真值测试,下面罗列一下判断为假的情况: None False 数值中的零,包括0,0.0,0j(虚数) 空序列,包括:空字符串''或""、空列表[]、空元组()、空集合set() 空的字典{} 自定义的对象的实例,该对象的__bool__方法返回False或者__ 阅读全文

posted @ 2020-09-04 17:26 cag2050 阅读(1897) 评论(0) 推荐(0)

2020年8月28日

git clone使用go mod包管理的项目后,使用go mod download下载包

摘要: git clone使用go mod包管理的项目后,使用go mod download下载包 阅读全文

posted @ 2020-08-28 15:23 cag2050 阅读(2124) 评论(0) 推荐(0)

2020年8月26日

预测最近面试会考 Cookie 的 SameSite 属性

摘要: 出处:https://juejin.im/post/6844904095711494151 阅读全文

posted @ 2020-08-26 16:26 cag2050 阅读(166) 评论(0) 推荐(0)

2020年8月17日

Make 命令教程

摘要: 如果Make命令运行时没有指定目标,默认会执行Makefile文件的第一个目标。 前置条件通常是一组文件名,之间用空格分隔。它指定了"目标"是否重新构建的判断标准:只要有一个前置文件不存在,或者有过更新(前置文件的last-modification时间戳比目标的时间戳新),"目标"就需要重新构建。 阅读全文

posted @ 2020-08-17 21:39 cag2050 阅读(307) 评论(0) 推荐(0)

Zsh 只提供了`run-help`命令;想使用`help`命令的话,可以进入 bash 中

摘要: Unlike Bash, Zsh does not enable a built in help command, instead it provides run-help. By default run-help is an alias to man 想使用help的话,可以进入 bash 中,在 阅读全文

posted @ 2020-08-17 00:13 cag2050 阅读(461) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 ··· 34 下一页

导航