摘要:
# insertdb.person.insert({ "name": "kelvin", "age": 35 })db.person.insert({ "name": "huahua", "age": 25 })db.person.insert({ "name": "xiaomeng", "age": 24 })db.person.insert({ "name": "laozhang&q 阅读全文
摘要:
1. IIS 6IIS 6.0 was capable of scaling out to virtually any number of web servers and had tools likeIISCnfg.vbs to keep the IIS metabase in sync between the nodes.2. IIS 7IISCnfg.vbs is no longer available with IIS 7.0 but has been replaced with AppCmd.exe andthe new shared configuration.Shared Conf 阅读全文
摘要:
在Windows下使用gcc编译器:1.首先介绍下MinGWMinGW是指只用自由软件来生成纯粹的Win32可执行文件的编译环境,它是Minimalist GNU on Windows的略称。 实际上 MinGW 并不是一个 单纯的C/C++ 编译器,而是一套 GNU 工具集合。除开 GCC 以外,MinGW 还包含有一些其他的 GNU 程序开发工具 (比如 gawk bison 等等)。 开发 MinGW 是为了那些不喜欢工作在 Linux(FreeBSD) 操作系统而留在 Windows 的人提供一套符合 GNU 的 GNU 工作环境。 所以,使用 MinGW 我们就可以像在 L... 阅读全文
摘要:
一、概述 NetCDF全称为network Common Data Format,中文译法为“网络通用数据格式”,对程序员来说,它和zip、jpeg、bmp文件格式类似,都是一种文件格式的标准。netcdf文件开始的目的是用于存储气象科学中的数据,现在已经成为许多数据采集软件的生成文件的格式。 从数学上来说,netcdf存储的数据就是一个多自变量的单值函数。用公式来说就是f(x,y,z,...)=value, 函数的自变量x,y,z等在netcdf中叫做维(dimension)或坐标轴(axix),函数值value在netcdf中叫做变量(Variables).而自变量和函数值在物理学上的一些 阅读全文
摘要:
A literal array is created by putting squarebrackets around a comma-separated list of elementseg:# ["zero" , "un" , "dos" , "tre" ]a = ['zero' , 'un' , 'dos' , 'tre' ]# 4a.length# 4a.size# "zero"a[0]# ["un" , 阅读全文
摘要:
ProblemYou want to display an image instead of text as the title of the current view controlleron the navigation controllerSolutionUse the titleView property of the view controller’s navigation item- (void)viewDidLoad { [super viewDidLoad]; /* Create an Image View to replace the Title View */ ... 阅读全文
摘要:
ProblemYou would like to directly manipulate the array of view controllers associated with aspecific navigation controllerSolutionUse the viewControllers property of the UINavigationController class to access andmodify the array of view controllers associated with a navigation controller- (void) goB 阅读全文
摘要:
ProblemYou would like to allow your users to move from one view controller to the other witha smooth and built-in animation.SolutionUse an instance of UINavigationController.What it's likeIf you’ve used an iPhone, iPod Touch, or iPad before, chances are that you have alreadyseen a navigation con 阅读全文
摘要:
http://www.codeproject.com/Articles/556995/MVC-interview-questions-with-answers#What_is_razor_in_MVC 阅读全文
摘要:
// View宽,高public int[] getLocation(View v) { int[] loc = new int[4]; int[] location = new int[2]; v.getLocationOnScreen(location); loc[0] = location[0]; loc[1] = location[1]; int w = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED); int h = View.MeasureSpec.make... 阅读全文