摘要: 球球了,复制别人的代码一定要做单元测试!!!跑了大半年的代码,2024年12月30日凌晨崩了!!!心态都炸了!!! 代码参考链接:https://www.php.cn/faq/502532.html 有bug啊 有bug啊 下面为执行正常示例和异常示例 <?php $firstDayThisMont 阅读全文
posted @ 2025-01-03 17:46 露娜喵喵 阅读(44) 评论(1) 推荐(0) 编辑
摘要: const package = require('../package'); const fs = require('fs'); const opentype = require('opentype.js'); function findUnsupportedChars(fontPath, text 阅读全文
posted @ 2024-10-12 11:05 露娜喵喵 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 使用了Python的Pillow库 import sys from PIL import Image Image.MAX_IMAGE_PIXELS = 2000000000 def convert_image_to_jpg(input_path, output_path, dpi=300, colo 阅读全文
posted @ 2024-05-30 11:57 露娜喵喵 阅读(347) 评论(0) 推荐(0) 编辑
摘要: 为了让这个函数更加灵活以支持任意大小的图片和不同的分割大小,我们可以将函数的参数稍作调整,使其接受目标分割尺寸(targetSize)作为参数,而不是硬编码为10000。同时,我们可以使用整数除法(//)来确保分割的尺寸是整数,并且使用模数运算符(%)来检查是否需要进行最后一次不完全的分割。 以下是 阅读全文
posted @ 2024-05-07 09:26 露娜喵喵 阅读(3) 评论(0) 推荐(0) 编辑
摘要: convert: error while loading shared libraries: libMagickCore-7.Q16HDRI.so.10: cannot open shared object file: No such file or directory 执行 ldconfig /u 阅读全文
posted @ 2024-04-18 11:58 露娜喵喵 阅读(77) 评论(0) 推荐(0) 编辑
摘要: puppeteer/.local-chromium/linux-1002410/chrome-linux/chrome: error while loading shared libraries: libXdamage.so.1: cannot open shared object file: No 阅读全文
posted @ 2024-04-17 13:14 露娜喵喵 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 查看当前系统版本 [root@demodemo ffmpeg-6.0]# lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: CentOS Linux rele 阅读全文
posted @ 2024-03-30 18:30 露娜喵喵 阅读(674) 评论(0) 推荐(0) 编辑
摘要: CREATE TABLE `a` ( `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `supply_id` bigint(20) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE= 阅读全文
posted @ 2023-09-18 11:34 露娜喵喵 阅读(96) 评论(0) 推荐(0) 编辑
摘要: crontab + ThinkPHP6 配合使用 1:命令行 执行 php think make:command Hello hello php think make:command 控制器名 方法名 2:console 配置 3:测试执行 php think hello 控制台得到结果hello 阅读全文
posted @ 2023-04-03 18:25 露娜喵喵 阅读(201) 评论(0) 推荐(0) 编辑
摘要: php抛出异常Exception和\Exception使用区别 没有定义命名空间的情况下 , Exception和\Exception 均可正常执行抛出异常;定义命名空间的情况 , Exception 会在定义的命名空间下找对应的异常类 , 如果没有定义异常类 , 则会报错 ;定义命名空间的情况 , 阅读全文
posted @ 2018-06-20 15:49 露娜喵喵 阅读(14605) 评论(0) 推荐(3) 编辑
点击右上角即可分享
微信分享提示