本来用了好久的kali自己笔记本已经配置的比较完美,老项目用的是php5.6。用自己的笔记本,然后各种折腾,结果系统根本不支持php5.6。我的完美系统被搞砸了,熬夜折腾回来一部分,php5.6只好用docker安装。最近离职了,彻底离职了。kali右键不显示中文问题还没解决,今天处理一下。
最新文章
My own laptop had been running kali for a long time and was configured pretty perfectly, with the old project using php5.6. On my own laptop, after all sorts of tinkering, it turned out the system simply doesn’t support php5.6. My perfect system got wrecked, and I stayed up late restoring part of it - php5.6 had to be installed with docker. Recently I quit my job - quit it completely. The problem of the kali right-click menu not showing Chinese still wasn’t solved, so today I’m dealing with it.
分库分表
php工作5年了,大部分场景都是业务层。说白了就是增删改查。也知道数据库大数据处理分库分表,一般是水平分表和垂直分表,实操是不可能的,今天看了一篇文章《分库分表?如何做到永不迁移数据和避免热点?》,思路一下顺畅了。
一般来说mysql一个表大概数据量在100W查询速度跟不上了。
Sharding databases and tables
I’ve been working with php for 5 years, and most scenarios are at the business layer. Put plainly, it’s just CRUD. I also know that large-scale data processing in databases involves sharding databases and tables, generally horizontal sharding and vertical sharding, but actually doing it was impossible. Today I read an article 《Sharding databases and tables? How to never migrate data and avoid hot spots?》, and my thinking suddenly became smooth.
Generally speaking, once a mysql table reaches around 1M rows the query speed can’t keep up.
很多不太懂正则的朋友,在遇到需要用正则校验数据时,往往是在网上去找很久,结果找来的还是不很符合要求。所以我最近把开发中常用的一些正则表达式整理了一下,包括校验数字、字符、一些特殊的需求等等。给自己留个底,也给朋友们做个参考。
Many friends who are not very familiar with regular expressions, when they need to validate data with a regex, often search online for a long time and still end up with something that does not quite meet the requirements. So recently I organized some of the regular expressions commonly used in development, including validating numbers, characters, some special requirements, and so on. A note for myself, and a reference for friends.
今天去参见一个面试,结尾时,面试官问了个红包如何随机分配实现问题。这个确实没搞过,也想不出来。回头自己研究了一下,发现也就这么回事。。
Today I went to an interview. At the end, the interviewer asked how random red envelope distribution is implemented. I really had never done that, and couldn’t come up with it either. Afterwards I looked into it myself and found it’s no big deal..
生活总是往复,一年到头已回到原点。
博客停了一年,今晚正式重新搭建好了。
2018年,过山车式的生活。
2019年,一切从最原点开始,不曾放弃,也不会放弃。
Life always goes in cycles; by the end of the year we’re back to the origin.
The blog was down for a year, and tonight it is officially rebuilt.
2018 was a roller-coaster year of life.
In 2019, everything starts from the very origin. I haven’t given up, and I won’t give up.
参照资料
中华人民共和国劳动合同法
参照 第三十条、第四十七条、第四十八条、第八十五条、第八十七条、第八十八条、第九十条、第九十一条
Reference Materials
Labor Contract Law of the People’s Republic of China
Refer to Articles 30, 47, 48, 85, 87, 88, 90, and 91Rules for Handling Labor and Personnel Dispute Arbitration Cases
Rules on the Organization of Labor and Personnel Dispute Arbitration
作者简介Introduction
taoyan:伪码农,R语言爱好者,爱开源。 个人博客: https://ytlogos.github.io/ 、
一、 简介
本文基于NASA的夜间地图(https://www.nasa.gov/specials/blackmarble/2016/globalmaps/BlackMarble_2016_01deg.jpg)的基础上进行世界航班路线可视化,参考多篇博客以及可视化案例。 1. 包加载 本博客使用的包较多,利用pacman包里的p_load()函数进行加载。
About the author
taoyan:a pretend coder, R language enthusiast, loves open source. Personal blog: https://ytlogos.github.io/ 、
I. Introduction
This article visualizes world flight routes on top of NASA’s nighttime map ((https://www.nasa.gov/specials/blackmarble/2016/globalmaps/BlackMarble_2016_01deg.jpg), referencing several blog posts and visualization examples., referencing several blog posts and visualization examples.) 1. Package loading This post uses quite a few packages, loaded with the p_load() function from the pacman package.
傅里叶变换在物理学、数论、组合数学、信号处理、概率论、统计学、密码学、声学、光学、海洋学、结构动力学等领域都有着广泛的应用(例如在信号处理中,傅里叶变换的典型用途是将信号分解成幅值分量和频率分量)。
The Fourier transform has a very wide range of applications in physics, number theory, combinatorics, signal processing, probability theory, statistics, cryptography, acoustics, optics, oceanography, structural dynamics, and other fields (for example, in signal processing, the typical use of the Fourier transform is to decompose a signal into amplitude components and frequency components).

