下面的不是指针指向数组,而是指针指向SliceI'm having a little play with google's Go language, and I've run into something which is fairly basic in C but doesn't seem to ...
分类:
其他好文 时间:
2014-10-28 00:21:40
阅读次数:
176
原文:Example:publicclassSecureextendsController{@BeforestaticvoidcheckAuthenticated(){if(!session.containsKey("user")){unAuthorized();}}}AndonanotherCon...
分类:
其他好文 时间:
2014-10-27 22:45:26
阅读次数:
260
Google Play上的应用是官方的,无第三方修改的应用。我们一般只在手机上用Google Play下载或是更新应用。 要是我们想下载的应用不是本区的或是不兼容我们的设备,Google play不让我们安装怎么办呢? 1.首先你电脑里要装有chrome浏览器。 2.安装拓展程序APK Downl....
分类:
移动开发 时间:
2014-10-27 21:08:32
阅读次数:
241
As a simple way to play with functions and loops, implement the square root function using Newton's method.In this case, Newton's method is to approxi...
分类:
其他好文 时间:
2014-10-27 00:18:38
阅读次数:
219
DescriptionIn the two-player game "Two Ends", an even number of cards is laid out in a row. On each card, face up, is written a positive integer. Play...
分类:
其他好文 时间:
2014-10-25 18:32:56
阅读次数:
207
kafka自己居然没有还一个Web管理界面。。
这里有个第三方的:
https://github.com/claudemamo/kafka-web-console
坑爹的是居然没有详细的安装步骤,只有一些简单的说明,对于不熟悉scala play开发的人来说,很蛋疼。下面记录详细的安装过程。
先下载安装scala的构建工具sbt,最新版本可以到官网查看:
http://ww...
分类:
Web程序 时间:
2014-10-24 20:53:54
阅读次数:
253
Google Play不允许删除App。所以当你上传了一个App之后 ,你又像我一样这么不小心丢了Key。你就必须修改包名然后再上传。这样Google Play就会以为是另一个项目了。先修改这里修改package字段比如你原来是com.xxx.ui换成com.xxx.test然后再替换所有项目中的包...
分类:
移动开发 时间:
2014-10-24 12:47:18
阅读次数:
224
Main.m
#import
#import "Piano.h"
#import "Violin.h"
#import "Actor.h"
/*
乐器(Instrument)分为:钢琴(Piano)、小提琴(Violin)。
各种乐器的弹奏( play )方法各不相同。演奏家可以使用各种乐器。
*/
int main(int argc, const char * argv[...
分类:
其他好文 时间:
2014-10-23 20:53:11
阅读次数:
260
nginx+play framework +mongoDB+redis +mysql+LBS实战总结(一)使用这个样的组合结构已经很久了,主要是实现web-server,不是做网站,二是纯粹的数据服务server。早就想总结一下,一直没有时间,最近也是一而再再而三的解决了使用途中的各种问题,从此片开...
分类:
数据库 时间:
2014-10-23 14:08:04
阅读次数:
441