自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 资源 (4)
  • 收藏
  • 关注

原创 【自己的笔记】项目经验总结——mysql数据容量

目前打算降低服务器成本,首先的阻碍不是内存和CPU,而是数据库容量过大。主库、从库、备份库有关联影响。数据库瘦身,有以下思路:一、删除旧数据,a、根据下面数据看到的是邮件数据,这个已经补充了定周期删除操作。b、一些超过一年以上未登录的低等级玩家(游戏时间估计不足1小时),应该删除其关联数据。在删除旧数据时遇到一个问题,删除淘汰玩家时可能使其他表的某些记录失去实际上的主人。...

2019-10-09 16:31:16 137

原创 比较测试map、unodered_map、unordered_set性能效率,整型数值查找

测试环境:centos 6.5gcc 4.4.3

2014-07-12 11:41:24 4585

原创 Linux下安装redmine 2.5.1 的基本步骤,简约版。

1、安装RVM,RVM用于安装ruby。curl -L https://get.rvm.io | bash -s stable2、指定RVM路径source ~/.rvm/scripts/rvm3、确认RVM版本rvm -v参考结果:rvm 1.22.17 (stable) by Wayne E. Seguin , Michal Papis [https://rvm.

2014-04-16 15:01:01 2850

转载 [转]各种排序算法的总结和比较

各种排序算法的总结和比较1 快速排序(QuickSort) 快速排序是一个就地排序,分而治之,大规模递归的算法。从本质上来说,它是归并排序的就地版本。快速排序可以由下面四步组成。 (1) 如果不多于1个数据,直接返回。(2) 一般选择序列最左边的值作为支点数据。(3) 将序列分成2部分,一部分都大于支点数据,另外一部分都小于支点数据。(4) 对两边利用递归排序数列。

2014-04-11 10:08:58 434

原创 如何用四句话,最精简地总结昨天的工作

1、我昨天下班为止做了...例如1:我昨天更改好了两个消息,改完了一个数据库表结构。修改的东西都保存了。例如2:我昨天寻找到了控制人物死亡的变量,并且修正了一个NPC的对话乱码问题。注意:主要说做好了什么,做完了什么。完结标志是确认无误后上传至服务器。2、今天我打算做什么...,今天预计做到什么程度例如1:我今天打算测试一下昨天的攻击功能,中午测试完毕,下午看一下背包的

2014-03-10 09:53:25 912

转载 [转]Unity——Export/Import Package功能和项目管理的研究

转载于http://blog.sina.com.cn/s/blog_5373cec90100p4ow.html本文摘要      本文首先描述了Unity3.0在支持大型游戏项目开发时的两个不足:即对模块化和svn协同缺乏支持。随后,分析了Unity自带的Export/Import Package 功能,并提出了使用此功能与svn配合实现多人项目协同的方法。有关

2013-10-06 20:07:34 739

unity3d 5.2.4f1 官方2d像素游戏实例

今天06年1月22日,刚从unity官方下载的2d像素游戏实例程序,新鲜出炉 为那些不方便下载的同学共享一下, 也为了赚点积分,下载自己想要的东西。 积分当做是搬运幸苦费吧,多谢啦。 我的工程是5.2.4f1,觉得是比较稳定的版本。 祝好运~

2016-01-22

Unity3d UGUI Sample工程

今天06年1月22日,刚从unity官方下载的ugui实例程序,新鲜出炉 为哪些不方便下载的同学共享一下, 也为了赚点积分,下载自己想要的东西。 积分当做是搬运幸苦费吧,多谢啦。 我的工程是5.2.4f1,觉得是比较稳定的版本。 ugui崛起了,学习学习,祝好运~

2016-01-22

erlang r17官方api及stdlib手册

我是搬运工,官方下载的手册,包含所有erlang官方函数的介绍。英文的。给一分辛苦费,我也想下载东西。无奈他们都要分

2014-11-04

erlang日志应用log4erl(非sasl)

用不惯sasl的,可以用log4xxx的erlang版,log4erl。 log4erl Manual: =============== TOC: ==== 1. Features 2. Installation 3. Usage 4. API 5. Configuration 6. Known issues 7. Future development 8. License 1. FEATURES: ============ - Multiple logs - Currently, only size-based log rotation of files for file appender - Support default logger if no logger specified - 5 predifined log levels (debug, info, warn, error, fatal) - A log handler for error_logger - Support for user-specified log levels - Support for a log formatter (similar to Layouts in Log4J) - Support for console log - Support for smtp formatter - Support for XML logs - Support for syslog - Support for changing format and level of appender during run-time 2. INSTALLATION: ================ To compile & install log4erl, download source from google code's website (http://code.google.com/p/log4erl/) or from svn: $> svn checkout http://log4erl.googlecode.com/svn/trunk/ log4erl or from github public repository (http://github.com/ahmednawras/log4erl/). $> cd log4erl $> make or you can run the below from erlang shell: $> cd src $> erl 1> make:all([{outdir, "../ebin"}]). 3. USAGE: ========= 1- In order to use log4erl, you need to first include it in the path. There are 2 ways to do this: a) include the "log4erl" directory in erlang's "lib" directory in the target machine (cp -Rf log4erl /where/erlang/is/lib). $> cp -Rf log4erl /usr/local/lib/erlang/lib/ b) include the "log4erl" ebin directory in the path when running you program $> erl -pz /path/to/log4erl ... 2- Once the log4erl directory is included, you can use its API as described in section "API". but before, you need to run: > application:start(log4erl). 3- Create a configuration file and load it using log4erl:conf(File) > log4erl:conf("priv/log4erl.conf"). 4- Alternatevly, you can create loggers & add appenders to them programmatically as appropriate. You can do this as per the API below. > log4erl:add_logger(messages_log). > log4erl:add_console_appender(messages_log, cmd_logs, {warn, "[%L] %l%n"}). where Conf is the erlang term describing how the log is to be handled You can also add more types of appenders, which is explained in API.txt and Appneders_API.txt. 5- Now, you can log whatever messages you like as per logging functions described in API. > log4erl:info("Information message"). Precedance of log levels are: all = debug < info < warn < error < fatal < none User defined levels are always written except when none level is specified in the logger specification (See below). 4. API: ======= Please look at API.txt file for more information about the API. 5. CONFIGURATION: ================= Please look at CONFIGURATION.txt for more information about how to configure log4erl. 6. KNOWN ISSUES: ================ - Name of both loggers & appenders should be unique and not registered since log4erl will try and register their names. If the name is already registered, nothing will happen. This will be fixed soon. - If you run change_log_format/1,2 and appender crashed, a restart from the supervisor will not record the latest format used. It will only use either the default format or the format used in the argument is supplied. 7. FUTURE DEVELOPMENT: ====================== - Add support for different log persistance methods (e.g files, XML, console, DB, SNMP, syslog...etc) - Add support for time-based log rotation - Multiple configuration format (Erlang terms, XML?, properties files?) - Add support for NDC & MDC ??? Please send your suggestion to ahmed.nawras <at @ at> gmail <dot . dot> com 8. LICENSE: =========== This software is subject to "Mozilla Public License 1.1". You can find the license terms in the file 'LICENSE.txt' shipping along with the source code. You may also get a copy of the license term from the URL: "http://www.mozilla.org/MPL/MPL-1.1.html".

2014-09-03

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除