1. 下载 linux版本sdk,解压(使用代理:203.208.46.146 dl-ssl.google.com) 2. 解压后,配好环境变量path,执行:android list sdk --extended --all,列出所有扩展工具及对应版本,如下: packages available f...
分类:
移动开发 时间:
2014-09-18 13:24:44
阅读次数:
204
运行环境:Win7+VS2013+CUDA6.51.创建win32空项目2.右键项目解决方案-->生成项目依赖项-->生成自定义3.右键项目解决方案-->属性-->配置属性-->常规-->平台工具集配置属性-->VC++目录-->包含目录,添加$(CUDA_INC_PATH)连接器-->常规-->附...
Follow up for "Search in Rotated Sorted Array":What if duplicates are allowed?Would this affect the run-time complexity? How and why?Write a function ...
分类:
其他好文 时间:
2014-09-18 13:11:03
阅读次数:
135
MapFile是排序后的SequenceFile, 这个排序是由开发者来保证的, 不是内存实现.相当于对key作了一个分块索引, 只针对key.缺点1.文件不支持复写操作,不能向已存在的SequenceFile(MapFile)追加存储记录2.当write流不关闭的时候,没有办法构造read流。也就...
分类:
其他好文 时间:
2014-09-18 13:01:44
阅读次数:
171
1 函数传参的顺序:#include //进栈栈地址是递减的。先进栈的在高地址,后进栈的在低地址。//函数传参:参数从最右边先进栈,先进后出。#include void fun(int a, ...) { int i; int *temp = &a; temp++; f...
分类:
其他好文 时间:
2014-09-18 12:56:53
阅读次数:
156
一 . 获取客户端,服务器端信息: Response.Write("客户端信息:"); Response.Write("浏览器类型,版本:"); Response.Write(Request.Browser.Type); Response.Write("浏览...
分类:
Web程序 时间:
2014-09-18 12:47:53
阅读次数:
262
public void WriteLog(string logStr) { lock (this) { string path = @"D:\log\payment\"; string file = DateTim...
分类:
其他好文 时间:
2014-09-18 12:45:43
阅读次数:
1756
【题目】
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[...
分类:
其他好文 时间:
2014-09-18 11:29:23
阅读次数:
201
首先在Eclipse中创建一个新的项目,加入运行Struts2所需要的JAR文件,并将它们加到项目的CLASSPATH中(在Lisbs中右击 build path 如下图:),成功后的界面如图 1-17所示。(记住是在Referenced Libraries中右击jar包)图 1-17 Eclips...
分类:
系统相关 时间:
2014-09-18 11:24:43
阅读次数:
308
1.hbase安装cd/root/softtarzxvfhbase-0.98.5-hadoop2-bin.tar.gzmvhbase-0.98.5-hadoop2/usr/local/hadoop/hbase2.添加环境变量(所有节点都增加)#vim/etc/profileexportHBASE_HOME=/usr/local/hadoop/hbaseexportPATH=$PATH:/usr/local/hadoop/hbase/bin#source/etc/profile3...
分类:
数据库 时间:
2014-09-18 09:52:54
阅读次数:
265