Skip to content

四号程序员

Keep It Simple and Stupid

  • Home
  • 读过的书
  • 从0到1实战微服务架构(第2版)

如何将utf8的表转为utf8mb4

Leave a reply

ALTER TABLE xxx CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
 [......]

继续阅读

This entry was posted in 数据库技术 and tagged MySQL, utf8mb4 on 2018-07-05 by coder4.

打印log中某一列

Leave a reply

例如包含userId的
awk -F '\t' '{for(i=1; i<=NF; i++){if ($i ~ /.*user_id.*/){print $i}}}'
 [......]

继续阅读

This entry was posted in Linux on 2018-07-03 by coder4.

Linux输出重复行及对应计数

Leave a reply

sort filename | uniq -c | sort -nr
 [......]

继续阅读

This entry was posted in Linux on 2018-07-03 by coder4.

Linux取两个文件相同不同的部分

Leave a reply

首先要排序
#find lines only in file1
comm -23 file1 file2

#find lines only in file2
comm -13 file1 file2

#find lines common to both files
comm -12 file1 file2
 [......]

继续阅读

This entry was posted in Linux on 2018-06-11 by coder4.

Java的byte数组和Integer互转

Leave a reply

byte[] -> int
int result = ByteBuffer.wrap(bytes).getInt();
int -> byte[]
byte[] bytes = ByteBuffer.allocate(4).putInt(1695609641).array();
 

 [......]

继续阅读

This entry was posted in Java on 2018-05-23 by coder4.

Post navigation

← Older posts
Newer posts →

Categories

  • Android
  • C && C++
  • Go
  • iOS
  • Java
  • Linux
  • Mac
  • NLP
  • opencv
  • Perl
  • PHP
  • Python
  • RPC
  • Ruby
  • Visual C++ && C#
  • Windows
  • Wordpress
  • 前端技术
  • 大数据技术
  • 心情随笔
  • 搜索技术
  • 数据库技术
  • 未分类
  • 机器学习
  • 笔面题
  • 算法&数据结构
  • 网络&网络模拟
  • 计算机技术
  • 设计

Tags

  • Android
  • C
  • CentOS
  • c语言
  • Debian
  • docker
  • go
  • gtk
  • Hadoop
  • Hive
  • ios
  • Java && J2EE
  • Java && J2EE
  • Java核心技术
  • KVM
  • Linux
  • MySQL
  • nginx
  • Oracle
  • PHP
  • Python
  • Python Essential Reference
  • shell
  • socket
  • Ubuntu
  • VC
  • windows
  • 严蔚敏
  • 中文
  • 乱码
  • 卷2
  • 字符串
  • 安装
  • 实现
  • 排序
  • 教程
  • 数据结构
  • 核心技术
  • 算法
  • 算法技术手册
  • 编译
  • 读书笔记
  • 递归
  • 配置
  • 重读
Proudly powered by WordPress