2016-08-27 - ������д shell �ű���ʱ���ر��ڵ��Ե�ʱ����Ҫע�Ͷ����������ÿһ��ǰ���� # ���Ե���Щ�鷳�� ���� shell ���������ԣ����ǿ���ʹ������ķ����� ����һ�����DZȽ����������������Բ��� HERE DOCUMENT ���ԣ�ʵ�ֶ���ע�ͣ����� COMMENT .....
2016-08-26 - ����ƪ�����У����ǽ����������snapϵͳ�н��н������������ǵ�Ӧ�ñ��벢��װ��Ŀ������У�����֪��ĿǰSnap֧��ARM��x86оƬ�������ǵ�Classic 16.04��ϵͳ�У����Ǻ����ر����������Ҫ����x86�ϵ�snap�ļ������������������ΪARM��������Ӧ��armh...
2016-08-25 - ����Ӧ����Ҫ�����д��һ���ij����쳣���ӽű�����Ҫͨ��������־�ļ��е��쳣��Ϣ�ؼ��ʣ����ؼ����������Ϊ���������쳣�������̡߳� �ű�����linux�µ�crontab�ṩ�Ķ�ʱ����ʱִ����־�����ű��� Ϊ�˰��������ɿ����ű�����������¼���...
2016-08-25 - ����ͨ��wifi���ƶ����������ĵ�Ƕ��ʽϵͳ���ԣ���wifi���������仯���������µ�wifi��ʱ��DNS·������ַ�ܿ��ܻᱻ���¡�����������£�Ӧ�ó����DNSҲҪ��ʱ���£���ȻӦ�ó����������ܻͨ����ͨ��http��Э����ʷ�������ʱ����couldnt resolve...
2016-08-25 - thor-os������Github�Ͽ�����һ����Ŀ������ʹ��C++������������Ա�д��64λ����ϵͳ�������Ŀ����Ҫ��Ϊ��ѧϰ�� thor-os��Դ���룺https://github.com/wichtounet/thor-os ���ԣ� Ŀǰֻ֧��x86_64�ܹ� ��ռʽ����� ����������� ACPI֧�� ��дATAӲ��...
2016-08-25 - �����ڴ���һ�����ļ�ʱ����Ҫʹ�õ�һ���ܴ�����顣Ȼ������������ʾ������ include stdio.h #include memory.h int main() { int length = 10000000; char block[length]; memset(block,0,sizeof(block)); return 0; } Segmentation fault (core dumped)...
2016-08-25 - һ��Ԥ��֪ʶ������ڴ���� һ����C/C++����ij���ռ�õ��ڴ��Ϊ���¼������� 1��ջ����stack�� �ɱ������Զ������ͷ� ����ź����IJ���ֵ���ֲ�������ֵ�ȡ��������ʽ���������ݽṹ�е�ջ�� 2��������heap�� һ���ɳ���Ա�����ͷţ� ������Ա���ͷţ���...
2016-08-24 - echo $RANDOM RANDOM��shell���õ������ for i in `seq 10000`;do echo $RANDOM 1.txt;done ����10000������� cat 1.txt |awk {if(length($0)=3)print}|wc -l ͳ���������С�ڵ���3λ���ĸ��� echo $((RANDOM %10)) ����0-9������� echo $RANDOM |md5sum...
2016-08-23 - ���������������������������� 1.��һ�ַ�����ʹ��grep�������ͳ�� grep -o �ַ��� file | wc -l 2.�ڶ��ַ�����ʹ��awk�������ͳ�� awk -v RS=@#$j {print gsub(/�ַ���/,)}file 3.�����ַ�������һ��ʹ��awk�������ͳ�Ƶķ��� awk {s+=gsub(/�ַ���...
2016-08-23 - ��awk��printf�Ϳ��Բ�λ�� # ������������ printf %04d\n 86 echo 86|awk {printf(%04d\n,$0)} ��������ʵ��Ӧ����ʹ�õ�һ���ű���Ŀ����������hdfs�ϵ��ļ��������������������ɣ����ǿ�ʼʱ��ͽ���ʱ�䣬Ȼ����whilȥѭ���� #example------nohup sh h...
2016-08-23 - ���ǿ���ͨ��forѭ�����seq������ʹ�á� start=0; total=0; for i in $(seq $start 2 1000); do total=$(($total+$i)); done; echo $total; seq��ʹ��ָ�ϣ� seq [OPTION]... LAST seq [OPTION]... FIRST LAST seq [OPTION]... FIRST INCREMENT LAST seq 10...
2016-08-23 - �ı������磺 #!/bin/bash mail=xxxx@xxx.com; mailflag=true logfile=/root/check/checkdisk.log #limit is 90 cat /dev/null $logfile; #count ,how many disks 90%; count=`df | grep -v mnt|grep -c -E 9[19]%\|100%`; if [ $count -gt 0 ]; then echo T...
2016-08-23 - һ������һ��ͨ��shell�ű���ͨ��sshִ��df������ȡ�Զ�Ӳ����Ϣ��ע������ִ��Ȩ�ޡ� [iptv@ting-wo disk]$ more diskmonitor.sh #!/bin/bash mailflag=true #check parameters count if [ $# -ne 6 ];then echo 6 parameters needed:taskname client_ip_li...
2016-08-22 - Դ������д���˿��ģ������DZ��ˣ��������Լ��� �����¿��ܻ��ǵ������һ�����ʱ�������ȷ������ʱ��ϸ�ڡ� ����first�ܹ���ɹ��������ó��������ɶ���һ�����õı��ϰ�ߣ��������������⣬���ҿ��Ը�����ά�����ġ� ���Զ�first.cԴ�����...
2016-08-22 - ��˵һ���ı�ϵͳ�Ŀ��Ʒ��� \r�� ������ƶ�����ǰ�е���λ�������У� \n�� ������ƶ�����һ�У������ƶ�����λ�� \r\n�� ������ƶ�����һ����λ�� ������ root@ubuntu16:/alex/py/jingdutiao# python3 Python 3.5.2 (default, Jul5 2016, 12:43:10) [GCC...
2016-08-22 - ǰ�� shell��Ϊ����в��ɻ�ȱ��һ���֣�ƽ������Ǿ�������shell������һЩ�����ʱ��Ҳ��Ҫ���һЩ���ӵIJ������ظ������������ͬ��������ڷ�ʱ����Ȥ����������shell script���Ե÷dz��б�Ҫ�ˣ����������ñ�̵ķ�ʽ���÷���������й��ߡ� ��...
2016-08-22 - ��� ���ڼ��ٴ��������ƽʱҲ�������ֳ��淽ʽ�������ģ��ٶȱȽ������������������Ƚ϶�ĵ�ʱ�����������һЩ�����ϵ����ϣ������������������С�ᡣ ���� 1.ʹ�����ŵķ��� ����ʹ�õ���python������ű�Ҳ�������ӡ� ����˼·�ǣ����Խ����ǵ�ap...
2016-08-22 - linux��man�ֲ����ṩ��һ���ȽϺ�����ʾ���� #include stdio.h #include stdlib.h #include string.h static int cmpstringp(const void *p1, const void *p2) { /* The actual arguments to this function are pointers to pointers to char, but strcmp(3...
2016-08-22 - �ȿ�һ������Ч���� ��˵һ�������ӡ�����ݣ� 1.��ǰ�����log����ļ���������NOTICE��INFO��DEBUG��WARN��ERR 5��log����ȼ��� 2.�����ŵ��Ǹ���log�����ʱ�䣬ǰ���ʱ�����룬�����ʱ����� 3.Ȼ����������ӡ������ڵ��ļ����������к� 4....
2016-08-21 - ��Linux�ں�����һ����__stringify����include/linux/stringify.h�������£� #ifndef __LINUX_STRINGIFY_H #define __LINUX_STRINGIFY_H /* Indirect stringification. Doing two levels allows the parameter to be a * macro itself. For example, compile...
2016-08-21 - ����ڱ�дlinux������ʱ�����������������£�������û�����dz������е�ij���ط���ͣ�������ˣ������ŷ�����prinrf()�м��뻻�������������ˣ��� printf(123); �ij� printf(123\n); �ͺ��ˡ� �ο�����ѧϰ����linux���̲߳��Գ���ʱ��������һ���ӻ�...
2016-08-21 - Linux�µ�����ӿ���Ϣ��shell�¿��Ժܷ����ʹ��ifconfig�鿴��ͬ����ʹ��C/C++Ҳ���Ժܷ���ػ�ȡ�ӿ���Ϣ�� netdevice��һ���ͼ���ķ���Linux�����豸�ķ������˷���ͨ��ioctl����ȡ����ӿڵ������Ϣ�� ������Ҫ����net/if.hͷ�ļ��ж����ifreq�ṹ��...
2016-08-21 - һ����Ҫ������ 1.iconv_t iconv_open(const char *tocode, const char *fromcode); //�����������þ����iconv���͵ķ���ֵ�� ������tocode��ת����ı������ͣ�fromcode��ת��ǰ�ı������͡� ���������кܶ�����Լ�ʵ����Ҫ������� 2.size_t iconv(ico...
2016-08-21 - ���ڴ�Ĺ��������Dz��Թ��̣����кܶ�ı���澯�������Ƕ��嵫δʹ�õı���������̫���������ܷ�ʱ������ͨ���ű������ ���ȣ��Ƚ��������־���������� ���磺gcc -o tets test.c log.log 21 ֮����������Ŀ¼���нű�./replace_unused.sh log.log��...
2016-08-20 - ��Linux ƽ̨�� Python �ű�������ţ�//m.ajphoenix.com/linux/23409.html��ϵ��֮ǰ�������������������� Python �ļ�飬���������� shell �� IDLE����ע��python �Դ���һ�� IDE��������Ҳ��ʾ����ν����������㡢����ڱ����д洢ֵ������...
2016-08-19 - ����ִ��I/O�����������ͷ���������ģʽ��������ģʽ�£���I/O�������ǰ��ִ�в����ĺ���һֱ�Ⱥ�������������أ��ú������ڵ��̻߳�����������෴���ڷ�����ģʽ�£����ֺ�������������-1��������I/O�Ƿ���ɣ��ú������ڵ��̻߳�������С� �ͻ�...
2016-08-18 - ������֪��ϵͳ����Ա��Ҫ��ͨһ�Žű����ԣ�������Ƹ�����г���ְλ������Ҳ����ôд��������˻���Ϊ Bash ������������ shell ���ԣ��������ܷ��㣬��һЩǿ������ԣ����� Python����������һЩ�����ĺô��� ���ȣ����ǻ�ʹ�� Python �������й��ߣ���...
2016-08-17 - ������� ��д��Ҳ���������������� ����д����д����״̬ʱ���������������֮ǰ��������ͼ��������������̶߳��ᱻ����������д���ڶ�����״̬��������ͼ�Զ�ģʽ�������м������̶߳����Եõ�����Ȩ�� �뻥������ȣ���д����ʹ��֮ǰ�����ʼ��������...
2016-08-17 - ������� �����������pthread_mutex_t�������ͱ�ʾ�ġ���ʹ�û��������ǰ���������ȶ������г�ʼ��������������Ϊ����PTHREAD_MUTEX_INITIALIZER(ֻ�����ھ�̬����Ļ�����)��Ҳ����ͨ������pthread_mutex_init�������г�ʼ���������̬���以��������...
2016-08-16 - ������� �����������߳̿��õ���һ��ͬ�����ơ���������������߳��ṩ��һ����ϵij��������������뻥����һ��ʹ��ʱ�������߳��������ķ�ʽ�ȴ��ض����������� �������������ǻ����������ġ��߳��ڸı�����״̬֮ǰ����������ס�������� ��ʹ��������...
2016-08-16 - ������� ��ν������������Ϊʵ�ֱ���������Դ�����һ�������ơ���ʵ���������뻥�����Ƚ����ƣ����Ƕ���Ϊ�˽����ij����Դ�Ļ���ʹ�á������ǻ����������������������κ�ʱ�̣����ֻ����һ�������ߣ�Ҳ��˵�����κ�ʱ�����ֻ����һ��ִ�е�Ԫ�������...
2016-08-16 - ������� ���ϣ�barrier�����û�Э������̲߳��й�����ͬ�����ơ���������ÿ���̵߳ȴ���ֱ�����еĺ����̶߳��ﵽijһ�㣬Ȼ��Ӹõ����ִ�С� һ����ʼ�������� PTHREAD_BARRIER_DESTROY(P) POSIX Programmers ManualPTHREAD_BARRIER_DESTROY(P) NAME...
2016-08-16 - һ��ioctl�ļ�飺 ��Ȼ���ļ������ṹ��structfile_operations���кܶ��Ӧ���豸����������������Щ������ʵ���Ҳ�����Ӧ�IJ�����������CD-ROM����������Ҫһ�����������IJ��������ֲ������������е��ַ��豸����Ҫ�ģ������ļ������ṹ��Ҳ�����ж�Ӧ�ĺ�...
2016-08-16 - ����һ ��Linux�������ϵͳ�У��д����������д�������֮ǰ����SPI��ʱ��./mxc_spi_test1.out -D 0 -s 1000000 -b 8 E6E0 �����dz��࣬��ô��������в���������ôȥ�������أ� ���ȵ�һ�ַ����� freescale�ṩ��������һ�ַ����� for(i = 1; i argc; i++...
2016-08-16 - ����һ����Ƕ��ʽ��������������Ϥ����λ���������Ǵ��ڵ��������ˣ����Կ�ʼѧQt��ʱ������Ҫʵ��һ�����ڵ������֣���������д�IJ���ˣ���������������Ҳ��л��Щ���Ͽ�Դ�����Ƕ��ҵİ�����лл�� 1.��������ubuntu16.04+Qt5.6.1 2.���ڵ�������Ч...
2016-08-16 - �ϴβ����ˣ���xenomaiʵʱ�㵽linux��ͨ����֮���ͨ�š� ���������ۣ���ָ��������Σ���ʵʱ��ʵʱ����֮���ͨ�� ������˷dz��õ�һ�����⣬��ʵʱ������ʵʱ���̴�˵���ݵ�ʱ��ʵʱ�������֪�������ݷ�������ʵʱ��Ӧ�� ��һ�Σ������о����£�û...
2016-08-16 - * * XDDP-based RT/NRT threads communication demo. * * Real-time Xenomai threads and regular Linux threads may want to * exchange data in a way that does not require the former to leave * the real-time domain (i.e. secondary mode). Message...
2016-08-15 - д��ǰ�棺2.6.14�汾���ں���arm-linux-gcc4.4.3û�б���ɹ�������2.6.37�汾���ں���arm-linux-gcc4.4.3����ͨ���� һ����������linux�ں�: linux-2.6.14.tar.bz2 ���ص�ַ��http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.14.tar.bz2 ������ѹl...
2016-08-15 - PS�����°��win10��Ƕ��Linux��ϵͳ��Ĭ���ǹرյģ������Linux��ϵͳ������һЩbash���������ھ��嵽ʲô�̶ȣ������Լ�ȥ̽�������ﲻ�����ۣ����õ���win7. ��˵��ǰ��ɣ��������õ���win7��Ӳ�̿����ˣ�����װVM������װLinux˫ϵͳ���������������...
2016-08-15 - ����ȱҳ�쳣�Ĵ������̷dz����ӣ���������ֻ����һ��ȱҳ�漰�����ں˺����� ��CPU����һ���쳣ʱ��������ת���쳣�������������������С�����ȱҳ�쳣��CPU����ת��page_fault�쳣���������У����쳣������������do_page_fault()�������ú���ͨ����...