![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
心得体会
文章平均质量分 52
会飞的羊
努力学习刻苦专研 做不了学霸争做技术大牛
展开
-
学习DLL
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////#ifndef _GAME_TOOLS_H_#define _GAME_TOOLS_H_///////////////////////////原创 2012-07-06 16:53:06 · 480 阅读 · 0 评论 -
python发送带附件的邮件
# -*- coding: utf8 -*-import smtplibimport sysfrom email.mime.multipart import MIMEMultipartfrom email.mime.text import MIMETextfrom email.mime.application import MIMEApplication_user = "xx@qq...原创 2018-11-20 17:48:13 · 332 阅读 · 0 评论 -
logstash+kafka 文件日志收集
logstash和kafka的安装和使用http://blog.csdn.net/yesuhuangsi/article/details/51954346logstash 配置:input { file { path => "/tmp/logFile/*.log" type=> "s原创 2017-03-12 21:50:53 · 2725 阅读 · 2 评论 -
linux 命令使用笔记
设置系统时间sudo date -s 2015-08-01sudo date -s 13:20:00 具体时间date输出当前时间原创 2015-03-21 22:08:01 · 916 阅读 · 30 评论 -
gaf 集成记录
普通的集成该有的这里都有:http://dbliu.com/cocos2dx-3-3-gong-zhu-ti-you-xi-chang-jing-kai-fa-15-gafdong-hua/这里要记录的是播完动画的回调函数怎么进行lua-binding在lua_gaf.cpp里有接口,但是// Lambda binding for lua is not supporte原创 2015-04-04 19:55:36 · 1501 阅读 · 3 评论 -
复习设计模式
大话设计模式之学习笔记:目的是写出 易维护 易扩展 易复用 灵活多样的代码。1.简单工厂模式:由工厂类返回具有同一父类的实例对象2.策略模式:封装可供重用的算法或行为,由Context去决定具体采用的方法3.单一职责原则:一个类的职责要明确,在类的职责分离上多思考4 开放-封闭原则:尽量不改变初始的代码,将变化用抽象隔离出来,要求初始的时候对变化要想全面,减少无用的抽象。5 依...原创 2015-01-08 17:33:57 · 588 阅读 · 0 评论 -
quick cocos2dx学习记录
按钮 cc.ui.UIPushButton.new("Button01.png", {scale9 = true}) :setButtonSize(200, 80) :setButtonLabel(cc.ui.UILabel.new({text = "REFRESH"})) :onButtonPressed(function(event)原创 2014-11-09 23:53:14 · 12966 阅读 · 0 评论 -
hello world
等了三天 终于可以发表博客了!原创 2012-06-28 10:45:02 · 462 阅读 · 1 评论 -
git 用法 记录
mkdir testgit initgit pull XXXXXXXX(托管地址)git add *(表示su)原创 2014-04-24 10:45:48 · 478 阅读 · 0 评论 -
python 脚本学习记录(1)
Python是一种代表简单主义思想的语言。阅读一个良好的Python程序就感觉像是在读英语一样,尽管这个英语的要求非常严格!Python的这种伪代码本质是它最大的优点之一。它使你能够专注于解决问题而不是去搞明白语言本身。python的强大已经不言而喻,我之前自学过但没用忘得差不多了,难得现在有空再来学一遍。Windows下安装了python3.1 IDLE.1.print('h原创 2014-03-27 15:39:52 · 2057 阅读 · 17 评论 -
OpenGL 学习笔记
画两条线段p1--p2 p3--p4的代码;glBegin(GL_LINES); glVertex2iv(p1); glVertex2iv(p2); glVertex2iv(p3); glVertex2iv(p4);glEnd();GL_LINES 线段GL_LINE_STRIP 折线GL_LINE_LOOP封闭折线原创 2013-09-17 22:54:52 · 909 阅读 · 3 评论 -
(动态规划DP)面试题:求数组中两个数的最大差值(只能下标大的减去下标小的)符合无后效性
//求数组元素与其右边元素做差,差值的最大值时间o(n)空间O(n)void sovle_maxSub_Dp(int *a, int n){ int *S=new int[n](); int max_value=INT_MIN; int max_index=0; S[n-1]=0; for(int i=n-2;i>=1;i--){ S[i]=S[i+1]空间复杂度优化原创 2013-09-18 01:42:05 · 8036 阅读 · 0 评论 -
android UI学习笔记(布局)
http://www.cnblogs.com/wisekingokok/archive/2011/08/23/2150452.htmlhttp://www.cnblogs.com/wisekingokok/archive/2011/08/24/2152004.html.布局Android的五大布局分别是LinearLayout(线性布局)、FrameLayout(单帧布局)、Rel转载 2013-07-13 21:11:59 · 877 阅读 · 0 评论 -
这篇文章鉴定了我放弃读研的决心
是否应该读计算机研究生如果你有实际开发工作经验,感觉自己的水平和实力进入了一个高原期,迫切需要从理论上提高,那么计算机学院是唯一选择。因为计算机学院才能让你在理论上更上一层楼。软件学院从教学计划上就没有把你往这方面带。当然能不能更上一层楼最终还是完全取决于你自己。需要特别说明的是,工作经验并不一定等于开发经验,我见过很多工作2-3年的人,但是没有一点开发经验。 你说:“他转载 2012-12-19 00:44:45 · 1099 阅读 · 1 评论 -
The RightCoding Style for JAVA
函数:public boolean hasFinish(){}public booleab IsAsleep(){}public boolean exists(){};public boolean canDosth(){}public Sample createSample(){};public Another toAnother(){};变量:private in原创 2012-11-14 08:27:02 · 334 阅读 · 0 评论 -
JAVA 知识点(for-each)遍历的用法)
public class TestForInterator { public static void main (String args[]){ int[] intArray = {1, 2, 3, 4};//创建一个数组 for(int i : intArray){//循环取出数组里的每个数赋值给i,每取一次推行原创 2012-10-13 13:45:48 · 2135 阅读 · 0 评论 -
JAVA学习记录
substring(n,m) 有头无尾子串public String substring(int beginIndex, int endIndex)返回一个新字符串,它是此字符串的一个子字符串。该子字符串从指定的 beginIndex 处开始,一直到索引 endIndex - 1 处的字符。因此,该子字符串的长度为 end原创 2012-09-14 17:23:13 · 410 阅读 · 0 评论 -
用doxygen生成面向对象语言的类文档
1安装doxygen2安装HTML help(为了生成CHM)3step1 设置工作路径step2 设置工程名,logo,输出目录,格式4如果输出CHM则要在expert/html内的CHH设置为C:\Program Files\HTML Help Workshop\chh.exe(pdf同理)5run原创 2012-07-09 08:24:27 · 411 阅读 · 1 评论 -
td-fluent收集日志
1.安装yum install td-agent2.启动systemctl start td-agent3.修改配置 /etc/td-agent/td-agent.conf增加配置(例子:文件发到kafka)<source> @type tail path /data0/log/nginx/*.log pos_file /var/log/td-agent/x...原创 2017-04-25 21:43:13 · 1518 阅读 · 2 评论