Archive for 'Uncategorized' Category

The steps involved in establishing a socket

By Symphony - Last updated: Monday, December 5, 2011

The steps involved in establishing a socket on the client side are as follows: Create a socket with the socket() system call Connect the socket to the address of the server using the connect() system call Send and receive data. There are a number of ways to do this, but the simplest is to use [...]

网页游戏,sns游戏为代表的在线游戏是整个游戏界一次彻底革命

By Symphony - Last updated: Monday, December 5, 2011

正如客户端网游的出现是游戏界的一次革命一样,webgame和snsgame也是游戏界的新革命。他改变了人们的娱乐方式,使之更便捷,只要你有帐号,便随时随地可玩。极大的便捷性来自技术的不断改良,至今许多人没有意识到这是一次彻底的革命。而下一波,将是移动游戏和在线游戏的多端整合。

Gentoo 下make时超容易出现的libtool报错终于被完美解决

By Symphony - Last updated: Thursday, November 3, 2011

报错信息 libtool: Version mismatch error. This is libtool 2.2.6b, but the libtool: definition of this LT_INIT comes from an older release. libtool: You should recreate aclocal.m4 with macros from libtool 2.2.6b libtool: and run autoconf again. 删除 aclocal.m4,然后执行 aclocal 和 autoconf rm aclocal.m4 & aclocal & autoconf 最后再 make 就可以通过了。

Samba 服务器配置很容易卡的一点

By Symphony - Last updated: Tuesday, November 1, 2011

半个月前配置samba服务器,说来惭愧,之前已经配置成功过好几次,所以也没太在意,事实证明我错了。在一个点上前后生生卡1X个小时。今天因为项目需要,再度开始,无意间才发现的。 这个点就是samba的工作组必须和共享机器一致,之前就是因为不一致,无论怎么配都不能用。配置文件地址: /etc/samba/smb.conf 打开后修改 workgroup = 你的工作组名,重启samba,大功告成!

Gentoo 安装Flash Player Debugger

By Symphony - Last updated: Monday, October 31, 2011

安装普通版 emerge -pv www-plugins/adobe-flash 到 http://www.adobe.com/support/flashplayer/downloads.html 下载linux flash player content debugger。 解压缩后执行安装操作: nspluginwrapper –verbose –install /root/Downloads/libflashplayer.so

Gentoo/Java 中文字体方块及其解决办法

By Symphony - Last updated: Sunday, October 23, 2011

解决方法好简单:jdk字体目录下创建fallback目录,做个中文字体软连接进去即可,如下。 cd /usr/lib/jvm/sun-jdk-1.6/jre/lib/fonts/ mkdir fallback cd fallback ln -s /usr/share/fonts/verasansyuanti/verasansyuanti_regular.ttf . 打开Java程序看到中文方块,心都碎了。觉得Linux怎么这么麻烦,Java怎么这么麻烦,搜索一下,发现其实好简单,只要把中文字体软连接过去即可。BS自己一下。 PS. 最后一行 ln -s /usr/share/fonts/verasansyuanti/verasansyuanti_regular.ttf . 可以换成任何中文字体,字体也可以不要ttf,可以是ttc。

Flex/PHP Sockets 通信issue及解决办法

By Symphony - Last updated: Saturday, October 22, 2011

1. crossdomain.xml内容 <cross-domain-policy> <site-control permitted-cross-domain-policies="all" /> <allow-access-from domain="*" to-ports="*" /> </cross-domain-policy> 2. 建立连接时,flex会发送 <policy-file-request/> PHP收到后返回 crossdomain.xml的内容,记得返回crossdomain.xml的内容字符串后要补上”\0″。Sym在这个点上卡了很久。。。汗。。。 3. 发数据应该在 Event.CONNECT 事件触发后的回调函数中调用,直接放在connect后有可能导致发送的数据没收到。

Gentoo Virtualbox Tips

By Symphony - Last updated: Saturday, September 10, 2011

VERR_SUPDRV_COMPONENT_NOT_FOUND 错误,需要加载vboxnetflt模块 modprobe vboxnetflt echo vboxnetflt >> /etc/modules.autoload.d/kernel-2.6