12 2011 档案
摘要:<script type="text/javascript" src="./js/jquery-1.2.2.pack.js" ></script>function judge() //判断idstream_number里的值。然后根据这个值设置div里的内容是否显示。 { var stream_number_value=document.getElementById("stream_number").value; if(stream_number_value==0) { $('#stream_j...
阅读全文
摘要:1.Don't cry because it is over ,smile because it happened!2.To the world you may be one person ,but to one person you may be the world.3.No matter the ending is perfect or not ,you can't disappear from my world.4.I know i am not strong but i pretend to strong because you are not around.5.The
阅读全文
摘要:<title>Hunda IPcam</title><link rel="stylesheet" type="text/css" href="./css/setting.css" /><script language="JavaScript" src="./js/xxx.js"></script><script type="text/javascript" src="./js/xxx.js"
阅读全文
摘要:#include <stdio.h>typedef struct shutter //第一个结构体定义{ int min; int max;}shutter_t;typedef struct image_s //第二个结构体定义{ int hue; int sharpness; shutter_t judge; //把第一个结构体里的元素放到第二个结构体里}image_t;int main(){ image_t image; image.hue=5; image.sharpnes...
阅读全文
摘要:第一:cd:/home/AMB/a5s_ipcam_sdk/ambarella第二:source build/env/CodeSourcery.env //设置编译环境第二::/home/AMB/a5s_ipcam_sdk/ambarella/unit_test/private 1。//可以进入 private下的ws_discovery/ 然后make..... 如果出现arm-none-linux-gnueabi-gcc -g // 说明交叉编译环境已调...
阅读全文
摘要:#include <iostream>#include <fstream>using namespace std;int main(){ ifstream in; in.open("file1.txt"); //打开一个文件 char c; if(!in) //提示 { cerr<<"open failure!\n"<<endl; return 0; } ...
阅读全文
摘要:#include <iostream>using namespace std;int main(){ const int SIZE=50; //定义大小。 char name[SIZE]; cout<<"please input you name!\n"; //提示 cin>>name; //输入 cout<<"hello world:"<<name<<endl; //输出 return 0...
阅读全文
摘要:解压.gz :tar zxvf XXX.tar.gz打包.gz:tar zcvf xxx解压bzz:tar jxvf xxx.tar.bz2rm-rf 删除目录下的文件的所有内容rm-f 删除文件vi 创建文件.打开mkdir 创建文件修改系统时间date -s "2011-12-19 09:...
阅读全文
摘要:void Fifowrite() //Fifo通信{ int real_wnum = 0; int fifo_fd = open(OSD_FIFO,O_WRONLY,0); printf("fifo: %d\n", fifo_fd); if(fifo_fd) { real_wnum = write(fifo_fd,&osd_t,sizeof(textOSD_t)); if(real_wnum...
阅读全文
摘要:<td><div style="display:none"><input id="text_judge" type="text" size="1"></div></td>//可以把div里的内容隐藏
阅读全文
摘要:#gcc -g gdbtest.c -0 gdbtest编译生成文件。 //gdbtest为可执行文件#gdb gdbtest //进入gdb(gdb)l 1 //从第一行开始列出代码(gdb)break 5 //设置断点(gdb)r ...
阅读全文
摘要:<fieldset> <legend>区域 1</legend> <p class="sidebtn"></p> <div id="isOpened" style="display:none"> <table> <tr> <td align="center"><span>叠加字符:</span></td> <td colspan="3"...
阅读全文
摘要:#include <stdio.h> //冒泡#define N 10int main(){ int i,j,temp; int a[N]; for(i=0;i<N;i++) { scanf("%d",&a[i]); } for(i=0;i<N-i;i++) { for(j=0;j<N-1-i;j++) { if(a[j]>a[j+1]) { temp=a[j]; a[j]=a[j+1]; ...
阅读全文
摘要:#define OSD_FILEF "/home/OsdSave.txt"typedef struct textOSD_s { int font_size; int outline; int bold; int italic; int color; }textOSD_t;void saveRead(){ memset(&osd_t,0,...
阅读全文
摘要:function checkIP() //检查IP{var exp=/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/; obj=document.getElementById("NTPaddress").value; var reg1 = obj.match(exp); if(reg1==nu...
阅读全文
摘要:function settimes() { var time = new Date(); hours = time.getHours(); mins = time.getMinutes(); secs = time.getSeconds(); years = time.getFullYear(); mons = (time.getMonth() + 1); days = time.getDate(); mons = (mons < 10 ? '0' : '') + mons; da...
阅读全文
摘要:char OsdEndBuf[100][255];char DisplayOsdBuf[100][255];char Txt[50]="Txt", s1_text[50]="s1_text";int Line=-1;int coyOsdbuf() //把文本中的内容复制到数组里{ int i=-1; char *osdfp; char OsdBuf[255]; memset(OsdEndBuf,0,sizeof(OsdEndBuf)); if((osdfp=fo...
阅读全文