码迷,mamicode.com
首页 >  
搜索关键字:while True    ( 51585个结果
一个静态的HTML页面用jquery ajax登录到sharepoint页面
$.ajax({type:"get", url:"http://", data:"name="+userid+"&password="+password,async:true, error:function(request){alert("Connectionerror"); }, success:...
分类:Web程序   时间:2014-07-22 23:06:54    阅读次数:373
hdu 1005 数论 循环
给定 ab 与飞 f1 f2 求f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.分析:1 因为mod7 0using namespace std;int main(){ int a,b,n; int f[1005]; while(cin>>a>...
分类:其他好文   时间:2014-07-22 23:06:34    阅读次数:391
hdu 1211
这题就是 要你找出一个ASCII 的值x使得 : x^e%n==num(当前输入的数,e条件已给出)zsd:1: ASCII0-255可以枚举2: =a^11 11=1011int pow2( int a, int b ){ int r = 1, base = a; while( b...
分类:其他好文   时间:2014-05-01 16:22:43    阅读次数:326
vc 在edit控件中动态插入数据滚动显示
内存从网上论坛摘抄整理思路:给控件设置多行属性,设置垂直滚动条,Auto Vscroll设置为true,放入文本后把插入点设置到末尾pEdit->LineScroll(pEdit->GetLineCount()); 滚动条滚动到最下端int len = pEdit->GetWindowTextLen...
分类:其他好文   时间:2014-05-01 13:27:49    阅读次数:267
走进C标准库(6)——"string.h"中函数的实现memchr
我写的memchr:1 void *memchr(const void *buf, char ch, unsigned count){2 unsigned int cnt = 0;3 while(*(buf++) != ch && cnt count)5 ret...
分类:其他好文   时间:2014-05-01 00:50:10    阅读次数:306
groovy 简单的弹出菜单popupmenu程序
import groovy.swing.* import javax.swing.* import java.awt.* def swing = new SwingBuilder()swing.frame(title:"hello",show:true){ panel() { def mm=swi....
分类:其他好文   时间:2014-05-01 00:20:13    阅读次数:342
logback备注
包含的属性scan:当此属性设置为true时,配置文件如果发生改变,将会被重新加载,默认值为true。scanPeriod:设置监测配置文件是否有修改的时间间隔,如果没有给出时间单位,默认单位是毫秒。当scan为true时,此属性生效。默认的时间间隔为1分钟。debug:当此属性设置为true时,将...
分类:其他好文   时间:2014-04-30 23:22:47    阅读次数:361
如何终结服务器进程
windows下面可以主线程while loop接受input;但是觉得很丑。 linux没办法这样,可以用注册信号的办法。实现起来也不难: #include "stdio.h" #include "unistd.h" #include "signal.h" #include "error.h" volatile bool isStop = false; static void handl...
分类:其他好文   时间:2014-04-29 13:42:21    阅读次数:418
Hdfs的ACL测试
Hadoop从2.4.0版本开始支持hdfs的ACL,在CDH5.0当中也继承了该特性,下面对其进行一些测试: 一、启用ACL: dfs.permissions.enabled true dfs.namenode.acls.enabled true 二、测试ACL: ① [hadoop@master ~]$ groups hadoop 创建目录并上传文件: [...
分类:其他好文   时间:2014-04-27 21:18:00    阅读次数:306
CentOS自动登陆
项目需要去掉CentOS登陆框直接进入系统,简单的配置即可解决。 修改文件:vim /etc/gdm/custom.conf 加入内容: [daemon] AutomaticLogin=自动登陆的用户名 AutomaticLoginEnable=True...
分类:其他好文   时间:2014-04-27 21:17:04    阅读次数:287
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!