码迷,mamicode.com
首页 > 其他好文
ifconfig命令
Ifconfig命令:许多windows非常熟悉ipconfig命令行工具,他被用来获取网络接口配置信息并对此进行修改。Linux系统拥有一个类似的工具,也就是ifconfig(interfacesconfig)。通常需要以root身份登录,或使用sudo以便在Linux机器上使用ifconfig工具。依赖于ifconfig命令中使用一..
分类:其他好文   时间:2016-01-03 00:55:51    阅读次数:197
premultiplied pixel formats的具体含义
Anti-aliasingproblemwithrender_scanlines_compound_layered>However,Ihavenocluewhatthischangemeans.Ireadabout>premultipliedpixelformatshereandthere,butneverreally>understoodwhattheyare.SearchinGooglefor"premultipliedalpha.Useit,loveit,passiton":-)Int..
分类:其他好文   时间:2016-01-03 00:52:22    阅读次数:172
整型和浮点坐标渲染线宽问题
代码如下:agg::path_storagepath;for(inti=100;i<500;i=i+100){path.move_to(i,100);path.line_to(i,400);}for(intii=120;ii<550;ii=ii+100){path.move_to(ii+0.5,100);path.line_to(ii+0.5,400);}agg::conv_stroke<agg::path_storage>stroke(path);stroke.width(..
分类:其他好文   时间:2016-01-03 00:52:04    阅读次数:224
两个队列实现一个栈
两个队列("先进先出")实现一个栈("后进先出")//.h#include<iostream> usingnamespacestd; #include<queue> #include<string> template<classT> classStack { public: Stack() :_size(0) {} ~Stack() {} voidPush(Tt); voidPop(); TTop(); intSi..
分类:其他好文   时间:2016-01-03 00:52:30    阅读次数:138
PS等难卸载软件的通用强制卸载方法、安装程序检测到计算机重新启动...问题、安装失败问题
一、强制卸载1、找到安装目录删除相关文件2、在C盘搜索相关的文件夹并删除3、使用360等软件清理注册表,完成。二、安装程序检测到计算机重新启动的过程...的问题处理http://jingyan.baidu.com/article/5d368d1e1873b93f61c0575c.html(注意看图)三、安装失败http://jingyan.ba..
分类:其他好文   时间:2016-01-03 00:53:01    阅读次数:124
renderer_base低级渲染器应用的时机
1前言该话题是由于讨论整型和浮点型的线宽之间的差异,从而引出的低级渲染器的出现时机,实际上主要是考虑到性能。2翻译实际上,如果需要渲染1个像素宽度的横线或者竖线,通常和像素对齐,就是占满坐标格子)实际上,如果确定不需要使用AGG的任何转换,最好使用低级的渲染器ren..
分类:其他好文   时间:2016-01-03 00:52:33    阅读次数:193
sed命令细说
sed:工作方式:此命令也是针对文档行的一个命令。他的工作方式同grep一样,工作目标是文档中的行,一样是把文档复制到他的内存中进行操作,只要用户不保存,就不会改变原文件。磁盘源文件=A地-->复制到内存中的源文件或部分原文件=B地--->操作、筛选或者编辑后的保存在..
分类:其他好文   时间:2016-01-03 00:51:39    阅读次数:285
Centos如何使用SSH远程连接主机
ssh有两种连接方式第一种:密码认证连接方式[root@admin~]#sshroot@192.168.1.25(服务端的ip回车提示如下)Theauthenticityofhost‘192.168.1.250(192.168.1.250)‘can‘tbeestablished.RSAkeyfingerprintis75:f9:55:3b:da:0d:38:b2:c6:1b:e9:18:96:97:8a:2e.Areyousureyouwanttoc..
分类:其他好文   时间:2016-01-03 00:48:57    阅读次数:204
squid 透明代理和反向代理
透明代理:1.修改squid配置文件:http_port192.168.10.1:3128transparent#transparent透明2.利用iptables的nat表建立一条目标转向规则.iptables-tnat-APREROUTING-s192.168.10.0/24-ptcp--dport80-jREDIRECT--to3128类型nat添加数据方向进源自192.168.10.0段IP协议tcp目的端口8..
分类:其他好文   时间:2016-01-03 00:49:47    阅读次数:182
解释就是掩饰
对女生一定不要解释(1)有一次女生问我:女生:"你身上怎么这么香啊?"男生:"用的立白"女生:"还给立白打广告啊"(2)女生:你为什么送我礼物啊男生:因为我不想让你幼小的心灵留下男人说话不兑现的坏印象在这种情况下,一定不要直接的回答女生的问题.或者说:一定不要给女生可以预料到的..
分类:其他好文   时间:2016-01-03 00:49:39    阅读次数:142
Exchange2010五个角色的概述(图解)
Exchange2010五个角色的概述(图解)
分类:其他好文   时间:2016-01-03 00:48:24    阅读次数:215
voice lab2 – GK Operations
VoiceLab2–GK1-GKe164配置如下:R1(config)#intlo0R1(config-if)#ipadd1.1.1.1255.255.255.255R1(config-if)#noshutR1(config)#gatekeeperR1(config-gk)#zonelocalacisco.com1.1.1.1R1(config-gk)#noshutR1(config)#intf0/1R1(config-if)#h323-gatewayvoipinterfaceR1(config-..
分类:其他好文   时间:2016-01-03 00:46:57    阅读次数:299
Bootstrap图片
Bootstrap提供了四种应用于图片的class,分别是: img-rounded 添加 border-radius:6px 来获得图片圆角 img-circle 添加 border-radius:50% 来让整个图片变成圆形 img-thumbnail 添加一些内边距(padding)和一个灰色的边框 img-responsive 图片响应式 1、img-...
分类:其他好文   时间:2016-01-03 00:47:07    阅读次数:267
本地通知的实现
- (IBAction)openLocal:(id)sender { UILocalNotification *ln = [[UILocalNotification alloc] init]; ln.alertAction = @"赶集赶紧"; ln.alertBody = @"我是本地通知"; l...
分类:其他好文   时间:2016-01-03 00:41:44    阅读次数:224
switch与ifelse的效率问题
转载:http://blog.csdn.net/kehui123/article/details/5298337 switch与if..else 的执行的效率问题 今天读一前辈的程序,发现其在串口中断里面为了分析协议的报文类型,在中断函数里面使用if..else语句。因为报文类型在现在看来只有两种,...
分类:其他好文   时间:2016-01-03 00:42:09    阅读次数:211
console.dir() 与 console.log() 区别
Differenceconsole.log prints the element in an HTML-like treeconsole.dir prints the element in a JSON-like treeExampleSpecifically, console.log gives ...
分类:其他好文   时间:2016-01-03 00:41:54    阅读次数:304
Give it five minutes
A few years ago I used to be a hothead. Whenever anyone said anything, I’d think of a way to disagree. I’d push back hard if something didn’t fit my w...
分类:其他好文   时间:2016-01-03 00:41:16    阅读次数:238
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!