[embedded]How to set autherity enable with httpd of busybox
In http.conf dir/:user:pass In start command httpd -h /home/www -c http.conf标签: embedded
[linux]How to change password
echo user:pass|chpasswd标签: linux
[html]浏览器模式的指定
浏览器为了兼容新旧协议,分了不同模式,如Quick mode及Standars mode, 为了让自己的页面告诉浏览器用何种模式,可以在页头加上DTD,如 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 具体定议很多内容,我只简单标记下。标签: html
[JS]Multy language by javascript
var get_lan=function(){ $(".lan").each(function(){ var lan_key=$(this).attr("data_lan"); lan_key="g_lan."+lan_key; var lan_key=eval("("+lan_key+")"); $(this).text(lan_val); }) }标签: JS
[JS]A demo of websockets on javascript
ws = new WebSocket("ws:192.168.0.100:4444"); ws.onopen = function(e) { console.log("Connected"); ws.send("Hello nicholas server!"); }; ws.onclose = function(e) { console.log("Disconnected: " + e.reason); }; ws.onerror = function(e) { console.log(...标签: JS
[html]前端不刷新提交文件的方法
想来想去,还是只能利用form来提交,除此之外,jquery似乎没法获得文件流。 <iframe id=id_iframe_scroller name=name_iframe_scroller src=HardUpdateState.cgi ></iframe> <FORM enctype=multipart/form-data method=POST action=/cgi-bin/response_UploadFile.cgi target=name_iframe_scroller > <input class="text" type...标签: html
[linux]A simple driver of linux
hello.c #include <linux/init.h> #include <linux/module.h> static int hello_init(void){ printk(KERN_INFO "Hello nicholas, driver is comming\n"); return 0; } static void hello_exit(void){ printk(KERN_INFO "See you, driver"); } module_init(hello_init); ...标签: linux
[C]Example of websockets server
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <openssl/sha.h> #include <openssl/pem.h> #include <openssl/bio.h> #incl...标签: C
[embedded]To receive upload file by cgi-bin
#include <stdio.h> #include <stdlib.h> #include <string.h> #define STR_LEN 50 #define bufferSize 512 #define FPATH "../uploads/" #define STATUS_FILE "../uploadStatus.htm" #define SHELL_FILE "../shell/response_Firmware.sh" #define SYS_LOG "firmware.ini" /* int writeSt...标签: embedded
[linux]LAMP一键web遭遇记
这两天居然在搭建LAMP服务器这种事情上翻船了,昨天新买了个阿里云的ECS,座标美国,开开心心地用ssh连上服务器,上传一键web安装脚本,然后运行,由于要一个小时左右,我就先去跑步了,结果回家后一看果然就安装成功了。然而…… netstat -tunl 打下去之后,没有80端口, 一定是哪里不对了,于是检查脚本,手动安装,更换不同版本,简直能想的办法都想尽了, 始终没能跑起来。这一弄就到了凌晨2点,一点也不困,但我心里还是知道的,我这一把年纪了,不宜熬夜,虽然大脚越发清醒,却明明感觉心累,强迫自己关机睡觉。 睡床上还在想,明天应该试试换个系统,...标签: linux
日历
最新微语
- 有的时候,会站在分叉路口,不知道向左还是右
2023-12-26 15:34
- 繁花乱开,鸟雀逐风。心自宁静,纷扰不闻。
2023-03-14 09:56
- 对于不可控的事,我们保持乐观,对于可控的事情,我们保持谨慎。
2023-02-09 11:03
- 小时候,
暑假意味着无忧无虑地玩很长一段时间,
节假意味着好吃好喝还有很多长期不见的小朋友来玩...
长大后,
这是女儿第一个暑假,
一个半月...
2022-07-11 08:54
- Watching the autumn leaves falling as you grow older together
2018-10-25 09:45
分类
最新评论
- Goonog
i get it now :) - 萧
@Fluzak:The web host... - Fluzak
Nice blog here! Also... - Albertarive
In my opinion you co... - ChesterHep
What does it plan? - ChesterHep
No, opposite. - mojoheadz
Everything is OK!... - Josephmaigh
I just want to say t... - ChesterHep
What good topic - AnthonyBub
Certainly, never it ...