Introduction
xmake lua has supported REPL(read-eval-print), we can write and test script more easily now.
Enter interactive mode:
```bash
$ xmake lua
1 + 2
3
a = 1
a
1
for _, v in pairs({1, 2, 3}) do
print(v)
end
1
2
3
```继续阅读 »
What Is Google C++ Mocking Framework?
When you write a prototype or test, often it's not feasible or wise to rely on real objects entirely. A mock object implements the same interface as a real object (so it can be used as one), but lets you specify at run time how it will be used and what it should do (which methods 继续阅读 »
I had shared a precommit here which help you check your code before your commit.
If you want to deploy it on test machine even production machine, you may need this.继续阅读 »
**对代码不满足,是任何真正有天才的程序员的根本特征。**
Value '0000-00-00' can not be represented as java.sql.Timestamp
在查询MySql数据库某表的timestamp列的时候,发现此异常,问题来源表述如下
1. 先创建一个测试表
sql
create table test.mytest(
id int PRIMARY KEY AUTO_INCREMENT ,
createtime timestamp not null default current_timestamp , --创建时间
updatetime timestamp not null , --更新时继续阅读 »