Well是一种会引起内容凹陷或插图效果的容器div。为了创建Well,只需要简单地把内容放在带有class well的div中即可。下面的实例演示了默认的Well:html: well测试 尺寸大小您可以使用可选类well-lg 或well-sm来改变Well的尺寸大小。...
分类:
其他好文 时间:
2015-05-25 18:38:28
阅读次数:
144
package com.test.classtest;public class test {public static void main(String[] args) throws Exception {String hl = "hello";String sm = "smile";String ...
分类:
编程语言 时间:
2015-05-22 21:01:09
阅读次数:
192
difference among col-lg-*, col-md-* and col-sm-* in twitter bootstrap3
分类:
其他好文 时间:
2015-05-18 22:36:01
阅读次数:
140
使用VS2013编译CUDA程序时,可能会遇到以下问题:1、errorMSB3721:"D:\ProgramFiles\NVIDIAGPUComputing\Toolkit\CUDA\v7.0\bin\nvcc.exe"-gencode=arch=compute_52,code=\"sm_52,co...
分类:
其他好文 时间:
2015-05-16 23:12:45
阅读次数:
336
GPU的硬件结构,也不是具体的硬件结构,就是与CUDA相关的几个概念:thread,block,grid,warp,sp,sm。 sp: 最基本的处理单元,streaming processor 最后具体的指令和任务都是在sp上处理的。GPU进行并行计算,也就是很多个sp同时做处理 sm:多个sp加...
分类:
其他好文 时间:
2015-05-16 20:32:54
阅读次数:
291
下面简单介绍一些cuda中的共享存储器和全局存储器 共享存储器,shared memory,可以被同一块中的所有线程访问的可读写存储器,生存期是块的生命期。 Tesla的每个SM拥有16KB共享存储器。 在编程过程中,有静态的shared memory 动态的shared memory 静态的sha...
分类:
其他好文 时间:
2015-05-16 20:24:45
阅读次数:
112
1.UISegmentedControl ????UISegmentedControl是通过selectedSegmentIndex选择的 -?(IBAction)segmentedTouch:(id)sender?{
????UISegmentedControl?*sm?=?(UISegmentedControl?*)sender;
????...
分类:
其他好文 时间:
2015-05-11 18:21:58
阅读次数:
135
[DllImport("user32")]public static extern int GetSystemMetrics(int nIndex);nIndex值:SM_CXSCREEN = 0 '屏幕宽度SM_CYSCREEN = 1 '屏幕高度SM_CXVSCROLL = 2 '垂直滚动条的宽...
方法一: 1 TRect rt; 2 SystemParametersInfo(SPI_GETWORKAREA, 0, &rt, 0); 3 //任务栏在下面的高度 4 int y = ::GetSystemMetrics(SM_CYSCREEN)-rt.Height(); 5 //上面 6 y =...