今天从人大西门跑到人大东门那里找吃的,不过人在一个地方吃惯了,就总想着还在那一带吃,结果还是往海淀黄庄的方向走去。远远地看到新中关大厦,虽然明知非常累,但还是不自觉地走过去了。走啊走啊,果然是比想象中的遥远,下半身快成为钟摆了。可怜的大麻哈鱼啊!心里突然冒出这个比喻!《一个人的朝圣》的事情发生了,我...
分类:
其他好文 时间:
2015-02-07 21:33:52
阅读次数:
194
image和container的关系可以理解为“类”和“实例”的关系。而且在一个机器环境里跑的container还可以是基于不同的image。你可以随时把一个container打包成一个image作再次的部署。其次,你在一个container里作的修改也可以更新到基于同一image的其它contai...
分类:
其他好文 时间:
2015-02-07 21:31:37
阅读次数:
201
题目要求:Rotate ImageYou are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?代码...
分类:
其他好文 时间:
2015-02-07 21:32:30
阅读次数:
204
tofile() fromfile()>>a = np.arange(0,12)>>a.shape = 3,4>>aarray([[ 0, 1, 2, 3], [ 4, 5, 6, 7], [ 8, 9, 10, 11]])>>a.tofile("a.bin...
分类:
其他好文 时间:
2015-02-07 21:30:34
阅读次数:
404
题目要求:Permutations IIGiven a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2]have the f...
分类:
其他好文 时间:
2015-02-07 21:30:03
阅读次数:
117
Eclipse GBK支持添加 首先Windows->Preferences, 然后选择General下面的Workspace. Text file encoding选择Other GBK, 如果没有GBK的选项, 没关系, 直接输入GBK三个字母, Apply, GBK编码的中文, 已经不是乱码了...
分类:
其他好文 时间:
2015-02-07 21:32:02
阅读次数:
155
参考文献:1 http://en.wikipedia.org/wiki/Perlin_noise2 http://webstaff.itn.liu.se/~stegu/TNM022-2005/perlinnoiselinks/perlin-noise-math-faq.html3 http://ww...
分类:
其他好文 时间:
2015-02-07 21:30:04
阅读次数:
303
由于quick2.25没有导出shader相应的接口,所以2.25无法直接使用shader。本文简单介绍如何导出相应接口,同时教大家使用shader实现精灵变灰一、编写静态函数,以供导出使用(直接参考3.2版本的)2.25的GLProgram是对应操作shader的类。在GLProgram.h声明以...
分类:
其他好文 时间:
2015-02-07 21:30:55
阅读次数:
163
1 namespace learn.Sample 2 { 3 public delegate void DoGreeting(string name);//声明一个委托 4 public class ManagerHello 5 { 6 public eve...
分类:
其他好文 时间:
2015-02-07 21:28:17
阅读次数:
217
设计模式是一套被反复使用、多数人知晓的、经过分类编目的、代码设计经验的总结,使用设计模式的目的是提高代码的可重用性,让代码更容易被他人理解,并保证代码可靠性。它是代码编制真正实现工程化。四个关键元素:(1) Pattern Name, (2) Problem, (3) Solution, (4) C...
分类:
其他好文 时间:
2015-02-07 21:29:30
阅读次数:
105
#!/bin/bash
for?i?in?`ls`
????do
????????mv?$i?${i%%.*}.php
????done
分类:
其他好文 时间:
2015-02-07 20:26:19
阅读次数:
186
小弟新游戏《对准了射》苹果商店上线,各位朋友都来支持一下,谢谢! 苹果手机下载地址: ?https://itunes.apple.com/cn/app/dui-zhun-le-she/id960171989?mt=8? ? ? 这是一款物理小游戏,欢迎大家下载试玩...
分类:
其他好文 时间:
2015-02-07 20:26:45
阅读次数:
181
URAL 1515. Cashmaster (数学啊 )...
分类:
其他好文 时间:
2015-02-07 20:27:24
阅读次数:
245
Cocos2d-x的UI是按照树形结构组织的。
大家学过数据结构的话 就知道 什么是树了。
树只有一个 根节点,根节点没有父节点,其他节点都有父节点和子节点,而叶子节点没有子节点,叶子节点就是指没有子节点的节点。
在这里父和子 都是相对的。
我们知道树结构的遍历有3种方式,说是遍历 就是把每个节点找个遍的意思,前序遍历,中序遍历,后序遍历。
所谓的前,中,后指的是根节点,...
分类:
其他好文 时间:
2015-02-07 20:24:26
阅读次数:
427
小弟新游戏《对准了射》苹果商店上线,各位朋友都来支持一下,谢谢! 苹果手机下载地址: https://itunes.apple.com/cn/app/dui-zhun-le-she/id960171989?mt=8...
分类:
其他好文 时间:
2015-02-07 20:25:00
阅读次数:
186
题目链接:点击打开链接
ZOJ 3573 Under Attack
距离做这套题到写题解间隔比较久,题意有些忘了。。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
typedef long lon...
分类:
其他好文 时间:
2015-02-07 20:26:47
阅读次数:
251
添加jar包到WEB-INF下的lib目录
web.xml文件
配置的过滤器的类是:org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilte
从struts-2.1.3以后,org.apache.struts2.dispatcher.FilterDispatcher值被标注为过时。虽然仍然起作用,但是不建...
分类:
其他好文 时间:
2015-02-07 20:23:50
阅读次数:
155