- 授权协议: GPL
- 开发语言: C/C++ PHP
- 操作系统: 跨平台
- 软件首页: https://github.com/liexusong/unid
- 软件文档: https://github.com/liexusong/unid/blob/master/README.md
软件介绍
unid是一个可以生成唯一ID的php扩展,此扩展基于 Twitter Snowflake 算法。有兴趣可以了解一下这个算法: https://github.com/twitter/snowflake
功能列表:
// 1) Get the next unique ID. string unid_next_id(void); // 2) Change unique ID to time stamp. int unid_get_time(string id); // 3) Change unique ID to worker id. array unid_get_worker_id(string id);
示例:
<?php
$id = unid_next_id();
echo $id;
$time = unid_get_time($id);
echo 'date time is: ' . date('Y-m-d H:i:s', $time);
$worker_id = unid_get_worker_id();
echo 'worker id is: ' . $worker_id;
?>$ cd ./unid $ phpize $ ./configure $ make $ sudo make install
php.ini 配置项:
[unid] unid.datacenter = int unid.twepoch = uint64
数学之美 (第二版)
吴军 / 人民邮电出版社 / 2014-11 / 49.00元
几年前,“数学之美”系列文章原刊载于谷歌黑板报,获得上百万次点击,得到读者高度评价。读者说,读了“数学之美”,才发现大学时学的数学知识,比如马尔可夫链、矩阵计算,甚至余弦函数原来都如此亲切,并且栩栩如生,才发现自然语言和信息处理这么有趣。 在纸本书的创作中,作者吴军博士几乎把所有文章都重写了一遍,为的是把高深的数学原理讲得更加通俗易懂,让非专业读者也能领略数学的魅力。读者通过具体的例子学到的......一起来看看 《数学之美 (第二版)》 这本书的介绍吧!
