rails server (默认为开发环境)rails server -p503 -e production (指定为生产环境 ,并指定站点端口)rake RAILS_ENV=production assets:precompile --trace (预编译)intel app frame jque...
分类:
其他好文 时间:
2015-02-06 16:30:56
阅读次数:
191
1. 屏幕适配的各种技术 1> 3gs\4\4s时代:没有屏幕适配一说,尺寸只有一个,直接用代码计算frame就行了 2> iPad出现:为应对横竖屏,苹果推出autoresizing,它的作用是让子控件能跟随父控件做拉伸.如下图,autoresizing可以让红色的子控件的宽度始终铺满屏幕 ...
分类:
移动开发 时间:
2015-02-06 14:37:31
阅读次数:
183
Problem Description
How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card length. (We're assuming that the cards must be per...
分类:
其他好文 时间:
2015-02-06 09:36:23
阅读次数:
130
Java里的堆(heap)栈(stack)和方法区(method) 基础数据类型直接在栈空间分配, 方法的形式参数,直接在栈空间分配,当方法调用完成后从栈空间回收。 引用数据类型,需要用new来创建,既在栈空间分配一个地址空间,又在堆空间分配对象的类变量 。 方法的引用参数,在栈空间分配一个地址空间...
分类:
其他好文 时间:
2015-02-06 00:33:16
阅读次数:
301
zigbee协议栈版本: z-stack home 1.2.1
1、按键的初始化:协议栈的按键初始化主要有两个地方,一个是初始化开始,一个是初始化结束。
int main( void )
{
。。。。
InitBoard( OB_COLD ); //第一次初始化按键
。。。。
InitBoard( OB_READY );
。。。。
}
...
分类:
其他好文 时间:
2015-02-05 16:26:22
阅读次数:
222
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get...
分类:
其他好文 时间:
2015-02-05 13:46:31
阅读次数:
219
LCD液晶屏驱动程序 2015年1月28日 晚 20:00 一.帧缓冲FrameBuffxer 帧缓冲FrameBuffer,从本质上讲是图形设备的硬件抽象,是一块显示缓存,往显示缓存中写入特定格式的数据就意味着向屏幕输出内容,通过不断的向frame buffer中写入数据,显示控制器就自动从fra...
分类:
其他好文 时间:
2015-02-05 13:32:25
阅读次数:
306
一、预备知识—程序的内存分配 一个由C/C++编译的程序占用的内存分为下面几个部分 1、栈区(stack)— 由编译器自己主动分配释放 ,存放函数的參数值,局部变量的值等。其 操作方式相似于数据结构中的栈。 2、堆区(heap) — 一般由程序猿分配释放, 若程序猿不释放,程序结束时可能由O...
分类:
其他好文 时间:
2015-02-05 13:02:23
阅读次数:
110
class UICollectionView : UIScrollView//初始化,位置,风格 init(frame: CGRect, collectionViewLayout layout: UICollectionViewLayout) //布局风格var collectionViewLayo...
分类:
其他好文 时间:
2015-02-05 11:13:11
阅读次数:
126
题目:
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
Above is a histogram where ...
分类:
编程语言 时间:
2015-02-05 09:41:47
阅读次数:
206