- 博客(23)
- 资源 (13)
- 收藏
- 关注
转载 忘记MySQL root密码解决方法(基于Ubuntu 12.04 LTS)
忘了mysql密码,从网上找到的解决方案记录在这里。编辑mysql的配置文件/etc/mysql/my.cnf,在[mysqld]段下加入一行“skip-grant-tables”。重启mysql服务123abbuggy@abbuggy-ubuntu:~$ sudo service mysql
2014-07-31 11:07:29 823
翻译 How to use epoll? A complete example in C
Network servers are traditionally implemented using a separate process or thread per connection. For high performance applications that need to handle a very large number of clients simultaneously,
2014-07-29 08:49:18 1051
翻译 检测一个二叉树是否是另一个二叉树的子树
Given two binary trees, check if the first tree is subtree of the second one. A subtree of a tree T is a tree S consisting of a node in T and all of its descendants in T.The subtree corresponding
2014-07-27 23:41:58 1828
翻译 无锁编程介绍
翻译自 http://preshing.com/20120612/an-introduction-to-lock-free-programming/
2014-07-26 05:31:09 1122
翻译 unity3D中协程和线程混合
这是我google unity3D一个问题偶然发现的在stackflow上很有趣的帖子:大意是 要在unity3D上从服务器下载一个zip,并解压到持久化地址.并将其加载到内存中.下面展示了这种用法:IEnumerator LongCoroutine(){ yield return StartCoroutine(DownloadZip()); ExtractZip()
2014-07-24 23:21:17 1911
原创 boost::ptime::local_time调用的开销
突然想到这个问题,还是来测试下:#include #include #include #include #include #include "boost/date_time/posix_time/posix_time.hpp"int main(int arg, char** agrv){ if (arg < 2){ printf("uasge error\
2014-07-20 15:46:04 1732
原创 linux下unordered_map和map在小数据下性能差异
说起性能,没有测试,还是没有发言权:#include #include #include #include #include #include #include #include #include timeval g_ts;long getnow(){ gettimeofday(&g_ts, NULL); return g_ts.tv_usec;}in
2014-07-13 18:55:58 1910
原创 参考mudo logging写的win下logging
#pragma once#include #include #include #include #include class CountDownLatch : boost::noncopyable{public: explicit CountDownLatch(int count); void wait(); void countDown(); int getCo
2014-07-12 05:52:04 1514
转载 Unity3D的Socket連線實作範例
using UnityEngine;using System.Collections;using System;using System.IO;using System.Net.Sockets;public class s_TCP : MonoBehaviour { bool socketReady = false; TcpClient mySocket;
2014-07-11 00:28:50 1110
转载 5 tips every Unity developer should know
Whether you’re new to developing with Unity or are well-versed in using the tool, we all can appreciate tips that will improve our workflow. With the help of veteran developers who either are or hav
2014-07-08 20:14:17 764
转载 4 Ways To Increase Performance of your Unity Game
http://www.paladinstudios.com/2012/07/30/4-ways-to-increase-performance-of-your-unity-game/
2014-07-08 20:09:32 1266
原创 Ibibo Interview Question Software Engineer / Developers
原题是:Given a string that contains exactly a single pair of parenthesis, return parenthesis and their contents, so "xyz(abc)123" yields "(abc)". etc. Conditions: 1)No variable allowed
2014-07-07 04:54:27 875
转载 开发笔记 (13) : AOI 服务的设计与实现
关于AOI的算法,流传广的放入云风大大的博客.http://blog.codingnow.com/2012/03/dev_note_13.html
2014-07-06 18:16:18 1788
原创 《游戏中的人工智能》笔记
自动智能体的运行过程:1、行动选择:负责选定目标、制定计划。比如告诉:“到这里来”和“做好A、B然后C”;2、操控:负责计算轨道数据(嘛意思?),服务与行动选择环节制定的目标和计划。 操控行为产生一个操控力,它决定智能体往哪个方向移动以及如何快速移动。3、移动:最后环节。主要表现在一个智能体运动的机械因素。即如何从A到B。操控行为执行会很麻烦。一些行为会带来繁重的参数微调工
2014-07-05 17:19:54 856
原创 简单的日志系统
参考glog写了现有的Logging系统。直接有enum LoggingEnum{LOG_INFO,LOG_DBBUG,LOG_ERROR,LOG_WARNNING,LOG_END};几种等级的日志,实时刷到console上,异步延迟写到日志上,建立队列缓存日志,时间一到一起刷到file,好了,看下Logging实现:class Active;stru
2014-07-05 08:47:11 1484
转载 昔时因 今日意 侃侃微软的CRT
come from:http://gulu-dev.com/post/2014-06-28-microsoft-crt想了解CRT的童鞋来看:
2014-07-02 05:46:36 1726
Oracle8i_9i数据库基础
2011-12-21
FaceTracking
2011-11-20
Efficient region segmentation through ‘creep-and-merge’
2011-03-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人