package util;import java.util.UUID;public class UUIDUtil { public static UUID getId(){ return UUID.randomUUID().toString(); } public s...
分类:
其他好文 时间:
2014-09-21 00:14:49
阅读次数:
171
Identifying a Characteristic@property(readonly, nonatomic) CBUUID *UUID@property(weak, readonly, nonatomic) CBService *serviceAccessing Characteristic...
分类:
其他好文 时间:
2014-09-20 20:23:59
阅读次数:
176
在Xcode中当你在更新了你得证书而再重新编译你的程序,真机调试会出现“Your build settings specify a provisioning profile with the UUID‘XXX’, however, no such provisioning profile was found. Xcode can resolve this issue by downloading...
分类:
其他好文 时间:
2014-09-20 19:20:19
阅读次数:
226
PostgreSQL内置uuid类型,性能不错,但是PostgreSQL默认没有安装uuid相关操作函数,需要手动导入。 导入uuid相关函数。 psql -d dbname -U dbuser -f D:/develop/database/PostgreSQL/9.3/share/contrib/uuid-os...
分类:
数据库 时间:
2014-09-19 02:23:35
阅读次数:
329
数据库中如果用GUID作主键(默认聚簇索引),会产生页面碎片,可以用UUID来解决这个问题: [DllImport("rpcrt4.dll", SetLastError = true)] private static extern int UuidCreateSequen...
分类:
其他好文 时间:
2014-09-13 18:33:25
阅读次数:
216
不得不承认VB比VM挫多了,毕竟一个是收费一个是免费的,多少还是差距的。在用VB复制虚拟硬盘后,直接用于创建新虚拟机会出错,提示uuid已存在:解决方案:使用以下命令重新注册uuid:VBoxManage internalcommands sethduuid "D:\linux\Fedora.vdi...
分类:
其他好文 时间:
2014-09-13 11:58:25
阅读次数:
329
没事闲着无聊给磁盘分区,导致Ubuntu载入时无法识别/路径,查找方法修改/etc/fstab文件夹,在里面增加UUID启动条目,但是却发现即使在root权限下也无法对此文件进行修改。解决办法如下:mount -o remount,rw /重新挂载为读写模式,顺利修改。
分类:
其他好文 时间:
2014-09-13 11:50:05
阅读次数:
179
function uuid() { ? ? ? ? $charid = md5(uniqid(mt_rand(), true)); ? ? ? ? $hyphen = chr(45);// "-" ? ? ? ? $uuid = chr(123)// "{" ? ? ? ? ? ? ? ?.substr($charid, 0, 8).$hyphen ...
分类:
其他好文 时间:
2014-09-12 17:29:44
阅读次数:
159