首页 > 其他
su: /bin/bash: Permission denied
https://bbs.archlinux.org/viewtopic.php?id=105541New user created as:groupadd mygroupuseradd -s /bin/bash -g myuser -m -k /dev/null myuserWhen trying ...
分类:其他   时间:2015-03-26 14:43:30    收藏:0  评论:0  赞:0  阅读:393
ByteArray
ByteArray:属性endian:String == Endian.BIG_ENDIAN/Endian.LITTLE_ENDIAN。length:uint ByteArray的字节数position:uint 将文件指针的当前位置(以字节为单位)移动或返回到ByteArray对象中。方法大体分为...
分类:其他   时间:2015-03-26 14:43:10    收藏:0  评论:0  赞:0  阅读:251
nginx解决502错误
添加一个域名绑定,突然服务器就挂了。由于是接受项目,没看过服务器配置。结果nginx和mysql 都跑不起来。平滑启动nginx失败。检查/usr/local/nginx/sbin/nginx -t ,配置文件一切ok,于是/usr/local/nginx/sbin/nginx 启动成功。但是网站继...
分类:其他   时间:2015-03-26 14:43:00    收藏:0  评论:0  赞:0  阅读:105
@responsebody@requestbody实例
register.jsp: $("#sub").click(function(){ var m = { "account": $("#_account").val(), "passwords": $("#_pass")....
分类:其他   时间:2015-03-26 14:42:20    收藏:0  评论:0  赞:0  阅读:231
FTP服务器 vsftp samba服务器 共享 smb
FTP服务器 vsftp samba服务器 共享 smb参考1参考3参考2参考4/usr/lib/systemd/system/vsftpd.serviceftp.x86_64 0:0.17-66.el7 [root@localhost var]# yum install -y *ftp*2、关闭....
分类:其他   时间:2015-03-26 14:41:20    收藏:0  评论:0  赞:0  阅读:246
BASH相关
颜色http://www.cnblogs.com/lr-ting/archive/2013/02/28/2936792.htmlhttp://segmentfault.com/q/1010000000122806http://www.wuzesheng.com/?p=2177ifhttp://cod...
分类:其他   时间:2015-03-26 14:41:10    收藏:0  评论:0  赞:0  阅读:233
四则运算
#include#include#include #include #include char fuhao(){ int xuanzhe; time_t t; srand((unsigned)time(&t)); xuanzhe=rand()%4+1; switch(xuanzhe) ...
分类:其他   时间:2015-03-26 14:40:50    收藏:0  评论:0  赞:0  阅读:210
练习一
四则运算随机生成0~99的两个数进行四则运算要注意除法分母为0的情况预计用时30分钟实际用时60分钟代码:#include #include #include char OperatorChar() {int op;op=rand()%4;switch(op){case 0:return '+';c...
分类:其他   时间:2015-03-26 14:39:30    收藏:0  评论:0  赞:0  阅读:202
epoch _ golang
A common requirement in programs is getting the number of seconds, millisecond, or nanoseconds since Unix epoch. Here's how to do it in Gopackage main...
分类:其他   时间:2015-03-26 14:38:50    收藏:0  评论:0  赞:0  阅读:274
POST方式提交乱码解决
乱码的问题比较常见,确保各地方的编码格式均统一是保证不出现乱码的必要条件,但还是常会有编码都统一了仍然出现乱码的情况。第一步:确认JSP页面头部是否有:第二步:在表单不多的情况的可以偷懒的方式考虑:String param= new String(request.getParameter("para...
分类:其他   时间:2015-03-26 14:38:30    收藏:0  评论:0  赞:0  阅读:274
全部总结
UIView的常见属性UIView的常见属性- (void)addSubview:(UIView *)view;添加一个子控件view- (void)removeFromSuperview;从父控件中移除- (UIView *)viewWithTag:(NSInteger)tag;根据一个tag标识...
分类:其他   时间:2015-03-26 14:37:41    收藏:0  评论:0  赞:0  阅读:219
@Controller 中以@Value方式注入 properties 配置文件
试过几种获取配置文件的方式,@Controller类不像servelet类,可以在接口配置时配置参数值,而读取XML文件不是太方便,所以使用*.properties是比较好的办法注入方式获取是最直接,最快捷的。这个操作主要涉三个部分,下面分别介绍:首先,配置文件准备。这里文件名命名为applicat...
分类:其他   时间:2015-03-26 14:37:20    收藏:0  评论:0  赞:0  阅读:4295
POJ 2411 Mondriaan'sDream
题目地址:http://poj.org/problem?id=2411 1 /* 2 题意:一个h*w的矩阵(1 8 #include 9 #include 10 #include 11 #include 12 #include 13 using namespace std;14 15 c...
分类:其他   时间:2015-03-26 14:36:50    收藏:0  评论:0  赞:0  阅读:133
模板1.0
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 12 using namesp...
分类:其他   时间:2015-03-26 14:36:40    收藏:0  评论:0  赞:0  阅读:262
WCF会话(Session)与实例(Instance)管理
对于Client来说,它实际上不能和Service进行直接交互,它只能通过客户端创建的Proxy来间接地和Service进行交互,然而真正的调用而是通过服务实例来进行的。我们把通过Client的调用来创建最终的服务实例过程称作激活,在.NET Remoting中包括Singleton模式、Singl...
分类:其他   时间:2015-03-26 14:36:10    收藏:0  评论:0  赞:0  阅读:199
《梦断代码》读后感2
这次,我读了《梦断代码》第4章乐高王国,第5章管束奇客和狗,第6章搞掂设计方案。在乐高王国这一章中,我看到了“牛仔程序员”,就如同软件工程老师所讲的,四种人,第一等人是有能力有责任,第二等人是有责任没能力,第三等人是有能力没责任,第四等人是无能力无责任。老师所说,一人英雄的时代已经结束,对于这种人就...
分类:其他   时间:2015-03-26 14:35:50    收藏:0  评论:0  赞:0  阅读:365
UIView阴影和圆角的关系
UIView阴影和圆角的关系UIView 的 clipsToBounds属性和CALayer的setMasksToBounds属性表达的意思是一致的。取值:BOOL(YES/NO)作用:决定了子视图的显示范围。具体的说,就是当取值为YES时,剪裁超出父视图范围的子视图部分;当取值为NO时,不剪裁子视...
分类:其他   时间:2015-03-26 14:35:40    收藏:0  评论:0  赞:0  阅读:360
time formatting _ golang
Go supports time formatting and parsing via pattern-based layoutspackage mainimport ( "fmt" "time")func main() { p := fmt.Println t := tim...
分类:其他   时间:2015-03-26 14:35:00    收藏:0  评论:0  赞:0  阅读:230
hdoj 2097 Sky数
Sky数Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 15870Accepted Submission(s): 9157Problem Descr...
分类:其他   时间:2015-03-26 14:34:00    收藏:0  评论:0  赞:0  阅读:241
Malloc实现
体会C库函数的功能实现方式参考资料CS360 System Programming Lecture NotesMemoryhttp://web.eecs.utk.edu/~plank/plank/classes/cs360/360/notes/Memory/lecture.htmlMalloc1ht...
分类:其他   时间:2015-03-26 14:33:30    收藏:0  评论:0  赞:0  阅读:160
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!