【腾讯云】云产品限时秒杀,爆款1核2G云服务器,首年99元
摘要: const list = [ { name: 'John', age: 25 }, { name: 'Alice', age: 30 }, { name: 'Bob', age: 20 } ]; list.sort((a, b) => { // 首先按照 name 属性进行升序排序 if (a.na 阅读全文
posted @ 2023-07-07 10:59 happenzh 阅读(207) 评论(0) 推荐(0) 编辑
摘要: //数据转换类型mongodb过滤数据并聚合 db.IotMeterGasUsedRecord_2020.aggregate([{ // 获取字段 $project: { _id: 0, // 类型转换 RecordUsedValue: { $toDouble: { $substrBytes: [" 阅读全文
posted @ 2021-03-30 14:08 happenzh 阅读(76) 评论(0) 推荐(0) 编辑
摘要: ionic 4集成百度地图以及出坑指南 1.集成步骤 (1)ionic内index.html页面添加百度地图js引用 <script src="https://api.map.baidu.com/getscript?v=2.0&ak=百度地图ak"> </script> 百度地图ak申请步骤 (2) 阅读全文
posted @ 2020-04-01 14:41 happenzh 阅读(1044) 评论(0) 推荐(0) 编辑
摘要: 在ionic4的环境下,执行ionic build发现如下错误: Could not find plugin “proposal-numeric-separator” 解决方案: https://stackoverflow.com/questions/60787334/ionic-android-b 阅读全文
posted @ 2020-03-26 16:17 happenzh 阅读(988) 评论(0) 推荐(0) 编辑
摘要: centos进入市场后报错,提示Cannot update read-only repo,且软件列表不能刷新,解决方案,执行如下命令, dnf install -y centos-release-stream and then dnf update 参考地址。 阅读全文
posted @ 2020-01-30 14:50 happenzh 阅读(4189) 评论(0) 推荐(0) 编辑
摘要: 早期mysql首次安装过mysql之后直接输入如下命令会后,直接敲击回车键即可进入: 但目前新版本直接敲击会车不能进入,在官方文档找到如下信息: yum安装时,根据以上内容我们需要在文件/var/log/mysqld.log文件中查找默认密码; apt安装时,根据以上内容我们需要在文件 /etc/m 阅读全文
posted @ 2020-01-09 16:25 happenzh 阅读(5903) 评论(0) 推荐(0) 编辑
摘要: MySQL重新设置密码 在安装mysql过程中可能操作过快,直接未设置登录密码,或者时间过程忘记登录密码,可以通过如下步骤重置mysql密码: 1.查找配置文件位置 在mysql配置文件最后一行添加如下代码: locate my.cnf 根据本机情况查看具体配置文件位置。 2.在配置文件内设置忽略认 阅读全文
posted @ 2019-12-19 16:48 happenzh 阅读(3936) 评论(0) 推荐(0) 编辑
摘要: hadoop环境搭建 本环境基于操作系统为centos 7.4 1708,官方镜像已经不提供下载,只有readme,查看readme找到镜像地址。hadoop采用的版本为2.7.4,下载地址。以下为环境部署步骤: 一、安装JDK 1.安装之前先检测 安装之前先检测是否自带的有java sdk,如果存 阅读全文
posted @ 2019-12-17 11:52 happenzh 阅读(217) 评论(0) 推荐(0) 编辑
摘要: using System; using System.ComponentModel; namespace ConsoleApp1 { internal class Program { private static void Main(string[] args) { var value = GetEnumValueByDes... 阅读全文
posted @ 2019-06-04 14:23 happenzh 阅读(363) 评论(0) 推荐(0) 编辑
摘要: grant all privileges on dbname.* to username@'userhost' identified by "userpassword"; flush privileges; all privileges是所有权限,也可设置为分类,包含以下分类:select, insert, update, delete, create, drop,index, alter, ... 阅读全文
posted @ 2019-02-14 15:55 happenzh 阅读(5246) 评论(0) 推荐(0) 编辑