码迷,mamicode.com
首页 > 其他好文
CoreGraphics详解
CoreGraphics详解CoreGraphics详解 CoreGraphics绘图 绘制一个矩形 绘制一个椭圆 绘制曲线 绘制圆形 链接点来绘制为图形CoreGraphics绘图绘制一个矩形CGRect rectangle=CGRectMake(0, 0, 200, 200); //获取当前图形 CGContextRef ctx=UIGraphicsGetCurrentCon...
分类:其他好文   时间:2015-02-12 18:38:38    阅读次数:186
全民拥抱Docker云--Lhotse系统经验分享
前言“只要站在风口,猪也能飞起来”,这碗心灵鸡汤不知道激励了多少英雄豪杰踏上寻风口之路。而现如今,Docker这阵龙卷风呼啸来袭,更让众人生起迎风而上、直冲云霄的欲望。为了找到这风口,数据平台部开始全面拥抱Docker,基于多年的大数据集群管理经验,倾力打造DockerOnGaia云平台(简称Gaia云),并动员将数平自身的核心系统Lhotse、Hermes、Hive、TRE、TDBank等全面接入...
分类:其他好文   时间:2015-02-12 18:36:38    阅读次数:296
[LeetCode]Count and Say
The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, … 1 is read off as “one 1” or 11. 11 is read off as “two 1s” or 21. 21 is re...
分类:其他好文   时间:2015-02-12 18:34:45    阅读次数:154
AsyncTask分析
AsyncTask分析...
分类:其他好文   时间:2015-02-12 18:35:02    阅读次数:145
基于innobakcupex跨实例不完全恢复步骤
MySQL在基于热备的基础上,可以实现对原有实例的完全或不完全恢复。而很多时候,原有实例部署了DRBD或者MHA等,在这种情况下,基于原有实例进行恢复会影响原有的故障现场及架构,可以通过跨实例恢复来恢复丢失或异常数据。同时跨实例恢复也可以实现基于整个实例进行实例级别数据库迁移。下文演示了基于跨实例的不完全恢复。 1、主要步骤a、准备新实例b、基于热备做prepare及recoverc、复制完整的备...
分类:其他好文   时间:2015-02-12 18:35:31    阅读次数:197
Bitmap优化
Bitmap优化 一个进程的内存可以由2个部分组成:native和dalvik,dalvik就是我们平常说的java堆,我们创建的对象是在这里面分配的,而bitmap是直接在native上分配的。 一旦内存分配给Java后,以后这块内存即使释放后,也只能给Java的使用,所以如果Java突然占用了一个大块内存,即使很快释放了,C能用的内存也是16M减去Java最大占用的内存数。 而Bitmap的...
分类:其他好文   时间:2015-02-12 18:34:48    阅读次数:262
【LeetCode从零单排】No27.Remove Element
题目    Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn't matter what you leave beyond the new length.代码p...
分类:其他好文   时间:2015-02-12 18:34:55    阅读次数:144
【LeetCode从零单排】No28 Implement strStr()
题目Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.代码public class Solution { public int strStr(String haystack, String ne...
分类:其他好文   时间:2015-02-12 18:35:09    阅读次数:131
[LeeCode]Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters ’ ‘, return the length of last word in the string. If the last word does not exist, return 0. Note: A wor...
分类:其他好文   时间:2015-02-12 18:32:44    阅读次数:173
intelliJ idea读取资源文件
官方文档 以下是jetbrain官网对idea中资源文件的解释,文章最后有此问的链接。 这里的资源文件包括properties文件、图片、dtd文件、xml文件。这些文件被放在项目的classpath路径下。通常可以使用以下方法来获取他们: ResourceBundle.getBundle() //获取properties文件或者资源包(resource bundles) loadRe...
分类:其他好文   时间:2015-02-12 18:33:51    阅读次数:237
用户日志的收集传输存储架构设计讨论
用户行为日志的收集传输存储架构设计讨论...
分类:其他好文   时间:2015-02-12 18:31:51    阅读次数:158
FrontEnd 步步高升: Echart 使用简单介绍,快速上手~
引入echart 当然,官方文档给了三种引入方式:点我点我~ 官方说要把script标签放在body末尾,如果你想放在head也没问题。 在window.onload中注册初始化的函数: window.onload = init; function init() { initChart(); } 现在我们有一个全局变量 require 准备DOM  ...
分类:其他好文   时间:2015-02-12 18:31:51    阅读次数:178
平面旋转的折叠定理
上面的表 采用“右手笛卡儿坐标系”,    但是把Z轴翻过来,Z轴正方向为屏幕从外向里。 平面上的顺时针旋转90度,是相对于Z轴, 右(手)旋(转)90度,和“安培右手守则”一个道理。 平面上的逆时针旋转90度,是相对于Z轴, 左(手)旋(转)90度, 平面上的逆时针旋转180度,是相对于Z轴, 右(手)旋(转)180度, 平面上的水平方向上镜像,是相对于Y轴,右(手)旋(转)1...
分类:其他好文   时间:2015-02-12 18:33:56    阅读次数:198
leetcode_01_Two sum
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 Two sum Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbe...
分类:其他好文   时间:2015-02-12 18:32:47    阅读次数:162
设计包含min函数的栈
题目: 定义栈的数据结构,要求添加一个min函数,能够得到栈的最小元素。 要求函数min、push以及pop的时间复杂度都是O(1)。   代码:   #include #include #define MAX_LEN_STACK 10 typedef struct { int stackList[MAX_LEN_STACK]; int to...
分类:其他好文   时间:2015-02-12 18:33:26    阅读次数:132
leetcode_26_Remove Duplicates from Sorted Array
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 Remove Duplicates from Sorted Array Given a sorted array, remove the duplicates in place such that each element appear only once and return the new  length. Do...
分类:其他好文   时间:2015-02-12 18:30:37    阅读次数:113
leetcode_27_Remove Element
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 Remove Element Given an array and a value, remove all instances of that value in place and return the new length. The order of elements can be changed. It doesn't...
分类:其他好文   时间:2015-02-12 18:30:54    阅读次数:159
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!