- 博客(84)
- 资源 (1)
- 收藏
- 关注
转载 在ubuntu上安裝ascii查詢表
$ sudo apt-get install ascii$ asciiUsage: ascii [-dxohv] [-t] [char-alias...]-t = one-line output -d = Decimal table -o = octal table -x = hex table-h = This help screen -v = version informati
2013-12-31 13:59:11 1427
转载 dram test
#include #include #define LEVEL 5#define RAM_TEST_PATTERNS 2intmain (int argc, char *argv[]){ ulong *ptrMalloc = NULL; int i = 0, j = 0; ulong test_value; ulong *ptrl = NULL; int level =
2013-12-28 21:46:28 1628
转载 How to open Firefox and chrome from command line
run firefox(default page)$firefox run firefox(在想要打開的網頁)$firefox www.yahoo.com run chrome(default page)$google-chrome run firefox(the page you want)$google-chrome ww
2013-12-28 20:28:44 494
原创 apache2 網頁檔案放的位置
可以從/etc/apache2/sites-available/default 這隻檔案中的 DocumentRoot /var/www 得知把要分享的檔案放在這個位置下/var/www 假設運行apache2的主機ip為123.4.5.6在/var/www/下有檔案 abc.mp4 =============================
2013-12-27 20:07:47 619
转载 使用strace, ltrace寻找故障原因的线索(轉載)
轉載自http://blog.csdn.net/delphiwcdj/article/details/7387325轉載自http://fcamel-life.blogspot.tw/2010/02/strace-ltrace-system-call-library-call.html
2013-12-25 13:38:06 442
转载 kernel printk
轉載自http://huenlil.pixnet.net/blog/post/23271426-printk()-%E4%BD%BF%E7%94%A8%E8%AA%AA%E6%98%8E轉載自http://rritw.com/a/bianchengyuyan/C__/20121124/259446.html核心通過 printk() 輸出的訊息具有日誌級別,日誌級別是通過在 pri
2013-12-23 15:35:34 755
原创 看file內容
od -x file_name 以十六進位看od -c file_name 以ASCII看strings file_name strings - print the strings of printable characters in files.
2013-12-23 15:35:26 421
原创 格式usb成 ext4 format
格式usb成 ext4 format1.sudo umount /dev/sdc12.sudo mkfs.ext4 -L usb /dev/sdc1
2013-12-23 15:35:07 737
转载 關於ES、PES、PS以及TS码流
轉載自 http://blog.csdn.net/huangminqiang201209/article/details/8740571
2013-12-23 15:34:58 484
转载 VxWork介绍及编程
轉載自http://www.embhelp.com/drew/mypage/VxWorks.htm 一.嵌入式操作系统VxWorks简介VxWorks操作系统是美国WindRiver公司于1983年设计开发的一种嵌入式实时操作系统(RTOS),是嵌入式开发环境的关键组成部分。良好的持续发展能力、高性能的内核以及友好的用户开发环境,在嵌入式实时操作系统领域占据一席之地。它以其
2013-12-23 15:34:44 649
转载 SimpleHTTPServer
server端 (IP:192.168.1.2) 1. 在想要share的資料夾下面 (Ex:/home/XXX/) 裡面有檔案123.textpython -m SimpleHTTPServer (default port 8000) 2.python -m SimpleHTTPServer 9999 client端1. w
2013-12-23 15:34:28 557
转载 JavaScript核心指南(轉載)
轉載自http://blog.csdn.net/eengel/article/details/6140772
2013-12-23 15:34:19 442
转载 websocket
http://www.tutorialspoint.com/html5/html5_websocket.htm ===========================================轉載自http://www.html5rocks.com/zh/tutorials/websockets/basics/问题:低延迟的客户端-服务器和服务器-客户端连接
2013-12-20 23:00:38 998
转载 SimpleHTTPServer
server端 (IP:192.168.1.2) 1. 在想要share的資料夾下面 (Ex:/home/XXX/) 裡面有檔案123.textpython -m SimpleHTTPServer (default port 8000) 2.python -m SimpleHTTPServer 9999 client端1. w
2013-12-20 15:10:17 593
转载 monit
轉載自http://feilong.me/2011/02/monitor-core-processes-with-monit 是一款功能强大的系统状态、进程、文件、目录和设备的监控软件,用于linux平台, 它可以自动重启那些已经挂掉的程序,非常适合监控系统关键
2013-12-19 11:06:59 377
转载 mediainfo
ref : http://en.wikipedia.org/wiki/MediaInfomediainfo Spiderman.mpg GeneralComplete name : Spiderman.mpgFormat : MPEG-PSFile size : 42.8 MiBDuration : 2mn 29sOverall bit rate : 2 4
2013-12-19 11:06:52 566
转载 meld--Visual diff and merge tool for the GNOME Desktop
Visual diff and merge tool for the GNOME Desktop
2013-12-19 11:06:42 472
原创 dpkg
查看指定的套件是不是已經安裝過了 dpkg --get-selections | grep 查詢的字串查看已安裝套件的清單檔dpkg --get-selections
2013-12-19 11:06:35 419
转载 動態鏈接庫的使用-dlopen dlsym dlclose dlerror
ref LINUX下动态链接库的使用-dlopen dlsym dlclose dlerror dlopen基本定义 功能:打开一个动态链接库 包含头文件: #include 函数定义: void * dlopen( const char * pathname, int mode ); 函数描述: 在dlopen的
2013-12-19 11:04:48 489
转载 SOCK_STREAM与SOCK_DGRAM的区别
sock_stream 是有保障的(即能保证数据正确传送到对方)面向连接的SOCKET,多用于资料(如文件)传送。sock_dgram 是无保障的面向消息的socket , 主要用於網路上發廣播信息。SOCK_STREAM是基于TCP的,数据传输比较有保障。SOCK_DGRAM是基于UDP的,专门用于局域网,基于广播SOCK_STREAM 是数据流,一般是tcp/i
2013-12-19 11:04:01 718
转载 gethostbyname, gethostbyaddr, getaddrinfo
gethostbyname()函数原型:#include struct hostent *gethostbyname(const char *hostname); 该函数是查找主机名最基本的函数。如果调用成功了,他就返回一个指向hostent结构的指针,该结构中含有所查找主机的所有IPv4地址。这个函数的局限是只能返回IPv4地址。POSIX、规范
2013-12-19 11:03:54 1278
转载 glib資料
http://www.jollen.org/blog/2007/05/introduction_glib_1.html 開放原碼架構設計:Glib 小談 (1)http://www.ibm.com/developerworks/cn/linux/l-glib/ 浅析GLib https://developer.gnome.org/glib/stable/ht
2013-12-19 11:03:37 487
转载 thread 的gettid和pthread_self區别(TODO)
gettid是内核中的线程的ID, pthread_self是POSIX thread IDPOSIX thread ID 是POSIX 标准的,所有遵循POSIX标准的系统都支持,gettid是linux独有的
2013-12-19 11:03:26 548
转载 MediaPlayer State Diagram
轉載自 http://developer.android.com/reference/android/media/MediaPlayer.html
2013-12-19 11:03:08 430
转载 android sp wp pointer
轉載自http://developer.51cto.com/art/201001/180894.htm 原文http://www.icepack-linux.com/android-smart-pointer/在Android的源代码中,经常会看到形如:sp、wp这样的类型定义,这其实是Android中的智能指针。智能指针是C++中的一个概念Android中定义了两种智能指
2013-12-19 11:02:58 426
原创 mmap
1 /* 2 * Configure PCIE 3 */ 4 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include 13 #include 14 #include string.h> 15 #inclu
2013-12-19 11:02:44 530
转载 How to initialize an array in C
If your compiler is GCC you can use following syntax:int array[1024]={[0...1023]=5};Check out detailed description: http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/Designated-Inits.html
2013-12-19 11:02:33 618
原创 指標
int *f[ ] ; f 是一個arrary,它的元素類型是指向int的pointint (*f [ ])() ; f 是一個array,它的元素類型是function point,它所指向的函數的返回值是一個intint *(*f [ ])() ; f 是一個array,它的元素類型是function point,它所指向的函數的返回值是一個int point=====
2013-12-19 11:02:24 480
原创 DRAM test code
#include #include #define LEVEL 5#define RAM_TEST_PATTERNS 2intmain (int argc, char *argv[]){ ulong *ptrMalloc = NULL; int i = 0, j = 0; ulong test_value; ulong *
2013-12-19 11:02:13 1246
转载 一个进程可以malloc多少空间,由malloc引发的killed
http://blog.chinaunix.net/uid-23204078-id-3045296.html
2013-12-19 11:02:04 545
原创 daemon to monitor firm upgrade
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #include 12 #include string.h> 13 14 /*
2013-12-19 11:01:29 595
转载 sctp协议在ubuntu12.04中怎样开启
轉載自http://www.dewen.org/q/13270/sctp%E5%8D%8F%E8%AE%AE%E5%9C%A8ubuntu12.04%E4%B8%AD%E6%80%8E%E6%A0%B7%E5%BC%80%E5%90%AF sctp协议在ubuntu12.04中怎样开启在学习unix网络编程,关于sctp协议时,实践书上的代码发现自己
2013-12-19 11:01:13 3347
转载 Google gTest
1.轉載自http://www.cnblogs.com/coderzh/archive/2009/03/31/1426758.html作者:CoderZh(CoderZh的技术博客 - 博客园)微博:http://t.sina.com.cn/coderzh 出处:http://coderzh.cnblogs.com 2.轉載自 http://ro
2013-12-18 17:19:45 399
转载 c++ thread and mutex(c++11)
http://www.cplusplus.com/reference/mutex/mutex/ http://www.cplusplus.com/reference/thread/
2013-12-18 17:19:37 474
转载 effective c++系列勘誤
effective c++勘誤http://aristeia.com/BookErrata/ec++3e-errata.htmlhttp://jjhou.boolan.com/ Scott Meyers勘誤網站http://www.aristeia.com/books.html#errataLinks
2013-12-18 17:19:29 705
转载 字符串解析出int和bool等类型的值
轉載 http://blog.csdn.net/jamesfancy/article/details/1543338 从字符串解析出int和bool等类型的值 说到将字符串解析成int,首先想到的一定是atoi、atol等C函数。如果用C++来完成这些工具函数,那就要用到std::istringstream。 除了解析bool值之外,下面这个函数可以解析大部分的
2013-12-18 17:19:13 772
Multi-AP specification version 1.0
2019-03-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人