摘要: 1. Vagrant功能:Vagrant usesOracle’s VirtualBoxto build configurable, lightweight, and portable virtual machines dynamically..【Vagrant 使用Oracle VM Virtua... 阅读全文
posted @ 2015-02-05 11:07 dx2019 阅读(1727) 评论(0) 推荐(0)
摘要: lua面向对象实现:一个类就像是一个创建对象的模具。有些面向对象语言提供了类的概念,在这些语言中每个对象都是某个特定类的实例。lua则没有类的概念,每个对象只能自定义行为和形态。不过,要在lua中模拟类也并不困难。lua中,面向对象是用元表这个机制来实现。首先,一般来说一个表和它的元表是不同的个体(... 阅读全文
posted @ 2015-01-07 13:11 dx2019 阅读(869) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Window... 阅读全文
posted @ 2015-01-06 20:13 dx2019 阅读(257) 评论(0) 推荐(0)
摘要: 一、 DLL与应用程序 动态链接库(也称为DLL,即为“Dynamic Link Library”的缩写)是Microsoft Windows最重要的组成要素之一,打开Windows系统文件夹,你会发现文件夹中有很多DLL文件,Windows就是将一些主要的系统功能以DLL模块的形式实现。 动态链接 阅读全文
posted @ 2015-01-06 17:39 dx2019 阅读(35163) 评论(1) 推荐(2)
摘要: 一、安装环境Linux Ubantu二、安装需要的组件1、安装nodejs注:debian下nodejs没有相应的apt包,所以无法用apt-get安装,只能通过nodejs的源码包安装,这里有比较全的其他系统环境下安装nodejs的方式https://github.com/joyent/node/... 阅读全文
posted @ 2014-12-25 20:21 dx2019 阅读(465) 评论(0) 推荐(0)
摘要: 本来公司一个网游服务器端选定了pomelo框架,后来出了个Firefly,为做一个对比,决定研究一下Firefly。看了一下Firefly,感觉头大,python的,本人python小白,只好慢慢折腾,一天下来总算装上了Firefly框架,并把他的那个开源网游《暗黑世界》服务器端跑了起来,特此记录共... 阅读全文
posted @ 2014-11-12 15:05 dx2019 阅读(1805) 评论(0) 推荐(0)
摘要: public static int Random(int min, int max) { if (min >= max) return min; int diff = max - min; int ran = (int)Rand... 阅读全文
posted @ 2014-10-22 11:49 dx2019 阅读(175) 评论(0) 推荐(0)
摘要: 在某些情况下有误差public static int Sqrt(int a) { switch (a) { case 0: return 0; case 1: case 2: case 3: return 1; default: int n = a / 2;... 阅读全文
posted @ 2014-10-22 11:46 dx2019 阅读(195) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Windows.Forms;using System.Drawing;using System.Drawing.Drawing2D;namespace Test01{ publ... 阅读全文
posted @ 2014-10-15 11:31 dx2019 阅读(197) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Windows.Forms;using System.Drawing;using System.Drawing.Drawing2D; namespace Test01{ public 阅读全文
posted @ 2014-09-20 17:57 dx2019 阅读(145) 评论(0) 推荐(0)