①file/new/other/androd Application
Poject,选择SDKDemo,复制到workspace②申请amap的key,名字在res/values/strings/的demo_title:为AMapsD
Demo③run-as可以在模拟器里也可以在手机上。
分类:
其他好文 时间:
2014-05-05 21:48:01
阅读次数:
257
使用RequireJS (1)整个页面,应该只有一个 (2)在页面头部的
部分,增加一行内联js代码:(3) 然后你就可以在 (1)和(2) 之间的任何部分写自己的 js 代码了。所有代码请用 _run( function() {}
); 包装:_run( function() { // 你的代码写...
分类:
其他好文 时间:
2014-05-05 11:46:10
阅读次数:
343
原文:SQLSERVER中的ALL、PERCENT、CUBE关键字、ROLLUP关键字和GROUPING函数SQLSERVER中的ALL、PERCENT、CUBE关键字、ROLLUP关键字和GROUPING函数先来创建一个测试表
1 USE [tempdb] 2 GO 3 4 CREATE TABL...
分类:
数据库 时间:
2014-05-05 11:17:30
阅读次数:
575
Ubuntu: How to Change the Computer NamePosted
byRob RogersinLinuxYou might run into a situation that requires you to change
your computer name, either...
分类:
其他好文 时间:
2014-05-04 11:55:30
阅读次数:
390
想象一个场景:现在我们要计算一个给定包中的一个类Tank的放run()的运行时间,并不是计算new
Tank().run()的时间,因为new包含JDK实例化的时间。这里要求是纯粹计算run方法的时间。方法有两种:继承和聚合。1、继承 1 package
program.proxy.model; 2...
分类:
其他好文 时间:
2014-05-04 11:45:24
阅读次数:
350
Given a collection of numbers that might
contain duplicates, return all possible unique permutations.For
example,[1,1,2]have the following unique perm...
分类:
其他好文 时间:
2014-05-04 10:20:44
阅读次数:
240
做web项目时,经常会遇到修改了代码,但浏览器端没有生效,原因是多种多样的,我会根据我遇到的情况逐步更新解决办法
1.运行的时候采用debug模式,一般情况下使用项目部署按钮右边那个按钮下的tomcat7中的run就行,如果使用的是serves中的run serves,这种情况貌似不会自动编译
2.点击project菜单下的clean选项,在打开的窗口中选择你使用的项目,ok,这样会删...
分类:
Web程序 时间:
2014-05-04 08:52:42
阅读次数:
302
#pragma once#include namespace stds { class tool
{ public: std::string ws2s(const std::wstring& ws) { std::string curLocale =
setlocale(LC_ALL...
分类:
其他好文 时间:
2014-05-03 22:25:17
阅读次数:
318
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatenation of each word in L exactly once and without an...
分类:
其他好文 时间:
2014-05-03 21:35:49
阅读次数:
310
1、能用DISTINCT的就不用GROUP BY
SELECT OrderID FROM Details WHERE UnitPrice > 10 GROUP BY OrderID
可改为: SELECT DISTINCT OrderID FROM Details WHERE UnitPrice > 10
2.能用UNION ALL就不要用UNION
UNION A...
分类:
数据库 时间:
2014-05-03 21:31:24
阅读次数:
342