北漂小兄弟的博客

北漂小兄弟的博客

菜根笔记

ARTS第一周

ARTS第一周

2019 年 7 月 20 日 北漂小兄弟 Comments 0 Comment

A Algorithm 给定一个整数数组 nums 和一个目标值 target,请你在该数组中找出和为目标值的那 两个 整数,并返回他们的数组下标。 你可以假设…

Read More Read More

Composer阿里云镜像站地址

Composer阿里云镜像站地址

2019 年 7 月 12 日 北漂小兄弟 Comments 0 Comment

配置阿里云Composer全量镜像站:composer config -g repo.packagist composer https://mirrors.al…

Read More Read More

Every derived table must have its own alias

Every derived table must have its own alias

2019 年 7 月 5 日 北漂小兄弟 Comments 0 Comment

mysql 连表查询 ,没有明确给出子查询的别名就会报这个错误

TCP/IP HTTP 等常用缩写及名词解释整理,不定时更新

TCP/IP HTTP 等常用缩写及名词解释整理,不定时更新

2019 年 7 月 5 日 北漂小兄弟 Comments 0 Comment

TCP: Transmission Control Protocol 传输控制协议 IP: 互联网协议地址(英语:Internet Protocol Addre…

Read More Read More

php 加curl http范围请求实现分片下载

php 加curl http范围请求实现分片下载

2019 年 7 月 3 日 北漂小兄弟 Comments 3 comments

public function download_file($file) { $file = “https://www.inbeijing.org/people…

Read More Read More

php数组运算符 +号的坑

php数组运算符 +号的坑

2019 年 7 月 2 日 北漂小兄弟 Comments 0 Comment

php运算符我们经常计算变量之间的运算,比较,但是数组之间却很少用,数组之前也可以用运算符进行运算。前段时间用到了 “ += ” 累加一个数组,遇到了个小坑,这…

Read More Read More

ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction解决

ERROR 1205 (HY000): Lock wait timeout exceeded; try restarting transaction解决

2019 年 6 月 27 日 北漂小兄弟 Comments 0 Comment

mysql长事务导致死锁的问题解决思路: select * from information_schema.innodb_trx where TIME_TO_S…

Read More Read More

MySQL锁 小结

MySQL锁 小结

2019 年 6 月 21 日 北漂小兄弟 Comments 0 Comment

mysql 锁 实验环境mysql版本5.7.24 1、flush tables with read lock; 全局设置读锁,此时数据所有表只能读,不能写入,…

Read More Read More

MySQL索引小结

MySQL索引小结

2019 年 6 月 21 日 北漂小兄弟 Comments 0 Comment

1、mysql 字段设置为允许null 索引长度会多一个字节2、char 比varchar更慢3、变长类型varchar索引长度多两个字节4 、索引字段不要设置…

Read More Read More

MySQL字符集 utf8mb4是什么意思

MySQL字符集 utf8mb4是什么意思

2019 年 6 月 14 日 北漂小兄弟 Comments 0 Comment

utf8mb4是什么意思呢?拆解下就是 utf8 m b 4 ,这里utf8不用多说了默认占用三个字节的编码,m 是most b是bytes 4就是4个字节的意…

Read More Read More

mysql 创建表提示表不存在?

mysql 创建表提示表不存在?

2019 年 6 月 14 日 北漂小兄弟 Comments 0 Comment

mysql 创建表提示表不存在,这个错误有点意思了。 解决思路:这个问题多出现在mysql表有损坏的情况下,整情况创建成功,或者提示表已存在,而不是不存在。 首…

Read More Read More

notepad++ 自动重新加载文件

notepad++ 自动重新加载文件

2019 年 6 月 14 日 北漂小兄弟 Comments 0 Comment

调试代码,或者检测日志的时候我们希望,日志能够马上写入文件并展示,但是notepad++ 默认没有开启,需要你点击确定才能重新加载文件,接下来就配置下notep…

Read More Read More

exception:8,iconv(): Detected an incomplete multibyte character in input string

exception:8,iconv(): Detected an incomplete multibyte character in input string

2019 年 6 月 1 日 北漂小兄弟 Comments 0 Comment

iconv函数用于转换字符串编码,次错误表示你给定的字符串和和你设置要转换的字符串编码不一致。比如你想将UTF-8转换为GB2312,但是你传入的却不是一个ut…

Read More Read More

mysql Table is marked as crashed and should be repaire

mysql Table is marked as crashed and should be repaire

2019 年 5 月 30 日 北漂小兄弟 Comments 0 Comment

表示mysql的这张表损坏了,需要你修复下 >> repair table table_name

MySQL trim 去除指定字符

MySQL trim 去除指定字符

2019 年 5 月 27 日 北漂小兄弟 Comments 0 Comment

去除单引号: UPDATE order_express SET express_code=TRIM(BOTH “‘” FRO…

Read More Read More

javascript获取图片本地图片预览方法

javascript获取图片本地图片预览方法

2019 年 3 月 24 日 北漂小兄弟 Comments 0 Comment

function getObjectURL(file) { var url = null; if (window.createObjectURL != unde…

Read More Read More

mysql 批量插入报错

mysql 批量插入报错

2019 年 3 月 12 日 北漂小兄弟 Comments 0 Comment

mysql 批量插入报错,可能的原因是,字段不一致导致的。

javascript获取json长度

javascript获取json长度

2019 年 2 月 27 日 北漂小兄弟 Comments 0 Comment

let jsonObj ={};let length = Object.keys(jsonObj).length;

js 图片上传获取base64预览

js 图片上传获取base64预览

2019 年 1 月 27 日 北漂小兄弟 Comments 0 Comment

<script> $(“#banner_img_show”).on(‘click’, function(){ $(“#banner_input_fi…

Read More Read More

codeigniter 获取一行数据

codeigniter 获取一行数据

2019 年 1 月 27 日 北漂小兄弟 Comments 0 Comment

ci框架如何获取一条数据$ret = $this-db->where(‘id’, $id)->get;return $ret->row(); //获取一条默认以…

Read More Read More

Posts navigation

OLDER POSTS
NEWER POSTS

站内搜索

分类

  • ARTS
  • Golang
  • HTTP
  • JavaScript
  • laravel
  • LINUX
  • MySQL
  • PHP
  • python
  • rabbitMQ从0到0.99
  • 未分类技术文章
  • 树莓派(raspberry pi)
  • 随笔

近期文章

  • FFmpeg 视频剪辑常用命令 2025 年 5 月 22 日
  • FFMPEG常用命令 2024 年 11 月 25 日
  • 已经开了全局代理还是安装不上? 2024 年 10 月 29 日
  • GO语言里channel的阻塞机制 2024 年 9 月 29 日
  • golang 遍历当前目录下的制定扩展名文件,包括子目录 2024 年 1 月 17 日
  • 程序员的30个坏习惯 2024 年 1 月 15 日
  • mac上如何双开微信 2023 年 12 月 17 日
  • 终端内查看天气预报 curl wttr.in 2023 年 12 月 13 日
  • go 切片表达式介绍 2023 年 10 月 7 日
  • golang Prinf详细使用介绍 2023 年 5 月 24 日
  • golang APP版本号比对大小方法 2023 年 5 月 15 日
  • golang strings.Builder 与拼接字符串的区别 2023 年 3 月 17 日
  • golang 将秒转化为小时分钟 2023 年 1 月 28 日
  • GO谚语你知道多少 2022 年 8 月 9 日
  • linux 快速清空一个文件命令 2022 年 5 月 20 日

归档

  • 2025 年 5 月
  • 2024 年 11 月
  • 2024 年 10 月
  • 2024 年 9 月
  • 2024 年 1 月
  • 2023 年 12 月
  • 2023 年 10 月
  • 2023 年 5 月
  • 2023 年 3 月
  • 2023 年 1 月
  • 2022 年 8 月
  • 2022 年 5 月
  • 2021 年 4 月
  • 2020 年 11 月
  • 2020 年 7 月
  • 2020 年 6 月
  • 2020 年 5 月
  • 2020 年 4 月
  • 2020 年 3 月
  • 2020 年 2 月
  • 2020 年 1 月
  • 2019 年 12 月
  • 2019 年 11 月
  • 2019 年 10 月
  • 2019 年 9 月
  • 2019 年 8 月
  • 2019 年 7 月
  • 2019 年 6 月
  • 2019 年 5 月
  • 2019 年 3 月
  • 2019 年 2 月
  • 2019 年 1 月
  • 2018 年 12 月
  • 2018 年 11 月
  • 2018 年 10 月
  • 2018 年 9 月
  • 2018 年 8 月
  • 2018 年 7 月
  • 2018 年 6 月
  • 2018 年 5 月
  • 2018 年 4 月
  • 2018 年 3 月
  • 2018 年 2 月
  • 2018 年 1 月
  • 2017 年 11 月
  • 2017 年 10 月
  • 2017 年 9 月
  • 2017 年 8 月
  • 2017 年 7 月
  • 2017 年 6 月
  • 2017 年 5 月
  • 2017 年 1 月
  • 2016 年 12 月
  • 2016 年 5 月
  • 2016 年 2 月
  • 2015 年 12 月
  • 2015 年 11 月
  • 2015 年 10 月
  • 2015 年 9 月
  • 2015 年 8 月
  • 2015 年 7 月
  • 2015 年 6 月
  • 2015 年 5 月
  • 2015 年 4 月
  • 2015 年 3 月
  • 2015 年 2 月
  • 2015 年 1 月
  • 2014 年 12 月
  • 2014 年 11 月
  • 2014 年 10 月
  • 2014 年 9 月
  • 2014 年 8 月
  • 2014 年 6 月
  • 2014 年 5 月
  • 2014 年 4 月
  • 2014 年 3 月
  • 2014 年 2 月
  • 2014 年 1 月
  • 2013 年 12 月
  • 2013 年 11 月
  • 2013 年 10 月
  • 2013 年 9 月
  • 2013 年 8 月
  • 2013 年 7 月
  • 2013 年 6 月
  • 2013 年 5 月
  • 2013 年 4 月
© 2025 | Proudly Powered by WordPress | Theme: Nisarg 京ICP备12015649号-1