用过PHP的朋友都知道,PHP中变量的使用灵活方便,特别是能在字符串中方便实现变量名-值变换,使得整个PHP代码更显简洁优美。比如一条更新数据库的SQL语句只需写成:"update users set password='$password', group=$group, name='$username' where account='$account'",其中的$password、$group、...
分类:
Web程序 时间:
2014-05-12 15:09:13
阅读次数:
358
先执行:rubyscript/generatemigrationadd_change_flag_to_userschange_flag:Boolean生成时间序列文件:db/migrate/20131016034104_add_changeflag_to_users.rb内容:classAddchangeflagToUsers<ActiveRecord::Migrationdefself.upadd_column:users,:change_flag,:booleanen..
分类:
其他好文 时间:
2014-05-12 03:10:04
阅读次数:
368
C#修改文件或文件夹的权限,为指定用户、用户组添加完全控制权限 //给Excel文件添加"Everyone,Users"用户组的完全控制权限
FileInfo fi = new FileInfo(excelPath);
System.Security.AccessControl.FileSecurity fileSecurity...
分类:
其他好文 时间:
2014-05-11 21:46:53
阅读次数:
377
Xcode默认project通过build输出的目录,存放于目录
/Users/用户名/Library/Developer/Xcode/DerivedData/产品名称-hjwqiconnjhpjleqhsxvhdsxwktv/Build/Products/
可以在项目最左侧的文件列表里展开Prod...
分类:
其他好文 时间:
2014-05-10 22:35:36
阅读次数:
455
max.hpp/* The following code example is taken
from the book * "C++ Templates - The Complete Guide" * by David Vandevoorde and
Nicolai M. Josuttis, Add...
分类:
其他好文 时间:
2014-05-10 08:18:25
阅读次数:
394
Pat1076代码
题目描述:
Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social network is formed with foll...
分类:
其他好文 时间:
2014-05-10 04:50:24
阅读次数:
403
使用IO模拟器,应用沙盒的根路径为:/Users/apple/Library/Application Support/iPhone
Simulator/6.0/Applications(6.0为模拟器的版本)1、获取应用沙盒目录 利用沙盒根目录拼接“Documents”字符串
NSString * ...
分类:
移动开发 时间:
2014-05-09 07:31:58
阅读次数:
416
在windows7下”dir/ac:\”发现有一条记录2009/07/1412:53DocumentsandSettings[C:\Users]C:\Users是原目录,C:\DocumentsandSettings是连接到C:\Users上的,也许微软觉得C:\DocumentsandSettings太长太难记了所以在windows7/vista中改为C:\Users了,但又怕部分老软件有兼容问题..
转自:http://marklodato.github.io/visual-git-guide/index-zh-cn.html个人觉得这一篇比一些入门教程更值得看,图解很详细到位,很容易理解其工作原理,明白了这个过程,对以后冲突的产生以及其他难题相信可以依靠自己快速分析出来。有不懂的地方欢迎评论讨...
分类:
其他好文 时间:
2014-05-09 04:16:00
阅读次数:
367
apt-get install sambalibpam-smbpass然后编辑vi
/etc/samba/smb.conf增加[djyk]guest
ok=nobrowseable=nopath=/home/djykwritable=yesvalid users=djyk挂载samba是mount ...
分类:
其他好文 时间:
2014-05-08 17:36:33
阅读次数:
280