现在位置: 首页 > yaunyong发表的所有文章
  • 10月
  • 11日
综合 ⁄ 共 2154字 评论关闭
基本的软硬件配置: x86台式机,window7  64位系统 vb虚拟机(x86的台式机至少是4G内存,才能开3台虚机) centos6.4操作系统 hadoop-1.1.2.tar.gz jdk-6u24-linux-i586.bin WinScp 远程文件传输工具,很好用。可以用于windows和虚拟机Linux之间文件相互拷贝。 一、root下的配置 a) 修改主机名:vi /etc/sysconfig/network Master,slave1,slave2 b) 解析Ip: vi /etc/hosts  192.168.8.100 master 192.168.8.101 slave1 192.168.8.102 slave2 c) 调试网络: 采用网桥连接网络,配置网络。 修改后记得调用......
阅读全文
  • 01月
  • 05日
综合 ⁄ 共 975字 评论关闭
C++学习字符串输入的小例子,并且做了一些字符串是否为空,字符数组转换为字符串的一些操作。 下面是例子:在DEV C++的编译工具下面顺利通过编译 #include <iostream> #include<string> using namespace std; int main(){ int count = 20; char name[count]; char password[count]; bool isExit=false; int timeOut=0; while(!isExit) { cout <<"请输入用户名:"<<endl; cin>>name; cout <<"请输入密码:"<<endl; cin>>password; string name......
阅读全文
  • 10月
  • 18日
综合 ⁄ 共 4458字 评论关闭
The Test Management Process   Test management with TestDirector involves four phases:   Specify Requirements: Analyze your application and determine your testing requirements.   Plan Tests: Create a test plan, based on your testing requirements.   Execute Tests: Create test sets and perform test runs.   Track Defects: Report defects detected in your application and track how repairs are progressing.   Throughout each phase, you can analyze data by generating detailed reports......
阅读全文
  • 08月
  • 18日
综合 ⁄ 共 2650字 评论关闭
我们先看2个类的定义 [java] view plaincopy public class Hashtable       extends Dictionary       implements Map, Cloneable, java.io.Serializable   [java] view plaincopy public class HashMap       extends AbstractMap       implements Map, Cloneable, Serializable   可见Hashtable 继承自 Dictiionary 而 HashMap继承自AbstractMap   Hashtable的put方法如下 [java] view plaincopy public synchronized V put(K key, V value) {  //###### 注意这里1     // Make ......
阅读全文
  • 05月
  • 12日
综合 ⁄ 共 132字 评论关闭
1. An simple implementations (easy to  read) https://github.com/mbrossard/threadpool 2. Another implementation http://www.iteye.com/topic/38544
阅读全文
  • 05月
  • 02日
综合 ⁄ 共 235字 评论关闭
以前从来没搞过LINUX的, 突然这么下有点转不过来。 让同事帮忙搭的开发环境,发现这个项目要研究的东西真够多的, Redis,hadoop 都去简单研究了下, hadoop 好像不是很我们这样的高性能服务器,不过可以多开虚拟机来替代, 但是内存又怕不够, 主要项目要处理的数据量比较大,差不多10T左右。 另外以前不懂python 也简历看了下。 中间又花了2个星期左右时间研究了C++ STL的源代码, 主要是MAP 和SET。 又找同事要了点LINUX的命令简单看了下。 感觉时间都不够用了。
阅读全文
Please first try the workaround in this article: Assembly load failure installing the 2.0 Framework which described an issue similar to yours. If this does not solve your problem, you can try using the following steps to solve this problem: Download the .NET Framework cleanup tool and choose to clean up the version of the .NET Framework that is causing problems on your system Download and install the version of the .NET Framework that you cleaned up in step 1 (such as the......
阅读全文
  • 04月
  • 05日
综合 ⁄ 共 466字 评论关闭
最近开发过程中用到了Service ,需要对Service内的程序逻辑进行断点调试,遂加了android.os.Debug.waitForDebugger();这句代码。 出现问题:一切正常后,打包测试,发现只要手机连上电脑通过Eclipse直接运行程序就一切正常,而安装打包后的程序运行时,发现有的手机运行有的正常,有的不正常(只执行到onCreate()方法,并且Server会一直重启......),纠结了好久。。。最后发现这句该死的代码。。。 方法注释如下: Wait until a debugger attaches. As soon as the debugger attaches, this returns, so you will need to place ......
阅读全文
  • 01月
  • 19日
综合 ⁄ 共 100字 评论关闭
any object does not have a member named generator ?       若是swift,any object does not have a member named generator  加上!试试
阅读全文
  • 12月
  • 09日
综合 ⁄ 共 704字 评论关闭
  docstring: docstring表示源代码的注释,可以被help()函数识别。 以''' axxxx'''的形式存在,可以为多行。 可以给module,class,function增加docstring。 但是docstring必须在所有的内容的最前面,例如如果给module增加docstring,该docstring必须位于文件的最前面。   实例: '''# prerequisite:#   based on Python 2.x#   need Python XXX module#   make XXXXX command is in PATH # usage:    1) change the variables:XXX,XXX    2) thisscript.py arg1 arg2 arg3    # process:    1) step1    2) step2    3) step3  ......
阅读全文
  • 12月
  • 03日
综合 ⁄ 共 832字 评论关闭
:: SendMessage( h ,WM_IME_CHAR ,( WPARAM)(0xBABA),0); //发个汉字 :: SendMessage( h ,WM_CHAR ,( WPARAM )('A'),0);  // 发送字母. 也可以用剪贴板:     if (!OpenClipboard (NULL))     {         return -1;     }     // Remove the current Clipboard contents      if(!EmptyClipboard ())     {         return -2;      }     // Get the currently selected data, hData handle to     // global memory of data     CString str = _T( "teststr");     size_t cbStr = (str. GetLength() + 1) * sizeof (TCHA......
阅读全文
  • 11月
  • 17日
综合 ⁄ 共 10446字 评论关闭
       (注:【D3D11游戏编程】学习笔记系列由CSDN作者BonChoix所写,转载请注明出处:http://blog.csdn.net/BonChoix,谢谢~)          初次使用D3D11,先从它的初始化开始。不过在使用D3D之前,需要了解几个重要的概念:        1. 硬件能力:Hardware Capacity        熟悉D3D9的会很清楚,在初始化d3d9的一开始需要做的就是检测硬件的能力,以了解该用户机器支持哪些d3d特性,哪些不支持,以在运行期合理的调用API。除非使用d3d自带的“软件渲染引擎”,否则试图使用硬件不支持的特性是会出错的。但是在d3d11中,检测硬件能力......
阅读全文