小任班长 发布的文章

Nginx 是前后端开发工程师必须掌握的神器。该神器有很多使用场景:比如反向代理、负载均衡、动静分离、跨域等等。
把 Nginx 下载下来打开 conf 文件夹的 nginx.conf 文件,Nginx 服务器的基础配置和默认的配置都存放于此。

nginx在线配置

配置是让程序员非常头疼的事,比如 Java 后端框架 SSM,大量配置文件让不少人头皮发麻,所以才涌现了 Spring Boot 这样能简化配置的框架。
如果能够采用可视化的方式对 Nginx 进行配置,那该多好,后来在 GitHub 上发现了这款,可以一键生成 Nginx 配置的神器,相当给力
先来看看它都支持什么功能的配置:反向代理、HTTPS、HTTP/2、IPv6, 缓存、WordPress、CDN、Node.js 支持、 Python (Django) 服务器等等

如果你想在线进行配置,只需要打开网站:https://nginxconfig.io/,按照自己的需求进行操作就行了

nginx轻松搞定配置

选择你的场景,填写好参数,系统就会自动生成配置文件。

开源地址:github.com/digitalocean/nginxconfig.io

网站:digitalocean.com/community/tools/nginx

近日,微信 iOS 平台迎来了 8.0.27 正式版更新。苹果 App Store 显示,微信 iOS 版 8.0.27 正式版解决了一些已知问题,但并未公布具体更新内容。

微信最新ios版本

网友发现,本次微信支持公众号中的个人信息与权限管理。用户可通过公众号-个人信息与权限管理进行查看。还带来了“消费者保护”,包括帮助中心、安全保障、隐私保护、协议与公示、消费者教育等功能。

除此之外,微信还带来了多个新功能和改进。

在微信-扫一扫-我的二维码页面下方有扫一扫、换个样式和保存图片按钮选项,点击“换个样式”后,二维码可更换不同风格,还有全屏背景颜色版,更现代更美观了。目前有 10 种样式可供用户选择。

我的二维码

另外,朋友的个人状态除了状态表情外,现在还可以展示文字说明。

部分用户正在内测微信视频通话悬浮窗功能,当切换到后台时不再显示黑屏,而会正常显示自己。这样可以一边悬浮聊天,一边浏览其它内容。启用 iPhone 画中画功能,可前往在「设置 — 通用 — 画中画」界面打开开关。

微信笔记更加高级。微信-我的-收藏,点击右上角 +,新建笔记。现在撤销、重复按钮移动到右上角;加粗、项目符号、编码、分割线和待办按钮显示在功能栏;支持文字高亮;点击 + 显示添加照片、拍摄、位置、文件、录音;支持语音笔记。

微信笔记

在视频号中长按视频,弹出菜单新增“浮窗”和“自动上滑”新功能。前者是将其放置到负一屏,后者是观看视频自动滑到下一个视频。

设置 — 通用中“清空聊天记录”按钮文字变为“清空全部聊天记录”,点击后还会出现全屏提示,提醒“被清空的聊天记录将无法恢复,请再次确认是否清空所有个人和群的聊天记录。”“清空全部”按钮红色背景更显眼。

清空全部聊天记录

微信在浏览公众号或网页时按下截屏操作,右下角会触发出现“保存整页为图片”的按钮。不只是微信公众号,其他任何网页都可以。点击按钮后就可以进行裁剪并保存等操作。

微信还在测试朋友圈修改可见范围功能。iPhone 用户需更新微信至最新版,点击自己的朋友圈中的一条,然后点击右上方三个点,会弹出相关菜单,其中部分用户会出现“修改可见范围”。随后用户可自行修改可见范围的权限,包括公开、私密、部分可见、不给谁看等。《微信 App 测试朋友圈“修改可见范围”》

8 月 18 日消息,微信安卓平台迎来了 8.0.27 正式版更新,本次更新安装包文件详细信息如下
官方更新日志为:
微信安卓 8.0.27
修复了一些已知问题。

