`
frenchleaf
  • 浏览: 38976 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论
文章列表
ubuntu10.10: 网络: /etc/init.d/network-manager restart 编辑/etc/network/interfaces windows盘符: du --max-depth=1 . 10.10会把wubi所在的硬盘(比如E:\)直接挂载到/host,不用再重新挂了 fdisk -l查看 fuser -m /dev/sda1 查看那些进程在用这个设备 在/media/winD ...
public class HelloWorld { static { System.loadLibrary("Hello"); } public native void DisplayHello(); public static void main(String[] args) { new HelloWorld().DisplayHello(); } } javac HelloWorld.java javah -jni HelloWorld 生成helloworld.h /* DO ...
#!/bin/sh IPT='/sbin/iptables' $IPT -t nat -F $IPT -t nat -X $IPT -t nat -P PREROUTING ACCEPT $IPT -t nat -P POSTROUTING ACCEPT $IPT -t nat -P OUTPUT ACCEPT $IPT -t mangle -F $IPT -t mangle -X $IPT -t mangle -P PREROUTING ACCEPT $IPT -t mangle -P INPUT ACCEPT $IPT -t mangle -P FORWARD ACCEPT $IPT -t ...
转载百度文库 package sample; import org.apache.axiom.om.OMAbstractFactory; import org.apache.axiom.om.OMElement; import org.apache.axiom.om.OMFactory; import org.apache.axiom.om.OMNamespace; public class HelloWorld { public OMElement sayHello(OMElement in){ System.out.println(&quo ...
groovy例子 http://pleac.sourceforge.net/pleac_groovy/index.html java贝叶斯网络 http://www.cs.cmu.edu/~javabayes/Home/ 概率-统计之都 http://cos.name aws-eclipse http://aws.amazon.com/eclipse/ ssh-putty http://www.ascc.sinica.edu.tw/putty ode BPEL http://download.eclipse.org/technology/bpel/update-site/
jni没用过,接触一下jna 如果在windows下 import com.sun.jna.Library; import com.sun.jna.Native; import com.sun.jna.Platform; public class HelloWorld { public interface CLibrary extends Library { CLibrary INSTANCE = (CLibrary) Native.loadLibrary((Platform.isWindows() ? "msvcrt" : "c"), C ...
#include <sys/types.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> int main(void) { pid_t result; result=fork(); if(result==-1){ // perrer("fork"); exit; }else if(result==0){ printf("result=%d,ppid=%d,pid=%d\n",result,get ...
http://bbs.chinaunix.net/archiver/tid-505577.html 和http://chenliang.info/?p=224 cd unpv12e ./configure make vim README看怎么安装 cd unpv12e/lib make会报错unp.h:114: error: redefinition of ‘struct in_pktin unp.h中,这段代码注释掉,因为在linux系统include文件中已经定义了这个结构, /* The structure returned by recvfrom_flags() */ struct i ...
shell用curl http://www.google.com.hk 然后用dwr的推送 可以达到服务器响应后,立即在客户端出现效果, 再也不用定时刷新啦
转载http://hi.baidu.com/lindastar/blog/item/e7c08fafdceb63cc7dd92a4a.html int snprintf(char *restrict buf, size_t n, const char * restrict  format, ...); 函数说明:最多从源串中拷贝n-1个字符到目标串中,然后再在后面加一个0。所以如果目标串的大小为n                  的话,将不会溢出。 函数返回值:若成功则返回欲写入的字符串长度,若出错则返回负值。 Result1(推荐的用法) #include <stdio.h> ...
来自apue  fig15.5 fig 15.6 #include "apue.h" int main(void) { int n; int fd[2]; pid_t pid; char line[MAXLINE]; if (pipe(fd) < 0) err_sys("pipe error"); if ((pid = fork()) &l ...
信号是软件中断,感觉就像javascript里的事件 #include "apue.h" static void sig_usr(int); /* one handler for both signals */ int main(void) { if (signal(SIGUSR1, sig_usr) == SIG_ERR) err_sys("can't catch SIGUSR1"); if (signal(SIGUSR2, sig_usr) == SIG_ERR) err_sys("can't catch ...
linux源码
工具VC++.6.0.with.SP6+VisualAssist 第一个程序 使用goto,注意lebel后面需要有语句,没有不行 #include "stdafx.h" int i; int main(int argc, char* argv[]) { char name[30]; printf("Hello World!\n"); puts("hello"); for(i=0;i<10;i++){ if(i==5) goto label1; printf("in the for lo ...
jquery1.4.2的4932行左右 ajaxSettings: { url: location.href, global: true, type: "GET", contentType: "application/x-www-form-urlencoded", processData: true, async: true, global这个东西超级重要,尤其是在ie的情况下, 当一个页面用了8个$.ajax调用,火狐正常会异步的一个一个显示div,而ie就崩溃了,基本上beforesend里面如果不写alert就会卡在那里,直到最后一个di ...
Global site tag (gtag.js) - Google Analytics