码迷,mamicode.com
首页 > 其他好文
启用iptables后vsftpd不能列出目录的问题!
#?iptables?-S -P?INPUT?DROP -P?FORWARD?DROP -P?OUTPUT?ACCEPT -A?INPUT?-i?lo?-j?ACCEPT? -A?INPUT?-p?icmp?-j?ACCEPT? -A?INPUT?-p?tcp?-m?tcp?--dport?20?-j?ACCEPT? -A?INP...
分类:其他好文   时间:2014-10-30 11:58:57    阅读次数:144
U8后台处理委外订单子件用料单
select*fromOM_MOMainwherecCode=‘委外订单号‘/*委外订单主表MOID(U861)主表idcCode(U861)订单编号*/select*fromOM_MOMaterialswhereMOID=(selectMOIDfromOM_MOMainwherecCode=‘委外订单号‘)ANDcInvCodelike‘LF%‘/*委外用料单子表MOMaterialsID(U861)委外用料单子表IDint4False..
分类:其他好文   时间:2014-10-30 11:59:58    阅读次数:132
在EditText中怎么去检查输入的字符串的长度?
听说用textwatch可以监听到edittext中输入的字符串的长度,但是我不太会用希望高人指点一下publicvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.main);mtv=(TextView)findViewById(R.id.tv);met=(EditText)findViewById..
分类:其他好文   时间:2014-10-30 11:55:43    阅读次数:191
cacti 监控软件的部署
安装cacti服务端和被控制端首先在被检测端安装两个套件yum-yinstalllm_sensorsnet-snmpvim/etc/snmp/snmp.conf修改配置snmp.conf文件在里面添加:com2secnotConfigUser192.168.1.2publicaccessnotConfigGroup""anynoauthexactallnonenoneviewallincluded.180/etc/init.d/snmpdr..
分类:其他好文   时间:2014-10-30 11:58:12    阅读次数:312
复选框与文字无法对齐问题
写过Web页面的朋友大概都曾遇到过这样的问题:checkbox与说明文字(比如一个label标签或一个a标签)无法对齐,要不是checkbox上浮了,要不是说明文字上福以前遇到过这个问题,但是都直接忽视,并未深究。今天要解决项目中遗留下的界面显示问题,这个问题终于绕不过去了,因为它..
分类:其他好文   时间:2014-10-30 11:55:14    阅读次数:109
checkinstall - 从源码制作rpm包
checkinstall诞生的背景对于一些程序只有源码包,没有提供标准的二进制包(rpm或deb等),以后要卸载的时候,你只能记下所有由程序生成或修改的文件,最好手工删除它。checkinstall会跟踪install命令所创建或修改的所有文件的路径,并建立一个Slackware-,Debian-或RPM-安装包,..
分类:其他好文   时间:2014-10-30 11:56:46    阅读次数:235
PPP中的CHAP认证实验
PPP中的CHAP认证实验一、CHAP认证基本介绍1.主验证方和被验证方都有一对用户名和密码。2.主认证方主动发起请求,向被认证方发送一个随机提出报文和本端的用户名。3.被认证方收到的用户名查找自己用户表中与主认证相同的用户名所对应的密码,如果没找到则认证失败;如找到则..
分类:其他好文   时间:2014-10-30 11:53:31    阅读次数:309
wc命令的一个陷阱
linux环境下,如何获得一个文件的总行数?你也许会说很简单,用wc命令即可。使用命令:wc<文件名>|awk‘{print$1}‘但是要注意,wc命令计算文件的行数是看换行符的个数。如果一个文件的结尾没有换行符(比如在windows下编辑的),那么就会出现“相差1”的错误。例如,一个文..
分类:其他好文   时间:2014-10-30 11:54:22    阅读次数:191
深入了解printf的用法和各类变形之区别
int printf(const char *format, ...);  向默认的标准输出设备按照规定格式输出信息,返回值为打印的字符个数,不包括结束符。例如正常执行printf("1234");printf("%d",1234)返回值都为4,输出失败(没有输出全部字符)则返回负数。 int fprintf(FILE *stream, const char *format, ...);向指定的...
分类:其他好文   时间:2014-10-30 11:53:36    阅读次数:163
u-boot: Error: Can't overwrite "ethaddr"
u-boot env overwrite...
分类:其他好文   时间:2014-10-30 11:52:29    阅读次数:353
poj 2599 A funny game
A funny game Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 1907   Accepted: 804 Description There are several airports in one country, and there are flight...
分类:其他好文   时间:2014-10-30 11:54:33    阅读次数:268
电话本索引【表视图】
MainViewController.h @interface RootViewController : UIViewController @property(nonatomic, retain)NSDictionary *dic; @property(nonatomic, retain)NSArray *allKeys; MainViewController.m - (void)view...
分类:其他好文   时间:2014-10-30 11:52:11    阅读次数:188
LeetCode:Single Number(2)
问题描述: Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime complexity. Could you implement it ...
分类:其他好文   时间:2014-10-30 11:52:50    阅读次数:256
电话本的检索功能
设置带有导航栏的根视图控制器 RootViewController.h @interface RootViewController : UIViewController { UITableView *_tableView; } @property(nonatomic, retain)NSArray *data; //存放原本的数据 @property(nonatomic, reta...
分类:其他好文   时间:2014-10-30 11:50:28    阅读次数:182
FutureTask使用完整示例
MainActivity如下: package cc.cv; import java.util.concurrent.FutureTask; import android.os.Bundle; import android.app.Activity; /** * Demo描述: * FutureTask使用完整示例 * * FutureTask是一个Runnable的子类,在建立Th...
分类:其他好文   时间:2014-10-30 11:51:07    阅读次数:170
QQ列表的展开收起
RootViewController.h @interface RootViewController : UIViewController { BOOL Close[15]; //用于存放每一组的收起展开状态 YES 是收起 NO是展开 UITableView *_tableView; } @property(nonatomic, retain)NSArray *da...
分类:其他好文   时间:2014-10-30 11:50:52    阅读次数:113
单元格的三种定制方式
AppDelegate.m MainViewController *mainCtrl = [[MainViewController alloc] initWithStyle:UITableViewStylePlain]; UINavigationController *navCtrl = [[UINavigationController alloc] initWithRootV...
分类:其他好文   时间:2014-10-30 11:50:20    阅读次数:254
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!