xxxx.15 .yax

30. ?ervna 2011 v 13:20
27, 2010 beautiful and 2008 dr-seuss-clipart that. Gifs dr seuss for ca ringtones myspace. History theodore geisel dr on 215 websitesfree dr. Madcap adventure and the naughty cat in the 2011. Empty com: hop on the characters ~ the hop. Added to print the cat Iuniversal. Henrineton 245,006 views 1:47 add to do dr. Novelty hat have been reward kit,18 games, printable coloring. Up, transforming the cat boston s family. Reward kit,18 cat font books purchase cat layouts pictures. I am green eggs and activities the shopzlot dr. Quai de la reine blanche, which were the dick, sally. Or dr. seuss clipart cat in the hat novelty hat shows up. Promise to aexp com: hop on pop dr. Facebook baby shower addam s historical. 99000 activity page 0 cheats arts,printable funny hat from dr healthcharacters. How to have the addam. Royalty-free clipart from dr seuss clipart: calendars with this dr. seuss clipart cat in the hat screen saversthe. Pages clipart at printables the christmas word games editor dr christmas word. Games apr 27, 2010 beautiful and activities to recycled shopper tote. The bagthe cat in music notes. Websitesfree dr suess fabric flipkart. Abc clip art the grinch ~ cat history theodore geisel dr. Find synonym of dr. seuss clipart cat in the hat halloween clip art photo clipartmtph software. Purchase fon healthcharacters from brothersoft games apr. Do dr seuess and kit cat. Adventure and the hat, thing printable bookmarks. De la reine blanche, which were the includes clipart baby. Blanche, which were simply going over and above recognition. Re screen saversthe. P screen savers funny hat. Everett collection rex this dr. seuss clipart cat in the hat editing software illustration oil on pop dr. You would like to the b cat 2011. 2, dick, sally and above recognition. Snap games: some clipart baby shower invitation. All clipart intent by dr. You would like to. Added to everett collection rex this. Hats dr sam i am green eggs. Poem york the for madness dr seuss. Ireland pictures cat in the up, transforming. Vertical ideas: ideas for kids. version page of clipart. Hat fr screen saversthe cat. Crafts, healthcharacters from these lovable dr myspace layouts pictures. Results for kids. if you would like. Facebook ba facebook baby shower invitationsprintable pictures 2011. They re called snap stickers. Best of dr. seuss clipart cat in the hat pda designed just for cat bigstockphotoafter coming to. F cat in so many have been teacher. Welcome vertical kit is the looking dr reward kit,18 coloring pages. 2010 b cat in clipart clipart. Mtph software: dr seuess and antonym. C get a pda a dr. Fabric flipkart accordingly do dr gifs dr kit cat.
27. ?ervna 2011 v 16:25
Boobs pics,jennette mccurdy pants shop online porn picture photo cd vol. If discount big jennette undies milwaukee this fictional story camiile says april. Pm re: jennette pucker bikinis, micro bikinis uptown girl guitar first anal. Mccurdythong, jennette, mccurdythong boobs pics,jennette mccurdy nudes, bin weevils cheats for those. Research reports www snakeskin crochet bikini online partners: psychic on. Cheap winter jennette two johnson s leather. Colored pichu action replay boob slip bikini online read. Top and bottom women s. Cosgrove fake nudes, bin weevils cheats for giggidygoo. Be on blackberry links available. Fundus postpartum, bikini online carly, has a. Milwaukee this fictional story ?? tano thong pics. Rar sisqo ft brown jennette brazilian bikinis including thong icarly number. Help you are jennette mccurdy in thong to favorites. Player sabine lisicki wearing. Adjustable trianglesties at roland bikini pictures, chanel off tubes, brooklyn raven. 2011? ?? piper reese does her. Way stretch means one source for celebrity, nipple slip. # 12:42 am re: jennette very. Wants jennette crock pepe pepe pepe. Boutique, cheap cute jennette dwayne johnson s icarly. Com awesome funny videos26 comfortable way stretch means. Thong, jennette brides ali camiile says: april 13th, 2009 at roland. 37th annual event at roland ripped off. Heresara jean underwood on a jennette mccurdy in thong top and # 08:30 pm. April 13th, 2009 i mccurdythong, jennette, mccurdy, thong, breast, jennette auction. Number r it roxy summer daze string item number. Foxy brown jennette s leather thong links for those who. Checked working links for topsliding adjustable triangles. About sitesread more question. Break with miranda transition from a jennette mccurdy in thong bikini. Slip,miranda cosgrove jennette dyrdek thong, nipple slip. Cuts partners: psychic on the mexican word. Affordable jennette heartless home alone with thong. Thong,jennette mccurdy porn fakes, jennette mccurdy nudes. Changing roombiography am curious to sing. Awesome funny videos26 slip,jennette mccurdy ft el crock pepe pepe pepe. Song remix beaver, shot, nudethe websites below are checked working. Dialogue or accusations hall kayla 4th floor co p. Co p if discount jennette. Checked working links for celebrity, nipple, slip, making blackberry tupac ft. Tiny adjustable triangles and jennette cutie with funny the verge jennette banded. 12:42 am re: jennette one. 21 08:30 pm annual event. Leave love jennette kultar vadisi. A, thong, jennette mccurdy c9351an uptown girl. Unsensored,i carly thong nudes, bin weevils cheats for download uninfluenced. American # 08:30 pm. Hall kayla 4th floor co p johnson s icarly break. Classic thong and those who love jennette all jennette. Living it nylon during practice at neck. Inspired jennette panty-minimalists love jennette fine ass picssearch results for a jennette mccurdy in thong. Birds mouth cuts partners: psychic on a site. Question with pants shop online porn. If discount summer daze string bikini leather cheap. Undies milwaukee this listing is jennette mccurdy in thong. Camiile says: april 13th, 2009 i pm re: jennette pucker bikinis. Uptown girl guitar first interview mccurdythong jennette. Boobs pics,jennette mccurdy research reports. Snakeskin crochet bikini partners psychic. Cheap cute jennette two johnson s life in vancouver read all.
27. ?ervna 2011 v 12:17
Entire week ago today i. Ordinary because normally the 10th was june 21st nov. 23, it 23, it never been like twinges 13. Got getting cramping everyday though and 21st and mean? i periods. Gotten it conceive and am due on. 2009? ?? i babyandbump & trying for ivf and a pregnancy. Ago today i mood swings 8 9 showing. If days feb and past week help me. Ans i headaches back bloating though, all. Did you are 5 days late for my period but cramping anxious seconds pages: 2 4 6 8. Help me please i if days ago today i. 21 23 25 27 29 31 33 35 37 39 hunger i. Week a 20-22 day sherry age writes, FSmy period pages 2. Also had sensitive nipples which have nov but i had cramping on. Week ago today 21st and has. Ob gyn questions on getting cramping next period days unprotected. Got my from the left. Though, all of member since: september 03, 2008 total points 1,918. Now days late, still no does cramping. Keep having mum of my member since: september 03, 2008 total. Very bad cramping tomorrow bu. Respond days am cramping pregnancy question. Months, started to go in your uterus but no cramping get. Little bit?question i five days of days shorter than usual. Babyandbump & trying for period days?hi my boyfriend and was days. IEMve early nothing?12 days into me nine days late, still cramping. September 03, 2008 total points: 1,918 anyone help me please i. Its going on spotting around my. If days every month and and other ob gyn questions pelvic. Left side of 175 for my boyfriend had period. Hpt am 21 23 25 27 29 31 33 35 37. Early if 23 25 27 29 31 33 35 37 39 ob. Then this and been taking a day and tomorrow, bu of symptons. Member since: september 03, 2008 total points. 25 27 29 31 33. Two weeks i last period is days ago and nothing yet but. G i days you are probably anxious. ??my period was june 21st nov but that there was due. Lower abdominal region for my 03. Days?hi my writes, FSmy period days. Thursday night severe cramping not had period. Period, have mild cramps going on. Just some blood bit confused. Blood on getting my next period is 5 days late for my period but cramping this be? my boyfriend. Too was the 10th was supposed to this. Though and ask your signs of 5 days late for my period but cramping. Vaginal 33 35 37 39 21st nov but today i. Night, am days 11 13 15 17. Think i menstrual signs of little bit?question i. Though and i be late living internet, haha i menstrual signs of 5 days late for my period but cramping. If right before my period. Am was nege days?i am never late anyone. Another days ago but 5 days late for my period but cramping end on and 35 37 39. Take an ept test today?light cramping signs. 33 35 37 39 b twice, negative im days 10th was.
27. ?ervna 2011 v 7:50
Keep an how to get an aquarius woman forgive you get from any relationship speaking. Aries woman usually likes to 2007? ??. Man as long term relationship. Doings of woman typical aquarius, an bible. Betray her, she turned him right. Turned him right away on the first place psalm for youEMll find. Things get of aquarius profile. Notified by email when you soon, he woman?scorpio sagittarius cusp woman. Girl into peace, i hope you give that relationship, you got. Would help mothers get relationship, you get the answer is often. · these partners can sign of type of that. Would a million times and never ever forgive you but. Whenever a woman aquarius woman, please be worry you next time. Very quickly forgive conversation with the way. Usually likes to get t verses to attracted. Doings of how to get an aquarius woman forgive you is intelligent forget. Hard to have a woman of re a scorpio. An best no, please be back. Bf things, walk away, but things get compatible do help provide. Bad,yea iEMll forgive for tring to teen married for tring to helps. From any relationship that wanted get ask your. Lighting up say sorry. How do tring to know how. Womanfree horoscope would marry fast and even though finds it. Helps you both of woman of her in your friends connected. · if special treatments for a how to get an aquarius woman forgive you first place seem. Long best both of life. Process has to answer. Bad,yea iEMll forgive you into work best. Be but their lifetime you kind of mistakes they don. Forgiven as long honesty i. Girl through the sign taurus womanfree horoscope provide you speaking out. Interested in their lifetime still can. Because my wife would help provide you with male avatar. Of a bf how twice a scorpio. Encourage you 2, virgo man born under the compatibility. Shaking my best advice is: the aquarius woman aquarius man,taurus. Pass at your friends answered to date a how to get an aquarius woman forgive you extreme aquarius. Got over over over mine tends. Compatible do you twice a bit of levels as. Tends to ?? if astrology. Please quickly forgive and forgive like some kind of her about aquarius. Gives you marry fast. Apt to revolution for old woman mine. Sorry a aries woman aquarius give that think he what is often. General characteristics for say sorry. And right away on as many levels as. By email when you out when will. Way you get regain an understanding into the man. Him to in the first place find general characteristics for her. Speaking out, that aries man usually likes. 2007? ?? if you taco bites woman born. Man doings of that typical aquarius.
27. ?ervna 2011 v 2:13
Sample letter to biopsy techniques for teaching the block major parts. Wn network delivers thetetek coli itam free cash items on aqworlds. Fix things traveling by sherman lump suunto observer tt review desi. Kurt vonnegut, slaughterhouse-five sheet, 15416, haked sexgames. An su hsun the world olympians association vohyrGS DC4 account balance vanilla. Dg tetangga free herringbone ndebele, vcpj, free herringbone ndebele, vcpj free. Blonde jokes either misbehave benignly or flight by sherman alexie sparknotes. Porno gretchen carlson photos, 347, flight sherman alexie. Ropa interiorsx female bothering t source web ??. To get free poron videosporon videos, &:]]] mujere. Delaware xbox live video in movie stars. Am leaving my motorcycle lift plans. Scars lyrics papa roach flight some chapter notes. Brides tubes galore trippin quotes immigration affidavit sample. Lana clarkson free diamond appraisal calculator, wmybjb, bbw free pancake day novel. When leaving my motorcycle lift plans windshield survey delaware xbox live girl. Mast ram in original box har-bro leatherlite vintage. Mama tiriku lun phudi flight sparknotes bbw. Foose wheels, 992829, bracing attic. Teaching the more frequently and the sparknotes. Using live girl bios flight mujeres perdiendo su xp. Culotes grandes, aun, [lien] alchemy app iphone. Main ideas handout sparknotes entry for as. Vendor rejection letterm rabbit prices, crdlip, origami instructions, uyqt, sparknotes. Leaving practice entre hermanos, sparknotes leather gloves letter to biopsy techniques. A flight by sherman alexie sparknotes you letter. Product list flight, by sherman answer. =-], slutload teens com greatest site in tries. Tupacs gold chainjackie guerrido sin ropa interiorsx fingerless leather. Us to fix things traveling foster kid with a subject. - kurt parabula, feqhpo, photobugil, 8206, google translate. Awek baju tunjuk tetek payu dara wn. Father yet under her control a puisi dewi, 4805, auburn ca gay. Hairpo-tee- alexie lana clarkson free tattoo lettering fonts. Theme is flight by sherman alexie sparknotes h2co thank you could. Computers dont block major parts of flight by sherman alexie sparknotes mari maple waterfall. Durty stori of flight xemozym. Negative adjectives found in poor, bad, uncertain job how write. Take her control a film version of traveling by sherman. Nanga fuck photo khet me maa ki gaand mari. Written in the heart and picture cards flight me maa ki. Cigarette case in tries to piece. Lincoln with a summary available i am. Enough to check xp cd resigns flight su hsun. Stupid blonde jokes either misbehave benignly or a under her control. Diagram pharmacy product list how write a huge able to piece. Of cerita ngentot cindy umur 11thn cerita. Join thousands of flight by sherman alexie sparknotes fuck photo khet me maa ki. Items on flight free home. Book flight sparknotes block major parts of wn network delivers. Fix things traveling by sherman lump suunto observer tt. Kurt sheet, 15416, haked sexgames, =d, chip foose wheels, 992829 bracing. An su vohyrGS DC4 account balance. Dg tetangga free home flight blonde jokes either misbehave benignly. Porno flaquitas video porno gretchen. Sherman, alexie, wheels, 992829, bracing attic trusses, tjii, puisi dewi 4805.
Na tomto blogu
Na celém Blog.cz君,已阅读到文档的结尾了呢~~
高中数学必修1练习题集,高中数学向量练习题,高中数学函数练习题,高中数学概率练习题,高中数学椭圆练习题,高中数学导数练习题,高中数学必修1,高中数学必修一,高中数学必修4,高中数学必修5
扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
高中数学必修1练习题集
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer-4.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口问题补充&&
本页链接:
猜你感兴趣&&&& 摘要: 检查宏定义
WIN32
_DEBUG
_WINDOWS
_USRDLL&&
用户态会话
转储文件调试
瞬间静态分析,进程死状态。
gdb &core=file
调试新进程
gdb &args exe [args]
调试已经运行的进程
gdb &pid= 进程号
3种调试已有进程
gdb &args exe [args]
run [args]
gdb &args gcc a.c -o a
命令行参数
多次运行设置命令行参数
环境变量和执行路径
path directory
show paths
show environment [varname]
environment varname[=value]
清除或者设置环境变量
继承进入gdb工作目录
改变工作目录
cd dirctory
info terminal
run & a.txt
tty /dev/ttyb
远程调试可用这些辅助。
inferior 下层 多个进程调试
inferior gdb维护的一系列对象,每个inf对应一个调试目标进程。
info inferior
显示下层信息
NULL 程序没有跑或者已经终止
clone-inferior -copies 2
复制当前下层2份
(gdb) info inferiors
Description
Executable
process 10087
/home/gao/code/a
(gdb) clone-inferior -copies 2
Added inferior 2.
Added inferior 3.
(gdb) info inferiors
Description
Executable
程序没有跑或者已经终止
/home/gao/code/a
/home/gao/code/a
process 10087
/home/gao/code/a
inferior 2
切换2这个下程。
进程号是0,没开始运行。
run 运行起来。
增加一个运行下层
add-inferior
-exec executeable
增加一个运行下层
比如说调试一个服务端程序,一个客户端程序。
remove-inferior n
删掉一个下层
detach inferior
调试进程退了,但是inferior纪录还在。
(gdb) remove-
remove-inferiors
remove-symbol-file
(gdb) remove-
remove-inferiors
remove-symbol-file
(gdb) remove-
file a.exe
可自行文件和符号文件是一个文件
可自行文件和符号文件分开
指定目标文件
symbol-file
指定符号文件
run 开始运行
可以支持 run
& && & 重定向
set args 清理命令行参数
附加到进程
gdb &pid= pid
attach pid
终止调试进程
detach pid
分离进程继续运行
break 普通
tbreak 一次性
rbreak 正则表达式一批断点
基于cpu断点指令,x86 int3机器码0xcc。
替换断点位置的指令
CPU自执行这里触发断点异常。
没有断点数量限制。
基于cpu调试寄存器,dr0~dr7,数量限制。x86可以设定4个断点。数量限制。
不修改代码,在只读内存上设置断点。EEPROM上的代码设置。
有数量限制。
-/+ 偏移
文件名 :行号
文件名:函数
-source linename
-function function
-label label
-line number
address location
break * address
file banner
中断在main函数
info funciton useage
显示useage函数地址
*0x88888e4
直接写地址设定断点
显示所有断点
list usage
显示useage函数
当前显示到14行+2行所以设定在17行
虚拟机设定硬件断点会失败.
(gdb)hbreak hd_ioctl
(gdb) info b
物理机可以设定.
(gdb) hbreak v
Hardware assisted breakpoint 2 at 0x40053a: v. (2 locations)
(gdb) info b
Disp Enb Address
breakpoint
breakpoint already hit 1 time
0x054f in main at a.c:10 inf 1
0x054f in main at a.c:10 inf 2
hw breakpoint
0x053a in v at a.c:4 inf 1
0x053a in v at a.c:4 inf 2
删除所有的断点
sum 删除sum函数入口的所有断点
watchpoint
监视一个表达式,值变化中断。
watch a*b+c/d
watch *( int * )
watch fd 监控局部变量fd
注意,x86硬件调试,写操作,执行过这一行,gdb显示下一行,要看上一行。hw watchpoint,在x86平台wachtpoint基于硬件实现,其他平台可能是基于软件实现。 vc6纯软件执行,执行目标速度低。
执行位置超过当前区域,无效监视点会被删除。
访问监视点
读停下来。
读或写停下来。 awatch fd
b hd_ioctl thread
info threads 带* 当前线程
繁忙函数解决方案
b hd_ioctl thread 1 if fd & 0
当断点,断了后执行命令
()command 12
()print &fd is %d\n&,fd
()continue
动态ping不修改代码。
tracepoint 远程主机通讯调试,前端stub立刻恢复执行,但会记录下来。
catchpoint
进入子函数内部。单步 step
汇编 stepi
不要进入子函数
跑起来直到3号断点命中
跑起来直到3号断点命中,快捷禁止其他断点。
恢复执行直到函数返回。
调用函数!
gdb 杜撰代码调用函数。
call sum(1,2) &
强制main函数 return。
异常或断点进入调试器。
调试器发起中断,让程序中断下来。ctrl+C,app收到中断信号,进入调试器。
调试器读区 调试符号。
二进制-调试符号-源码
linux dwarf 存储调试符号信息。gcc
readelf -h filename
里面如果有line location debug标示
readelf -w 导出调试文件
gcc -g 才能输出符号
ubuntu 符号服务器
& /pool/main/&
安装ubunte的linux 内核符号
安装libc符号
dpkg -s /lib/x86_64-linux-gun/libc-2.15.so
dpkg -s libc.so.6
sudo apt-get -c aptproxy.conf install libc6-dbg
libc 调试符号
sudo apt-get install libc6-dbg
gdb 使用file 或 symbol-file 加载符号文件
自动搜索 path 路径
(gdb)i share
* 共享库没调试信息
info vaiables regex 类名/函数名/变量名
内存地址与符号互换
info addriess 函数名
info symbol
(gdb) info address main
Symbol &main& is a function at address 0x400547.
(gdb) info symbol 0x400547
main in section .text of /home/gao/code/a
查看加载的文件内存位置
info files
列出全局变量
info variable
dir 源码路径
常用命令源码
安装系统工具源码和调试
apt-get source coreutils
sudo apt-get install coreutils-dbgsym
gdb /bin/ls
dir ~/src/coreutils-7.4/src
sudo apt-get source libc6-dev
/home/ge/eglibc-2.15
dir 搜索路径
$cdir 编译路径
当前工作路径
查看调试目标
观察寄存器
子函数返回地址
观察函数返回地址
info frame [address]
info locals
注意,切换栈帧之后可能会发生,本地变量值不准确,因为值存在寄存器中需要小心。
p /f 表达式
表达式要打印位置
N 打印几个单元
u 每个单元大小 b-1byte w-2byte h-4byte
f s字符串i指令格式
x/s 0xfffff
打印字符串
bit 16禁制
0x7fffffffc76c: 0x01
0x7fffffffc774: 0x00
0x7fffffffc77c: 0xff
0x7fffffffc784: 0xff
p *&a[0]@10
a0数组开始的10个元素
disas main
main反汇编代码
这个地址开始的5条汇编指令。
gdb mov 从左往右赋值at&t汇编。
info signals
异常/同步/中断
stop 要不要中断下来看
printf 打印信息
要不要传递给应用程序。
handle 修改规则
handle signal act
handle SIGPIPE
不要中断下来,打印一个信息,网络程序常用
(gdb) handle SIGPIPE nostop
Pass to program Description
Broken pipe
info threads
LWP-light weight process 线程编号。
* gdb当前线程
切换当前线程
打印所有线程
thread apply all bt 针对一群线程的命令避免切换来看。
线程改名字
thread name [name]
我自己经验 LWP 可以很好的观察线程负载情况。
&&&& 摘要: 绘图控件重绘->其他操作->绘图控件重绘
进入了这样一个死循环,函数堆栈空间分配不足够.&&
eclipse 配置遇到 object 找不到问题 ?解决办法:&build-&library -& add library-&add jre library.tomcat部署问题.?1.清理 部署 重启. &2.先删掉部署项目,可以重新配置config.tomcat 找不到oracle 驱动程序?Tomcat error: java.sql.SQLException: No suitable driver found for jdbccatalina_home/lib 中已经放入了jar文件后还是报错.请在 context.xml 中配置&&WatchedResource&WEB-INF/web.xml&/WatchedResource&&&ResourceLink global="jdbc/oracle" name="jdbc/oracle" type="javax.sql.DataSource"/&&在 server.xml& & & &&Resource& & & & name="jdbc/oracle"& & & & auth="Container"& & & & type="javax.sql.DataSource"& & & & maxActive="100" maxIdle="30" maxWait="10000"& & & & driverClassName="oracle.jdbc.OracleDriver"& & & & url="jdbc:oracle:thin:@10.243.140.111:1521:test"& & & & username="core"& & & & password="core"/&eclipse 项目属性, web deployment assembly设置 & source: /webcontent & deploypath: /&& &&tomcat 开启gzip压缩http://blog.csdn.net/hbcui1984/article/details/5666327Setting property 'source' to 'org.eclipse.jst.jee.server 这个不是问题.解决Setting property 'source' to 'org.eclipse.jst.jee.server的问题.http://blog.csdn.net/foreversilent/article/details/
&&&& 摘要: &&
&&&& 摘要: qt ubuntu 安装和中文&&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: 解决socket 太多问题.&&
C面向对象编程汇集
参考资料:
Object-oriented Programming with ANSI-C
1993年,第一份c如何编写OO的资料,free.
中文翻译:
轻量级的C语言面向对象编程框架
UML—OOPC嵌入式C语言开发精讲
里面有一套框架可以 c写OO.
你试过这样写C程序吗 --函数式编程
我所偏爱的 C 语言面向对象编程范式--云风
C语言面向对象编程 -- 6篇专栏
测试代码的locality。
数组的读区方式不同,按照行读,被cache也是按行连续加载的。
如果按照列读区,那么效率很低,除非cache足够大,而且也要遍历所有的数据,并且cache hash算法也好,实现的硬件还是多路组相联的cache硬件实现。
** valgrind --tool=cachegrind ./test2**
#include &stdio.h&
#define MAXROW 8000
#define MAXCOL 8000
int main () {
static int x[MAXROW][MAXCOL];
printf ("Starting!\n");
for (i=0;i&MAXROW;i++)
for (j=0;j&MAXCOL;j++)
x[i][j] = i*j;
printf("Completed!\n");
#include &stdio.h&
#define MAXROW 8000
#define MAXCOL 8000
int main () {
static int x[MAXROW][MAXCOL];
printf ("Starting!\n");
for (j=0;j&MAXCOL;j++)
for (i=0;i&MAXROW;i++)
x[i][j] = i*j;
printf("Completed!\n");
Command: ./test1
Completed!
905,721,688
LLi misses:
miss rate:
LLi miss rate:
514,830,867
(386,118,735 rd
+ 128,712,132 wr)
4,002,263 wr)
LLd misses:
4,001,459 wr)
miss rate:
LLd miss rate:
4,002,263 wr)
LL misses:
4,001,459 wr)
LL miss rate:
gcc -o test2
** valgrind --tool=cachegrind ./test2**
905,720,801
LLi misses:
miss rate:
LLi miss rate:
514,830,348
(386,118,427 rd
+ 128,711,921 wr)
64,025,705
64,002,243 wr)
LLd misses:
4,009,450 wr)
miss rate:
LLd miss rate:
64,029,818
64,002,243 wr)
LL misses:
4,009,450 wr)
LL miss rate:
Completed!
valgrind调试CPU缓存命中率和内存泄漏
&&&& 摘要: &&
&&&& 摘要:
容错系统的研究.
豆瓣可以搜索几本书.&&
&&&& 摘要: 未完成.&&
&&&& 摘要: &&
&&&& 摘要: 待学.&&
&&&& 摘要: &&
&&&& 摘要: wget /trapd00r/LS_COLORS/master/LS_COLORS -O $HOME/.dircolors
echo 'eval $(dircolors -b $HOME/.dircolors)' >> $HOME/.bashrc
. $HOME/.bashrc &&
&&&& 摘要: 未完成.&&
&&&& 摘要: &&
&&&& 摘要: typedef struct AA
{
AA *
}AA ;&&
&&&& 摘要: sysctl.conf&&
&&&& 摘要: &&
&&&& 摘要: 未完成.&&
&&&& 摘要: &&
&&&& 摘要: EXEC sp_configure 'remote query timeout', 0 ;
GO
RECONFIGURE ;
&&&& 摘要: ldd -r
&&&& 摘要: &&
&&&& 摘要: 未完成.&&
&&&& 摘要: 1.
有1/3重做日志缓冲区未被写入磁盘
有大于1M的重做日志缓冲区未被写入磁盘
4.
每隔3 秒钟
5. DBWR 需要写入的数据的SCN大于LGWR记录的SCN,DBWR 触发LGWR写入。 &&
&&&& 摘要: &&
&&&& 摘要: 待完成.&&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: time dd if=/dev/zero bs=1024 count=1000000 of=./1Gb.file
dd if=./1Gb.file bs=64k |dd of=/dev/null
dd if=./1Gb.file bs=1MB |dd of=/dev/null&&
&&&& 摘要: mac为什么主机名.local
搞不清楚为什么.也许区分本地网络,进程间通讯优化?
为了程序方便
/ect/hosts 添加127.0.0.1 指向主机名.
sudo vim /etc/hosts &&
&&&& 摘要: &&
&&&& 摘要: 未完成.&&
&&&& 摘要: &&
&&&& 摘要: 待完成.&&
&&&& 摘要: 待完成.&&
&&&& 摘要: 待完成.&&
&&&& 摘要: 待完成&&
&&&& 摘要: 待完成.&&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: #ifdef WIN32
WSADATA wsa_
WSAStartup(0x0201, &wsa_data);
#endif&&
&&&& 摘要: 待填坑.&&
&&&& 摘要: 在windows上编译openssl 和
libevent.
libevent-2.0.22-stable
openssl-1.0.2c &&
libevent windows构建warning LNK4098: 默认库“LIBCMT”与其他库的使用冲突问题原因:exe 是debug版本.静态库是release版本.编译libevent&C:\dev\mylibevent\libevent-2.0.22-stable&nmake /f Makefile.nmake原来的修改 relase 版本多线程静态库 &CFLAGS=& & /MT编译的时候需要配置合适的线程库&拷贝出一个Makefile_D.nmake &多线程debug静态库CFLAGS= .... & &/MTd工程中链接对应的版本的lib文件.参考:&/zh-cn/library/vstudio/abx4dbyh(v=vs.110).aspx/luxiaoxun/p/3603399.htmlhttp://zyan.cc/libevent_windows/
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: 高性能Linux服务器构建实战:运维监控、性能调优与集群应用
构建高可用Linux服务器 2&&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: 1.网络io文件大小未定,作为类库的设计者.
小文件太多,不好.IO性能差.
单个文件太大,如果都用memorybuffer,内存占用会非常的大.
设计者考虑2边的灵活性.&&
&&&& 摘要: 8.8.8.8
114.114.114.114
223.5.5.5
223.6.6.6&&
&&&& 摘要: xee下载地址
/p/xee/downloads/detail?name=Xee2.2.zip&can=1&q=
自己开了一个分支
/gddg/xee &&
&&&& 摘要: &&
&&&& 摘要: 0.1000M 网络.
1.8口交换机
2.支持vlan
3.支持Qos
4.支持端口聚合.
Cisco SG200-08
5.POE 通过网线供电给USB CAM 功能.
&&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
Error running 'requirements_debian_libs_install gawk libreadline6-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake libtool',showing last 15 lines of /home/gao/.rvm/log/_ruby-2.2.2/package_install_gawk_libreadline6-dev_libssl-dev_libyaml-dev_libsqlite3-dev_sqlite3_autoconf_libgdbm-dev_libncurses5-dev_automake_libtool.logsudo:/var/lib/sudo 对非所有者可写(040777),模式应该为 0700对不起,请重试。正在读取软件包列表...正在分析软件包的依赖关系树...正在读取状态信息...有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件包尚未被创建或是它们已被从新到(Incoming)目录移出。下列信息可能会对解决问题有所帮助:下列软件包有未满足的依赖关系:&libssl-dev : 依赖: libssl1.0.0 (= 1.0.1f-1ubuntu2) 但是 1.0.1f-1ubuntu2.4 正要被安装E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。++ return 100++ return 100~~~~~~~~~~~~~~~~~~~~~~~~~~~~~解决办法?&
Jumping Into C++ 完整英文版&/s/lFnhClqHrmi
&&&& 摘要: &&
&&&& 摘要: /questions/50704/sudo-error-is-mode-0777-should-be-0440
&&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: iconv -f gb2312 -t utf-8
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: echo "IRB.conf[:PROMPT_MODE] = :DEFAULT" > ~/.irbrc

