2024年4月3日

phpstudy php8.2.9版本问题

摘要: 1、如果php8的扩展控制面板开启无效的话,可以手动开启试试 2、php有报错日志: Fatal error: Directive 'track_errors' is no longer available in PHP in Unknown on line 0 在切换php版本到更高版本时在终端查 阅读全文

posted @ 2024-04-03 17:34 andydaopeng 阅读(64) 评论(0) 推荐(0) 编辑

2024年3月28日

各种AI大模型(chatgpt)汇总 人工智能

摘要: 国外的(免费的,但需要登录vpn):https://www.coze.com/space/7312693780673740801/bot/7312695093595537409 kimi: https://kimi.moonshot.cn/chat/cnu06eonsmmisb95h9e0 智谱清言 阅读全文

posted @ 2024-03-28 16:30 andydaopeng 阅读(9) 评论(0) 推荐(0) 编辑

2024年3月15日

ubuntu安装宝塔面板教程, 并且配置 varnish缓存

摘要: 一.远程链接服务器 二.安装宝塔面板 1.执行安装命令,当询问各类安装时,均输入y同意,并回车继续运行。 wget -O install.sh http://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed 阅读全文

posted @ 2024-03-15 11:57 andydaopeng 阅读(99) 评论(0) 推荐(0) 编辑

2024年3月12日

使用Echarts和JSPDF图表到PDF

摘要: 我已经创建了一个带有echarts的图形,并希望使用JSPDF将其包括在PDF中。 一世 成立 这样做的一种方法可能是使用画布,将图形传输到图像, 最后将图像包括在PDF中。但是,我无法将图形传输到图像。这是代码: <!DOCTYPE html> <html> <head> <meta http-e 阅读全文

posted @ 2024-03-12 14:45 andydaopeng 阅读(15) 评论(0) 推荐(0) 编辑

2024年3月8日

echarts报表生成pdf文件

摘要: 完整的demo如下: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <title>Balken</title> <script src="stati 阅读全文

posted @ 2024-03-08 15:53 andydaopeng 阅读(13) 评论(0) 推荐(0) 编辑

jsPDF 文字、图片生成PDF(解决中文乱码)

摘要: JSPDF官网在线演示地址(不支持中文) 思源黑体字体库下载地址:https://gitee.com/ABCpril/SourceHansTtf https://github.com/adobe-fonts/source-han-sans/blob/release/README.md (后面一个是完 阅读全文

posted @ 2024-03-08 11:47 andydaopeng 阅读(279) 评论(0) 推荐(0) 编辑

2024年2月29日

laravel model

