Processing math: 20%
会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
hailπ
博客园
首页
新随笔
联系
订阅
管理
随笔 - 61
文章 - 0
评论 - 47
阅读 -
56304
1
2
3
4
下一页
2022年4月
rust 在windows系统上构建linux可执行程序
摘要: 安装 linux target rustup target add x86_64-unknown-linux-musl 修改cargo配置,~/.cargo/config [target.x86_64-unknown-linux-musl] linker = "rust-lld" cargo bui
阅读全文
posted @ 2022-04-01 16:54 hailπ
阅读(405)
评论(0)
推荐(0)
2022年3月
composer 引入本地指定包
摘要: 开发类库时,本地需要测试一下,在没有push时,如何引入正在开发的包? { "repositories": [ { "type": "path", "url": "D:\\Data\\yii2-adminlte3" } ] } type必须时path,url时指定的是包路径,然后 composer
阅读全文
posted @ 2022-03-30 07:56 hailπ
阅读(1152)
评论(0)
推荐(0)
php中 json_encode 不自动转移斜杠 “/”的方法
摘要: json_encode([],JSON_UNESCAPED_SLASHES)
阅读全文
posted @ 2022-03-24 12:02 hailπ
阅读(167)
评论(0)
推荐(0)
2022年2月
windows 编辑 hosts
摘要: 以管理员身份打开终端 terminal 输入: notepad "C:\Windows\System32\drivers\etc\hosts"
阅读全文
posted @ 2022-02-19 11:56 hailπ
阅读(45)
评论(0)
推荐(0)
2021年11月
数组深度
摘要: function arrayDeep($arr) {
d
e
e
p
=
0
;
i
f
(
i
s
a
r
r
a
y
(
arr)) { ++
deep;
ad = []; foreach (
arr as
v) {
ad[] = arrayDeep(
v); }
ad &&
deep += max($ad
阅读全文
posted @ 2021-11-04 14:38 hailπ
阅读(24)
评论(0)
推荐(0)
2021年3月
yii2 formatter 中 raw 与 html 的区别
摘要: yii\i18n\FormatterasRaw() - 输出值和原始值一样,除了null值会用nullDisplay格式化,这是一个伪格式器; yii\i18n\FormatterasHtml() - 值会被HtmlPurifier过滤来避免XSS跨域攻击;
阅读全文
posted @ 2021-03-08 18:04 hailπ
阅读(115)
评论(0)
推荐(0)
2020年10月
yii2 (not set), GridView
摘要: 'components' => [ ... 'formatter' => [ 'nullDisplay' => '', ], ... ],
阅读全文
posted @ 2020-10-29 14:00 hailπ
阅读(88)
评论(0)
推荐(0)
2020年5月
composer require 加载本地扩展包
摘要: 创建目录composerLocal,composer init(一路回车) ====== 创建packages目录创建一个扩展包 ====== 创建一个扩展包 ===== 扩展包的composer.json文件中,name 和 目录名一致 配置composer.json ==== 配置扩展包的com
阅读全文
posted @ 2020-05-02 23:58 hailπ
阅读(2919)
评论(0)
推荐(0)
2020年4月
yii2 adminlte, yii2整合adminlte3
摘要: AdminLTE 是一个完全响应管理模板,现使用adminlte最新版本3,基于bootstrap4。 安装模板 composer require --prefer-dist hail812/yii2-adminlte3
阅读全文
posted @ 2020-04-26 00:59 hailπ
阅读(1325)
评论(0)
推荐(0)
Nginx访问PHP文件的File not found
摘要: 更改配置文件nginx.conf 替换成下面 然后重新加载nginx配置文件
阅读全文
posted @ 2020-04-23 16:06 hailπ
阅读(744)
评论(0)
推荐(0)
laravel ajax 显示 419 (unknown status)
摘要: laravel中发送ajax请求报419,是因为csrf的值没有设置 页面头部添加 js中使用
阅读全文
posted @ 2020-04-23 16:04 hailπ
阅读(590)
评论(0)
推荐(0)
Laravel 出现 No application encryption key has been specified
摘要: 若文件根目录下没有 .env 1、.env.example 改名使用命令 copy 修改为 .env 2、使用命令 php artisan key:generate 获取密码,自动保存到 .env 3、将密码复制到config/app.php 中的key里面 4、重新运行,OK。 如有.env 的情
阅读全文
posted @ 2020-04-23 15:33 hailπ
阅读(137)
评论(0)
推荐(0)
dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib
摘要: ``` php -v dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib Referenced from: /usr/local/bin/php Reason: image not found [1] 93359 abort php -v brew switch openssl 1.1 Error:
阅读全文
posted @ 2020-04-23 15:27 hailπ
阅读(786)
评论(0)
推荐(0)
2019年11月
Non-terminating decimal expansion; no exact representable decimal result
摘要: BigDecimal除法运算出现java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result 分析: 通过BigDecimal做除法运算时,在不整除出现无
阅读全文
posted @ 2019-11-06 10:35 hailπ
阅读(1759)
评论(0)
推荐(0)
2019年6月
jquery选中select第一个option,类似重置
摘要: $('select').prop('selectedIndex', 0); // 项目中 jQuery v2.1.1
阅读全文
posted @ 2019-06-04 09:14 hailπ
阅读(736)
评论(0)
推荐(0)
2019年5月
php foreach 循环数组要点
摘要: 数组元素是值的情况,foreach只是将数组的每个元素的值进行拷贝: 数组元素是对象的情况,foreach是将数组元素的对象引用进行拷贝: 那么,上面普通数组也可以拥有同样的效果:
阅读全文
posted @ 2019-05-30 17:13 hailπ
阅读(407)
评论(0)
推荐(0)
2019年4月
laravel的日志权限
摘要: 命令行脚本运行时报错 UnexpectedValueException : The stream or file "/Data/PMS/storage/logs/laravel-2019-04-17.log" could not be opened: failed to open stream: P
阅读全文
posted @ 2019-04-26 16:53 hailπ
阅读(1936)
评论(0)
推荐(0)
2017年8月
mac chrome 强制刷新浏览器缓存
摘要: 普通刷新 command + r 强制刷新 command + shift + r
阅读全文
posted @ 2017-08-16 09:48 hailπ
阅读(234)
评论(0)
推荐(0)
阿里云服务器ssh经常一段时间就断掉解决办法
摘要: #vim /etc/ssh/sshd_config 找到下面两行 #ClientAliveInterval 0#ClientAliveCountMax 3 去掉注释,改成 ClientAliveInterval 30ClientAliveCountMax 86400 这两行的意思分别是 1、客户端每
阅读全文
posted @ 2017-08-05 13:14 hailπ
阅读(3792)
评论(0)
推荐(0)
2016年9月
如何关闭git pull产生的merge 信息
摘要: 编辑 ~/.gitconfig 或者终端之行 git config --global core.mergeoptions --no-edit
阅读全文
posted @ 2016-09-29 18:24 hailπ
阅读(3632)
评论(0)
推荐(0)
1
2
3
4
下一页
公告
昵称:
hailπ
园龄:
12年8个月
粉丝:
5
关注:
7
+加关注
<
2025年7月
>
日
一
二
三
四
五
六
29
30
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
随笔分类
C(1)
Java(1)
Linux(5)
MySQL(4)
PHP(23)
Python(2)
Rust(1)
Web前端(13)
服务器(1)
其他(4)
随笔档案
2022年4月(1)
2022年3月(2)
2022年2月(1)
2021年11月(1)
2021年3月(1)
2020年10月(1)
2020年5月(1)
2020年4月(5)
2019年11月(1)
2019年6月(1)
2019年5月(1)
2019年4月(1)
2017年8月(2)
2016年9月(1)
2016年8月(3)
2014年8月(1)
2014年5月(3)
2014年4月(1)
2014年3月(2)
2014年1月(1)
2013年12月(3)
2013年11月(7)
2013年10月(4)
2013年7月(4)
2013年5月(1)
2013年4月(3)
2013年3月(8)
更多
阅读排行榜
1. js怎么终止程序,return不行(5738)
2. js 利用image对象实现图片的预加载(4628)
3. 阿里云服务器ssh经常一段时间就断掉解决办法(3792)
4. 如何关闭git pull产生的merge 信息(3632)
5. composer require 加载本地扩展包(2919)
6. git命令行在windows中报错WARNING: terminal is not fully functional(2707)
7. mysql 创建一个用户,指定一个数据库(2427)
8. laravel的日志权限(1936)
9. Ubuntu 关闭锁屏界面的 on-screen keyboard(1846)
10. Non-terminating decimal expansion; no exact representable decimal result(1759)
11. 剑锋所指,所向披靡(1551)
12. vim时,ctrl+s了一下,程序僵死了(1494)
13. yii2 adminlte, yii2整合adminlte3(1325)
14. composer 引入本地指定包(1152)
15. php 判断数组是一维,二维,还是多维(979)
16. 图片img的src不变,想让浏览器重新加载怎么办?(872)
17. js, Date.parse firefox 兼容(865)
18. dyld: Library not loaded: /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib(786)
19. yii 1.x 添加 rules 验证url数组(779)
20. Nginx访问PHP文件的File not found(744)
评论排行榜
1. js怎么终止程序,return不行(19)
2. js 利用image对象实现图片的预加载(8)
3. ubuntu 屏幕截图(7)
4. php 判断数组是一维,二维,还是多维(3)
5. 以 ajax 方式提交 file 表单(2)
6. git命令行在windows中报错WARNING: terminal is not fully functional(1)
7. vim时,ctrl+s了一下,程序僵死了(1)
8. python 中 input 和 raw_input 的区别(1)
9. js 获取随机数(1)
10. 写着写着,画出个这个东西,还挺亮,还是个动态的呢(1)
11. 终于把数据传到模板里了(1)
12. php下载文件,用错了(1)
13. Yii 自定义 登录 过滤器(1)
推荐排行榜
1. 不再让内容把td撑开(2)
2. php数据类型转换(1)
3. MYSQL 优化常用方法(1)
4. vim时,ctrl+s了一下,程序僵死了(1)
5. js 利用image对象实现图片的预加载(1)
最新评论
1. Re:git命令行在windows中报错WARNING: terminal is not fully functional
试了也没用
--Lysander
2. Re:Yii 自定义 登录 过滤器
怎么我在过滤器里用CController::redirect都会提示IsLoginFilter and its behaviors do not have a method or closure na...
--Veitor
3. Re:php 判断数组是一维,二维,还是多维
写的挺好的,海龙。。。
--tuisiyuan
4. Re:vim时,ctrl+s了一下,程序僵死了
谢谢分享
俺碰到了,没办法直接kill了
--王大明
5. Re:python 中 input 和 raw_input 的区别
这个就类似于输出时用的 %r 内涵一样
(来源:合仔茶端)
--ericlezhou
6. Re:ubuntu 屏幕截图
为啥我的不行呢 (ubuntu11.10)
--蓝岚懒
7. Re:ubuntu 屏幕截图
@ Diesel没事,无所谓的...
--Daemon369
8. Re:ubuntu 屏幕截图
@ 放作夥试过没有?功能不一样我会说?...
--Daemon369
9. Re:ubuntu 屏幕截图
@ Daemon369试了,可以啊,谢谢...
--Diesel
10. Re:ubuntu 屏幕截图
@ Daemon369反对错了...
--Diesel
点击右上角即可分享