摘要: InputStreamReader 是字节流到字符流的桥梁 OutputStreamWriter 是字符流到字节流的桥梁 1 import java.io.*; 2 3 public class ConversionstreamDemo { 4 public static void main(Str 阅读全文
posted @ 2022-03-30 21:10 phpwyl 阅读(26) 评论(0) 推荐(0) 编辑
摘要: package test; import java.io.UnsupportedEncodingException; import java.util.Arrays; public class StringDemo { public static void main(String[] args) t 阅读全文
posted @ 2022-03-29 22:12 phpwyl 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 缓冲流是在缓冲区中创建了一个字节数组,缓冲区是在内存当中的,效率很高,它创建的这个字节数组是用来储存输出流等传递过来的数据的,直到储存到8196长度时 ,它才会向外输出.而输出流向这个缓冲区传递数据时,如果是用字节数组进行的,那么效率就会更高 package test; import java.io 阅读全文
posted @ 2022-03-28 21:19 phpwyl 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1 package io.test; 2 3 import java.io.*; 4 5 public class InputDemo { 6 public static void main(String[] args) throws IOException { 7 //将一个文件内容写入到另一个文 阅读全文
posted @ 2022-03-28 18:09 phpwyl 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 1 package io.test; 2 3 import java.io.File; 4 5 /** 6 *递归遍历所有的目录 7 */ 8 public class DirAll { 9 public static void main(String[] args) { 10 System.out 阅读全文
posted @ 2022-03-28 14:50 phpwyl 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 先查询出来一条数据 然后用 Carbon::parse()方法日期解析出来,然后再用format()方法修改成自定义格式 $data["created_at"] = $suborder_created_at->format('Y-m-d H:i:s'); $data["created_at"] = 阅读全文
posted @ 2021-12-11 17:52 phpwyl 阅读(802) 评论(0) 推荐(1) 编辑
摘要: 1.yum安装supervisor yum install epel-release yum install supervisor //设置开机自动启动 systemctl enable supervisord 1 2 3 4 2.配置 找到/etc/supervisord.conf配置文件,打开编 阅读全文
posted @ 2021-12-02 14:37 phpwyl 阅读(457) 评论(0) 推荐(0) 编辑
摘要: #server { # listen 80; # server_name laravel.com.co; # return 301 https://laravel.com.co$request_uri; #} server { listen 80; listen [::]:80; server_na 阅读全文
posted @ 2021-11-30 14:40 phpwyl 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Mac有一个设计原则,就是用户不需要看到的或者用户不希望看到的,都不会显示出来。但如果你想要修改其中某些文件,也是可以的,先需要显示所有的文件,可以在终端中输入命令行来实现。显示系统隐藏的文件 defaults write com.apple.finder AppleShowAllFiles -bo 阅读全文
posted @ 2021-11-29 21:20 phpwyl 阅读(1188) 评论(0) 推荐(0) 编辑
摘要: (node:37693) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency(Use `node --trace-warnings ...` to show where 阅读全文
posted @ 2021-11-29 18:12 phpwyl 阅读(4718) 评论(0) 推荐(0) 编辑
摘要: 转自《Centos7下使用Squid快速搭建带认证的HTTP代理服务器》 安装squid yum install squid httpd-tools -y 生成密码文件 mkdir /etc/squid3/ htpasswd -cd /etc/squid3/passwords username # 阅读全文
posted @ 2021-11-29 15:21 phpwyl 阅读(2515) 评论(0) 推荐(0) 编辑
摘要: 解决方案: 因为composer 版本问题导致的 可以将composer 回退到1.x版本进行解决 sudo composer self-update --1 阅读全文
posted @ 2021-11-24 16:40 phpwyl 阅读(1295) 评论(0) 推荐(0) 编辑
摘要: 解决方案: 这个和网络问题有关。需要查询 raw.githubusercontent.com 的ip 并添加到本地的 hosts 阅读全文
posted @ 2021-11-24 12:09 phpwyl 阅读(275) 评论(0) 推荐(0) 编辑
摘要: 1、专业版:VK7JG-NPHTM-C97JM-9MPGT-3V66T 2、企业版:XGVPP-NMH47-7TTHJ-W3FW7-8HV2C 3、教育版:YNMGQ-8RYV3-4PGQ3-C8XTP-7CFBY 4、专业版N:2B87N-8KFHP-DKV6R-Y2C8J-PKCKT 5、企业版 阅读全文
posted @ 2021-08-31 13:35 phpwyl 阅读(11620) 评论(0) 推荐(0) 编辑
摘要: <?php // //最简单的验证方式 // echo $_GET["echostr"]; //验证是否来自于微信 function checkWeixin(){ //微信会发送4个参数到我们的服务器后台 签名 时间戳 随机字符串 随机数 $signature = $_GET["signature" 阅读全文
posted @ 2021-03-15 15:36 phpwyl 阅读(176) 评论(0) 推荐(0) 编辑
摘要: vue中Axios的封装和API接口的管理 如图,面对一团糟代码的你~~~真的想说,What F~U~C~K!!! 回归正题,我们所要的说的axios的封装和api接口的统一管理,其实主要目的就是在帮助我们简化代码和利于后期的更新维护。 一、axios的封装 在vue项目中,和后台交互获取数据这块, 阅读全文
posted @ 2021-03-05 17:29 phpwyl 阅读(63) 评论(0) 推荐(0) 编辑
摘要: assume cs:code a segment dw 1,2,3,4,5,6,7,8,9,0ah,0bh,0ch,0dh,0eh,0fh,0ffh a ends b segment dw 0,0,0,0,0,0,0,0 b ends code segment start: mov ax,b mov 阅读全文
posted @ 2020-11-17 22:39 phpwyl 阅读(490) 评论(0) 推荐(0) 编辑
摘要: assume cs:code,ds:a,ss:c a segment dw 1,2,3,4,5,6,7,8 a ends b segment dw 1,2,3,4,5,6,7,8 b ends c segment dw 0,0,0,0,0,0,0,0 c ends code segment star 阅读全文
posted @ 2020-11-17 22:19 phpwyl 阅读(654) 评论(0) 推荐(0) 编辑
摘要: assume cs:code code segment dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h start: mov ax,0 mov ds,ax mov bx,0 mov cx,8 s: mov ax,[bx] mov cs:[bx], 阅读全文
posted @ 2020-11-16 22:01 phpwyl 阅读(389) 评论(0) 推荐(0) 编辑
摘要: assume cs:code code segment mov bx,020H mov ds,bx mov bx,0 mov cx,63 s:mov [bx],bx inc bx loop s mov ax,4c00H int 21H code ends end 阅读全文
posted @ 2020-11-14 19:29 phpwyl 阅读(1850) 评论(0) 推荐(1) 编辑
摘要: :class="{selects:source==1}" 根据变量添加class :style="{paddingTop: top}" :style="{backgroundImage: 'url('+reply.record_content+')'}" 阅读全文
posted @ 2020-10-28 17:57 phpwyl 阅读(83) 评论(0) 推荐(0) 编辑
摘要: js try catch 获取错误行数 阅读全文
posted @ 2020-10-12 11:04 phpwyl 阅读(2136) 评论(0) 推荐(0) 编辑
摘要: /** * curl 封装函数 * @param string $url 请求地址 * @param string $data 请求数据 * @param string $type 请求方式 默认为GET * @return string */ function jbtm_curl($url, $d 阅读全文
posted @ 2020-05-25 12:03 phpwyl 阅读(412) 评论(0) 推荐(0) 编辑
摘要: protected $middleware = [ \Illuminate\Session\Middleware\StartSession::class, ]; 在 kernel.php中 加入StartSession::class 阅读全文
posted @ 2020-04-21 15:55 phpwyl 阅读(660) 评论(0) 推荐(0) 编辑
摘要: <?php libxml_disable_entity_loader(true); $notify_values = json_decode(json_encode(simplexml_load_string($xmlReturn, 'SimpleXMLElement', LIBXML_NOCDAT 阅读全文
posted @ 2020-04-14 11:00 phpwyl 阅读(317) 评论(0) 推荐(0) 编辑
摘要: $(function () { $("#pk_status").change(function () { valid = $(this).val(); if(valid){ table.columns().on('preXhr.dt', function ( e, settings, data ) 阅读全文
posted @ 2020-04-02 15:56 phpwyl 阅读(1202) 评论(0) 推荐(0) 编辑
摘要: /** * php 提取html中图片并替换 */ //要替换的内容 //提取图片路径的src的正则表达式 $match_str = '/(<img([^>]*)\s*src=(\'|\")([^\'\"]+)(\'|\")|url.*\(https:.*=png\))/'; preg_match_ 阅读全文
posted @ 2020-01-15 14:08 phpwyl 阅读(488) 评论(0) 推荐(0) 编辑
摘要: public function getStr($str=false){ $poems="从,善,如,登,从,恶,如,崩,已,知,花,意,未,见,其,花,,,已,见,其,花,,,未,闻,花,名,如,果,能,不,长,大,就,好,了,啊,可,是,时,光,在,身,后,挡,住,退,路,或,许,前,路,永,夜, 阅读全文
posted @ 2019-12-25 11:55 phpwyl 阅读(230) 评论(0) 推荐(0) 编辑
摘要: function getMonthAndDay($date1,$date2){ $datestart= date('Y-m-d',strtotime($date1)); if(strtotime($datestart)>strtotime($date2)){ $tmp=$date2; $date2= 阅读全文
posted @ 2019-12-24 17:58 phpwyl 阅读(978) 评论(0) 推荐(0) 编辑
摘要: //上传 $("#voice_file").on("change", function () { var objUrl = upload_file(this.files[0]); if (objUrl.code == 1) { $('#video_url').val(objUrl.data.photo) $('.... 阅读全文
posted @ 2019-06-18 17:32 phpwyl 阅读(2407) 评论(0) 推荐(0) 编辑