微信安卓 8.0.27 正式版新增了微信公众号授权管理功能,用户可在通讯录 > 公众号 > 右上角三点 > 个人信息与授权管理 中对已授权的公众号进行管理。

微信安卓 8.0.27

可以看到,用户可以将某个公众号设置为消息免打扰、不接收文章推送、取消已授权信息等。

此外,微信安卓 8.0.27 正式版优化了小程序 / 小游戏代码包下载的耗时。

查询出来的数据库结束时间(字符串类型):2020-03-07 23:55:00.0
DateUtils.parse使用"yyyy-MM-dd HH:mm:ss"解析的时候报错。
java.text.ParseException: Unable to parse the date: 2020-03-07 23:55:00.0

解决方法:

//先转换成时间戳类型,再转化成date
Timestamp date_time= (Timestamp) MapUtils.getObject(map,"date_time");
Date fmtDate= new Date(date_time.getTime());
log.error("转换后日期:{}",DateUtils.formatDate(fmtDate,"yyyy-MM-dd HH:mm:ss"));

用得最多的日期时间类型,就是 DATETIME。虽然 MySQL 也支持 YEAR(年)、 TIME(时间)、DATE(日期),以及 TIMESTAMP 类型,但是在实际项目中,尽量用 DATETIME 类型。因为这个数据类型包括了完整的日期和时间信息,取值范围也最大,使用起来比较方便。毕竟,如果日期时间信息分散在好几个字段,很不容易记,而且查询的时候,SQL 语句也会更加复杂。

此外,一般存注册时间、商品发布时间等,不建议使用DATETIME存储,而是使用时间戳,因为DATETIME虽然直观,但不便于计算。

According to CCTV news, at 12:12 on July 27, 2022, Beijing time, the Lijian-1 carrier rocket (ZK-1A) successfully made its maiden flight at my country's Jiuquan Satellite Launch Center.

According to reports, the Lijian-1 carrier rocket also successfully sent 6 satellites for the space new technology test satellite, the orbital atmospheric density detection test satellite, the low-orbit quantum key distribution test satellite, the electromagnetic assembly test double satellite and the Nanyue Science Star. The orbit, the launch mission was a complete success, and the six satellites were used for space exploration, atmospheric density detection and other related technology verification and test applications.

"Li Jian No. 1" is the "Zhongke No. 1 A" (ZK-1A) carrier rocket. It was developed by Beijing Zhongke Aerospace Exploration Technology Co., Ltd. and is currently the solid rocket with the largest carrying capacity in China.

"Li Jian No. 1" also has the advantages of higher carrying efficiency, shorter preparation period, lower launch cost, etc., and will provide a more powerful solid launch vehicle for China's commercial aerospace market.

Li Jian-1

my country's largest solid rocket "Li Jian-1" successfully made its maiden flight, sending 6 satellites into predetermined orbits

Lijian No. 1 is a four-stage solid launch vehicle, which is a non-boost configuration in the "Zhongke No. 1" series, derived from the basic type "Zhongke No. 1". The rocket has a take-off weight of 135 tons and a 700-kilometer sun-synchronous orbit carrying capacity of 1,330kg.

Lijian No. 1 is a four-stage solid

my country's largest solid rocket "Li Jian-1" successfully made its maiden flight, sending 6 satellites into predetermined orbits

"Zhongke No. 1 A" has a total length of 31 meters and a maximum diameter of 2.65 meters for the core stage (core one and two cores). The ton-level solid rocket motor has a take-off weight of 135 tons, and its low-Earth orbit (LEO) capacity is about 2 tons, and its 700-kilometer sun synchronous orbit (SSO) capacity is 1.33 tons.

免责声明
本博客部分内容来自于互联网,不代表作者的观点和立场,如若侵犯到您的权益,请联系[email protected]。我们会在24小时内进行删除。