ASP.NETMVCView页面内判断是否登录直接写这个判断即可@if (Request.IsAuthenticated) { 你好,@Html.ActionLink(User.Identity.Name, "Manage", "Account", routeValues: n...
分类:
Web程序 时间:
2014-06-18 22:30:21
阅读次数:
393
BACKGROUNDAs processing resources have increased, demands to run multiple software programs and operating systems on a single microprocessor have also...
分类:
其他好文 时间:
2014-06-16 23:25:53
阅读次数:
345
许多文件系统都是通过generic_file_write()函数来实现文件对象的write方法,即write(库函数)->sys_write()->generic_file_write():
ssize_t generic_file_write(struct file *file, const char __user *buf,
size_t count, loff_t *ppos)...
分类:
其他好文 时间:
2014-06-16 22:47:52
阅读次数:
203
做了个Android的常用类库框架,希望能帮助大家。包括了View Injection,ORM,Asynchronous Http and Image,User scenario testing。等等
希望大家多提意见,谢谢。
同时还有TripleDes Utils,WebViewUtils,Md5Utils 之类的方便大家使用。
github的地址如下:
https://gith...
分类:
移动开发 时间:
2014-06-16 22:14:01
阅读次数:
273
如下一个存储过程是dba创建一个表空间、创建一个用户并给这个用户授予权限:
create or replace procedure createTS(tname in varchar2)
is
PRAGMA AUTONOMOUS_TRANSACTION;
v_createsql varchar2(400);
vtbsname varchar2(40);
...
分类:
其他好文 时间:
2014-06-16 19:37:04
阅读次数:
229
根据工作环境,自定义一个mysql启动脚本---1.保存为/usr/local/mysql/scripts/mysql_env.ini#setmysqlinitvariablesMYSQL_USER=system
#mysql的用户名MYSQL_PASS=‘password‘#mysql的登录用户密码#checkinputparameterornoif[$#-ne1];then#判断输入的参数个数echo
"mysqlportis33..
分类:
数据库 时间:
2014-06-16 18:20:50
阅读次数:
238
根据工作环境,自定义一个mysql关闭脚本---1.保存为/usr/local/mysql/scripts/mysql_env.ini#setmysqlinitvariablesMYSQL_USER=system
#mysql的用户名MYSQL_PASS=‘password‘#mysql的登录用户密码#checkinputparameterornoif[$#-ne1];then
#判断输入的参数个数echo"mysqlportis
3..
分类:
数据库 时间:
2014-06-16 17:48:07
阅读次数:
238
一.查看用户登录信息的命令1.w查看当前系统上登录的所有用户的信息2.who查看该shell终端下登录用户的详细信息3.whoami查看本shell终端下登陆的用户4.last查看历史的所有登录信息[root@primary_serverworkspace]#w
14:59:23up19days,5:35,1user,loadaverage:0.36,0.37,0.33
USER..
分类:
其他好文 时间:
2014-06-16 16:40:11
阅读次数:
589
做主从同步时的报错:mysql>changemastertomaster_host=‘192.168.10.151‘,master_user=‘repl‘,master_password=‘zrer90‘,master_log_file=‘mysql2-bin.000004‘,master_log_pos=98;ERROR1201(HY000):Couldnotinitializemasterinfostructure;moreerrormessagescanbefoundinthe..
分类:
数据库 时间:
2014-06-16 16:00:06
阅读次数:
279
find命令–用途:用于查找文件或目录–格式:find[查找范围][查找条件]常用查找条件–-name:按文件名称查找–-size:按文件大小查找–-user:按文件属主查找–-type:按文件类型查找–-print:以\n为换行符打印出文件(路径)高级查找条件–-perm:按权限查找–-ctime(-cmin?.
分类:
系统相关 时间:
2014-06-16 15:04:40
阅读次数:
260