北漂小兄弟的博客

北漂小兄弟的博客

菜根笔记

mysql8.0 ubuntu 安装

mysql8.0 ubuntu 安装

2017 年 6 月 22 日 北漂小兄弟 Comments 0 Comment

mysql8.0目前是mysql要发布的下一个大版本,但是还没有对外发布,玩玩可以,请不要用在生产环境。 wget https://dev.mysql.com/…

Read More Read More

PHP类型约束

PHP类型约束

2017 年 6 月 22 日 北漂小兄弟 Comments 0 Comment

从php5开始function的参数可以指定为对象,接口,数组,callalbe(从php5.4开始)不过如果使用 null作为参数的默认值,那么在调用函数的时…

Read More Read More

mysql 添加删除索引

mysql 添加删除索引

2017 年 6 月 22 日 北漂小兄弟 Comments 0 Comment

alter table partner_order add index promotion_id_idx (promotion_id); alter table…

Read More Read More

php函数的可变参数列表

php函数的可变参数列表

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

从php5.6开始引入了新特性“可变参数列表”,用”…” 三个点语法实现 使用方法: $arr = [‘a’, ‘b’, ‘…

Read More Read More

php用json_decode 解析 unicode码

php用json_decode 解析 unicode码

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

$string = ‘\u5317\u6f02\u5c0f\u5144\u5f1f\u7684\u535a\u5ba2’; echo json_decode(‘…

Read More Read More

mysql 从csv导入 数据到表

mysql 从csv导入 数据到表

2017 年 6 月 20 日 北漂小兄弟 Comments 0 Comment

mysql从csv导入数据到指定的表有如下几个要求: 1、主要语句:LOAD DATA INFILE file.csv 2、csv里面的列数要和表里面的一一对应…

Read More Read More

高逼格的函数printf sprintf的使用

高逼格的函数printf sprintf的使用

2017 年 6 月 19 日 北漂小兄弟 Comments 0 Comment

对于大多数php选手来说只需要使用print(),echo()这两个函数来显示文本和变量就足够用了,但是高级的选手就经常使用printf(),sprintf()…

Read More Read More

说一说按值传递和按引用传递

说一说按值传递和按引用传递

2017 年 6 月 19 日 北漂小兄弟 Comments 0 Comment

在默认情况下,函数是按值传递的,也就是传递的是变量的值,而不是变量的本身,也就说函数使用的是变量的一份副本,这种传递的结果就是不会影响变量本身的值。 除了默认行…

Read More Read More

func($a, &$b)写法已经不被支持了从PHP5.4以后

func($a, &$b)写法已经不被支持了从PHP5.4以后

2017 年 6 月 19 日 北漂小兄弟 Comments 0 Comment

func($a, &$b)写法已经不被支持了从PHP5.4以后 $int =1; function func($n) { $n++; } func(&a…

Read More Read More

php 二维数组排序

php 二维数组排序

2017 年 6 月 19 日 北漂小兄弟 Comments 0 Comment

<?php $array = [ [‘key1’ => 10, ‘key2’ => ‘wang’], [‘key1’ => 2, ‘ke…

Read More Read More

无符号8位? 无符号32位?有符号8位?

无符号8位? 无符号32位?有符号8位?

2017 年 6 月 16 日 北漂小兄弟 Comments 0 Comment

简单来说位指的是二进制的位数 无符号就是全都是整数0以上的数字,有符号就是包括负数带有负号就叫有符号 无符号 8 位整型 (0 到 255) 无符号 16 位整…

Read More Read More

git commit 撤销

git commit 撤销

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

git log git reset –hard <commit_id>  

php建立空对象的几个方法

php建立空对象的几个方法

2017 年 6 月 13 日 北漂小兄弟 Comments 0 Comment

方法一: $object = new stdClass; 方法二: $object = json_decode(‘{}’); 方法三: $object = (o…

Read More Read More

避免每次git pull 都输入密码

避免每次git pull 都输入密码

2017 年 6 月 12 日 北漂小兄弟 Comments 0 Comment

有的时候,git服务器要求密码验证,为了避免每次git pull 都输入密码 git config –global credential.helper sto…

Read More Read More

laravel blade includeWhen

laravel blade includeWhen

2017 年 6 月 7 日 北漂小兄弟 Comments 0 Comment

before @if($user->id == 1) @include(‘admin.nav’) @endif now @includeWhen($use…

Read More Read More

xz后缀的文件怎么解压

xz后缀的文件怎么解压

2017 年 6 月 5 日 北漂小兄弟 Comments 0 Comment

linux 好多文件都采用xz的形式压缩,是因为xz是目前压缩比例最高的工具,这样在网络上下载可以有效节省下载时间和流量开支。 linux xz文件的解压方法 …

Read More Read More

linux 实用和好玩的命令

linux 实用和好玩的命令

2017 年 6 月 2 日 北漂小兄弟 Comments 0 Comment

执行上一条命令 !! 用root权限执行上一条命令 sudo !! 执行历史命令的第上几条 !+数字 快速在当前目录下建立一个http服务器,端口默认为8000…

Read More Read More

laravel zttp 用法

laravel zttp 用法

2017 年 5 月 27 日 北漂小兄弟 Comments 1 comment

$response = Zttp::withHeaders([‘Fancy’ => ‘Pants’])->post($url, [ ‘foo’ =&…

Read More Read More

laravel .env文件配数组

laravel .env文件配数组

2017 年 5 月 26 日 北漂小兄弟 Comments 1 comment

laravel .env 文件是框架的核心配置文件,但是它并不支持配置数组类似这样的写法是不行的。 KEY = [ [0] => ‘Value 1’, […

Read More Read More

laravel $object->updated_at 返回的是个对象?

laravel $object->updated_at 返回的是个对象?

2017 年 5 月 22 日 北漂小兄弟 Comments 0 Comment

laravel中 对象的 created_at 取出来变成一个对象了 laravel $object->updated_at 返回的是个对象? 当你准备使…

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