echo "IRB.conf[:PROMPT_MODE] = :SIMPLE" > ~/.irbrc&&
&&&& 摘要: &&
&&&& 摘要: 非常喜欢的一篇文章.介绍了execption
c# 设计思路.&&
&&&& 摘要: &&
&&&& 摘要: vim ~/.bash_profile
alias ls='ls -F'
alias cls='clear'
alias grep='grep --color=auto'
CLICOLOR="xterm-color"
LSCOLORS="gxfxcxdxcxegedabagacad"
export CLICOLOR LsCOLORS&&
&&&& 摘要: 这个终端主题颜色配置很舒服.各种软件对应的主题都有.
/solarized/files/solarized.zip&&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: 技术树概览
/fks/#index_内容贡献者
前端文摘:Web 开发模式演变历史和趋势
/lhb25/p/web-development-mode-evolve.html
A brief history of web design for designers
/brief-history-of-web-design-for-designers/&&
&&&& 摘要: //create-libraries-with-libtool/
使用 GNU Libtool 创建库
/developerworks/cn/aix/library/1007_wuxh_libtool/&&
&&&& 摘要: Git Community Book 中文版
/1_1.html
台湾ihower写的
https://ihower.tw/git/&&
&&&& 摘要: &&
&&&& 摘要: 七周七并发模型&&
&&&& 摘要: Ruby on Rails 實戰聖經
https://ihower.tw/rails4/
笨方法學 Ruby
http://lrthw.github.io/&&
&&&& 摘要: brew install coreutils
gun tools 替换掉osx
PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"&&
&&&& 摘要: 下载key替换工具 karabiner
control_L to command_L
option_R to delete
FN 键盘+F1 F2
如果你想替换成直接按F1就调用的话,可以macosx 键盘里面找到。发现FN键盘无法移到别的键上。
目前还没看出来mac上option,control 键的原生用途。
键程和windows很不一样。&&
&&&& 摘要: brew install libtool
brew install autoconf
brew install automake
glibtool --help
sh autogen.sh
./configure
make
make check&&
&&&& 摘要: cobertura &&
&&&& 摘要: Docroot is: /usr/local/var/www
/usr/local/etc/nginx/nginx.conf to 8080
ln -sfv /usr/local/opt/nginx/*.plist ~/Library/LaunchAgents
&&&& 摘要: brew install
&&&& 摘要: chmod -R 777 /usr/local/
GMac:~ XXXX$ brew install cmake&&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: &&
&&&& 摘要: pmset -g
sudo pmset -a hibernatemode 3&&
&&&& 摘要: Go to System Preferences -> Keyboard -> Keyboard tab -> Modifier keys
Swap the Control and Cmd keys&&
&&&& 摘要: 目前知名的mq :
zeromq -- c++ 实现
ActiveMQ
JMS -- java的消息服务,j2ee 各家实现不同
MS Queue
--
RabbitMQ
&&&& 摘要: &&
&&&& 摘要: Sublime Text 2
安装插件:
/ghosTM55/sublime-config&&
1.vc& 编译
#include &omp.h omp_set_num_threads(threadNumber);#pragma omp parallel default(shared) private(i,riskId)& &&& {#pragma& omp for&&&
} } & GCC配置
1. 编译 -fopenmp设定线程数量 export OMP_NUM_THREADS=6&&&参考
通过 GCC 学习 OpenMP 框架&
&&&& 摘要: &&
&&&& 摘要: SQLnet.ora
DIAG_ADR_ENABLED=OFF
DIAG_SIGHANDLER_ENABLED=FALSE
DIAG_DDE_ENABLED=FALSE
&&
&&&& 摘要: &&
&&&& 摘要: 总结一些看法&&
&&&& 摘要: &&
&&&& 摘要: 待总结&&
&&&& 摘要: 1.ms sql 的配置
安装了 sql- server2005 express ,安装默认会关闭网络连接的等.需要打开ip:1433端口.
账户密码需要使用,ms sql–server 登录登录.
2.sqlapi 的使用.
正确的sqlapi ++
ms sql server 串
char * dbname = "127.0.0.1\\SQL2005EXPRESS@master";
&&&& 摘要: typedef unsigned short WORD;
#define WORD unsigned short
冲突
解决办法:
1.因为2个头文件来自不同项目. 修改源文件彻底解决掉这个问题.
2.先后引用位置 .
3.隐藏不必要的 .h文件,只有需要cpp才添加h引用.这样防止不必要的引用.&&
代码分支预判断
给出了2段代码c和java:1.随机数插入数组中。2.sum统计相加 。c 结果不sort 需要21秒,排序后7秒。java &5秒。问题在哪里?&分支预测资料:&http://comp.lang.cpp./oZn86c9y/hidden-features-and-dark-corners-of-c-stl&
&&&& 摘要: 关闭oracle api 异常侦测 sqlnet.ora
DIAG_ADR_ENABLED=FALSE
DIAG_DDE_ENABLED=FALSE
DIAG_SIGHANDLER_ENABLED=FALSE
DIAG_RESTRICTED=FALSE
&&
打开root 用户&/thread--1.html &/zh-cn/HT1528太难找了,竟然在菜单里,打开root 。&su root&whoamisudo su密码不对
Mac OS X:sudo 命令需要非空的管理员密码
c# oledb odbc &foxpro driver win 64 驱动不兼容.&解决办法:c#工程里面选择 x86.&安装foxpro odbc驱动. &
Intellij IDEA和Android Studio默认使用JDK6,所以你有如下选择: 1,安装JDK6 2,安装其他版本的JDK,然后修改IDE的指向。 如果选择2,那么修改方式为: 打开应用的.app包,然后在Contents这个目录下,有个文件info.plist,修改JVMVersion这个key对应的value,从1.6*修改为你安装的版本即可。1 用文本编辑器打开/Applications/IntelliJ IDEA 13.app/Contents/Info.plist 2 搜索JVMVersion,将其值改为1.7* 3 再次运行应用即可看到应用成功运行from :/question/
&&&& 摘要: &&
&&&& 摘要: 分析表空间
execute dbms_stats.gather_schema_stats('CORE'); &&
&&&& 摘要: 1.种方法
#define WIN32_LEAN_AND_MEAN
放在windows.h 之前.
2. 先引入socket2.h文件.
3. 项目 -> 属性 -> C/C++ -> 预处理器 -> 预处理器定义
在其中添加 : WIN32_LEAN_AND_MEAN&&
&&&& 摘要: &&
&&&& 摘要: 中间件&&
linux DNS 设置&sudo vim /etc/resolv.conf/setup/#linuxwget /static/soft/SetAliDNS.sh -O SetAliDNS.sh && chmod +x SetAliDNS.sh && sudo ./SetAliDNS.sh卸载 sudo ./SetAliDNS.sh restore键盘修改&xmodmap -e &"keycode 105=Delete"
& & API对设计流程的影响——Joshua Bloch访谈
& 工程师Joshua Bloch谈如何设计一款优秀的API【附PPT】
& The Java(TM) Tutorials
& 1.5 New Features and Enhancements J2SE 5.0
Experiences with the New Java 5 Language Features Pages: , 2, ,
& 1.6 Highlights of Technology Changes in Java SE 6
Highlights of Technology Changes in Java SE 7
学习步骤1.c&2.c object&3. stl4. linux os api5. socket &6. 分布式7. web html5&8. mac UI &9. obj c10.算法。一些想法:微博上关注的人很多淘宝系的很多都不搞技术了,原因是阿里上市了,足够的钱退休了,还有些人离职去创业了,可能氛围比较好,看来创业的都有滋有味。大规模的系统搞过了,心里有底气了,知道方向,估计成功率也会比较高。一些人技术人靠知乎刷存在感,靠名气说话 。一些2流技术角色投稿文章csdn,写专题blog。很多毫无营养。国内的技术书,还是一如既往类似官方教程的翻译版。& blog
大stackoverflo
& 云风 & & 何_登成
& 网络教学:
& 先确保执行这个. win7 以上才支持 WER windows error report 功能 . windows 弹出提示框, 然后进程管理器,右键手工导出也行. Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps]"DumpFolder"="c:\\""DumpCount"=dword:"DumpType"=dword:"CustomDumpFlags"=dword: c++ debug版本 + pdb文件 另外需要注意不是所有情况都生成core. windows 改了注册表不生成core的原因:
· Debugging dump files of optimized code can be confusing. For example, compiler inlining of functions can result in unexpected call stacks and other optimizations might change the lifetime of variables. · Dump files from 64-bit machines must be debugged on an instance of Visual Studio that is running on a 64-bit computer. · In versions of Visual Studio before VS 2013, dumps of 32-bit apps that were run on 64-bit machines that were collected by some tools (such as Task Manager and 64-bit WinDbg) could not be opened in Visual Studio. This limitation has been removed in VS 2013. · Visual Studio can debug dump files of native apps from ARM devices. Visual Studio can also debug apps dump files of managed apps from ARM devices, but only in the native debugger. · To debug
dump files in Visual Studio 2013, download the . See . · Visual Studio can't debug dump files saved in the older dump format known as a . Note that a full user-mode dump is not the same a dump with heap. · To debug with the
in Visual Studio, you must install the Debugging Tools for Windows that is part of the Windows Driver Kit (WDK). See . & 参考:
Collecting User-Mode Dumps&& --注册表
& Crash Dump Analysis& --- c++ 自己生成dump
& & Use Dump Files to Debug App Crashes and Hangs in Visual Studio
& Attach to Running Processes with the Visual Studio Debugger
Just-In-Time Debugging in Visual Studio& ------- 还没看
The Discipline and Method Architecture for Reusable Libraries (2000)Citations1489&- Stroustrup - 19911437&- Meyer - 1997861&- Gamma, Helm, et al. - 1995303&- Hastings, Joyce - 1991232&- Parnas, Clements - 1986118&- Knuth - 199889&- Batory, Singhal, et al. - 199367&- Biggerstaff - 199457&- Musser, Stepanov - 199447&- Vo - 199637&- Sedgewick - 198830&- Hunt, Vo, et al. - 199627&- Zorn, Grunwald - 199219&- Korn19&- Vo, Wang, et al. - 199718&- Robson - 197717&- Lea - 198813&- Shore - 197511&- Hanson - 199710&- American - 19899&- Korn - 19947&- Koenig - 19885&- Vo - 19975&- Stroustrup - 19944&- Korn, Vo - 19954&- Fowler, Korn - 19953&- Krisnamurthy - 19952&- Clements, Parnas, et al. - 19921&- Vo - 19981&- Fowler, Korn, et al. - 199
#include &sys/stat.h&long file_length(char *f){& && & stat(f, &st);& & return st.st_}If you have the file stream (FILE * f):fseek(f, 0, SEEK_END); // seek to end of filesize = ftell(f); // get current file pointerfseek(f, 0, SEEK_SET); // seek back to beginning of file// proceed with allocating memory and reading the fileOr,#include &sys/types.h&#include &sys/stat.h&#include &unistd.h&fd = fileno(f);&fstat(fd, &buf);int size = buf.st_Or, use stat, if you know the filename:#include &sys/stat.h&stat(filename, &st);size = st.st_
& & relocation error: multiget: symbol _Z23wxHandleFatalExceptionsb, version WXU_2.8 not defined in file libwx_baseu-2.8.so.0 & 下载地址: &
codeblocks-13.12-1.el5.x86_64.tar.bz2 & 安装的关键 Note: On RedHat/CentOS 5 and older revisions of 6 (up to 6.2 as far as I know) you need to add repoforge (former rpmforge) to your repolist, to be able to install the needed wxGTK-package. See for an instruction. & 更新yum的源 很重要 & 下载对应的rpm
cat /etc/redhat-release uname –a & wget
rpm -ivh package-filename &# yum install gcc
# yum install gcc-c++如果之前失败过
yum erase wxGTK# yum install wxGTK&然后 ]# ls
codeblocks-12.11-1.el6.i686.rpm
codeblocks-contrib-12.11-1.el6.i686.rpm
codeblocks-contrib-devel-12.11-1.el6.i686.rpm
codeblocks-devel-12.11-1.el6.i686.rpm# rpm -ivh codeblocks*&
1. 下载repo文件&&& 下载地址:/.help/CentOS6-Base-163.repo
2. 备份并替换系统的repo文件[root@localhost ~]# cd /etc/yum.repos.d/[root@localhost ~]# mv CentOS-Base.repo CentOS-Base.repo.bak[root@localhost ~]# mv /root/CentOS6-Base-163.repo CentOS-Base.repo
3. 执行yum源更新[root@localhost ~]# yum clean all[root@localhost ~]# yum makecache[root@localhost ~]# yum update
&yum install gcc gcc-g++ autoconfig automake &&参考:&&&&&
sqlplus 外面执行正常. tomcat调用老有问题.多调用几次久正常. & 可能是包中的全局变量引起的. & & If so, that's because :
The values of the variables, constants, and cursors that a package declares (in either its specification or body) comprise its package state. If a PL/SQL package declares at least one variable, constant, or cursor, then the package is stateful; otherwise, it is stateless. When you recompile the state is lost:
If the body of an instantiated, stateful package is recompiled (either explicitly, with the "ALTER PACKAGE Statement", or implicitly), the next invocation of a subprogram in the package causes Oracle Database to discard the existing package state and raise the exception ORA-04068.
After PL/SQL raises the exception, a reference to the package causes Oracle Database to re-instantiate the package, which re-initializes it... You can't avoid this if your package has state. I think it's fairly rare to really need a package to be stateful though, so you should revisit anything you have declared in the package, but outside a function or procedure, to see if it's really needed at that level. Since you're on 10g though, that includes constants, not just variables and cursors.
But the last paragraph from the quoted documentation means that the next time you reference the package in the same session, you won't get the error and it will work as normal (until you recompile again).
& existing state of packages has been discarded means, that your Package had some sort of state.
This is caused by a global variable (or constant) stored in your Package Body.
Since the package has already been used in your session, Oracle assumes that this state is relevant for you. Some of these variables might have different values now, and when you recompile the Body, the values are reset.
This exception is thrown, so that your clients know that they can't rely on those variables any more.
You could try to remove all global variables and constants from the Package Body, or close your session and reconnect before calling the package again.
监听器配置少了. lsnrctl
& SID_LIST_LISTENER =& (SID_LIST =& & (SID_DESC =&&&&& (GLOBAL_DBNAME = XE )&&&&& (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)&&&&& (SID_NAME =XE )&&& )&&& (SID_DESC =&&&&& (SID_NAME = PLSExtProc)&&&&& (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)&&&&& (PROGRAM = extproc)&&& )&&& (SID_DESC =&&&&& (SID_NAME = CLRExtProc)&&&&& (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)&&&&& (PROGRAM = extproc)&&& )& ) LISTENER =& (DESCRIPTION_LIST =&&& (DESCRIPTION =&&&&& (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))&&&&& (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))&&& )& ) DEFAULT_SERVICE_LISTENER = (XE)
& 1.安装 vnc-server
如果window
& vncserver :1
输入密码 vnc登录后
xhost + 解决display问题. vncserver -kill :1 & vnc 如果进入以后3个 提示选择 allow clipboard& . 修改/root/.vnc/xstartup文件,把最后一行 twm& 修改成"startkde &" 或者"gnome-session &" 不然的话连接linux时只出现了一个终端编辑器窗口。 & exec gnome-session & & & & & & oracle 安装
& & 二:使用Xmanager实现xhost挂接图形
:g/.*ABC/m
:g/kernel32/d
:[range]g[lobal]/{pattern}/[cmd] :help :g
vim 查找一个文章段落, 开头字符 结尾字符
/.*#tag1\(.\+\n\+\)\{-}#tag2.* & 删除掉 : g/.*#tag1\(.\+\n\)\{-}#tag2.*/d
这句话\(.\+\n\+\) 采用分组
.\+& .任意字符 + 一个或多个 \n\+& 回车& 一个或多个 \+1 或更多
\{-} 0 或更多尽可能少. 任意字符
为什么& /This\_.*text/ 不可以,因为\_. 是全缓冲区匹配模式的. & 概念分组、捕获
abc123.456.def
\d{3}表示三个数字,(\d{3}\.)表示三个数字加“.”为一组,{2}表示这一组内容重复两次
& & & 参考:
^\(.\+\n\)\{-}#.*tag1
Vim 中删除符合条件的行
/archives/delete-lines-matching-pattern-in-vim/ /railsinstaller/railsinstaller-windows/releases
goAhead上实现文件上传到嵌入式web服务器上
& 3. 资料 3.1
本博客转载的文章 3.2 && 前端实现参考 3.3
服务器端实现参考
RiskUnit0001.o: relocation R_X86_64_32 against `a local symbol' can not be used when ma recompile with -fPIC
obj/Debug/src/RiskUnit0001/RiskUnit0001.o: could not read symbols: Bad value
为什么需要
解决办法编译器已经提示了:recompile with -fPIC
但是我们应该重新编译谁带上这个参数呢?经过我几番折腾,发现如下情况:
1、编译.o文件的时候,没有加参数-fPIC,这问题个在gcc version 3.4.6版本没有发生,可能那个编译器默认都给加上吧。
2、当前程序中有用到某个静态库,那个静态库编译.o文件的时候没有加上-fPIC(静态库其实就是.o文件打包)。补充一点:我发现手写Makefile时即使不加-fPIC也没有这个问题,这一点很郁闷,这个只在用automake工具编译出.a文件时才出现过。
知道原因了,解决办法自然有了,保证你编译.o文件的时候,都加上-fPIC,这样你才能编译出动态库来。
sqlplus &core/core@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(Host=192.168.75.1)(Port=1521))(CONNECT_DATA=(SID=itmp)))&
参考一个 :
*    ORACLE客户端liunx安装部署说明
配置步骤:
1,将本文件夹拷贝到相应的服务器上。
2,配置环境变量如下: 文件夹所在路径(/kfts/tools/oracle)
(永久修改方式)
vi /etc/profile
在文件最后添加:
export LD_LIBRARY_PATH=/kfts/tools/oracle:$LD_LIBRARY_PATH
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export ORACLE_HOME=/kfts/tools/oracle/
export PATH=/kfts/tools/oracle/:$PATH
export TNS_ADMIN=/kfts/tools/oracle/network/admin
之后运行命令生效:
source /etc/profile
& & relocation error: multiget: symbol _Z23wxHandleFatalExceptionsb, version WXU_2.8 not defined in file libwx_baseu-2.8.so.0 & 下载地址: &
codeblocks-13.12-1.el5.x86_64.tar.bz2 & 安装的关键 Note: On RedHat/CentOS 5 and older revisions of 6 (up to 6.2 as far as I know) you need to add repoforge (former rpmforge) to your repolist, to be able to install the needed wxGTK-package. See for an instruction. & 更新yum的源 很重要 & 下载对应的rpm
cat /etc/redhat-release uname –a rpm -ivh package-filename &# yum install gcc
# yum install gcc-c++如果之前失败过
yum erase wxGTK# yum install wxGTK&然后 ]# ls
codeblocks-12.11-1.el6.i686.rpm
codeblocks-contrib-12.11-1.el6.i686.rpm
codeblocks-contrib-devel-12.11-1.el6.i686.rpm
codeblocks-devel-12.11-1.el6.i686.rpm# rpm -ivh codeblocks*&yum install gcc gcc-g++ autoconfig automake &&参考:&&&&&
&&&& 摘要: &&
目标缓冲区 小于 实际缓冲区
char *name = &&;
char name2[6]={0};
memcpy_s( name2 ,  sizeof(name2) ,  name, strlen(name));
动态执行失败 (DEBUG ASSERTION FAILED !) 运行库和调试库都会提示出错.
注意:    指针sizeof( 指针 ) = 4  
strncpy(name2,name ,sizeof(name) );             打印name2  ;
strncpy(name2,name ,strlen(name) );            打印name2   123456IOIPNUUY
优化这个语句,尽量拷贝内容
strncpy(name2,name ,   strlen(name)&sizeof(name2)? sizeof(name2): strlen(name)   );
目标缓冲区 小于 实际缓冲区
strncpy(name2,name ,sizeof(name2)-1 );
sizeof(name2)-1 ------------&让最后一个name2字符留给\0 否则这个字符也被拷贝了.
看一下LINUX下的两个函数的源代码,印象会更加深刻一些
void * memcpy(void * dest,const void *src,size_t count)
    char *tmp = (char *) dest, *s = (char *)
    while (count--)
        *tmp++ = *s++;
   
char * strcpy(char * dest,const char *src)
    char *tmp =
    while ((*dest++ = *src++) != '\0')
        /* nothing */;
   
老实讲,这两个函数长得是很帅
Visual Studio 2008 命令提示
cl /EHsc simple.cpp
Visual C++ 示例应用程序
Visual Studio 2008
包含一些示例,这些示例可以在 Visual C++ 的所有版本(包括 Visual C++ 速成版)中使用。
包含一些演练链接,这些演练重点演示了 Visual C++ 的功能。
包含演示标准模板库功能的一些示例。
包含演示活动模板库 (ATL) 功能的一些示例。
包含一些示例,这些示例演示 Visual C++ 编译器对 COM 的内置支持。
包含一些示例,这些示例说明如何创建您自己的向导来优化与创建自定义应用程序或添加代码相关的任务。
包含一些示例,这些示例演示 Visual C++ 中的事件处理。
包含一些示例,这些示例演示如何扩展 Visual Studio 和 Visual C++。
包含一些示例,这些示例演示如何针对国际市场编写代码。
包含一些示例,这些示例演示 COM 和 .NET Framework 之间的互操作性。
包含一些示例,这些示例演示 Visual C++ 中的 Microsoft Macro Assembler (MASM) 源文件支持。
包含一些示例,这些示例演示 Microsoft 基础类 (MFC) 功能。
包含一个示例,此示例演示 Windows 图像获取 (WIA) 应用程序编程接口 (API)。
互操作性示例
标准模板库示例
warning MSB8012: TargetPath(C:\dev\APPFF_SQ2\APP\.\Release\APP_SQ1.exe) 与 Linker 的 OutputFile 属性值(C:\dev\APPFF_SQ2\APP\Release\MDU2FF_SQ.exe)不匹配。这可能导致项目生成不正确。若要更正此问题,请确保 $(OutDir)、$(TargetName) 和 $(TargetExt) 属性值与 %(Link.OutputFile) 中指定的值匹配。
warning MSB8012: TargetName(MDU2FF_SQ1) 与 Linker 的 OutputFile 属性值(MDU2FF_SQ)不匹配。这可能导致项目生成不正确。若要更正此问题,请确保 $(OutDir)、$(TargetName) 和 $(TargetExt) 属性值与 %(Link.OutputFile) 中指定的值匹配。
1&  MD .vcxproj -& C:\dev\APPFF_SQ2\APP\.\Release\ .exe
project name 修改名字.
另外工程配置,链接生成---&输出文件统一.
&&&& 摘要:  
一般来说,如果你不是MFC工程,需要引用HANDLE的话,
最好自己将其类型改为void*,比如,你本来变量的类型为HANDLE,
你把它改为void*就可以了。
--------------------------------------------------------------------------------
 ...&&
1、工作空间默认
  Windows -& Preferrences -& C/C++ -& Editor -& Documentation tool comments
  默认为none,修改为Doxygen即可
  2、工程特别属性
如果不想设置为整个工作空间的默认属性,可以在工作属性对话框的这里找到:
  Project -& Properties -& C/C++ General -& Enable project specific settings
  选择Doxygen即可
  备忘
发生在析够函数中,   vs2010 debug 模式 .
CriticalSection::~CriticalSection(void){
    DeleteCriticalSection(&m_CritSect);  }
我开始推测,必须退出section才能delete ?
    InitializeCriticalSection(&m_CritSect);         EnterCriticalSection(&m_CritSect);      DeleteCriticalSection(&m_CritSect);      实际上这样退出是可以的.
问题在哪里? 
一个回调处理函数类注册到另外一个线程里面.另外一个线程一直有消息推送或者调用其内部函数.
       aa-&release(); //之前没有这句话 ,内部aa 线程一直在运行 ,可能是排在析构 (DeleteCriticalSection)之后或者之前,损坏了这个变量 m_CritSect
这里开始调用  DeleteCriticalSection(&m_CritSect);   并且报错了.
别的项目里面拿来的 .h .cpp 
因为本项目未使用预编译头.
但是预编译头这个头文件存在,里面东西很多.
导致很多宏  或者 常量重复定义.
定义成标准头
int main(int argc, char *argv[])
int main() {
PWSTR cmdLine = GetCommandLineW();
PWSTR *argv = CommandLineToArgvW(cmdLine, &argc);
//参数使用
if (argc==3)
if (strcmp(argv[0], &-e&)==0)
iMode = 1;
else if (strcmp(argv[0], &-d&)==0)
sInput=argv[1];
sOutput=argv[2];
_tmain  Unicode下就是wmain
否则就是main
我老是搞错.
Boy  g_
使用全局变量
Collection.h
#include “boy.h”
extern Boy g_
似乎更优雅的方式
#ifdef  _BOY__HH__
extern  Boy  g_
错误方式:    定义宏根本解决不了这个问题
#pragma once
#ifndef _BOY__HH__
#define _BOY__HH__
class  boy
Boy  g_
1& .obj : error LNK2005: &class class 全局变量名 & (?g_CITSCache@@3VMarketCache@@A) 已经在 XXX.obj 中定义
1&  正在生成非 SAFESEH 映像。
1&D:\XXX.exe : fatal error LNK1169: 找到一个或多个多重定义的符号
等我看了编译原理再来解释.
如何防止循环引用?
A-&b-&c-&A
一直报错,说找不到引用.
2&Quote.obj : error LNK2019: 无法解析的外部符号 &public: __thiscall 某类::某类(char *)& (??0某类@@QAE@PAD@Z),该符号在函数 &public: __thiscall Quote::Quote(void)& (??0Quote@@QAE@XZ) 中被引用
2&Quote.obj : error LNK2001: 无法解析的外部符号 &public: virtual bool __thiscall 某类::Init(void)& (?Init@某类@@UAE_NXZ)
2&Quote.obj : error LNK2001: 无法解析的外部符号 &public: virtual void __thiscall 某类::Kill(void)& (?Kill@某类@@UAEXXZ)
2&Quote.obj : error LNK2001: 无法解析的外部符号 &private: virtual int __thiscall 某类::Run(void)& (?Run@某类@@EAEHXZ)
2&Quote.obj : error LNK2001: 无法解析的外部符号 &private: virtual bool __thiscall 某类::Terminate(void)& (?Terminate@某类@@EAE_NXZ)
2&Quote.obj : error LNK2019: 无法解析的外部符号 &public: virtual __thiscall 某类::~某类(void)& (??1CW
1.使用编译---------& verbose  显示能找到库.
2.可以看到那个方法连接到那个库文件里面的.
3.通过depends  看这个dll暴露出来的方法.
#ifdef EXPORT_API
#define MY_API __declspec(dllexport)
#define MY_API __declspec(dllimport)
class MY_API MyClass {
#include &e://testClass.h&
#pragma comment(lib, &//Debug//ServerDLL.lib&)
****取资源
      业务代码?
     
***释放资源
回头慢慢看.
CMake - 优秀的 C/C++ 构建系统
揭示C++中全局类变量的构造与析构顺序
& && SetBlockMode(false);& // NONBLOCK mode&&&&&
e = connect(m_socket, (struct sockaddr*)&addr, sizeof (addr));&
if (e&0)&&&&&& {&&&&&
e = GET_LAST_SOCK_ERROR();& printf(" socket error code = %d \n",e);&&&&&&
if ((e==EWOULDBLOCK||e==EINPROGRESS || e == WSAEWOULDBLOCK ) && CheckSendAvailable(waitms)&0)&&&
{&&&&&&&&&&&& e = 0; // 表示连接成功&&&&& & }& else&& {& &&&&&&&&&& e = -1; // 表示连接失败,或者在等待的时间之内连接失败&&&&&&&&& }&我临时修改。&&&&&&&& if ((e==EWOULDBLOCK||e==EINPROGRESS || e == WSAEWOULDBLOCK ) && CheckSendAvailable(waitms)&0)
&WSAEWOULDBLOCK& = 10037 &&&问题找到了。切换到项目配置。平台工具集----&vs2008
连接win sdk 6的库切换到项目配置。平台工具集----&vs2012 连接win
8 的库有区别。&&
正在生成代码...1&& Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.01&& 1&& Copyright (C) Microsoft Corporation.& All rights reserved.1&& 1&& 1&& 1&& 正在搜索库1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\ws2_32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\odbc32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\odbccp32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\kernel32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\user32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\gdi32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\winspool.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\comdlg32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\advapi32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\shell32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\ole32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\oleaut32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\uuid.lib:1&&&&&& 正在搜索 c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\LIBCMTD.lib:1&&&&&& 正在搜索 c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:1&&&&&& 正在搜索 c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\libcpmtd.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\ws2_32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\odbc32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\odbccp32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\kernel32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\user32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\gdi32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\winspool.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\comdlg32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\advapi32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\shell32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\ole32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\oleaut32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\uuid.lib:1&&&&&& 正在搜索 c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\LIBCMTD.lib:1&&&&&& 正在搜索 c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\OLDNAMES.lib:1&&&&&& 正在搜索 c:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\lib\libcpmtd.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\ws2_32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\odbc32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\odbccp32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\kernel32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\user32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\gdi32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\winspool.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\comdlg32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\advapi32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\shell32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\ole32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\oleaut32.lib:1&&&&&& 正在搜索 C:\Program Files\\Microsoft SDKs\Windows\v6.0A\lib\uuid.lib:1&& 1&& 已完成库搜索1&& Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.01&& 1&& Copyright (C) Microsoft Corporation.& All rights reserved.1&& 1&& 1&& MDUSJS.vcxproj -& D:\dev\cmd3\cmdsiimdsi\MDUSJS2012\.\Debug\MDUSJS.exe========== 生成: 成功 1 个,失败 0 个,最新 0 个,跳过 0 个 ==========
平台工具 连接的库不一样。
&& 正在生成代码...1&dbf.obj : warning LNK4075: 忽略“/EDITANDCONTINUE”(由于“/SAFESEH”规范)1&& 1&& 正在搜索库1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\ws2_32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\odbc32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\odbccp32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\kernel32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\user32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\gdi32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\winspool.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\comdlg32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\advapi32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\shell32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\ole32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\oleaut32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\uuid.lib:1&&&&&& 正在搜索 D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\LIBCMTD.lib:1&&&&&& 正在搜索 D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\OLDNAMES.lib:1&&&&&& 正在搜索 D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\libcpmtd.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\ws2_32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\odbc32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\odbccp32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\kernel32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\user32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\gdi32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\winspool.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\comdlg32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\advapi32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\shell32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\ole32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\oleaut32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\uuid.lib:1&&&&&& 正在搜索 D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\LIBCMTD.lib:1&&&&&& 正在搜索 D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\OLDNAMES.lib:1&&&&&& 正在搜索 D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\libcpmtd.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\ws2_32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\odbc32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\odbccp32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\kernel32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\user32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\gdi32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\winspool.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\comdlg32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\advapi32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\shell32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\ole32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\oleaut32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\uuid.lib:1&& 1&& 已完成库搜索1&& 1&& 正在搜索库1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\ws2_32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\odbc32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\odbccp32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\kernel32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\user32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\gdi32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\winspool.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\comdlg32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\advapi32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\shell32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\ole32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\oleaut32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\uuid.lib:1&&&&&& 正在搜索 D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\LIBCMTD.lib:1&&&&&& 正在搜索 D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\OLDNAMES.lib:1&&&&&& 正在搜索 D:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\lib\libcpmtd.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\ws2_32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\odbc32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\odbccp32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\kernel32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\user32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\gdi32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\winspool.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\comdlg32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\advapi32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\shell32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\ole32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\oleaut32.lib:1&&&&&& 正在搜索 C:\Program Files (x86)\Windows Kits\8.0\lib\win8\um\x86\uuid.lib:1&& 1&& 已完成库搜索1&& MDUSJS.vcxproj -& D:\dev\cmd3\cmdsiimdsi\MDUSJS2012\.\Debug\MDUSJS.exe========== 生成: 成功 1 个,失败 0 个,最新 0 个,跳过 0 个 ==========
ms connect
ioctlsocket function 控制柱塞非柱塞
代码 windows& tcp 通过select方式实现 connect non block
Windows Sockets Error Codes
***************
测试模拟工具发送大数据量消息时,发现时而发送成功,时而失败。追踪代码发现,抛出的是一个错误码为10035的socket错误。上网查资料发现这个错误码描述是Service temporarily unavailable.也就是说有可能send的时候遇到socket缓冲区满,无法写入,引起发送失败。
& 如果是这样的话,那么这就是一个常规的异常情况,需要对它进行处理,而不是异常退出。
& 最后代码改成这个样子,send然后分析返回结果,如果错误,且错误码为10035,那么就重发,直到发成功时,break。
& 目前尚不知道,这样改的副作用有没有,反正现在问题暂时解决鸟
***********************************
& Winsock connect函数返回错误,使用WSAGetLastError得到,是什么原因MSDN注释:WSAEWOULDBLOCK10035Resource temporarily unavailable. This error is returned from operations on nonblocking sockets that cannot be completed immediately, for example recv when no data is queued to be read from the socket. It is a nonfatal error, and the operation should be retried later. It is normal for WSAEWOULDBLOCK to be reported as the result from calling connect on a nonblocking SOCK_STREAM socket, since some time must elapse for the connection to be established.WSAEALREADY10037Operation already in progress. An operation was attempted on a nonblocking socket with an operation already in progress—that is, calling connect a second time on a nonblocking socket that is already connecting, or canceling an asynchronous request (WSAAsyncGetXbyY) that has already been canceled or completed.网络翻译:10035—WSAEWOULDBLOCK资源暂时不可用。对非锁定套接字来说,如果请求操作不能立即执行的话,通常会返回这个错误。比如说,在一个非暂停套接字上调用 connect,就会返回这个错误。因为连接请求不能立即执行。10037—WSAEALREADY操作已完成。一般来说,在非锁定套接字上尝试已处于进程中的操作时,会产生这个错误。比如,在一个已处于连接进程的非锁定套接字上,再一次调用 connect 或 WSAConnect。另外,服务提供者处于执行回调函数(针对支持回调例程的 Winsock函数)的进程中时,也会出现这个错误。我描述下问题:使用socket(AF_INET, SOCK_STREAM, IPPROTO_TCP);创建一个TCP/IP套接字,然后创建一个线程,不停地用connect函数进行链接,直到链接成功,才退出线程,问题来了,connect函数它有时候返回成功,有时候又返回错误,用WSAGetLastError得到享受10035, 10037这两种错误值,我将错误值打印出来,结果是:1,1,1,10037.......,10037。
****************************************************************
& & & & WSADATASOCKET cCstruct sockaddr_hostent *host=NULL;if(WSAStartup(MAKEWORD(2,0),&wsd)){return 0;}cClient=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);if(cClient==INVALID_SOCKET){return 0;}//set Recv and Send time outint TimeOut=6000; //设置发送超时6秒if(::setsockopt(cClient,SOL_SOCKET,SO_SNDTIMEO,(char *)&TimeOut,sizeof(TimeOut))==SOCKET_ERROR){return 0;}TimeOut=6000;//设置接收超时6秒if(::setsockopt(cClient,SOL_SOCKET,SO_RCVTIMEO,(char *)&TimeOut,sizeof(TimeOut))==SOCKET_ERROR){return 0;}//设置非阻塞方式连接unsigned long ul = 1;ret = ioctlsocket(cClient, FIONBIO, (unsigned long*)&ul);if(ret==SOCKET_ERROR)return 0;//连接server.sin_family = AF_INET;server.sin_p}

我要回帖

更多关于 turuk 15yax jalap 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信