摘要: $query = DB::table(self::$_table) ->when(!empty($params), function($query) use ($params){ foreach ($params as $column=>$val){ $query->where($column, $ 阅读全文

posted @ 2024-02-29 14:45 andydaopeng 阅读(3) 评论(0) 推荐(0) 编辑

2024年2月28日

php 生成小程序二维码

摘要: public function generate($code, $isShow) { // 构建二维码参数 $scene = 'C=' . $code.'&path=green'; $params = [ "scene" => $scene, 'page' => 'pages/login/regis 阅读全文

posted @ 2024-02-28 16:04 andydaopeng 阅读(27) 评论(0) 推荐(0) 编辑

2024年2月27日

facebook, twitter, linkedin等的分享功能

摘要: 1. facebook分享 方法一:传入参数,此时标题获取的是页面title标签中的内容 <!DOCTYPE html> <html lang="en"> <head> <title>Document</title> </head> <body> <a href="https://www.faceb 阅读全文

posted @ 2024-02-27 18:33 andydaopeng 阅读(26) 评论(0) 推荐(0) 编辑

2024年1月30日

php 安装imagic扩展及服务

摘要: https://www.cnblogs.com/jinxiblog/p/8053008.html 最近的PHP项目中,需要用到切图和缩图的效果,在本地windows开发环境,安装过程遇到好多问题,在此与大家分享。 php官网里,一大群老外也看不懂这玩意怎么装,主要原因在于,php版本庞杂,还有x86 阅读全文

posted @ 2024-01-30 11:53 andydaopeng 阅读(90) 评论(0) 推荐(0) 编辑

2024年1月29日

php 从pdf中提取图片(图像)

摘要: ubuntu@VM-0-13-ubuntu:/www/wwwroot/product_ms$ pdfimages -list -f 6 -l 7 Command 'pdfimages' not found, but can be installed with: sudo apt install po 阅读全文

posted @ 2024-01-29 15:49 andydaopeng 阅读(41) 评论(0) 推荐(0) 编辑

2024年1月26日

pdfjs

摘要: 参考 demo: https://pdfjs.express/demo 阅读全文

posted @ 2024-01-26 15:26 andydaopeng 阅读(2) 评论(0) 推荐(0) 编辑

2024年1月24日

laravel 跨域

摘要: laravel怎么设置跨域(两种方法) 在前后端分离的项目中,前端请求后端接口时可能会遇到跨域的问题。其中,一个典型的场景是:前端项目运行在 http://localhost:8080,而后端项目运行在 http://localhost:8000,这时候就需要设置跨域。 在 Laravel 中,要设 阅读全文

posted @ 2024-01-24 11:03 andydaopeng 阅读(107) 评论(0) 推荐(0) 编辑

2023年12月20日

ffmpeg

摘要: php ffmpeg组件: PHP基础知识之————PHP Web脚本中使用FFmpeg 参考:https://blog.51cto.com/tinywan/6171599 参考文献: http://trac.ffmpeg.org/wiki/PHP https://github.com/PHP-FF 阅读全文

posted @ 2023-12-20 11:11 andydaopeng 阅读(2) 评论(0) 推荐(0) 编辑

2023年11月2日

PHP 合成gif 图片

摘要: 方法一: <?php namespace App\Services\Common; //namespace gifCreator; /** * Create an animated GIF from multiple images */ class Gifcreator { /** * @var s 阅读全文

posted @ 2023-11-02 13:43 andydaopeng 阅读(32) 评论(0) 推荐(0) 编辑

2023年10月8日

layui 相关

摘要: //layui table filter 监听筛选列工具条的点击事件(解决table右上角筛选时列名称不显示问题)table.on('toolbar(currentTableFilter)', function(obj){ if(obj.event 'LAYTABLE_COLS'){// 筛选列按钮 阅读全文

posted @ 2023-10-08 13:37 andydaopeng 阅读(10) 评论(0) 推荐(0) 编辑

2023年9月1日

H5 及 web 页面微信授权登录流程

摘要: https://blog.csdn.net/joe0235/article/details/115935515 一、事先准备工作配置参数测试公众平台信息(测试号相关配置示例): 1、打开公众平台的测试账号 2、配置js接口安全域名 3、扫码关注测试公众号 4、修改网页授权地址 配置授权回调的域名,至 阅读全文

posted @ 2023-09-01 11:38 andydaopeng 阅读(233) 评论(0) 推荐(0) 编辑

2023年8月18日

postman进行环境变量设置,全局变量设置 pm.response.json()

摘要: 环境变量的设置 在开发和测试的过程中,经常在开发环境,测试环境,生产环境来回切换,这样每次都要修改域名很麻烦,好在postman提供了可以切换环境更改域名的方法,这样只要配置好环境变量就可以切换域名了。具体操作步骤如下:1.点击postman右上角眼镜的图标2.点击“Add”按钮3.填写域名备注,域 阅读全文

posted @ 2023-08-18 10:59 andydaopeng 阅读(259) 评论(0) 推荐(0) 编辑

2023年7月26日

js 图片剪切

摘要: 1、 /static/cropper/cropper.min.js /static/cropper/cropper.min.css 2、 /static/plugin/jscrop/css/cropper.css /static/plugin/jscrop/cropper.js /static/pl 阅读全文

posted @ 2023-07-26 16:19 andydaopeng 阅读(18) 评论(0) 推荐(0) 编辑

2023年7月13日

layui相关问题

摘要: layui table横向滚动条不显示问题: 博主使用的是layuimini模板,显示出数据后发现滚动条消失了,在谷歌、IE浏览器都看不到,在火狐浏览器上倒是能正常显示出来,若没有水平滚动条,是不利于展示数据种类多的数据。搞了好久,最后发现竟然是layuimini模板css样式把它给禁用了。注释掉即 阅读全文

posted @ 2023-07-13 16:19 andydaopeng 阅读(73) 评论(0) 推荐(0) 编辑

2023年7月10日

各种瓜果、蔬菜种植

摘要: 种类 催芽方法 打芽、整枝 时间 成熟 甜瓜 种子用40度左右温水浸泡4-6小时至自然冷去,捞出沥干,用干净湿巾包好,置于25-30度处进行催芽,种子发芽期间每12小时用清水冲洗一次,以防腐烂。露白后即可播种备注:(我自己用温水跑了6个小时,然后直接种植) 甜瓜秧在长到三片真叶时,就要掐头, 然后它 阅读全文

posted @ 2023-07-10 17:23 andydaopeng 阅读(6) 评论(0) 推荐(0) 编辑

2023年6月30日

laravel8配置全局公共函数步骤详解

摘要: 1.首先添加文件,app/Helpers.php ,我这里是这个名字因为习惯了,你也可以自己定义 <?php if( !function_exists("getFileName") ){ /** * 从路径中获取文件名 * @param $fileName * @return string */ f 阅读全文

posted @ 2023-06-30 18:15 andydaopeng 阅读(274) 评论(0) 推荐(0) 编辑

2023年5月23日

使用Navicat将SQL server数据库导成mysql数据库

摘要: 一、第一种转换方法 1、使用Navicat Premium打开MySql数据库,然后新建一个数据库名(该数据库名称为需要从SqlServer数据库导过来的名称) 比如需要将SqlServer数据库中的“BJ_DeviceGovern”数据库导入到MySQL数据库中,则需要现在打开的MySQL中创建一 阅读全文

posted @ 2023-05-23 12:08 andydaopeng 阅读(1000) 评论(0) 推荐(0) 编辑

2023年5月15日

laravel The requested URL was not found on this server

摘要: 输入index.php是无异常的,但是进入自己定义的route时,如果地址栏中不包含index.php就( 注意是apache 服务器时) 需要排查两个地方: 1.apache 的rewrite_module 是否已经打开 LoadModule rewrite_module modules/mod_ 阅读全文

posted @ 2023-05-15 10:31 andydaopeng 阅读(279) 评论(0) 推荐(0) 编辑

2023年4月23日

ffmpeg测试

摘要: //视频截图测试// $outPath = rtrim($relativeFilePath, '.mp4');// $outPath = $outPath . '_a.jpg';// $shell = "ffmpeg -i " . $filePath . " -ss 1 -y -frames:v 1 阅读全文

posted @ 2023-04-23 16:19 andydaopeng 阅读(42) 评论(0) 推荐(0) 编辑

2023年4月21日

phpStorm自定义快捷键,输出代码块,模板

摘要: 在开发过程中经常需要打印数据调试,var_dump()或print_r都没办法直观的查看数据,我一般用如下代码打印数据,但是每次手动输入又麻烦,所以设置一个快捷键就能输出一下代码,岂不是一劳永逸 : 1.进入设置对话框: File->Setting 2.接下自定义快捷键:按一下步骤操作完,点击"ok 阅读全文

posted @ 2023-04-21 13:52 andydaopeng 阅读(94) 评论(0) 推荐(0) 编辑

2022年8月25日

sentry 日志监控

摘要: https://docs.sentry.io/platforms/php/ Apollo配置中心,开源配置中心之Apollo xxl-job定时任务 zookeeper:作用:配置管理、名字服务、分布式锁、集群管理 etcd api开源网关:apisix kong 阅读全文

posted @ 2022-08-25 14:08 andydaopeng 阅读(70) 评论(0) 推荐(0) 编辑

2022年6月24日

rabbitmq配置说明

摘要: 关于rabbitmq心跳 1.heartbeat检测时间间隔可在配置文件rabbitmq.config中增加配置项{heartbeat,Timeout}进行配置,其中Timeout指定时间间隔,单位为秒,另外客户端也可以配置heartbeat时间。 如果服务端没有配置 默认代理心跳时间: Rabbi 阅读全文

posted @ 2022-06-24 12:21 andydaopeng 阅读(1259) 评论(0) 推荐(0) 编辑

2022年2月25日

LARAVEL之DB类操作数据库

摘要: 查询所有 $data = DB::table('user')->get(); 查询所有,并指定字段 推荐使第一种方式 $data = DB::table('user')->get(['name','age']); 查询单条数据 $ret = DB::table('member')->where('i 阅读全文

posted @ 2022-02-25 17:49 andydaopeng 阅读(295) 评论(0) 推荐(0) 编辑

2022年1月13日

php中的Trait的使用方法

摘要: 概述 在PHP中有一种代码复用的技术, 因为单继承的问题, 有些公共方法无法在父类中写出, 而 Trait可以应对这种情况, 它可以定义一些复用的方法, 然后在你需要使用的类中将其引入即可. 刚开始的时候给我的感觉就是将trait代码块直接拿到类中的意思, 但后来我发现, 我太天真了. PHP中的T 阅读全文

posted @ 2022-01-13 11:42 andydaopeng 阅读(266) 评论(0) 推荐(0) 编辑

2021年10月28日

Linux下配置文件修改PATH环境变量、alias别名、个性化提示符,env

摘要: 配置文件 linux系统普通用户目录(cd ~)或root用户目录(cd /root)下,用指令ls -al可以看到4个隐藏文件, ~/.bash_history 记录之前输入的命令 ~/.bash_logout 当你退出bash shell时执行的命令 ~/.bash_profile 当你登入sh 阅读全文

posted @ 2021-10-28 14:21 andydaopeng 阅读(974) 评论(0) 推荐(0) 编辑

2021年9月17日

《《华为数据之道》读书笔记》

摘要: 《《华为数据之道》读书笔记》 阅读全文

posted @ 2021-09-17 17:32 andydaopeng 阅读(120) 评论(0) 推荐(0) 编辑

2021年8月19日

supervisor superlance

摘要: supervisor配置: [program:nps-mq-sessage] directory = /Library/work/workspace/avatar-dds-service command = php artisan consumer_nps_message autostart = t 阅读全文

posted @ 2021-08-19 17:25 andydaopeng 阅读(49) 评论(0) 推荐(0) 编辑

2021年7月23日

Laravel 返回日期问题2021-07-23T05:56:03.000000Z

摘要: 2021-07-23T05:56:03.000000Z 问题: "created_at": "2021-03-10T20:29:26.000000Z"我们需要的年月日时分秒,解决办法如下 将以下代码放入对应的Model中 引入 use DateTimeInterface;方法 protected f 阅读全文

posted @ 2021-07-23 14:18 andydaopeng 阅读(1155) 评论(0) 推荐(0) 编辑

2021年7月13日

client_loop: send disconnect: Broken pipe

摘要: client_loop: send disconnect: Broken pipe 配置~/.ssh/config文件,增加以下内容即可: Host * # 断开时重试连接的次数 ServerAliveCountMax 5 # 每隔5秒自动发送一个空的请求以保持连接 ServerAliveInter 阅读全文

posted @ 2021-07-13 18:10 andydaopeng 阅读(6161) 评论(0) 推荐(0) 编辑

2021年7月2日

supervisor后台进程管理工具

摘要: Supervisor安装配置(MAC) 安装supervisor: brew install supervisor 1 显示如下,就证明安装成功了 RPPETdeMacBook-Pro:data rppet$ brew install supervisor Updating Homebrew... 阅读全文

posted @ 2021-07-02 14:36 andydaopeng 阅读(245) 评论(0) 推荐(0) 编辑

2021年6月18日

mq概念

摘要: 想想为什么要使用MQ? 1.解耦,系统A在代码中直接调用系统B和系统C的代码,如果将来D系统接入,系统A还需要修改代码,过于麻烦! 2.异步,将消息写入消息队列,非必要的业务逻辑以异步的方式运行,加快响应速度 3.削峰,并发量大的时候,所有的请求直接怼到数据库,造成数据库连接异常 使用了消息队列会有 阅读全文

posted @ 2021-06-18 16:14 andydaopeng 阅读(47) 评论(0) 推荐(0) 编辑

2021年5月25日

Mac Xampp 安装redis 及 安装php-redis扩展

摘要: 如果要在mac上运行redis,只安装php-redis扩展是不行的,要先在mac上安装redis服务。一、安装redis服务1、通过homebrew安装redis sudo brew install redis12、启动redis服务,且接受客户端连接 sudo redis-server /usr 阅读全文

posted @ 2021-05-25 11:33 andydaopeng 阅读(322) 评论(0) 推荐(0) 编辑

rabbitmq死信队列(延迟队列)demo

摘要: <?php require_once './vendor/autoload.php'; use PhpAmqpLib\Connection\AMQPStreamConnection; use PhpAmqpLib\Message\AMQPMessage; use PhpAmqpLib\Wire\AM 阅读全文

posted @ 2021-05-25 08:57 andydaopeng 阅读(91) 评论(0) 推荐(0) 编辑

2021年5月19日

rabbitmq生产与消费测试

摘要: 消息生成者: <?php defined('BASEPATH') OR exit('No direct script access allowed'); /* require_once FCPATH . '/vendor/autoload.php'; use PhpAmqpLib\Connectio 阅读全文

posted @ 2021-05-19 09:10 andydaopeng 阅读(169) 评论(0) 推荐(0) 编辑

导航